From 14371d48668c8ab56da445220dab00350cf686b0 Mon Sep 17 00:00:00 2001 From: neil-yechenwei Date: Thu, 24 Oct 2024 16:30:42 +0800 Subject: [PATCH 1/4] Upgrade Network API version from 2023-11-01 to 2024-03-01 --- .../app_service_environment_v3_resource.go | 2 +- .../services/compute/network_interface.go | 2 +- ...ll_application_rule_collection_resource.go | 2 +- ...plication_rule_collection_resource_test.go | 2 +- .../services/firewall/firewall_data_source.go | 2 +- .../firewall_nat_rule_collection_resource.go | 2 +- ...ewall_nat_rule_collection_resource_test.go | 2 +- ...rewall_network_rule_collection_resource.go | 2 +- ...l_network_rule_collection_resource_test.go | 2 +- .../firewall/firewall_policy_data_source.go | 2 +- .../firewall/firewall_policy_resource.go | 2 +- .../firewall/firewall_policy_resource_test.go | 2 +- ...l_policy_rule_collection_group_resource.go | 2 +- ...icy_rule_collection_group_resource_test.go | 2 +- .../services/firewall/firewall_resource.go | 2 +- .../firewall/firewall_resource_test.go | 2 +- internal/services/firewall/subresource.go | 2 +- .../legacy/virtual_machine_resource.go | 4 +- .../logic/integration_service_environment.go | 2 +- .../application_gateway_data_source.go | 2 +- .../network/application_gateway_resource.go | 2 +- .../application_gateway_resource_test.go | 2 +- .../application_security_group_data_source.go | 2 +- .../application_security_group_resource.go | 2 +- ...pplication_security_group_resource_test.go | 2 +- internal/services/network/client/client.go | 6 +- .../network/custom_ip_prefix_resource.go | 2 +- .../network/custom_ip_prefix_resource_test.go | 2 +- .../local_network_gateway_poller.go | 2 +- ...ss_route_circuit_authorization_resource.go | 2 +- ...ute_circuit_authorization_resource_test.go | 2 +- ...press_route_circuit_connection_resource.go | 4 +- ..._route_circuit_connection_resource_test.go | 2 +- .../express_route_circuit_data_source.go | 2 +- ...press_route_circuit_peering_data_source.go | 2 +- .../express_route_circuit_peering_resource.go | 4 +- .../network/express_route_circuit_resource.go | 2 +- .../express_route_circuit_resource_test.go | 2 +- .../express_route_connection_resource.go | 2 +- .../express_route_connection_resource_test.go | 2 +- .../network/express_route_gateway_resource.go | 4 +- .../express_route_gateway_resource_test.go | 2 +- ...press_route_port_authorization_resource.go | 2 +- ..._route_port_authorization_resource_test.go | 2 +- .../network/express_route_port_resource.go | 2 +- .../express_route_port_resource_test.go | 2 +- .../network/ip_group_cidr_resource.go | 2 +- .../network/ip_group_cidr_resource_test.go | 2 +- .../services/network/ip_group_data_source.go | 2 +- .../services/network/ip_group_resource.go | 2 +- .../network/ip_group_resource_test.go | 2 +- .../local_network_gateway_data_source.go | 2 +- .../network/local_network_gateway_resource.go | 2 +- .../local_network_gateway_resource_test.go | 2 +- .../network/nat_gateway_data_source.go | 2 +- ..._gateway_public_ip_association_resource.go | 2 +- ...way_public_ip_association_resource_test.go | 2 +- ...y_public_ip_prefix_association_resource.go | 2 +- ...lic_ip_prefix_association_resource_test.go | 2 +- .../services/network/nat_gateway_resource.go | 2 +- .../network/nat_gateway_resource_test.go | 2 +- .../network_connection_monitor_resource.go | 2 +- ...etwork_connection_monitor_resource_test.go | 2 +- ...etwork_ddos_protection_plan_data_source.go | 2 +- .../network_ddos_protection_plan_resource.go | 2 +- ...work_ddos_protection_plan_resource_test.go | 2 +- .../services/network/network_interface.go | 2 +- ...pplication_gateway_association_resource.go | 2 +- ...ation_gateway_association_resource_test.go | 2 +- ...ion_security_group_association_resource.go | 2 +- ...ecurity_group_association_resource_test.go | 2 +- ...ckend_address_pool_association_resource.go | 2 +- ..._address_pool_association_resource_test.go | 2 +- .../network/network_interface_data_source.go | 2 +- .../network/network_interface_helpers.go | 2 +- .../network/network_interface_locking.go | 2 +- ...interface_nat_rule_association_resource.go | 2 +- ...face_nat_rule_association_resource_test.go | 2 +- .../network/network_interface_resource.go | 2 +- .../network_interface_resource_test.go | 2 +- ...ace_security_group_association_resource.go | 2 +- ...ecurity_group_association_resource_test.go | 2 +- ..._manager_admin_rule_collection_resource.go | 12 +- ...ger_admin_rule_collection_resource_test.go | 4 +- .../network_manager_admin_rule_resource.go | 18 +- ...etwork_manager_admin_rule_resource_test.go | 4 +- ..._connectivity_configuration_data_source.go | 2 +- ...ger_connectivity_configuration_resource.go | 2 +- ...onnectivity_configuration_resource_test.go | 2 +- .../network/network_manager_data_source.go | 2 +- .../network_manager_deployment_resource.go | 2 +- ...etwork_manager_deployment_resource_test.go | 2 +- ...er_management_group_connection_resource.go | 2 +- ...nagement_group_connection_resource_test.go | 2 +- ...twork_manager_network_group_data_source.go | 2 +- .../network_manager_network_group_resource.go | 2 +- ...ork_manager_network_group_resource_test.go | 2 +- .../network/network_manager_resource.go | 2 +- .../network/network_manager_resource_test.go | 2 +- ...twork_manager_scope_connection_resource.go | 2 +- ..._manager_scope_connection_resource_test.go | 2 +- ...r_security_admin_configuration_resource.go | 2 +- ...urity_admin_configuration_resource_test.go | 2 +- .../network_manager_static_member_resource.go | 2 +- ...ork_manager_static_member_resource_test.go | 2 +- ...anager_subscription_connection_resource.go | 2 +- ...r_subscription_connection_resource_test.go | 2 +- .../network_packet_capture_resource.go | 2 +- .../network_packet_capture_resource_test.go | 2 +- .../network/network_profile_resource.go | 2 +- .../network/network_profile_resource_test.go | 2 +- .../network_security_group_data_source.go | 2 +- .../network_security_group_resource.go | 2 +- .../network_security_group_resource_test.go | 2 +- .../network/network_security_rule_resource.go | 2 +- .../network_security_rule_resource_test.go | 2 +- .../network_service_tags_data_source.go | 2 +- .../network/network_watcher_data_source.go | 2 +- .../network_watcher_flow_log_resource.go | 4 +- .../network_watcher_flow_log_resource_test.go | 2 +- .../network/network_watcher_resource.go | 2 +- .../network/network_watcher_resource_test.go | 2 +- ...plication_security_group_association_id.go | 4 +- ...tion_security_group_association_id_test.go | 4 +- .../point_to_site_vpn_gateway_resource.go | 2 +- ..._application_security_group_association.go | 4 +- ...ication_security_group_association_test.go | 2 +- ...private_endpoint_connection_data_source.go | 4 +- .../network/private_endpoint_resource.go | 4 +- .../network/private_endpoint_resource_test.go | 2 +- .../private_link_service_data_source.go | 2 +- ...ervice_endpoint_connections_data_source.go | 2 +- .../network/private_link_service_resource.go | 2 +- .../private_link_service_resource_test.go | 2 +- .../services/network/public_ip_data_source.go | 2 +- .../network/public_ip_prefix_data_source.go | 2 +- .../network/public_ip_prefix_resource.go | 2 +- .../network/public_ip_prefix_resource_test.go | 2 +- .../services/network/public_ip_resource.go | 2 +- .../network/public_ip_resource_test.go | 2 +- .../network/public_ips_data_source.go | 2 +- .../network/route_filter_data_source.go | 2 +- .../services/network/route_filter_resource.go | 2 +- .../network/route_filter_resource_test.go | 2 +- .../services/network/route_map_resource.go | 2 +- .../network/route_map_resource_test.go | 2 +- internal/services/network/route_resource.go | 2 +- .../services/network/route_resource_test.go | 2 +- .../route_server_bgp_connection_resource.go | 2 +- .../services/network/route_server_resource.go | 2 +- .../network/route_server_resource_test.go | 2 +- .../network/route_table_data_source.go | 2 +- .../services/network/route_table_resource.go | 2 +- .../network/route_table_resource_test.go | 2 +- .../services/network/subnet_data_source.go | 2 +- ...subnet_nat_gateway_association_resource.go | 2 +- ...t_nat_gateway_association_resource_test.go | 2 +- ...ork_security_group_association_resource.go | 2 +- ...ecurity_group_association_resource_test.go | 2 +- internal/services/network/subnet_resource.go | 2 +- .../services/network/subnet_resource_test.go | 2 +- ...subnet_route_table_association_resource.go | 2 +- ...t_route_table_association_resource_test.go | 2 +- ...ervice_endpoint_storage_policy_resource.go | 2 +- ...e_endpoint_storage_policy_resource_test.go | 2 +- .../virtual_hub_bgp_connection_resource.go | 2 +- .../virtual_hub_connection_data_source.go | 2 +- .../virtual_hub_connection_resource.go | 2 +- .../virtual_hub_connection_resource_test.go | 2 +- .../network/virtual_hub_data_source.go | 2 +- .../network/virtual_hub_ip_resource.go | 2 +- .../services/network/virtual_hub_resource.go | 2 +- .../network/virtual_hub_resource_test.go | 2 +- .../virtual_hub_route_table_data_source.go | 2 +- .../virtual_hub_route_table_resource.go | 2 +- .../virtual_hub_route_table_resource_test.go | 2 +- .../virtual_hub_route_table_route_resource.go | 2 +- ...ual_hub_route_table_route_resource_test.go | 2 +- .../virtual_hub_routing_intent_resource.go | 2 +- ...irtual_hub_routing_intent_resource_test.go | 2 +- ..._hub_security_partner_provider_resource.go | 2 +- ...security_partner_provider_resource_test.go | 2 +- ...virtual_machine_packet_capture_resource.go | 2 +- ...al_machine_packet_capture_resource_test.go | 2 +- ...chine_scale_set_packet_capture_resource.go | 2 +- ..._scale_set_packet_capture_resource_test.go | 2 +- .../network/virtual_network_data_source.go | 2 +- .../virtual_network_dns_servers_resource.go | 2 +- ...rtual_network_dns_servers_resource_test.go | 2 +- ..._network_gateway_connection_data_source.go | 2 +- ...ual_network_gateway_connection_resource.go | 4 +- ...etwork_gateway_connection_resource_test.go | 2 +- .../virtual_network_gateway_data_source.go | 2 +- ...rtual_network_gateway_nat_rule_resource.go | 2 +- ..._network_gateway_nat_rule_resource_test.go | 2 +- .../virtual_network_gateway_resource.go | 2 +- .../virtual_network_gateway_resource_test.go | 2 +- .../virtual_network_peering_resource.go | 2 +- .../virtual_network_peering_resource_test.go | 2 +- .../network/virtual_network_resource.go | 2 +- .../network/virtual_network_resource_test.go | 2 +- .../network/virtual_wan_data_source.go | 2 +- .../services/network/virtual_wan_resource.go | 2 +- .../network/virtual_wan_resource_test.go | 2 +- .../vpn_gateway_connection_resource.go | 2 +- .../network/vpn_gateway_data_source.go | 2 +- .../network/vpn_gateway_nat_rule_resource.go | 2 +- .../vpn_gateway_nat_rule_resource_test.go | 2 +- .../services/network/vpn_gateway_resource.go | 2 +- .../network/vpn_gateway_resource_test.go | 2 +- ...rver_configuration_data_source_resource.go | 2 +- ...ver_configuration_policy_group_resource.go | 2 +- ...onfiguration_policy_group_resource_test.go | 2 +- .../vpn_server_configuration_resource.go | 2 +- .../vpn_server_configuration_resource_test.go | 2 +- .../services/network/vpn_site_resource.go | 2 +- .../network/vpn_site_resource_test.go | 2 +- ...application_firewall_policy_data_source.go | 2 +- ...eb_application_firewall_policy_resource.go | 2 +- ...plication_firewall_policy_resource_test.go | 2 +- .../network_virtual_appliance_resource.go | 4 +- .../web/app_service_environment_resource.go | 2 +- .../model_flowlog.go | 14 - .../model_applicationgatewayfirewallrule.go | 12 - .../model_bastionhostpropertiesformat.go | 19 - .../model_flowlog.go | 14 - .../model_probepropertiesformat.go | 15 - .../model_flowloginformation.go | 10 - .../model_flowlogproperties.go | 11 - .../virtualnetworktaps/model_flowlog.go | 14 - .../vmsspublicipaddresses/model_flowlog.go | 14 - .../2024-03-01/adminrulecollections/README.md | 86 + .../2024-03-01/adminrulecollections/client.go | 26 + .../adminrulecollections/constants.go | 57 + .../id_securityadminconfiguration.go | 139 + ...ecurityadminconfigurationrulecollection.go | 148 + .../method_createorupdate.go | 58 + .../adminrulecollections/method_delete.go | 100 + .../adminrulecollections/method_get.go | 53 + .../adminrulecollections/method_list.go | 134 + .../model_adminrulecollection.go | 17 + ...del_adminrulecollectionpropertiesformat.go | 11 + .../model_networkmanagersecuritygroupitem.go | 8 + .../adminrulecollections/predicates.go | 32 + .../adminrulecollections/version.go | 10 + .../network/2024-03-01/adminrules/README.md | 86 + .../network/2024-03-01/adminrules/client.go | 26 + .../adminrules}/constants.go | 28 +- ...ecurityadminconfigurationrulecollection.go | 148 + ...ityadminconfigurationrulecollectionrule.go | 157 + .../adminrules/method_createorupdate.go | 63 + .../2024-03-01/adminrules/method_delete.go | 100 + .../2024-03-01/adminrules/method_get.go | 58 + .../2024-03-01/adminrules/method_list.go | 117 + .../adminrules/model_addressprefixitem.go | 9 + .../adminrules/model_adminpropertiesformat.go | 18 + .../2024-03-01/adminrules/model_adminrule.go | 62 + .../adminrules/model_baseadminrule.go | 90 + .../model_defaultadminpropertiesformat.go | 19 + .../adminrules/model_defaultadminrule.go | 62 + .../2024-03-01/adminrules/predicates.go | 12 + .../network/2024-03-01/adminrules/version.go | 10 + .../README.md | 6 +- .../client.go | 0 .../constants.go | 0 .../id_applicationgateway.go | 0 ...icationgatewayprivateendpointconnection.go | 0 .../method_delete.go | 0 .../method_get.go | 0 .../method_list.go | 0 .../method_update.go | 0 .../model_applicationgatewaybackendaddress.go | 0 ...el_applicationgatewaybackendaddresspool.go | 0 ...tewaybackendaddresspoolpropertiesformat.go | 0 ...model_applicationgatewayipconfiguration.go | 0 ...ngatewayipconfigurationpropertiesformat.go | 0 ...icationgatewayprivateendpointconnection.go | 0 ...ewayprivateendpointconnectionproperties.go | 0 .../model_applicationsecuritygroup.go | 0 ...pplicationsecuritygrouppropertiesformat.go | 0 .../model_backendaddresspool.go | 0 ...odel_backendaddresspoolpropertiesformat.go | 0 .../model_customdnsconfigpropertiesformat.go | 0 .../model_ddossettings.go | 0 .../model_delegation.go | 0 .../model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 0 .../model_flowlogpropertiesformat.go | 1 + .../model_frontendipconfiguration.go | 0 ...frontendipconfigurationpropertiesformat.go | 0 ...odel_gatewayloadbalancertunnelinterface.go | 0 .../model_inboundnatrule.go | 0 .../model_inboundnatrulepropertiesformat.go | 0 .../model_ipconfiguration.go | 0 .../model_ipconfigurationprofile.go | 0 ..._ipconfigurationprofilepropertiesformat.go | 0 .../model_ipconfigurationpropertiesformat.go | 0 .../model_iptag.go | 0 .../model_loadbalancerbackendaddress.go | 0 ...dbalancerbackendaddresspropertiesformat.go | 0 .../model_natgateway.go | 0 .../model_natgatewaypropertiesformat.go | 0 .../model_natgatewaysku.go | 0 .../model_natruleportmapping.go | 0 .../model_networkinterface.go | 0 .../model_networkinterfacednssettings.go | 0 .../model_networkinterfaceipconfiguration.go | 0 ...gurationprivatelinkconnectionproperties.go | 0 ...nterfaceipconfigurationpropertiesformat.go | 0 .../model_networkinterfacepropertiesformat.go | 0 .../model_networkinterfacetapconfiguration.go | 0 ...terfacetapconfigurationpropertiesformat.go | 0 .../model_networksecuritygroup.go | 0 ...el_networksecuritygrouppropertiesformat.go | 0 .../model_privateendpoint.go | 0 .../model_privateendpointconnection.go | 0 ...del_privateendpointconnectionproperties.go | 0 .../model_privateendpointipconfiguration.go | 0 ...rivateendpointipconfigurationproperties.go | 0 .../model_privateendpointproperties.go | 0 .../model_privatelinkservice.go | 0 .../model_privatelinkserviceconnection.go | 0 ..._privatelinkserviceconnectionproperties.go | 0 ...model_privatelinkserviceconnectionstate.go | 0 ...model_privatelinkserviceipconfiguration.go | 0 ...atelinkserviceipconfigurationproperties.go | 0 .../model_privatelinkserviceproperties.go | 1 + .../model_publicipaddress.go | 0 .../model_publicipaddressdnssettings.go | 0 .../model_publicipaddresspropertiesformat.go | 0 .../model_publicipaddresssku.go | 0 .../model_resourcenavigationlink.go | 0 .../model_resourcenavigationlinkformat.go | 0 .../model_resourceset.go | 0 .../model_retentionpolicyparameters.go | 0 .../model_route.go | 0 .../model_routepropertiesformat.go | 0 .../model_routetable.go | 0 .../model_routetablepropertiesformat.go | 0 .../model_securityrule.go | 0 .../model_securityrulepropertiesformat.go | 0 .../model_serviceassociationlink.go | 0 ..._serviceassociationlinkpropertiesformat.go | 0 ...model_servicedelegationpropertiesformat.go | 0 .../model_serviceendpointpolicy.go | 0 .../model_serviceendpointpolicydefinition.go | 0 ...ndpointpolicydefinitionpropertiesformat.go | 0 ...l_serviceendpointpolicypropertiesformat.go | 0 .../model_serviceendpointpropertiesformat.go | 1 + .../model_subnet.go | 0 .../model_subnetpropertiesformat.go | 0 .../model_subresource.go | 0 ...trafficanalyticsconfigurationproperties.go | 0 .../model_trafficanalyticsproperties.go | 0 .../model_virtualnetworktap.go | 0 ...model_virtualnetworktappropertiesformat.go | 0 .../predicates.go | 0 .../version.go | 4 +- .../README.md | 6 +- .../client.go | 0 .../id_applicationgateway.go | 0 .../method_list.go | 0 ...l_applicationgatewayprivatelinkresource.go | 0 ...iongatewayprivatelinkresourceproperties.go | 0 .../predicates.go | 0 .../version.go | 4 +- .../2024-03-01/applicationgateways/README.md | 287 ++ .../2024-03-01/applicationgateways/client.go | 26 + .../applicationgateways/constants.go | 2254 ++++++++++++ .../id_applicationgateway.go | 130 + .../id_predefinedpolicy.go | 123 + .../method_backendhealth.go | 100 + .../method_backendhealthondemand.go | 104 + .../method_createorupdate.go | 75 + .../applicationgateways/method_delete.go | 71 + .../applicationgateways/method_get.go | 53 + .../method_getsslpredefinedpolicy.go | 53 + .../applicationgateways/method_list.go | 106 + .../applicationgateways/method_listall.go | 106 + .../method_listavailablerequestheaders.go | 55 + .../method_listavailableresponseheaders.go | 55 + .../method_listavailableservervariables.go | 55 + .../method_listavailablessloptions.go | 55 + ...thod_listavailablesslpredefinedpolicies.go | 106 + .../method_listavailablewafrulesets.go | 55 + .../applicationgateways/method_start.go | 70 + .../applicationgateways/method_stop.go | 70 + .../applicationgateways/method_updatetags.go | 57 + .../model_applicationgateway.go | 21 + ...icationgatewayauthenticationcertificate.go | 12 + ...thenticationcertificatepropertiesformat.go | 9 + ...pplicationgatewayautoscaleconfiguration.go | 9 + ...l_applicationgatewayavailablessloptions.go | 13 + ...ewayavailablessloptionspropertiesformat.go | 11 + ...cationgatewayavailablewafrulesetsresult.go | 8 + .../model_applicationgatewaybackendaddress.go | 9 + ...el_applicationgatewaybackendaddresspool.go | 12 + ...tewaybackendaddresspoolpropertiesformat.go | 10 + .../model_applicationgatewaybackendhealth.go | 8 + ...icationgatewaybackendhealthhttpsettings.go | 9 + ...applicationgatewaybackendhealthondemand.go | 9 + ...del_applicationgatewaybackendhealthpool.go | 9 + ...l_applicationgatewaybackendhealthserver.go | 11 + ...l_applicationgatewaybackendhttpsettings.go | 12 + ...ewaybackendhttpsettingspropertiesformat.go | 21 + ...model_applicationgatewaybackendsettings.go | 12 + ...ngatewaybackendsettingspropertiesformat.go | 15 + ...plicationgatewayclientauthconfiguration.go | 9 + ...el_applicationgatewayconnectiondraining.go | 9 + .../model_applicationgatewaycustomerror.go | 9 + ...icationgatewayfirewalldisabledrulegroup.go | 9 + ...del_applicationgatewayfirewallexclusion.go | 10 + .../model_applicationgatewayfirewallrule.go | 13 + ...del_applicationgatewayfirewallrulegroup.go | 10 + ...model_applicationgatewayfirewallruleset.go | 13 + ...ngatewayfirewallrulesetpropertiesformat.go | 12 + ...plicationgatewayfrontendipconfiguration.go | 12 + ...frontendipconfigurationpropertiesformat.go | 13 + .../model_applicationgatewayfrontendport.go | 12 + ...tiongatewayfrontendportpropertiesformat.go | 9 + ...l_applicationgatewayglobalconfiguration.go | 9 + ...l_applicationgatewayheaderconfiguration.go | 10 + .../model_applicationgatewayhttplistener.go | 12 + ...tiongatewayhttplistenerpropertiesformat.go | 18 + ...model_applicationgatewayipconfiguration.go | 12 + ...ngatewayipconfigurationpropertiesformat.go | 9 + .../model_applicationgatewaylistener.go | 12 + ...licationgatewaylistenerpropertiesformat.go | 14 + ...pplicationgatewayloaddistributionpolicy.go | 12 + ...yloaddistributionpolicypropertiesformat.go | 10 + ...pplicationgatewayloaddistributiontarget.go | 12 + ...yloaddistributiontargetpropertiesformat.go | 9 + .../model_applicationgatewayondemandprobe.go | 15 + .../model_applicationgatewaypathrule.go | 12 + ...licationgatewaypathrulepropertiesformat.go | 15 + ...icationgatewayprivateendpointconnection.go | 12 + ...ewayprivateendpointconnectionproperties.go | 11 + ...licationgatewayprivatelinkconfiguration.go | 12 + ...tewayprivatelinkconfigurationproperties.go | 9 + ...cationgatewayprivatelinkipconfiguration.go | 12 + ...wayprivatelinkipconfigurationproperties.go | 12 + .../model_applicationgatewayprobe.go | 12 + ...licationgatewayprobehealthresponsematch.go | 9 + ...applicationgatewayprobepropertiesformat.go | 19 + ...odel_applicationgatewaypropertiesformat.go | 43 + ...applicationgatewayredirectconfiguration.go | 12 + ...ayredirectconfigurationpropertiesformat.go | 15 + ...el_applicationgatewayrequestroutingrule.go | 12 + ...tewayrequestroutingrulepropertiesformat.go | 17 + .../model_applicationgatewayrewriterule.go | 11 + ..._applicationgatewayrewriteruleactionset.go | 10 + ..._applicationgatewayrewriterulecondition.go | 11 + .../model_applicationgatewayrewriteruleset.go | 11 + ...ongatewayrewriterulesetpropertiesformat.go | 9 + .../model_applicationgatewayroutingrule.go | 12 + ...ationgatewayroutingrulepropertiesformat.go | 13 + .../model_applicationgatewaysku.go | 11 + .../model_applicationgatewaysslcertificate.go | 12 + ...ongatewaysslcertificatepropertiesformat.go | 12 + .../model_applicationgatewaysslpolicy.go | 12 + ...l_applicationgatewaysslpredefinedpolicy.go | 10 + ...ewaysslpredefinedpolicypropertiesformat.go | 9 + .../model_applicationgatewaysslprofile.go | 12 + ...cationgatewaysslprofilepropertiesformat.go | 11 + ...licationgatewaytrustedclientcertificate.go | 12 + ...rustedclientcertificatepropertiesformat.go | 11 + ...pplicationgatewaytrustedrootcertificate.go | 12 + ...ytrustedrootcertificatepropertiesformat.go | 10 + ...odel_applicationgatewayurlconfiguration.go | 10 + .../model_applicationgatewayurlpathmap.go | 12 + ...cationgatewayurlpathmappropertiesformat.go | 14 + ...ewaywebapplicationfirewallconfiguration.go | 17 + .../model_applicationsecuritygroup.go | 14 + ...pplicationsecuritygrouppropertiesformat.go | 9 + .../model_backendaddresspool.go | 12 + ...odel_backendaddresspoolpropertiesformat.go | 19 + .../model_customdnsconfigpropertiesformat.go | 9 + .../applicationgateways/model_ddossettings.go | 9 + .../applicationgateways/model_delegation.go | 12 + .../applicationgateways/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 9 + .../model_flowlogpropertiesformat.go | 16 + .../model_frontendipconfiguration.go | 17 + ...frontendipconfigurationpropertiesformat.go | 19 + ...odel_gatewayloadbalancertunnelinterface.go | 11 + .../model_headervaluematcher.go | 10 + .../model_inboundnatrule.go | 12 + .../model_inboundnatrulepropertiesformat.go | 19 + .../model_ipconfiguration.go | 11 + .../model_ipconfigurationprofile.go | 12 + ..._ipconfigurationprofilepropertiesformat.go | 9 + .../model_ipconfigurationpropertiesformat.go | 12 + .../applicationgateways/model_iptag.go | 9 + .../model_loadbalancerbackendaddress.go | 9 + ...dbalancerbackendaddresspropertiesformat.go | 14 + .../applicationgateways/model_natgateway.go | 20 + .../model_natgatewaypropertiesformat.go | 13 + .../model_natgatewaysku.go | 8 + .../model_natruleportmapping.go | 10 + .../model_networkinterface.go | 19 + .../model_networkinterfacednssettings.go | 12 + .../model_networkinterfaceipconfiguration.go | 12 + ...gurationprivatelinkconnectionproperties.go | 10 + ...nterfaceipconfigurationpropertiesformat.go | 22 + .../model_networkinterfacepropertiesformat.go | 29 + .../model_networkinterfacetapconfiguration.go | 12 + ...terfacetapconfigurationpropertiesformat.go | 9 + .../model_networksecuritygroup.go | 14 + ...el_networksecuritygrouppropertiesformat.go | 15 + .../model_privateendpoint.go | 19 + .../model_privateendpointconnection.go | 12 + ...del_privateendpointconnectionproperties.go | 12 + .../model_privateendpointipconfiguration.go | 11 + ...rivateendpointipconfigurationproperties.go | 10 + .../model_privateendpointproperties.go | 16 + .../model_privatelinkservice.go | 19 + .../model_privatelinkserviceconnection.go | 12 + ..._privatelinkserviceconnectionproperties.go | 12 + ...model_privatelinkserviceconnectionstate.go | 10 + ...model_privatelinkserviceipconfiguration.go | 12 + ...atelinkserviceipconfigurationproperties.go | 13 + .../model_privatelinkserviceproperties.go | 18 + .../model_publicipaddress.go | 22 + .../model_publicipaddressdnssettings.go | 11 + .../model_publicipaddresspropertiesformat.go | 23 + .../model_publicipaddresssku.go | 9 + .../model_resourcenavigationlink.go | 12 + .../model_resourcenavigationlinkformat.go | 10 + .../applicationgateways/model_resourceset.go | 8 + .../model_retentionpolicyparameters.go | 9 + .../applicationgateways/model_route.go | 12 + .../model_routepropertiesformat.go | 12 + .../applicationgateways/model_routetable.go | 14 + .../model_routetablepropertiesformat.go | 12 + .../applicationgateways/model_securityrule.go | 12 + .../model_securityrulepropertiesformat.go | 23 + .../model_serviceassociationlink.go | 12 + ..._serviceassociationlinkpropertiesformat.go | 12 + ...model_servicedelegationpropertiesformat.go | 10 + .../model_serviceendpointpolicy.go | 15 + .../model_serviceendpointpolicydefinition.go | 12 + ...ndpointpolicydefinitionpropertiesformat.go | 11 + ...l_serviceendpointpolicypropertiesformat.go | 13 + .../model_serviceendpointpropertiesformat.go | 11 + .../applicationgateways/model_subnet.go | 12 + .../model_subnetpropertiesformat.go | 28 + .../applicationgateways/model_subresource.go | 8 + .../applicationgateways/model_tagsobject.go | 8 + ...trafficanalyticsconfigurationproperties.go | 12 + .../model_trafficanalyticsproperties.go | 8 + .../model_virtualnetworktap.go | 14 + ...model_virtualnetworktappropertiesformat.go | 13 + .../applicationgateways/predicates.go | 55 + .../2024-03-01/applicationgateways/version.go | 10 + .../README.md | 6 +- .../client.go | 0 .../constants.go | 47 + .../id_location.go | 0 .../method_defaultget.go | 0 .../method_get.go | 0 ...plicationgatewayfirewallmanifestruleset.go | 0 .../model_applicationgatewayfirewallrule.go | 13 + ...del_applicationgatewayfirewallrulegroup.go | 0 ...tewaywafdynamicmanifestpropertiesresult.go | 0 ...licationgatewaywafdynamicmanifestresult.go | 0 .../model_defaultrulesetpropertyformat.go | 0 .../predicates.go | 0 .../version.go | 4 +- .../applicationsecuritygroups/README.md | 121 + .../applicationsecuritygroups/client.go | 26 + .../applicationsecuritygroups/constants.go | 57 + .../id_applicationsecuritygroup.go | 130 + .../method_createorupdate.go | 75 + .../method_delete.go | 71 + .../applicationsecuritygroups/method_get.go | 53 + .../applicationsecuritygroups/method_list.go | 106 + .../method_listall.go | 106 + .../method_updatetags.go | 57 + .../model_applicationsecuritygroup.go | 14 + ...pplicationsecuritygrouppropertiesformat.go | 9 + .../model_tagsobject.go | 8 + .../applicationsecuritygroups/predicates.go | 37 + .../applicationsecuritygroups/version.go | 10 + .../availabledelegations/README.md | 6 +- .../availabledelegations/client.go | 0 .../availabledelegations/id_location.go | 0 .../id_providerlocation.go | 0 .../method_availabledelegationslist.go | 0 ...d_availableresourcegroupdelegationslist.go | 0 .../model_availabledelegation.go | 0 .../availabledelegations/predicates.go | 0 .../availabledelegations/version.go | 4 +- .../availableservicealiases/README.md | 6 +- .../availableservicealiases/client.go | 0 .../availableservicealiases/id_location.go | 0 .../id_providerlocation.go | 0 .../availableservicealiases/method_list.go | 0 .../method_listbyresourcegroup.go | 0 .../model_availableservicealias.go | 0 .../availableservicealiases/predicates.go | 0 .../availableservicealiases/version.go | 4 +- .../2024-03-01/azurefirewalls/README.md | 146 + .../2024-03-01/azurefirewalls/client.go | 26 + .../2024-03-01/azurefirewalls/constants.go | 412 +++ .../azurefirewalls/id_azurefirewall.go | 130 + ...ethod_azurefirewallslistlearnedprefixes.go | 71 + .../azurefirewalls/method_createorupdate.go | 75 + .../azurefirewalls/method_delete.go | 71 + .../2024-03-01/azurefirewalls/method_get.go | 53 + .../2024-03-01/azurefirewalls/method_list.go | 106 + .../azurefirewalls/method_listall.go | 106 + .../azurefirewalls/method_packetcapture.go | 73 + .../azurefirewalls/method_updatetags.go | 75 + .../azurefirewalls/model_azurefirewall.go | 19 + .../model_azurefirewallapplicationrule.go | 14 + ..._azurefirewallapplicationrulecollection.go | 11 + ...plicationrulecollectionpropertiesformat.go | 11 + ...el_azurefirewallapplicationruleprotocol.go | 9 + ...del_azurefirewallautoscaleconfiguration.go | 9 + .../model_azurefirewallipconfiguration.go | 12 + ...firewallipconfigurationpropertiesformat.go | 11 + .../model_azurefirewallipgroups.go | 9 + .../model_azurefirewallnatrcaction.go | 8 + .../model_azurefirewallnatrule.go | 17 + .../model_azurefirewallnatrulecollection.go | 11 + ...zurefirewallnatrulecollectionproperties.go | 11 + .../model_azurefirewallnetworkrule.go | 16 + ...odel_azurefirewallnetworkrulecollection.go | 11 + ...llnetworkrulecollectionpropertiesformat.go | 11 + .../model_azurefirewallpacketcaptureflags.go | 8 + .../model_azurefirewallpacketcapturerule.go | 10 + .../model_azurefirewallpropertiesformat.go | 21 + .../model_azurefirewallpublicipaddress.go | 8 + .../model_azurefirewallrcaction.go | 8 + .../azurefirewalls/model_azurefirewallsku.go | 9 + .../model_firewallpacketcaptureparameters.go | 14 + .../azurefirewalls/model_hubipaddresses.go | 9 + .../model_hubpublicipaddresses.go | 9 + .../azurefirewalls/model_ipprefixeslist.go | 8 + .../azurefirewalls/model_subresource.go | 8 + .../azurefirewalls/model_tagsobject.go | 8 + .../2024-03-01/azurefirewalls/predicates.go | 37 + .../2024-03-01/azurefirewalls/version.go | 10 + .../bastionhosts/README.md | 6 +- .../bastionhosts/client.go | 0 .../bastionhosts/constants.go | 3 + .../bastionhosts/id_bastionhost.go | 0 .../bastionhosts/method_createorupdate.go | 0 .../bastionhosts/method_delete.go | 0 .../method_deletebastionshareablelink.go | 0 ...ethod_deletebastionshareablelinkbytoken.go | 0 .../method_disconnectactivesessions.go | 0 .../bastionhosts/method_get.go | 0 .../bastionhosts/method_getactivesessions.go | 0 .../method_getbastionshareablelink.go | 0 .../bastionhosts/method_list.go | 0 .../method_listbyresourcegroup.go | 0 .../method_putbastionshareablelink.go | 0 .../bastionhosts/method_updatetags.go | 0 .../model_bastionactivesession.go | 0 .../bastionhosts/model_bastionhost.go | 0 .../model_bastionhostipconfiguration.go | 0 ...tionhostipconfigurationpropertiesformat.go | 0 .../model_bastionhostpropertiesformat.go | 20 + ..._bastionhostpropertiesformatnetworkacls.go | 0 .../bastionhosts/model_bastionsessionstate.go | 0 .../model_bastionshareablelink.go | 0 .../model_bastionshareablelinklistrequest.go | 0 ...el_bastionshareablelinktokenlistrequest.go | 0 .../bastionhosts/model_iprule.go | 0 .../bastionhosts/model_resource.go | 0 .../bastionhosts/model_sessionids.go | 0 .../bastionhosts/model_sku.go | 0 .../bastionhosts/model_subresource.go | 0 .../bastionhosts/model_tagsobject.go | 0 .../bastionhosts/predicates.go | 0 .../bastionhosts/version.go | 4 +- .../bastionshareablelink/README.md | 6 +- .../bastionshareablelink/client.go | 0 .../bastionshareablelink/id_bastionhost.go | 0 .../method_deletebastionshareablelink.go | 0 ...ethod_deletebastionshareablelinkbytoken.go | 0 .../method_getbastionshareablelink.go | 0 .../method_putbastionshareablelink.go | 0 .../model_bastionshareablelink.go | 0 .../model_bastionshareablelinklistrequest.go | 0 ...el_bastionshareablelinktokenlistrequest.go | 0 .../bastionshareablelink/model_resource.go | 0 .../bastionshareablelink/predicates.go | 0 .../bastionshareablelink/version.go | 4 +- .../bgpservicecommunities/README.md | 6 +- .../bgpservicecommunities/client.go | 0 .../bgpservicecommunities/method_list.go | 0 .../model_bgpcommunity.go | 0 .../model_bgpservicecommunity.go | 0 ...del_bgpservicecommunitypropertiesformat.go | 0 .../bgpservicecommunities/predicates.go | 0 .../bgpservicecommunities/version.go | 4 +- .../checkdnsavailabilities/README.md | 6 +- .../checkdnsavailabilities/client.go | 0 .../checkdnsavailabilities/id_location.go | 0 .../method_checkdnsnameavailability.go | 0 .../model_dnsnameavailabilityresult.go | 0 .../checkdnsavailabilities/version.go | 4 +- .../{2023-11-01 => 2024-03-01}/client.go | 268 +- .../cloudservicepublicipaddresses/README.md | 6 +- .../cloudservicepublicipaddresses/client.go | 0 .../constants.go | 0 .../id_providercloudservice.go | 0 ...addressesgetcloudservicepublicipaddress.go | 0 ...resseslistcloudservicepublicipaddresses.go | 0 ...oudserviceroleinstancepublicipaddresses.go | 0 .../model_applicationgatewaybackendaddress.go | 0 ...el_applicationgatewaybackendaddresspool.go | 0 ...tewaybackendaddresspoolpropertiesformat.go | 0 ...model_applicationgatewayipconfiguration.go | 0 ...ngatewayipconfigurationpropertiesformat.go | 0 .../model_applicationsecuritygroup.go | 0 ...pplicationsecuritygrouppropertiesformat.go | 0 .../model_backendaddresspool.go | 0 ...odel_backendaddresspoolpropertiesformat.go | 0 .../model_customdnsconfigpropertiesformat.go | 0 .../model_ddossettings.go | 0 .../model_delegation.go | 0 .../model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 0 .../model_flowlogpropertiesformat.go | 1 + .../model_frontendipconfiguration.go | 0 ...frontendipconfigurationpropertiesformat.go | 0 ...odel_gatewayloadbalancertunnelinterface.go | 0 .../model_inboundnatrule.go | 0 .../model_inboundnatrulepropertiesformat.go | 0 .../model_ipconfiguration.go | 0 .../model_ipconfigurationprofile.go | 0 ..._ipconfigurationprofilepropertiesformat.go | 0 .../model_ipconfigurationpropertiesformat.go | 0 .../model_iptag.go | 0 .../model_loadbalancerbackendaddress.go | 0 ...dbalancerbackendaddresspropertiesformat.go | 0 .../model_natgateway.go | 0 .../model_natgatewaypropertiesformat.go | 0 .../model_natgatewaysku.go | 0 .../model_natruleportmapping.go | 0 .../model_networkinterface.go | 0 .../model_networkinterfacednssettings.go | 0 .../model_networkinterfaceipconfiguration.go | 0 ...gurationprivatelinkconnectionproperties.go | 0 ...nterfaceipconfigurationpropertiesformat.go | 0 .../model_networkinterfacepropertiesformat.go | 0 .../model_networkinterfacetapconfiguration.go | 0 ...terfacetapconfigurationpropertiesformat.go | 0 .../model_networksecuritygroup.go | 0 ...el_networksecuritygrouppropertiesformat.go | 0 .../model_privateendpoint.go | 0 .../model_privateendpointconnection.go | 0 ...del_privateendpointconnectionproperties.go | 0 .../model_privateendpointipconfiguration.go | 0 ...rivateendpointipconfigurationproperties.go | 0 .../model_privateendpointproperties.go | 0 .../model_privatelinkservice.go | 0 .../model_privatelinkserviceconnection.go | 0 ..._privatelinkserviceconnectionproperties.go | 0 ...model_privatelinkserviceconnectionstate.go | 0 ...model_privatelinkserviceipconfiguration.go | 0 ...atelinkserviceipconfigurationproperties.go | 0 .../model_privatelinkserviceproperties.go | 1 + .../model_publicipaddress.go | 0 .../model_publicipaddressdnssettings.go | 0 .../model_publicipaddresspropertiesformat.go | 0 .../model_publicipaddresssku.go | 0 .../model_resourcenavigationlink.go | 0 .../model_resourcenavigationlinkformat.go | 0 .../model_resourceset.go | 0 .../model_retentionpolicyparameters.go | 0 .../model_route.go | 0 .../model_routepropertiesformat.go | 0 .../model_routetable.go | 0 .../model_routetablepropertiesformat.go | 0 .../model_securityrule.go | 0 .../model_securityrulepropertiesformat.go | 0 .../model_serviceassociationlink.go | 0 ..._serviceassociationlinkpropertiesformat.go | 0 ...model_servicedelegationpropertiesformat.go | 0 .../model_serviceendpointpolicy.go | 0 .../model_serviceendpointpolicydefinition.go | 0 ...ndpointpolicydefinitionpropertiesformat.go | 0 ...l_serviceendpointpolicypropertiesformat.go | 0 .../model_serviceendpointpropertiesformat.go | 1 + .../model_subnet.go | 0 .../model_subnetpropertiesformat.go | 0 .../model_subresource.go | 0 ...trafficanalyticsconfigurationproperties.go | 0 .../model_trafficanalyticsproperties.go | 0 .../model_virtualnetworktap.go | 0 ...model_virtualnetworktappropertiesformat.go | 0 .../predicates.go | 0 .../cloudservicepublicipaddresses/version.go | 4 +- .../2024-03-01/connectionmonitors/README.md | 138 + .../2024-03-01/connectionmonitors/client.go | 26 + .../connectionmonitors/constants.go | 773 ++++ .../id_connectionmonitor.go | 139 + .../connectionmonitors/id_networkwatcher.go | 130 + .../method_createorupdate.go | 104 + .../connectionmonitors/method_delete.go | 70 + .../connectionmonitors/method_get.go | 53 + .../connectionmonitors/method_list.go | 54 + .../connectionmonitors/method_query.go | 71 + .../connectionmonitors/method_start.go | 70 + .../connectionmonitors/method_stop.go | 70 + .../connectionmonitors/method_updatetags.go | 57 + .../model_connectionmonitor.go | 10 + .../model_connectionmonitordestination.go | 10 + .../model_connectionmonitorendpoint.go | 16 + .../model_connectionmonitorendpointfilter.go | 9 + ...del_connectionmonitorendpointfilteritem.go | 9 + ...onnectionmonitorendpointlocationdetails.go | 8 + .../model_connectionmonitorendpointscope.go | 9 + ...odel_connectionmonitorendpointscopeitem.go | 8 + ...odel_connectionmonitorhttpconfiguration.go | 13 + ...odel_connectionmonitoricmpconfiguration.go | 8 + .../model_connectionmonitorlistresult.go | 8 + .../model_connectionmonitoroutput.go | 9 + .../model_connectionmonitorparameters.go | 16 + .../model_connectionmonitorqueryresult.go | 9 + .../model_connectionmonitorresult.go | 14 + ...model_connectionmonitorresultproperties.go | 38 + .../model_connectionmonitorsource.go | 9 + ...model_connectionmonitorsuccessthreshold.go | 9 + ...model_connectionmonitortcpconfiguration.go | 10 + ...odel_connectionmonitortestconfiguration.go | 15 + .../model_connectionmonitortestgroup.go | 12 + ...odel_connectionmonitorworkspacesettings.go | 8 + .../model_connectionstatesnapshot.go | 47 + .../model_connectivityhop.go | 16 + .../model_connectivityissue.go | 11 + .../connectionmonitors/model_hoplink.go | 13 + .../model_hoplinkproperties.go | 10 + .../connectionmonitors/model_httpheader.go | 9 + .../connectionmonitors/model_tagsobject.go | 8 + .../2024-03-01/connectionmonitors/version.go | 10 + .../connectivityconfigurations/README.md | 86 + .../connectivityconfigurations/client.go | 26 + .../connectivityconfigurations}/constants.go | 2 +- .../id_connectivityconfiguration.go | 139 + .../id_networkmanager.go | 130 + .../method_createorupdate.go | 58 + .../method_delete.go | 100 + .../connectivityconfigurations/method_get.go | 53 + .../connectivityconfigurations/method_list.go | 134 + .../model_connectivityconfiguration.go | 17 + ...del_connectivityconfigurationproperties.go | 15 + .../model_connectivitygroupitem.go | 11 + .../connectivityconfigurations/model_hub.go | 9 + .../connectivityconfigurations/predicates.go | 32 + .../connectivityconfigurations/version.go | 10 + .../2024-03-01/customipprefixes/README.md | 121 + .../2024-03-01/customipprefixes/client.go | 26 + .../2024-03-01/customipprefixes/constants.go | 222 ++ .../customipprefixes/id_customipprefix.go | 130 + .../customipprefixes/method_createorupdate.go | 75 + .../customipprefixes/method_delete.go | 71 + .../2024-03-01/customipprefixes/method_get.go | 83 + .../customipprefixes/method_list.go | 106 + .../customipprefixes/method_listall.go | 106 + .../customipprefixes/method_updatetags.go | 57 + .../customipprefixes/model_customipprefix.go | 21 + .../model_customipprefixpropertiesformat.go | 22 + .../customipprefixes/model_subresource.go | 8 + .../customipprefixes/model_tagsobject.go | 8 + .../2024-03-01/customipprefixes/predicates.go | 37 + .../2024-03-01/customipprefixes/version.go | 10 + .../ddoscustompolicies/README.md | 6 +- .../ddoscustompolicies/client.go | 0 .../ddoscustompolicies/constants.go | 0 .../ddoscustompolicies/id_ddoscustompolicy.go | 0 .../method_createorupdate.go | 0 .../ddoscustompolicies/method_delete.go | 0 .../ddoscustompolicies/method_get.go | 0 .../ddoscustompolicies/method_updatetags.go | 0 .../model_ddoscustompolicy.go | 0 .../model_ddoscustompolicypropertiesformat.go | 0 .../ddoscustompolicies/model_tagsobject.go | 0 .../ddoscustompolicies/version.go | 4 +- .../2024-03-01/ddosprotectionplans/README.md | 121 + .../2024-03-01/ddosprotectionplans/client.go | 26 + .../ddosprotectionplans/constants.go | 57 + .../id_ddosprotectionplan.go | 130 + .../method_createorupdate.go | 75 + .../ddosprotectionplans/method_delete.go | 71 + .../ddosprotectionplans/method_get.go | 53 + .../ddosprotectionplans/method_list.go | 106 + .../method_listbyresourcegroup.go | 106 + .../ddosprotectionplans/method_updatetags.go | 57 + .../model_ddosprotectionplan.go | 14 + ...odel_ddosprotectionplanpropertiesformat.go | 11 + .../ddosprotectionplans/model_subresource.go | 8 + .../ddosprotectionplans/model_tagsobject.go | 8 + .../ddosprotectionplans/predicates.go | 37 + .../2024-03-01/ddosprotectionplans/version.go | 10 + .../dscpconfiguration/README.md | 6 +- .../dscpconfiguration/client.go | 0 .../dscpconfiguration/constants.go | 0 .../dscpconfiguration/id_dscpconfiguration.go | 0 .../method_createorupdate.go | 0 .../dscpconfiguration/method_delete.go | 0 .../dscpconfiguration/method_get.go | 0 .../model_applicationgatewaybackendaddress.go | 0 ...el_applicationgatewaybackendaddresspool.go | 0 ...tewaybackendaddresspoolpropertiesformat.go | 0 ...model_applicationgatewayipconfiguration.go | 0 ...ngatewayipconfigurationpropertiesformat.go | 0 .../model_applicationsecuritygroup.go | 0 ...pplicationsecuritygrouppropertiesformat.go | 0 .../model_backendaddresspool.go | 0 ...odel_backendaddresspoolpropertiesformat.go | 0 .../model_customdnsconfigpropertiesformat.go | 0 .../dscpconfiguration/model_ddossettings.go | 0 .../dscpconfiguration/model_delegation.go | 0 .../model_dscpconfiguration.go | 0 ...model_dscpconfigurationpropertiesformat.go | 0 .../dscpconfiguration/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 0 .../model_flowlogpropertiesformat.go | 1 + .../model_frontendipconfiguration.go | 0 ...frontendipconfigurationpropertiesformat.go | 0 ...odel_gatewayloadbalancertunnelinterface.go | 0 .../dscpconfiguration/model_inboundnatrule.go | 0 .../model_inboundnatrulepropertiesformat.go | 0 .../model_ipconfiguration.go | 0 .../model_ipconfigurationprofile.go | 0 ..._ipconfigurationprofilepropertiesformat.go | 0 .../model_ipconfigurationpropertiesformat.go | 0 .../dscpconfiguration/model_iptag.go | 0 .../model_loadbalancerbackendaddress.go | 0 ...dbalancerbackendaddresspropertiesformat.go | 0 .../dscpconfiguration/model_natgateway.go | 0 .../model_natgatewaypropertiesformat.go | 0 .../dscpconfiguration/model_natgatewaysku.go | 0 .../model_natruleportmapping.go | 0 .../model_networkinterface.go | 0 .../model_networkinterfacednssettings.go | 0 .../model_networkinterfaceipconfiguration.go | 0 ...gurationprivatelinkconnectionproperties.go | 0 ...nterfaceipconfigurationpropertiesformat.go | 0 .../model_networkinterfacepropertiesformat.go | 0 .../model_networkinterfacetapconfiguration.go | 0 ...terfacetapconfigurationpropertiesformat.go | 0 .../model_networksecuritygroup.go | 0 ...el_networksecuritygrouppropertiesformat.go | 0 .../model_privateendpoint.go | 0 .../model_privateendpointconnection.go | 0 ...del_privateendpointconnectionproperties.go | 0 .../model_privateendpointipconfiguration.go | 0 ...rivateendpointipconfigurationproperties.go | 0 .../model_privateendpointproperties.go | 0 .../model_privatelinkservice.go | 0 .../model_privatelinkserviceconnection.go | 0 ..._privatelinkserviceconnectionproperties.go | 0 ...model_privatelinkserviceconnectionstate.go | 0 ...model_privatelinkserviceipconfiguration.go | 0 ...atelinkserviceipconfigurationproperties.go | 0 .../model_privatelinkserviceproperties.go | 1 + .../model_publicipaddress.go | 0 .../model_publicipaddressdnssettings.go | 0 .../model_publicipaddresspropertiesformat.go | 0 .../model_publicipaddresssku.go | 0 .../dscpconfiguration/model_qosdefinition.go | 0 .../dscpconfiguration/model_qosiprange.go | 0 .../dscpconfiguration/model_qosportrange.go | 0 .../model_resourcenavigationlink.go | 0 .../model_resourcenavigationlinkformat.go | 0 .../dscpconfiguration/model_resourceset.go | 0 .../model_retentionpolicyparameters.go | 0 .../dscpconfiguration/model_route.go | 0 .../model_routepropertiesformat.go | 0 .../dscpconfiguration/model_routetable.go | 0 .../model_routetablepropertiesformat.go | 0 .../dscpconfiguration/model_securityrule.go | 0 .../model_securityrulepropertiesformat.go | 0 .../model_serviceassociationlink.go | 0 ..._serviceassociationlinkpropertiesformat.go | 0 ...model_servicedelegationpropertiesformat.go | 0 .../model_serviceendpointpolicy.go | 0 .../model_serviceendpointpolicydefinition.go | 0 ...ndpointpolicydefinitionpropertiesformat.go | 0 ...l_serviceendpointpolicypropertiesformat.go | 0 .../model_serviceendpointpropertiesformat.go | 1 + .../dscpconfiguration/model_subnet.go | 0 .../model_subnetpropertiesformat.go | 0 .../dscpconfiguration/model_subresource.go | 0 ...trafficanalyticsconfigurationproperties.go | 0 .../model_trafficanalyticsproperties.go | 0 .../model_virtualnetworktap.go | 0 ...model_virtualnetworktappropertiesformat.go | 0 .../dscpconfiguration/version.go | 4 +- .../dscpconfigurations/README.md | 6 +- .../dscpconfigurations/client.go | 0 .../dscpconfigurations/constants.go | 0 .../method_dscpconfigurationlist.go | 0 .../method_dscpconfigurationlistall.go | 0 .../model_applicationgatewaybackendaddress.go | 0 ...el_applicationgatewaybackendaddresspool.go | 0 ...tewaybackendaddresspoolpropertiesformat.go | 0 ...model_applicationgatewayipconfiguration.go | 0 ...ngatewayipconfigurationpropertiesformat.go | 0 .../model_applicationsecuritygroup.go | 0 ...pplicationsecuritygrouppropertiesformat.go | 0 .../model_backendaddresspool.go | 0 ...odel_backendaddresspoolpropertiesformat.go | 0 .../model_customdnsconfigpropertiesformat.go | 0 .../dscpconfigurations/model_ddossettings.go | 0 .../dscpconfigurations/model_delegation.go | 0 .../model_dscpconfiguration.go | 0 ...model_dscpconfigurationpropertiesformat.go | 0 .../dscpconfigurations/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 0 .../model_flowlogpropertiesformat.go | 1 + .../model_frontendipconfiguration.go | 0 ...frontendipconfigurationpropertiesformat.go | 0 ...odel_gatewayloadbalancertunnelinterface.go | 0 .../model_inboundnatrule.go | 0 .../model_inboundnatrulepropertiesformat.go | 0 .../model_ipconfiguration.go | 0 .../model_ipconfigurationprofile.go | 0 ..._ipconfigurationprofilepropertiesformat.go | 0 .../model_ipconfigurationpropertiesformat.go | 0 .../dscpconfigurations/model_iptag.go | 0 .../model_loadbalancerbackendaddress.go | 0 ...dbalancerbackendaddresspropertiesformat.go | 0 .../dscpconfigurations/model_natgateway.go | 0 .../model_natgatewaypropertiesformat.go | 0 .../dscpconfigurations/model_natgatewaysku.go | 0 .../model_natruleportmapping.go | 0 .../model_networkinterface.go | 0 .../model_networkinterfacednssettings.go | 0 .../model_networkinterfaceipconfiguration.go | 0 ...gurationprivatelinkconnectionproperties.go | 0 ...nterfaceipconfigurationpropertiesformat.go | 0 .../model_networkinterfacepropertiesformat.go | 0 .../model_networkinterfacetapconfiguration.go | 0 ...terfacetapconfigurationpropertiesformat.go | 0 .../model_networksecuritygroup.go | 0 ...el_networksecuritygrouppropertiesformat.go | 0 .../model_privateendpoint.go | 0 .../model_privateendpointconnection.go | 0 ...del_privateendpointconnectionproperties.go | 0 .../model_privateendpointipconfiguration.go | 0 ...rivateendpointipconfigurationproperties.go | 0 .../model_privateendpointproperties.go | 0 .../model_privatelinkservice.go | 0 .../model_privatelinkserviceconnection.go | 0 ..._privatelinkserviceconnectionproperties.go | 0 ...model_privatelinkserviceconnectionstate.go | 0 ...model_privatelinkserviceipconfiguration.go | 0 ...atelinkserviceipconfigurationproperties.go | 0 .../model_privatelinkserviceproperties.go | 1 + .../model_publicipaddress.go | 0 .../model_publicipaddressdnssettings.go | 0 .../model_publicipaddresspropertiesformat.go | 0 .../model_publicipaddresssku.go | 0 .../dscpconfigurations/model_qosdefinition.go | 0 .../dscpconfigurations/model_qosiprange.go | 0 .../dscpconfigurations/model_qosportrange.go | 0 .../model_resourcenavigationlink.go | 0 .../model_resourcenavigationlinkformat.go | 0 .../dscpconfigurations/model_resourceset.go | 0 .../model_retentionpolicyparameters.go | 0 .../dscpconfigurations/model_route.go | 0 .../model_routepropertiesformat.go | 0 .../dscpconfigurations/model_routetable.go | 0 .../model_routetablepropertiesformat.go | 0 .../dscpconfigurations/model_securityrule.go | 0 .../model_securityrulepropertiesformat.go | 0 .../model_serviceassociationlink.go | 0 ..._serviceassociationlinkpropertiesformat.go | 0 ...model_servicedelegationpropertiesformat.go | 0 .../model_serviceendpointpolicy.go | 0 .../model_serviceendpointpolicydefinition.go | 0 ...ndpointpolicydefinitionpropertiesformat.go | 0 ...l_serviceendpointpolicypropertiesformat.go | 0 .../model_serviceendpointpropertiesformat.go | 1 + .../dscpconfigurations/model_subnet.go | 0 .../model_subnetpropertiesformat.go | 0 .../dscpconfigurations/model_subresource.go | 0 ...trafficanalyticsconfigurationproperties.go | 0 .../model_trafficanalyticsproperties.go | 0 .../model_virtualnetworktap.go | 0 ...model_virtualnetworktappropertiesformat.go | 0 .../dscpconfigurations/predicates.go | 0 .../dscpconfigurations/version.go | 4 +- .../endpointservices/README.md | 6 +- .../endpointservices/client.go | 0 .../endpointservices/id_location.go | 0 .../method_availableendpointserviceslist.go | 0 .../model_endpointserviceresult.go | 0 .../endpointservices/predicates.go | 0 .../endpointservices/version.go | 4 +- .../expressroutecircuitarptable/README.md | 6 +- .../expressroutecircuitarptable/client.go | 0 .../id_arptable.go | 0 ...method_expressroutecircuitslistarptable.go | 0 .../model_expressroutecircuitarptable.go | 0 .../expressroutecircuitarptable/predicates.go | 0 .../expressroutecircuitarptable/version.go | 4 +- .../README.md | 82 + .../client.go | 26 + .../constants.go | 98 + .../id_authorization.go | 139 + .../id_expressroutecircuit.go | 130 + .../method_createorupdate.go | 75 + .../method_delete.go | 71 + .../method_get.go | 53 + .../method_list.go | 105 + .../model_authorizationpropertiesformat.go | 11 + .../model_expressroutecircuitauthorization.go | 12 + .../predicates.go | 32 + .../version.go | 10 + .../expressroutecircuitconnections/README.md | 83 + .../expressroutecircuitconnections/client.go | 26 + .../constants.go | 101 + .../id_peeringconnection.go | 148 + .../method_createorupdate.go | 75 + .../method_delete.go | 71 + .../method_get.go | 53 + .../method_list.go | 106 + .../model_expressroutecircuitconnection.go | 12 + ...sroutecircuitconnectionpropertiesformat.go | 14 + .../model_ipv6circuitconnectionconfig.go | 9 + .../model_subresource.go | 8 + .../predicates.go | 32 + .../expressroutecircuitconnections/version.go | 10 + .../expressroutecircuitpeerings/README.md | 83 + .../expressroutecircuitpeerings/client.go | 26 + .../expressroutecircuitpeerings/constants.go | 274 ++ .../id_expressroutecircuit.go | 130 + .../method_createorupdate.go | 76 + .../method_delete.go | 72 + .../expressroutecircuitpeerings/method_get.go | 54 + .../method_list.go | 105 + .../model_expressroutecircuitconnection.go | 12 + ...sroutecircuitconnectionpropertiesformat.go | 14 + .../model_expressroutecircuitpeering.go | 12 + .../model_expressroutecircuitpeeringconfig.go | 13 + ...ressroutecircuitpeeringpropertiesformat.go | 27 + .../model_expressroutecircuitstats.go | 11 + .../model_expressrouteconnectionid.go | 8 + .../model_ipv6circuitconnectionconfig.go | 9 + ...el_ipv6expressroutecircuitpeeringconfig.go | 12 + ...model_peerexpressroutecircuitconnection.go | 12 + ...sroutecircuitconnectionpropertiesformat.go | 14 + .../model_subresource.go | 8 + .../expressroutecircuitpeerings/predicates.go | 32 + .../expressroutecircuitpeerings/version.go | 10 + .../expressroutecircuitroutestable/README.md | 6 +- .../expressroutecircuitroutestable/client.go | 0 .../id_peeringroutetable.go | 0 ...hod_expressroutecircuitslistroutestable.go | 0 .../model_expressroutecircuitroutestable.go | 0 .../predicates.go | 0 .../expressroutecircuitroutestable/version.go | 4 +- .../README.md | 6 +- .../client.go | 0 .../id_routetablessummary.go | 0 ...ressroutecircuitslistroutestablesummary.go | 0 ...l_expressroutecircuitroutestablesummary.go | 0 .../predicates.go | 0 .../version.go | 4 +- .../2024-03-01/expressroutecircuits/README.md | 121 + .../2024-03-01/expressroutecircuits/client.go | 26 + .../expressroutecircuits/constants.go | 450 +++ .../id_expressroutecircuit.go | 130 + .../method_createorupdate.go | 75 + .../expressroutecircuits/method_delete.go | 71 + .../expressroutecircuits/method_get.go | 53 + .../expressroutecircuits}/method_list.go | 20 +- .../expressroutecircuits/method_listall.go | 106 + .../expressroutecircuits/method_updatetags.go | 57 + .../model_authorizationpropertiesformat.go | 11 + .../model_expressroutecircuit.go | 15 + .../model_expressroutecircuitauthorization.go | 12 + .../model_expressroutecircuitconnection.go | 12 + ...sroutecircuitconnectionpropertiesformat.go | 14 + .../model_expressroutecircuitpeering.go | 12 + .../model_expressroutecircuitpeeringconfig.go | 13 + ...ressroutecircuitpeeringpropertiesformat.go | 27 + ...del_expressroutecircuitpropertiesformat.go | 24 + ...ssroutecircuitserviceproviderproperties.go | 10 + .../model_expressroutecircuitsku.go | 10 + .../model_expressroutecircuitstats.go | 11 + .../model_expressrouteconnectionid.go | 8 + .../model_ipv6circuitconnectionconfig.go | 9 + ...el_ipv6expressroutecircuitpeeringconfig.go | 12 + ...model_peerexpressroutecircuitconnection.go | 12 + ...sroutecircuitconnectionpropertiesformat.go | 14 + .../expressroutecircuits/model_subresource.go | 8 + .../expressroutecircuits/model_tagsobject.go | 8 + .../expressroutecircuits/predicates.go | 37 + .../expressroutecircuits/version.go | 10 + .../expressroutecircuitstats/README.md | 6 +- .../expressroutecircuitstats/client.go | 0 .../id_expressroutecircuit.go | 0 ...hod_expressroutecircuitsgetpeeringstats.go | 0 .../method_expressroutecircuitsgetstats.go | 0 .../model_expressroutecircuitstats.go | 0 .../expressroutecircuitstats/version.go | 4 +- .../expressrouteconnections/README.md | 81 + .../expressrouteconnections/client.go | 26 + .../expressrouteconnections/constants.go | 98 + .../id_expressrouteconnection.go | 139 + .../id_expressroutegateway.go | 130 + .../method_createorupdate.go | 75 + .../expressrouteconnections/method_delete.go | 71 + .../expressrouteconnections/method_get.go | 53 + .../expressrouteconnections/method_list.go | 54 + .../model_expressroutecircuitpeeringid.go | 8 + .../model_expressrouteconnection.go | 10 + .../model_expressrouteconnectionlist.go | 8 + .../model_expressrouteconnectionproperties.go | 15 + .../model_propagatedroutetable.go | 9 + .../model_routingconfiguration.go | 12 + .../model_staticroute.go | 10 + .../model_staticroutesconfig.go | 9 + .../model_subresource.go | 8 + .../model_vnetroute.go | 10 + .../expressrouteconnections/version.go | 10 + .../README.md | 6 +- .../client.go | 0 .../id_peeringarptable.go | 0 ...xpressroutecrossconnectionslistarptable.go | 0 .../model_expressroutecircuitarptable.go | 0 .../predicates.go | 0 .../version.go | 4 +- .../README.md | 6 +- .../client.go | 0 .../constants.go | 0 .../id_expressroutecrossconnection.go | 0 .../id_peering.go | 0 .../method_createorupdate.go | 0 .../method_delete.go | 0 .../method_get.go | 0 .../method_list.go | 0 .../model_expressroutecircuitpeeringconfig.go | 0 ...odel_expressroutecrossconnectionpeering.go | 0 ...ssroutecrossconnectionpeeringproperties.go | 0 ...el_ipv6expressroutecircuitpeeringconfig.go | 0 .../model_subresource.go | 0 .../predicates.go | 0 .../version.go | 4 +- .../README.md | 6 +- .../client.go | 0 ...ssroutecrossconnectionpeeringroutetable.go | 0 ...essroutecrossconnectionslistroutestable.go | 0 .../model_expressroutecircuitroutestable.go | 0 .../predicates.go | 0 .../version.go | 4 +- .../README.md | 6 +- .../client.go | 0 .../id_peeringroutetablessummary.go | 0 ...ecrossconnectionslistroutestablesummary.go | 0 ...sroutecrossconnectionroutestablesummary.go | 0 .../predicates.go | 0 .../version.go | 4 +- .../expressroutecrossconnections/README.md | 10 +- .../expressroutecrossconnections/client.go | 0 .../expressroutecrossconnections/constants.go | 0 .../id_expressroutecrossconnection.go | 0 .../method_createorupdate.go | 0 .../method_get.go | 0 .../method_list.go | 135 + .../method_listbyresourcegroup.go | 0 .../method_updatetags.go | 0 .../model_expressroutecircuitpeeringconfig.go | 0 .../model_expressroutecircuitreference.go | 0 .../model_expressroutecrossconnection.go | 0 ...odel_expressroutecrossconnectionpeering.go | 0 ...ssroutecrossconnectionpeeringproperties.go | 0 ...l_expressroutecrossconnectionproperties.go | 0 ...el_ipv6expressroutecircuitpeeringconfig.go | 0 .../model_subresource.go | 0 .../model_tagsobject.go | 0 .../predicates.go | 0 .../expressroutecrossconnections/version.go | 4 +- .../2024-03-01/expressroutegateways/README.md | 115 + .../2024-03-01/expressroutegateways/client.go | 26 + .../expressroutegateways/constants.go | 98 + .../id_expressroutegateway.go | 130 + .../method_createorupdate.go | 75 + .../expressroutegateways/method_delete.go | 71 + .../expressroutegateways/method_get.go | 53 + .../method_listbyresourcegroup.go | 55 + .../method_listbysubscription.go | 55 + .../expressroutegateways/method_updatetags.go | 75 + .../model_expressroutecircuitpeeringid.go | 8 + .../model_expressrouteconnection.go | 10 + .../model_expressrouteconnectionproperties.go | 15 + .../model_expressroutegateway.go | 14 + .../model_expressroutegatewaylist.go | 8 + .../model_expressroutegatewayproperties.go | 12 + ...gatewaypropertiesautoscaleconfiguration.go | 8 + ...ypropertiesautoscaleconfigurationbounds.go | 9 + .../model_propagatedroutetable.go | 9 + .../model_routingconfiguration.go | 12 + .../expressroutegateways/model_staticroute.go | 10 + .../model_staticroutesconfig.go | 9 + .../expressroutegateways/model_subresource.go | 8 + .../expressroutegateways/model_tagsobject.go | 8 + .../model_virtualhubid.go | 8 + .../expressroutegateways/model_vnetroute.go | 10 + .../expressroutegateways/version.go | 10 + .../expressroutelinks/README.md | 6 +- .../expressroutelinks/client.go | 0 .../expressroutelinks/constants.go | 0 .../expressroutelinks/id_expressrouteport.go | 0 .../expressroutelinks/id_link.go | 0 .../expressroutelinks/method_get.go | 0 .../expressroutelinks/method_list.go | 0 .../model_expressroutelink.go | 0 .../model_expressroutelinkmacsecconfig.go | 0 .../model_expressroutelinkpropertiesformat.go | 0 .../expressroutelinks/predicates.go | 0 .../expressroutelinks/version.go | 4 +- .../expressrouteportauthorizations/README.md | 82 + .../expressrouteportauthorizations/client.go | 26 + .../constants.go | 98 + .../id_expressrouteport.go | 130 + .../id_expressrouteportauthorization.go | 139 + .../method_createorupdate.go | 75 + .../method_delete.go | 71 + .../method_get.go | 53 + .../method_list.go | 105 + .../model_expressrouteportauthorization.go | 12 + ...srouteportauthorizationpropertiesformat.go | 11 + .../predicates.go | 32 + .../expressrouteportauthorizations/version.go | 10 + .../2024-03-01/expressrouteports/README.md | 142 + .../2024-03-01/expressrouteports/client.go | 26 + .../2024-03-01/expressrouteports/constants.go | 309 ++ .../expressrouteports/id_expressrouteport.go | 130 + .../method_createorupdate.go | 75 + .../expressrouteports/method_delete.go | 71 + .../expressrouteports/method_generateloa.go | 58 + .../expressrouteports/method_get.go | 53 + .../expressrouteports/method_list.go | 106 + .../method_listbyresourcegroup.go | 106 + .../expressrouteports/method_updatetags.go | 57 + .../model_expressroutelink.go | 11 + .../model_expressroutelinkmacsecconfig.go | 11 + .../model_expressroutelinkpropertiesformat.go | 16 + .../model_expressrouteport.go | 19 + .../model_expressrouteportpropertiesformat.go | 19 + ...del_generateexpressrouteportsloarequest.go | 8 + ...odel_generateexpressrouteportsloaresult.go | 8 + .../expressrouteports/model_subresource.go | 8 + .../expressrouteports/model_tagsobject.go | 8 + .../expressrouteports/predicates.go | 37 + .../2024-03-01/expressrouteports/version.go | 10 + .../expressrouteportslocations/README.md | 6 +- .../expressrouteportslocations/client.go | 0 .../expressrouteportslocations/constants.go | 0 .../id_expressrouteportslocation.go | 0 .../expressrouteportslocations/method_get.go | 0 .../expressrouteportslocations/method_list.go | 0 .../model_expressrouteportslocation.go | 0 ...del_expressrouteportslocationbandwidths.go | 0 ...pressrouteportslocationpropertiesformat.go | 0 .../expressrouteportslocations/predicates.go | 0 .../expressrouteportslocations/version.go | 4 +- .../expressrouteproviderports/README.md | 6 +- .../expressrouteproviderports/client.go | 0 .../id_expressrouteproviderport.go | 0 .../method_expressrouteproviderport.go | 0 .../method_locationlist.go | 0 .../model_expressrouteproviderport.go | 0 ...odel_expressrouteproviderportproperties.go | 0 .../expressrouteproviderports/predicates.go | 0 .../expressrouteproviderports/version.go | 4 +- .../expressrouteserviceproviders/README.md | 6 +- .../expressrouteserviceproviders/client.go | 0 .../expressrouteserviceproviders/constants.go | 0 .../method_list.go | 0 .../model_expressrouteserviceprovider.go | 0 ...ssrouteserviceproviderbandwidthsoffered.go | 0 ...essrouteserviceproviderpropertiesformat.go | 0 .../predicates.go | 0 .../expressrouteserviceproviders/version.go | 4 +- .../2024-03-01/firewallpolicies/README.md | 355 ++ .../2024-03-01/firewallpolicies/client.go | 26 + .../2024-03-01/firewallpolicies/constants.go | 669 ++++ .../firewallpolicies/id_firewallpolicy.go | 130 + .../id_rulecollectiongroup.go | 139 + .../firewallpolicies/method_createorupdate.go | 75 + .../firewallpolicies/method_delete.go | 71 + .../method_firewallpolicydeploymentsdeploy.go | 69 + ...thod_firewallpolicydraftscreateorupdate.go | 59 + .../method_firewallpolicydraftsdelete.go | 48 + .../method_firewallpolicydraftsget.go | 54 + ...allpolicyidpssignaturesfiltervalueslist.go | 58 + ...method_firewallpolicyidpssignatureslist.go | 58 + ...irewallpolicyidpssignaturesoverridesget.go | 54 + ...rewallpolicyidpssignaturesoverrideslist.go | 54 + ...ewallpolicyidpssignaturesoverridespatch.go | 58 + ...irewallpolicyidpssignaturesoverridesput.go | 58 + ...rulecollectiongroupdraftscreateorupdate.go | 59 + ...llpolicyrulecollectiongroupdraftsdelete.go | 48 + ...ewallpolicyrulecollectiongroupdraftsget.go | 54 + .../2024-03-01/firewallpolicies/method_get.go | 83 + .../firewallpolicies/method_list.go | 106 + .../firewallpolicies/method_listall.go | 106 + .../firewallpolicies/method_updatetags.go | 57 + .../firewallpolicies/model_applicationrule.go | 63 + .../firewallpolicies/model_dnssettings.go | 10 + .../firewallpolicies/model_explicitproxy.go | 13 + .../firewallpolicies/model_filteritems.go | 9 + .../firewallpolicies/model_firewallpolicy.go | 19 + ...odel_firewallpolicycertificateauthority.go | 9 + .../model_firewallpolicydraft.go | 13 + .../model_firewallpolicydraftproperties.go | 16 + ...odel_firewallpolicyfilterrulecollection.go | 98 + ...irewallpolicyfilterrulecollectionaction.go | 8 + .../model_firewallpolicyhttpheadertoinsert.go | 9 + .../model_firewallpolicyinsights.go | 10 + .../model_firewallpolicyintrusiondetection.go | 10 + ...iondetectionbypasstrafficspecifications.go | 15 + ...llpolicyintrusiondetectionconfiguration.go | 10 + ...ntrusiondetectionsignaturespecification.go | 9 + ...del_firewallpolicyloganalyticsresources.go | 9 + ...del_firewallpolicyloganalyticsworkspace.go | 9 + .../model_firewallpolicynatrulecollection.go | 98 + ...l_firewallpolicynatrulecollectionaction.go | 8 + .../model_firewallpolicypropertiesformat.go | 23 + .../model_firewallpolicyrule.go | 93 + ...l_firewallpolicyruleapplicationprotocol.go | 9 + .../model_firewallpolicyrulecollection.go | 85 + ..._firewallpolicyrulecollectiongroupdraft.go | 11 + ...olicyrulecollectiongroupdraftproperties.go | 54 + .../model_firewallpolicysku.go | 8 + .../model_firewallpolicysnat.go | 9 + .../model_firewallpolicysql.go | 8 + ...odel_firewallpolicythreatintelwhitelist.go | 9 + .../model_firewallpolicytransportsecurity.go | 8 + .../firewallpolicies/model_idpsqueryobject.go | 12 + .../firewallpolicies/model_natrule.go | 61 + .../firewallpolicies/model_networkrule.go | 60 + .../firewallpolicies/model_orderby.go | 9 + .../firewallpolicies/model_queryresults.go | 9 + ...del_signatureoverridesfiltervaluesquery.go | 8 + ..._signatureoverridesfiltervaluesresponse.go | 8 + .../model_signaturesoverrides.go | 11 + .../model_signaturesoverrideslist.go | 8 + .../model_signaturesoverridesproperties.go | 8 + .../model_singlequeryresult.go | 18 + .../firewallpolicies/model_subresource.go | 8 + .../firewallpolicies/model_tagsobject.go | 8 + .../2024-03-01/firewallpolicies/predicates.go | 37 + .../2024-03-01/firewallpolicies/version.go | 10 + .../README.md | 82 + .../client.go | 26 + .../constants.go | 309 ++ .../id_firewallpolicy.go | 130 + .../id_rulecollectiongroup.go | 139 + .../method_createorupdate.go | 75 + .../method_delete.go | 71 + .../method_get.go | 53 + .../method_list.go | 105 + .../model_applicationrule.go | 63 + ...odel_firewallpolicyfilterrulecollection.go | 98 + ...irewallpolicyfilterrulecollectionaction.go | 8 + .../model_firewallpolicyhttpheadertoinsert.go | 9 + .../model_firewallpolicynatrulecollection.go | 98 + ...l_firewallpolicynatrulecollectionaction.go | 8 + .../model_firewallpolicyrule.go | 93 + ...l_firewallpolicyruleapplicationprotocol.go | 9 + .../model_firewallpolicyrulecollection.go | 85 + ...model_firewallpolicyrulecollectiongroup.go | 12 + ...wallpolicyrulecollectiongroupproperties.go | 57 + .../model_natrule.go | 61 + .../model_networkrule.go | 60 + .../predicates.go | 32 + .../version.go | 10 + .../network/2024-03-01/flowlogs/README.md | 103 + .../network/2024-03-01/flowlogs/client.go | 26 + .../network/2024-03-01/flowlogs/constants.go | 95 + .../network/2024-03-01/flowlogs/id_flowlog.go | 139 + .../2024-03-01/flowlogs/id_networkwatcher.go | 130 + .../flowlogs/method_createorupdate.go | 75 + .../2024-03-01/flowlogs/method_delete.go | 70 + .../network/2024-03-01/flowlogs/method_get.go | 53 + .../2024-03-01/flowlogs/method_list.go | 105 + .../2024-03-01/flowlogs/method_updatetags.go | 57 + .../2024-03-01/flowlogs/model_flowlog.go | 19 + .../flowlogs/model_flowlogformatparameters.go | 9 + .../flowlogs/model_flowlogpropertiesformat.go | 16 + .../model_retentionpolicyparameters.go | 9 + .../2024-03-01/flowlogs/model_tagsobject.go | 8 + ...trafficanalyticsconfigurationproperties.go | 12 + .../model_trafficanalyticsproperties.go | 8 + .../network/2024-03-01/flowlogs/predicates.go | 37 + .../network/2024-03-01/flowlogs/version.go | 10 + .../ipallocations/README.md | 6 +- .../ipallocations/client.go | 0 .../ipallocations/constants.go | 0 .../ipallocations/id_ipallocation.go | 0 .../ipallocations/method_createorupdate.go | 0 .../ipallocations/method_delete.go | 0 .../ipallocations/method_get.go | 0 .../ipallocations/method_list.go | 0 .../method_listbyresourcegroup.go | 0 .../ipallocations/method_updatetags.go | 0 .../ipallocations/model_ipallocation.go | 0 .../model_ipallocationpropertiesformat.go | 0 .../ipallocations/model_subresource.go | 0 .../ipallocations/model_tagsobject.go | 0 .../ipallocations/predicates.go | 0 .../ipallocations/version.go | 4 +- .../network/2024-03-01/ipgroups/README.md | 121 + .../network/2024-03-01/ipgroups/client.go | 26 + .../network/2024-03-01/ipgroups/constants.go | 57 + .../network/2024-03-01/ipgroups/id_ipgroup.go | 130 + .../ipgroups/method_createorupdate.go | 75 + .../2024-03-01/ipgroups/method_delete.go | 71 + .../network/2024-03-01/ipgroups/method_get.go | 83 + .../2024-03-01/ipgroups/method_list.go | 106 + .../ipgroups/method_listbyresourcegroup.go | 106 + .../ipgroups/method_updategroups.go | 57 + .../ipgroups/model_ipgroup.go} | 6 +- .../ipgroups/model_ipgrouppropertiesformat.go | 11 + .../2024-03-01/ipgroups/model_subresource.go | 8 + .../2024-03-01/ipgroups/model_tagsobject.go | 8 + .../network/2024-03-01/ipgroups/predicates.go | 37 + .../network/2024-03-01/ipgroups/version.go | 10 + .../loadbalancers/README.md | 6 +- .../loadbalancers/client.go | 0 .../loadbalancers/constants.go | 41 + .../loadbalancers/id_backendaddresspool.go | 0 .../id_frontendipconfiguration.go | 0 .../loadbalancers/id_inboundnatrule.go | 0 .../loadbalancers/id_loadbalancer.go | 0 .../id_loadbalancerbackendaddresspool.go | 0 .../loadbalancers/id_loadbalancingrule.go | 0 .../loadbalancers/id_location.go | 0 .../loadbalancers/id_outboundrule.go | 0 .../loadbalancers/id_probe.go | 0 .../loadbalancers/id_providerloadbalancer.go | 0 .../loadbalancers/method_createorupdate.go | 0 .../loadbalancers/method_delete.go | 0 .../loadbalancers/method_get.go | 0 .../method_inboundnatrulescreateorupdate.go | 0 .../method_inboundnatrulesdelete.go | 0 .../method_inboundnatrulesget.go | 0 .../method_inboundnatruleslist.go | 0 .../loadbalancers/method_list.go | 0 .../loadbalancers/method_listall.go | 0 .../method_listinboundnatruleportmappings.go | 0 ...lancerbackendaddresspoolscreateorupdate.go | 0 ...d_loadbalancerbackendaddresspoolsdelete.go | 0 ...thod_loadbalancerbackendaddresspoolsget.go | 0 ...hod_loadbalancerbackendaddresspoolslist.go | 0 ...loadbalancerfrontendipconfigurationsget.go | 0 ...oadbalancerfrontendipconfigurationslist.go | 0 ...ethod_loadbalancerloadbalancingrulesget.go | 0 ...thod_loadbalancerloadbalancingruleslist.go | 0 ...ethod_loadbalancernetworkinterfaceslist.go | 0 .../method_loadbalanceroutboundrulesget.go | 0 .../method_loadbalanceroutboundruleslist.go | 0 .../method_loadbalancerprobesget.go | 0 .../method_loadbalancerprobeslist.go | 0 .../loadbalancers/method_migratetoipbased.go | 0 .../method_swappublicipaddresses.go | 0 .../loadbalancers/method_updatetags.go | 0 .../model_applicationgatewaybackendaddress.go | 0 ...el_applicationgatewaybackendaddresspool.go | 0 ...tewaybackendaddresspoolpropertiesformat.go | 0 ...model_applicationgatewayipconfiguration.go | 0 ...ngatewayipconfigurationpropertiesformat.go | 0 .../model_applicationsecuritygroup.go | 0 ...pplicationsecuritygrouppropertiesformat.go | 0 ...ackendaddressinboundnatruleportmappings.go | 0 .../loadbalancers/model_backendaddresspool.go | 0 ...odel_backendaddresspoolpropertiesformat.go | 0 .../model_customdnsconfigpropertiesformat.go | 0 .../loadbalancers/model_ddossettings.go | 0 .../loadbalancers/model_delegation.go | 0 .../2024-03-01/loadbalancers/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 0 .../model_flowlogpropertiesformat.go | 1 + .../model_frontendipconfiguration.go | 0 ...frontendipconfigurationpropertiesformat.go | 0 ...odel_gatewayloadbalancertunnelinterface.go | 0 .../loadbalancers/model_inboundnatpool.go | 0 .../model_inboundnatpoolpropertiesformat.go | 0 .../loadbalancers/model_inboundnatrule.go | 0 .../model_inboundnatruleportmapping.go | 0 .../model_inboundnatrulepropertiesformat.go | 0 .../loadbalancers/model_ipconfiguration.go | 0 .../model_ipconfigurationprofile.go | 0 ..._ipconfigurationprofilepropertiesformat.go | 0 .../model_ipconfigurationpropertiesformat.go | 0 .../loadbalancers/model_iptag.go | 0 .../loadbalancers/model_loadbalancer.go | 0 .../model_loadbalancerbackendaddress.go | 0 ...dbalancerbackendaddresspropertiesformat.go | 0 .../model_loadbalancerpropertiesformat.go | 0 .../loadbalancers/model_loadbalancersku.go | 0 .../model_loadbalancervipswaprequest.go | 0 ...ervipswaprequestfrontendipconfiguration.go | 0 ...equestfrontendipconfigurationproperties.go | 0 .../loadbalancers/model_loadbalancingrule.go | 0 ...model_loadbalancingrulepropertiesformat.go | 0 .../loadbalancers/model_migratedpools.go | 0 ...del_migrateloadbalancertoipbasedrequest.go | 0 .../loadbalancers/model_natgateway.go | 0 .../model_natgatewaypropertiesformat.go | 0 .../loadbalancers/model_natgatewaysku.go | 0 .../loadbalancers/model_natruleportmapping.go | 0 .../loadbalancers/model_networkinterface.go | 0 .../model_networkinterfacednssettings.go | 0 .../model_networkinterfaceipconfiguration.go | 0 ...gurationprivatelinkconnectionproperties.go | 0 ...nterfaceipconfigurationpropertiesformat.go | 0 .../model_networkinterfacepropertiesformat.go | 0 .../model_networkinterfacetapconfiguration.go | 0 ...terfacetapconfigurationpropertiesformat.go | 0 .../model_networksecuritygroup.go | 0 ...el_networksecuritygrouppropertiesformat.go | 0 .../loadbalancers/model_outboundrule.go | 0 .../model_outboundrulepropertiesformat.go | 0 .../loadbalancers/model_privateendpoint.go | 0 .../model_privateendpointconnection.go | 0 ...del_privateendpointconnectionproperties.go | 0 .../model_privateendpointipconfiguration.go | 0 ...rivateendpointipconfigurationproperties.go | 0 .../model_privateendpointproperties.go | 0 .../loadbalancers/model_privatelinkservice.go | 0 .../model_privatelinkserviceconnection.go | 0 ..._privatelinkserviceconnectionproperties.go | 0 ...model_privatelinkserviceconnectionstate.go | 0 ...model_privatelinkserviceipconfiguration.go | 0 ...atelinkserviceipconfigurationproperties.go | 0 .../model_privatelinkserviceproperties.go | 1 + .../loadbalancers/model_probe.go | 0 .../model_probepropertiesformat.go | 16 + .../loadbalancers/model_publicipaddress.go | 0 .../model_publicipaddressdnssettings.go | 0 .../model_publicipaddresspropertiesformat.go | 0 .../loadbalancers/model_publicipaddresssku.go | 0 ...l_queryinboundnatruleportmappingrequest.go | 0 .../model_resourcenavigationlink.go | 0 .../model_resourcenavigationlinkformat.go | 0 .../loadbalancers/model_resourceset.go | 0 .../model_retentionpolicyparameters.go | 0 .../loadbalancers/model_route.go | 0 .../model_routepropertiesformat.go | 0 .../loadbalancers/model_routetable.go | 0 .../model_routetablepropertiesformat.go | 0 .../loadbalancers/model_securityrule.go | 0 .../model_securityrulepropertiesformat.go | 0 .../model_serviceassociationlink.go | 0 ..._serviceassociationlinkpropertiesformat.go | 0 ...model_servicedelegationpropertiesformat.go | 0 .../model_serviceendpointpolicy.go | 0 .../model_serviceendpointpolicydefinition.go | 0 ...ndpointpolicydefinitionpropertiesformat.go | 0 ...l_serviceendpointpolicypropertiesformat.go | 0 .../model_serviceendpointpropertiesformat.go | 1 + .../loadbalancers/model_subnet.go | 0 .../model_subnetpropertiesformat.go | 0 .../loadbalancers/model_subresource.go | 0 .../loadbalancers/model_tagsobject.go | 0 ...trafficanalyticsconfigurationproperties.go | 0 .../model_trafficanalyticsproperties.go | 0 .../loadbalancers/model_virtualnetworktap.go | 0 ...model_virtualnetworktappropertiesformat.go | 0 .../loadbalancers/predicates.go | 0 .../loadbalancers/version.go | 4 +- .../2024-03-01/localnetworkgateways/README.md | 104 + .../2024-03-01/localnetworkgateways/client.go | 26 + .../localnetworkgateways/constants.go | 57 + .../id_localnetworkgateway.go | 130 + .../method_createorupdate.go | 75 + .../localnetworkgateways/method_delete.go | 71 + .../localnetworkgateways/method_get.go | 53 + .../localnetworkgateways/method_list.go | 106 + .../localnetworkgateways/method_updatetags.go | 57 + .../model_addressspace.go | 8 + .../localnetworkgateways/model_bgpsettings.go | 11 + .../model_ipconfigurationbgppeeringaddress.go | 11 + .../model_localnetworkgateway.go | 14 + ...del_localnetworkgatewaypropertiesformat.go | 13 + .../localnetworkgateways/model_tagsobject.go | 8 + .../localnetworkgateways/predicates.go | 37 + .../localnetworkgateways/version.go | 10 + .../network/2024-03-01/natgateways/README.md | 121 + .../network/2024-03-01/natgateways/client.go | 26 + .../2024-03-01/natgateways/constants.go | 95 + .../2024-03-01/natgateways/id_natgateway.go | 130 + .../natgateways/method_createorupdate.go | 76 + .../2024-03-01/natgateways/method_delete.go | 71 + .../2024-03-01/natgateways/method_get.go | 83 + .../2024-03-01/natgateways/method_list.go | 106 + .../2024-03-01/natgateways/method_listall.go | 106 + .../natgateways/method_updatetags.go | 57 + .../natgateways/model_natgateway.go | 20 + .../model_natgatewaypropertiesformat.go | 13 + .../natgateways/model_natgatewaysku.go | 8 + .../natgateways/model_subresource.go | 8 + .../natgateways/model_tagsobject.go | 8 + .../2024-03-01/natgateways/predicates.go | 37 + .../network/2024-03-01/natgateways/version.go | 10 + .../2024-03-01/networkgroups/README.md | 86 + .../2024-03-01/networkgroups/client.go | 26 + .../2024-03-01/networkgroups/constants.go | 98 + .../networkgroups/id_networkgroup.go | 139 + .../networkgroups/id_networkmanager.go | 130 + .../networkgroups/method_createorupdate.go | 88 + .../2024-03-01/networkgroups/method_delete.go | 100 + .../2024-03-01/networkgroups/method_get.go | 53 + .../2024-03-01/networkgroups/method_list.go | 134 + .../networkgroups/model_networkgroup.go | 17 + .../model_networkgroupproperties.go | 11 + .../2024-03-01/networkgroups/predicates.go | 32 + .../2024-03-01/networkgroups/version.go | 10 + .../2024-03-01/networkinterfaces/README.md | 400 +++ .../2024-03-01/networkinterfaces/client.go | 26 + .../2024-03-01/networkinterfaces/constants.go | 1588 +++++++++ .../id_providercloudservice.go | 130 + .../networkinterfaces/id_roleinstance.go | 139 + .../id_roleinstancenetworkinterface.go | 148 + .../networkinterfaces/id_tapconfiguration.go | 139 + .../networkinterfaces/id_virtualmachine.go | 139 + .../id_virtualmachinescaleset.go | 130 + .../method_createorupdate.go | 76 + .../networkinterfaces/method_delete.go | 72 + .../networkinterfaces/method_get.go | 84 + .../method_getcloudservicenetworkinterface.go | 83 + .../method_geteffectiveroutetable.go | 90 + ...etvirtualmachinescalesetipconfiguration.go | 84 + ...tvirtualmachinescalesetnetworkinterface.go | 84 + .../networkinterfaces/method_list.go | 106 + .../networkinterfaces/method_listall.go | 106 + ...ethod_listcloudservicenetworkinterfaces.go | 105 + ...oudserviceroleinstancenetworkinterfaces.go | 105 + ...thod_listeffectivenetworksecuritygroups.go | 90 + ...tvirtualmachinescalesetipconfigurations.go | 135 + ...virtualmachinescalesetnetworkinterfaces.go | 105 + ...rtualmachinescalesetvmnetworkinterfaces.go | 105 + ...hod_networkinterfaceipconfigurationsget.go | 54 + ...od_networkinterfaceipconfigurationslist.go | 106 + ...ethod_networkinterfaceloadbalancerslist.go | 106 + ...nterfacetapconfigurationscreateorupdate.go | 75 + ...networkinterfacetapconfigurationsdelete.go | 71 + ...od_networkinterfacetapconfigurationsget.go | 53 + ...d_networkinterfacetapconfigurationslist.go | 106 + .../networkinterfaces/method_updatetags.go | 58 + .../model_applicationgatewaybackendaddress.go | 9 + ...el_applicationgatewaybackendaddresspool.go | 12 + ...tewaybackendaddresspoolpropertiesformat.go | 10 + ...model_applicationgatewayipconfiguration.go | 12 + ...ngatewayipconfigurationpropertiesformat.go | 9 + .../model_applicationsecuritygroup.go | 14 + ...pplicationsecuritygrouppropertiesformat.go | 9 + .../model_backendaddresspool.go | 12 + ...odel_backendaddresspoolpropertiesformat.go | 19 + .../model_customdnsconfigpropertiesformat.go | 9 + .../networkinterfaces/model_ddossettings.go | 9 + .../networkinterfaces/model_delegation.go | 12 + .../model_effectivenetworksecuritygroup.go | 11 + ...ffectivenetworksecuritygroupassociation.go | 10 + .../model_effectivenetworksecurityrule.go | 22 + .../networkinterfaces/model_effectiveroute.go | 14 + .../networkinterfaces/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 9 + .../model_flowlogpropertiesformat.go | 16 + .../model_frontendipconfiguration.go | 17 + ...frontendipconfigurationpropertiesformat.go | 19 + ...odel_gatewayloadbalancertunnelinterface.go | 11 + .../networkinterfaces/model_inboundnatpool.go | 12 + .../model_inboundnatpoolpropertiesformat.go | 16 + .../networkinterfaces/model_inboundnatrule.go | 12 + .../model_inboundnatrulepropertiesformat.go | 19 + .../model_ipconfiguration.go | 11 + .../model_ipconfigurationprofile.go | 12 + ..._ipconfigurationprofilepropertiesformat.go | 9 + .../model_ipconfigurationpropertiesformat.go | 12 + .../networkinterfaces/model_iptag.go | 9 + .../networkinterfaces/model_loadbalancer.go | 20 + .../model_loadbalancerbackendaddress.go | 9 + ...dbalancerbackendaddresspropertiesformat.go | 14 + .../model_loadbalancerpropertiesformat.go | 16 + .../model_loadbalancersku.go | 9 + .../model_loadbalancingrule.go | 12 + ...model_loadbalancingrulepropertiesformat.go | 20 + .../networkinterfaces/model_natgateway.go | 20 + .../model_natgatewaypropertiesformat.go | 13 + .../networkinterfaces/model_natgatewaysku.go | 8 + .../model_natruleportmapping.go | 10 + .../model_networkinterface.go | 19 + .../model_networkinterfacednssettings.go | 12 + .../model_networkinterfaceipconfiguration.go | 12 + ...gurationprivatelinkconnectionproperties.go | 10 + ...nterfaceipconfigurationpropertiesformat.go | 22 + .../model_networkinterfacepropertiesformat.go | 29 + .../model_networkinterfacetapconfiguration.go | 12 + ...terfacetapconfigurationpropertiesformat.go | 9 + .../model_networksecuritygroup.go | 14 + ...el_networksecuritygrouppropertiesformat.go | 15 + .../networkinterfaces/model_outboundrule.go | 12 + .../model_outboundrulepropertiesformat.go | 14 + .../model_privateendpoint.go | 19 + .../model_privateendpointconnection.go | 12 + ...del_privateendpointconnectionproperties.go | 12 + .../model_privateendpointipconfiguration.go | 11 + ...rivateendpointipconfigurationproperties.go | 10 + .../model_privateendpointproperties.go | 16 + .../model_privatelinkservice.go | 19 + .../model_privatelinkserviceconnection.go | 12 + ..._privatelinkserviceconnectionproperties.go | 12 + ...model_privatelinkserviceconnectionstate.go | 10 + ...model_privatelinkserviceipconfiguration.go | 12 + ...atelinkserviceipconfigurationproperties.go | 13 + .../model_privatelinkserviceproperties.go | 18 + .../networkinterfaces/model_probe.go | 12 + .../model_probepropertiesformat.go | 16 + .../model_publicipaddress.go | 22 + .../model_publicipaddressdnssettings.go | 11 + .../model_publicipaddresspropertiesformat.go | 23 + .../model_publicipaddresssku.go | 9 + .../model_resourcenavigationlink.go | 12 + .../model_resourcenavigationlinkformat.go | 10 + .../networkinterfaces/model_resourceset.go | 8 + .../model_retentionpolicyparameters.go | 9 + .../networkinterfaces/model_route.go | 12 + .../model_routepropertiesformat.go | 12 + .../networkinterfaces/model_routetable.go | 14 + .../model_routetablepropertiesformat.go | 12 + .../networkinterfaces/model_securityrule.go | 12 + .../model_securityrulepropertiesformat.go | 23 + .../model_serviceassociationlink.go | 12 + ..._serviceassociationlinkpropertiesformat.go | 12 + ...model_servicedelegationpropertiesformat.go | 10 + .../model_serviceendpointpolicy.go | 15 + .../model_serviceendpointpolicydefinition.go | 12 + ...ndpointpolicydefinitionpropertiesformat.go | 11 + ...l_serviceendpointpolicypropertiesformat.go | 13 + .../model_serviceendpointpropertiesformat.go | 11 + .../networkinterfaces/model_subnet.go | 12 + .../model_subnetpropertiesformat.go | 28 + .../networkinterfaces/model_subresource.go | 8 + .../networkinterfaces/model_tagsobject.go | 8 + ...trafficanalyticsconfigurationproperties.go | 12 + .../model_trafficanalyticsproperties.go | 8 + .../model_virtualnetworktap.go | 14 + ...model_virtualnetworktappropertiesformat.go | 13 + .../networkinterfaces/predicates.go | 152 + .../2024-03-01/networkinterfaces/version.go | 10 + .../README.md | 6 +- .../client.go | 0 .../constants.go | 318 ++ .../id_networkmanager.go | 0 .../method_listactivesecurityadminrules.go | 0 .../model_activebasesecurityadminrule.go | 0 .../model_activeconfigurationparameter.go | 0 .../model_activedefaultsecurityadminrule.go | 0 .../model_activesecurityadminrule.go | 0 ...odel_activesecurityadminruleslistresult.go | 0 .../model_addressprefixitem.go | 0 .../model_adminpropertiesformat.go | 0 .../model_configurationgroup.go | 0 .../model_defaultadminpropertiesformat.go | 0 .../model_networkgroupproperties.go | 1 + .../model_networkmanagersecuritygroupitem.go | 0 .../version.go | 4 +- .../README.md | 6 +- .../client.go | 0 .../constants.go | 303 ++ .../id_networkmanager.go | 0 ...od_listactiveconnectivityconfigurations.go | 0 .../model_activeconfigurationparameter.go | 0 .../model_activeconnectivityconfiguration.go | 0 ...iveconnectivityconfigurationslistresult.go | 0 .../model_configurationgroup.go | 0 ...del_connectivityconfigurationproperties.go | 0 .../model_connectivitygroupitem.go | 0 .../model_hub.go | 0 .../model_networkgroupproperties.go | 1 + .../version.go | 4 +- .../networkmanagerconnections/README.md | 161 + .../networkmanagerconnections/client.go | 26 + .../networkmanagerconnections/constants.go | 60 + .../id_networkmanagerconnection.go | 121 + .../id_providers2networkmanagerconnection.go | 123 + ...networkmanagerconnectionscreateorupdate.go | 58 + ...entgroupnetworkmanagerconnectionsdelete.go | 47 + ...gementgroupnetworkmanagerconnectionsget.go | 53 + ...ementgroupnetworkmanagerconnectionslist.go | 135 + ...networkmanagerconnectionscreateorupdate.go | 58 + ...criptionnetworkmanagerconnectionsdelete.go | 47 + ...ubscriptionnetworkmanagerconnectionsget.go | 53 + ...bscriptionnetworkmanagerconnectionslist.go | 135 + .../model_networkmanagerconnection.go | 17 + ...odel_networkmanagerconnectionproperties.go | 10 + .../networkmanagerconnections/predicates.go | 32 + .../networkmanagerconnections/version.go | 10 + .../README.md | 6 +- .../client.go | 0 .../constants.go | 41 + ...agereffectiveconnectivityconfigurations.go | 0 .../model_configurationgroup.go | 0 ...del_connectivityconfigurationproperties.go | 0 .../model_connectivitygroupitem.go | 0 ...odel_effectiveconnectivityconfiguration.go | 0 .../model_hub.go | 0 .../model_networkgroupproperties.go | 1 + ...tiveconnectivityconfigurationlistresult.go | 0 .../model_queryrequestoptions.go | 0 .../version.go | 4 +- .../README.md | 6 +- .../client.go | 0 .../constants.go | 41 + ...tworkmanagereffectivesecurityadminrules.go | 0 .../model_addressprefixitem.go | 0 .../model_adminpropertiesformat.go | 0 .../model_configurationgroup.go | 0 .../model_defaultadminpropertiesformat.go | 0 .../model_effectivebasesecurityadminrule.go | 0 ...model_effectivedefaultsecurityadminrule.go | 0 .../model_effectivesecurityadminrule.go | 0 .../model_networkgroupproperties.go | 1 + ...ereffectivesecurityadminruleslistresult.go | 0 .../model_networkmanagersecuritygroupitem.go | 0 .../model_queryrequestoptions.go | 0 .../version.go | 4 +- .../README.md | 86 + .../client.go | 26 + .../constants.go | 57 + .../id_networkmanager.go | 130 + .../id_routingconfiguration.go | 139 + .../method_createorupdate.go | 58 + .../method_delete.go | 100 + .../method_get.go | 53 + .../method_list.go | 134 + ...odel_networkmanagerroutingconfiguration.go | 17 + ...gerroutingconfigurationpropertiesformat.go | 10 + .../predicates.go | 32 + .../version.go | 10 + .../2024-03-01/networkmanagers/README.md | 163 + .../2024-03-01/networkmanagers/client.go | 26 + .../2024-03-01/networkmanagers/constants.go | 151 + .../networkmanagers/id_networkmanager.go | 130 + .../networkmanagers/method_createorupdate.go | 58 + .../networkmanagers/method_delete.go | 100 + .../2024-03-01/networkmanagers/method_get.go | 53 + .../2024-03-01/networkmanagers/method_list.go | 135 + .../method_listbysubscription.go | 135 + .../method_networkmanagercommitspost.go | 75 + ...thod_networkmanagerdeploymentstatuslist.go | 58 + .../networkmanagers/method_patch.go | 57 + .../model_crosstenantscopes.go | 10 + .../networkmanagers/model_networkmanager.go | 19 + .../model_networkmanagercommit.go | 11 + .../model_networkmanagerdeploymentstatus.go | 31 + ...etworkmanagerdeploymentstatuslistresult.go | 9 + ...networkmanagerdeploymentstatusparameter.go | 10 + .../model_networkmanagerproperties.go | 12 + ...rkmanagerpropertiesnetworkmanagerscopes.go | 10 + .../networkmanagers/model_patchobject.go | 8 + .../2024-03-01/networkmanagers/predicates.go | 37 + .../2024-03-01/networkmanagers/version.go | 10 + .../2024-03-01/networkprofiles/README.md | 125 + .../2024-03-01/networkprofiles/client.go | 26 + .../2024-03-01/networkprofiles/constants.go | 1198 +++++++ .../networkprofiles/id_networkprofile.go | 130 + .../networkprofiles/method_createorupdate.go | 58 + .../networkprofiles/method_delete.go | 71 + .../2024-03-01/networkprofiles/method_get.go | 83 + .../2024-03-01/networkprofiles/method_list.go | 106 + .../networkprofiles/method_listall.go | 106 + .../networkprofiles/method_updatetags.go | 57 + .../model_applicationgatewaybackendaddress.go | 9 + ...el_applicationgatewaybackendaddresspool.go | 12 + ...tewaybackendaddresspoolpropertiesformat.go | 10 + ...model_applicationgatewayipconfiguration.go | 12 + ...ngatewayipconfigurationpropertiesformat.go | 9 + .../model_applicationsecuritygroup.go | 14 + ...pplicationsecuritygrouppropertiesformat.go | 9 + .../model_backendaddresspool.go | 12 + ...odel_backendaddresspoolpropertiesformat.go | 19 + .../model_containernetworkinterface.go | 12 + ..._containernetworkinterfaceconfiguration.go | 12 + ...kinterfaceconfigurationpropertiesformat.go | 10 + ...ontainernetworkinterfaceipconfiguration.go | 11 + ...nterfaceipconfigurationpropertiesformat.go | 8 + ...ntainernetworkinterfacepropertiesformat.go | 11 + .../model_customdnsconfigpropertiesformat.go | 9 + .../networkprofiles/model_ddossettings.go | 9 + .../networkprofiles/model_delegation.go | 12 + .../networkprofiles/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 9 + .../model_flowlogpropertiesformat.go | 16 + .../model_frontendipconfiguration.go | 17 + ...frontendipconfigurationpropertiesformat.go | 19 + ...odel_gatewayloadbalancertunnelinterface.go | 11 + .../networkprofiles/model_inboundnatrule.go | 12 + .../model_inboundnatrulepropertiesformat.go | 19 + .../networkprofiles/model_ipconfiguration.go | 11 + .../model_ipconfigurationprofile.go | 12 + ..._ipconfigurationprofilepropertiesformat.go | 9 + .../model_ipconfigurationpropertiesformat.go | 12 + .../2024-03-01/networkprofiles/model_iptag.go | 9 + .../model_loadbalancerbackendaddress.go | 9 + ...dbalancerbackendaddresspropertiesformat.go | 14 + .../networkprofiles/model_natgateway.go | 20 + .../model_natgatewaypropertiesformat.go | 13 + .../networkprofiles/model_natgatewaysku.go | 8 + .../model_natruleportmapping.go | 10 + .../networkprofiles/model_networkinterface.go | 19 + .../model_networkinterfacednssettings.go | 12 + .../model_networkinterfaceipconfiguration.go | 12 + ...gurationprivatelinkconnectionproperties.go | 10 + ...nterfaceipconfigurationpropertiesformat.go | 22 + .../model_networkinterfacepropertiesformat.go | 29 + .../model_networkinterfacetapconfiguration.go | 12 + ...terfacetapconfigurationpropertiesformat.go | 9 + .../networkprofiles/model_networkprofile.go | 14 + .../model_networkprofilepropertiesformat.go | 11 + .../model_networksecuritygroup.go | 14 + ...el_networksecuritygrouppropertiesformat.go | 15 + .../networkprofiles/model_privateendpoint.go | 19 + .../model_privateendpointconnection.go | 12 + ...del_privateendpointconnectionproperties.go | 12 + .../model_privateendpointipconfiguration.go | 11 + ...rivateendpointipconfigurationproperties.go | 10 + .../model_privateendpointproperties.go | 16 + .../model_privatelinkservice.go | 19 + .../model_privatelinkserviceconnection.go | 12 + ..._privatelinkserviceconnectionproperties.go | 12 + ...model_privatelinkserviceconnectionstate.go | 10 + ...model_privatelinkserviceipconfiguration.go | 12 + ...atelinkserviceipconfigurationproperties.go | 13 + .../model_privatelinkserviceproperties.go | 18 + .../networkprofiles/model_publicipaddress.go | 22 + .../model_publicipaddressdnssettings.go | 11 + .../model_publicipaddresspropertiesformat.go | 23 + .../model_publicipaddresssku.go | 9 + .../model_resourcenavigationlink.go | 12 + .../model_resourcenavigationlinkformat.go | 10 + .../networkprofiles/model_resourceset.go | 8 + .../model_retentionpolicyparameters.go | 9 + .../2024-03-01/networkprofiles/model_route.go | 12 + .../model_routepropertiesformat.go | 12 + .../networkprofiles/model_routetable.go | 14 + .../model_routetablepropertiesformat.go | 12 + .../networkprofiles/model_securityrule.go | 12 + .../model_securityrulepropertiesformat.go | 23 + .../model_serviceassociationlink.go | 12 + ..._serviceassociationlinkpropertiesformat.go | 12 + ...model_servicedelegationpropertiesformat.go | 10 + .../model_serviceendpointpolicy.go | 15 + .../model_serviceendpointpolicydefinition.go | 12 + ...ndpointpolicydefinitionpropertiesformat.go | 11 + ...l_serviceendpointpolicypropertiesformat.go | 13 + .../model_serviceendpointpropertiesformat.go | 11 + .../networkprofiles/model_subnet.go | 12 + .../model_subnetpropertiesformat.go | 28 + .../networkprofiles/model_subresource.go | 8 + .../networkprofiles/model_tagsobject.go | 8 + ...trafficanalyticsconfigurationproperties.go | 12 + .../model_trafficanalyticsproperties.go | 8 + .../model_virtualnetworktap.go | 14 + ...model_virtualnetworktappropertiesformat.go | 13 + .../2024-03-01/networkprofiles/predicates.go | 37 + .../2024-03-01/networkprofiles/version.go | 10 + .../networksecuritygroups/README.md | 121 + .../networksecuritygroups/client.go | 26 + .../networksecuritygroups/constants.go | 1198 +++++++ .../id_networksecuritygroup.go | 130 + .../method_createorupdate.go | 75 + .../networksecuritygroups/method_delete.go | 71 + .../networksecuritygroups/method_get.go | 83 + .../networksecuritygroups/method_list.go | 106 + .../networksecuritygroups/method_listall.go | 106 + .../method_updatetags.go | 57 + .../model_applicationgatewaybackendaddress.go | 9 + ...el_applicationgatewaybackendaddresspool.go | 12 + ...tewaybackendaddresspoolpropertiesformat.go | 10 + ...model_applicationgatewayipconfiguration.go | 12 + ...ngatewayipconfigurationpropertiesformat.go | 9 + .../model_applicationsecuritygroup.go | 14 + ...pplicationsecuritygrouppropertiesformat.go | 9 + .../model_backendaddresspool.go | 12 + ...odel_backendaddresspoolpropertiesformat.go | 19 + .../model_customdnsconfigpropertiesformat.go | 9 + .../model_ddossettings.go | 9 + .../networksecuritygroups/model_delegation.go | 12 + .../networksecuritygroups/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 9 + .../model_flowlogpropertiesformat.go | 16 + .../model_frontendipconfiguration.go | 17 + ...frontendipconfigurationpropertiesformat.go | 19 + ...odel_gatewayloadbalancertunnelinterface.go | 11 + .../model_inboundnatrule.go | 12 + .../model_inboundnatrulepropertiesformat.go | 19 + .../model_ipconfiguration.go | 11 + .../model_ipconfigurationprofile.go | 12 + ..._ipconfigurationprofilepropertiesformat.go | 9 + .../model_ipconfigurationpropertiesformat.go | 12 + .../networksecuritygroups/model_iptag.go | 9 + .../model_loadbalancerbackendaddress.go | 9 + ...dbalancerbackendaddresspropertiesformat.go | 14 + .../networksecuritygroups/model_natgateway.go | 20 + .../model_natgatewaypropertiesformat.go | 13 + .../model_natgatewaysku.go | 8 + .../model_natruleportmapping.go | 10 + .../model_networkinterface.go | 19 + .../model_networkinterfacednssettings.go | 12 + .../model_networkinterfaceipconfiguration.go | 12 + ...gurationprivatelinkconnectionproperties.go | 10 + ...nterfaceipconfigurationpropertiesformat.go | 22 + .../model_networkinterfacepropertiesformat.go | 29 + .../model_networkinterfacetapconfiguration.go | 12 + ...terfacetapconfigurationpropertiesformat.go | 9 + .../model_networksecuritygroup.go | 14 + ...el_networksecuritygrouppropertiesformat.go | 15 + .../model_privateendpoint.go | 19 + .../model_privateendpointconnection.go | 12 + ...del_privateendpointconnectionproperties.go | 12 + .../model_privateendpointipconfiguration.go | 11 + ...rivateendpointipconfigurationproperties.go | 10 + .../model_privateendpointproperties.go | 16 + .../model_privatelinkservice.go | 19 + .../model_privatelinkserviceconnection.go | 12 + ..._privatelinkserviceconnectionproperties.go | 12 + ...model_privatelinkserviceconnectionstate.go | 10 + ...model_privatelinkserviceipconfiguration.go | 12 + ...atelinkserviceipconfigurationproperties.go | 13 + .../model_privatelinkserviceproperties.go | 18 + .../model_publicipaddress.go | 22 + .../model_publicipaddressdnssettings.go | 11 + .../model_publicipaddresspropertiesformat.go | 23 + .../model_publicipaddresssku.go | 9 + .../model_resourcenavigationlink.go | 12 + .../model_resourcenavigationlinkformat.go | 10 + .../model_resourceset.go | 8 + .../model_retentionpolicyparameters.go | 9 + .../networksecuritygroups/model_route.go | 12 + .../model_routepropertiesformat.go | 12 + .../networksecuritygroups/model_routetable.go | 14 + .../model_routetablepropertiesformat.go | 12 + .../model_securityrule.go | 12 + .../model_securityrulepropertiesformat.go | 23 + .../model_serviceassociationlink.go | 12 + ..._serviceassociationlinkpropertiesformat.go | 12 + ...model_servicedelegationpropertiesformat.go | 10 + .../model_serviceendpointpolicy.go | 15 + .../model_serviceendpointpolicydefinition.go | 12 + ...ndpointpolicydefinitionpropertiesformat.go | 11 + ...l_serviceendpointpolicypropertiesformat.go | 13 + .../model_serviceendpointpropertiesformat.go | 11 + .../networksecuritygroups/model_subnet.go | 12 + .../model_subnetpropertiesformat.go | 28 + .../model_subresource.go | 8 + .../networksecuritygroups/model_tagsobject.go | 8 + ...trafficanalyticsconfigurationproperties.go | 12 + .../model_trafficanalyticsproperties.go | 8 + .../model_virtualnetworktap.go | 14 + ...model_virtualnetworktappropertiesformat.go | 13 + .../networksecuritygroups/predicates.go | 37 + .../networksecuritygroups/version.go | 10 + .../networkvirtualappliances/README.md | 171 + .../networkvirtualappliances/client.go | 26 + .../networkvirtualappliances/constants.go | 224 ++ .../id_inboundsecurityrule.go | 139 + .../id_networkvirtualappliance.go | 130 + .../method_createorupdate.go | 75 + .../networkvirtualappliances/method_delete.go | 71 + .../networkvirtualappliances/method_get.go | 83 + ...ethod_inboundsecurityrulecreateorupdate.go | 75 + .../method_inboundsecurityruleget.go | 53 + .../networkvirtualappliances/method_list.go | 106 + .../method_listbyresourcegroup.go | 106 + .../method_restart.go | 75 + .../method_updatetags.go | 57 + .../model_delegationproperties.go | 9 + .../model_inboundsecurityrule.go | 12 + .../model_inboundsecurityruleproperties.go | 10 + .../model_inboundsecurityrules.go | 13 + ...odel_internetingresspublicipsproperties.go | 8 + .../model_networkvirtualappliance.go | 19 + ...odel_networkvirtualapplianceinstanceids.go | 8 + ...networkvirtualappliancepropertiesformat.go | 26 + ...appliancepropertiesformatnetworkprofile.go | 8 + .../model_partnermanagedresourceproperties.go | 10 + .../model_subresource.go | 8 + .../model_tagsobject.go | 8 + ...virtualapplianceadditionalnicproperties.go | 9 + .../model_virtualapplianceipconfiguration.go | 9 + ...rtualapplianceipconfigurationproperties.go | 8 + ...lappliancenetworkinterfaceconfiguration.go | 9 + ...networkinterfaceconfigurationproperties.go | 8 + .../model_virtualappliancenicproperties.go | 12 + .../model_virtualapplianceskuproperties.go | 10 + .../networkvirtualappliances/predicates.go | 37 + .../networkvirtualappliances/version.go | 10 + .../2024-03-01/networkwatchers/README.md | 331 ++ .../2024-03-01/networkwatchers/client.go | 26 + .../2024-03-01/networkwatchers/constants.go | 855 +++++ .../networkwatchers/id_networkwatcher.go | 130 + .../method_checkconnectivity.go | 75 + .../networkwatchers/method_createorupdate.go | 58 + .../networkwatchers/method_delete.go | 70 + .../2024-03-01/networkwatchers/method_get.go | 53 + .../method_getazurereachabilityreport.go | 75 + .../method_getflowlogstatus.go | 75 + ...ethod_getnetworkconfigurationdiagnostic.go | 75 + .../networkwatchers/method_getnexthop.go | 75 + .../networkwatchers/method_gettopology.go | 58 + .../method_gettroubleshooting.go | 75 + .../method_gettroubleshootingresult.go | 75 + .../method_getvmsecurityrules.go | 75 + .../2024-03-01/networkwatchers/method_list.go | 55 + .../networkwatchers/method_listall.go | 55 + .../method_listavailableproviders.go | 75 + .../method_setflowlogconfiguration.go | 75 + .../networkwatchers/method_updatetags.go | 57 + .../networkwatchers/method_verifyipflow.go | 75 + .../model_applicationsecuritygroup.go | 14 + ...pplicationsecuritygrouppropertiesformat.go | 9 + .../model_availableproviderslist.go | 8 + .../model_availableproviderslistcity.go | 9 + .../model_availableproviderslistcountry.go | 10 + .../model_availableproviderslistparameters.go | 11 + .../model_availableprovidersliststate.go | 10 + .../model_azurereachabilityreport.go | 10 + .../model_azurereachabilityreportitem.go | 10 + ...odel_azurereachabilityreportlatencyinfo.go | 27 + .../model_azurereachabilityreportlocation.go | 10 + ...model_azurereachabilityreportparameters.go | 36 + .../model_connectivitydestination.go | 10 + .../networkwatchers/model_connectivityhop.go | 16 + .../model_connectivityinformation.go | 14 + .../model_connectivityissue.go | 11 + .../model_connectivityparameters.go | 12 + .../model_connectivitysource.go | 9 + .../model_effectivenetworksecurityrule.go | 22 + .../model_evaluatednetworksecuritygroup.go | 11 + .../model_flowlogformatparameters.go | 9 + .../model_flowloginformation.go | 15 + .../model_flowlogproperties.go | 12 + .../model_flowlogstatusparameters.go | 8 + .../networkwatchers/model_hoplink.go | 13 + .../model_hoplinkproperties.go | 10 + .../model_httpconfiguration.go | 10 + .../networkwatchers/model_httpheader.go | 9 + .../networkwatchers/model_matchedrule.go | 9 + ...etworkconfigurationdiagnosticparameters.go | 10 + ...l_networkconfigurationdiagnosticprofile.go | 12 + ..._networkconfigurationdiagnosticresponse.go | 8 + ...el_networkconfigurationdiagnosticresult.go | 9 + .../model_networkinterfaceassociation.go | 9 + .../model_networksecuritygroupresult.go | 9 + ...el_networksecurityrulesevaluationresult.go | 13 + .../networkwatchers/model_networkwatcher.go | 14 + .../model_networkwatcherlistresult.go | 8 + .../model_networkwatcherpropertiesformat.go | 8 + .../model_nexthopparameters.go | 11 + .../networkwatchers/model_nexthopresult.go | 10 + .../model_protocolconfiguration.go | 8 + .../model_querytroubleshootingparameters.go | 8 + .../model_retentionpolicyparameters.go | 9 + .../model_securitygroupnetworkinterface.go | 9 + .../model_securitygroupviewparameters.go | 8 + .../model_securitygroupviewresult.go | 8 + .../networkwatchers/model_securityrule.go | 12 + .../model_securityruleassociations.go | 11 + .../model_securityrulepropertiesformat.go | 23 + .../model_subnetassociation.go | 9 + .../networkwatchers/model_subresource.go | 8 + .../networkwatchers/model_tagsobject.go | 8 + .../networkwatchers/model_topology.go | 41 + .../model_topologyassociation.go | 10 + .../model_topologyparameters.go | 10 + .../networkwatchers/model_topologyresource.go | 11 + ...trafficanalyticsconfigurationproperties.go | 12 + .../model_trafficanalyticsproperties.go | 8 + .../model_troubleshootingdetails.go | 12 + .../model_troubleshootingparameters.go | 9 + .../model_troubleshootingproperties.go | 9 + ...model_troubleshootingrecommendedactions.go | 11 + .../model_troubleshootingresult.go | 41 + .../model_verificationipflowparameters.go | 15 + .../model_verificationipflowresult.go | 9 + .../2024-03-01/networkwatchers/version.go | 10 + .../p2svpngateways/README.md | 6 +- .../p2svpngateways/client.go | 0 .../p2svpngateways/constants.go | 0 .../method_disconnectp2svpnconnections.go | 0 .../method_generatevpnprofile.go | 0 .../method_getp2svpnconnectionhealth.go | 0 ...ethod_getp2svpnconnectionhealthdetailed.go | 0 .../p2svpngateways/method_reset.go | 0 .../p2svpngateways/method_updatetags.go | 0 .../p2svpngateways/model_addressspace.go | 0 .../model_p2sconnectionconfiguration.go | 0 ...el_p2sconnectionconfigurationproperties.go | 0 .../model_p2svpnconnectionhealth.go | 0 .../model_p2svpnconnectionhealthrequest.go | 0 .../model_p2svpnconnectionrequest.go | 0 .../p2svpngateways/model_p2svpngateway.go | 0 .../model_p2svpngatewayproperties.go | 0 .../model_p2svpnprofileparameters.go | 0 .../model_propagatedroutetable.go | 0 .../model_routingconfiguration.go | 0 .../p2svpngateways/model_staticroute.go | 0 .../model_staticroutesconfig.go | 0 .../p2svpngateways/model_subresource.go | 0 .../p2svpngateways/model_tagsobject.go | 0 .../p2svpngateways/model_vnetroute.go | 0 .../model_vpnclientconnectionhealth.go | 0 .../model_vpnprofileresponse.go | 0 ...model_vpnserverconfigurationpolicygroup.go | 0 ...vpnserverconfigurationpolicygroupmember.go | 0 ...erverconfigurationpolicygroupproperties.go | 0 .../p2svpngateways/version.go | 4 +- .../2024-03-01/packetcaptures/README.md | 105 + .../2024-03-01/packetcaptures/client.go | 26 + .../2024-03-01/packetcaptures/constants.go | 242 ++ .../packetcaptures/id_networkwatcher.go | 130 + .../packetcaptures/id_packetcapture.go | 139 + .../packetcaptures/method_create.go | 74 + .../packetcaptures/method_delete.go | 70 + .../2024-03-01/packetcaptures/method_get.go | 53 + .../packetcaptures/method_getstatus.go | 71 + .../2024-03-01/packetcaptures/method_list.go | 54 + .../2024-03-01/packetcaptures/method_stop.go | 70 + .../packetcaptures/model_packetcapture.go | 8 + .../model_packetcapturefilter.go | 12 + .../model_packetcapturelistresult.go | 8 + .../model_packetcapturemachinescope.go | 9 + .../model_packetcaptureparameters.go | 17 + .../model_packetcapturequerystatusresult.go | 31 + .../model_packetcaptureresult.go | 11 + .../model_packetcaptureresultproperties.go | 18 + .../model_packetcapturesettings.go | 10 + .../model_packetcapturestoragelocation.go | 11 + .../2024-03-01/packetcaptures/version.go | 10 + .../README.md | 6 +- .../client.go | 0 .../constants.go | 0 .../id_peerconnection.go | 0 .../method_get.go | 0 .../method_list.go | 0 ...model_peerexpressroutecircuitconnection.go | 0 ...sroutecircuitconnectionpropertiesformat.go | 0 .../model_subresource.go | 0 .../predicates.go | 0 .../version.go | 4 +- .../2024-03-01/privatednszonegroups/README.md | 82 + .../2024-03-01/privatednszonegroups/client.go | 26 + .../privatednszonegroups/constants.go | 57 + .../id_privatednszonegroup.go | 139 + .../id_privateendpoint.go | 130 + .../method_createorupdate.go | 75 + .../privatednszonegroups/method_delete.go | 71 + .../privatednszonegroups/method_get.go | 53 + .../privatednszonegroups/method_list.go | 105 + .../model_privatednszoneconfig.go | 9 + .../model_privatednszonegroup.go | 11 + ...del_privatednszonegrouppropertiesformat.go | 9 + .../model_privatednszonepropertiesformat.go | 9 + .../privatednszonegroups/model_recordset.go | 13 + .../privatednszonegroups/predicates.go | 27 + .../privatednszonegroups/version.go | 10 + .../2024-03-01/privateendpoints/README.md | 134 + .../2024-03-01/privateendpoints/client.go | 26 + .../2024-03-01/privateendpoints/constants.go | 1198 +++++++ .../privateendpoints/id_location.go | 121 + .../privateendpoints/id_privateendpoint.go | 130 + .../privateendpoints/id_providerlocation.go | 130 + ...ethod_availableprivateendpointtypeslist.go | 105 + ...privateendpointtypeslistbyresourcegroup.go | 105 + .../privateendpoints/method_createorupdate.go | 75 + .../privateendpoints/method_delete.go | 71 + .../2024-03-01/privateendpoints/method_get.go | 83 + .../privateendpoints/method_list.go | 106 + .../method_listbysubscription.go | 106 + .../model_applicationgatewaybackendaddress.go | 9 + ...el_applicationgatewaybackendaddresspool.go | 12 + ...tewaybackendaddresspoolpropertiesformat.go | 10 + ...model_applicationgatewayipconfiguration.go | 12 + ...ngatewayipconfigurationpropertiesformat.go | 9 + .../model_applicationsecuritygroup.go | 14 + ...pplicationsecuritygrouppropertiesformat.go | 9 + .../model_availableprivateendpointtype.go | 12 + .../model_backendaddresspool.go | 12 + ...odel_backendaddresspoolpropertiesformat.go | 19 + .../model_customdnsconfigpropertiesformat.go | 9 + .../privateendpoints/model_ddossettings.go | 9 + .../privateendpoints/model_delegation.go | 12 + .../privateendpoints/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 9 + .../model_flowlogpropertiesformat.go | 16 + .../model_frontendipconfiguration.go | 17 + ...frontendipconfigurationpropertiesformat.go | 19 + ...odel_gatewayloadbalancertunnelinterface.go | 11 + .../privateendpoints/model_inboundnatrule.go | 12 + .../model_inboundnatrulepropertiesformat.go | 19 + .../privateendpoints/model_ipconfiguration.go | 11 + .../model_ipconfigurationprofile.go | 12 + ..._ipconfigurationprofilepropertiesformat.go | 9 + .../model_ipconfigurationpropertiesformat.go | 12 + .../privateendpoints/model_iptag.go | 9 + .../model_loadbalancerbackendaddress.go | 9 + ...dbalancerbackendaddresspropertiesformat.go | 14 + .../privateendpoints/model_natgateway.go | 20 + .../model_natgatewaypropertiesformat.go | 13 + .../privateendpoints/model_natgatewaysku.go | 8 + .../model_natruleportmapping.go | 10 + .../model_networkinterface.go | 19 + .../model_networkinterfacednssettings.go | 12 + .../model_networkinterfaceipconfiguration.go | 12 + ...gurationprivatelinkconnectionproperties.go | 10 + ...nterfaceipconfigurationpropertiesformat.go | 22 + .../model_networkinterfacepropertiesformat.go | 29 + .../model_networkinterfacetapconfiguration.go | 12 + ...terfacetapconfigurationpropertiesformat.go | 9 + .../model_networksecuritygroup.go | 14 + ...el_networksecuritygrouppropertiesformat.go | 15 + .../privateendpoints/model_privateendpoint.go | 19 + .../model_privateendpointconnection.go | 12 + ...del_privateendpointconnectionproperties.go | 12 + .../model_privateendpointipconfiguration.go | 11 + ...rivateendpointipconfigurationproperties.go | 10 + .../model_privateendpointproperties.go | 16 + .../model_privatelinkservice.go | 19 + .../model_privatelinkserviceconnection.go | 12 + ..._privatelinkserviceconnectionproperties.go | 12 + ...model_privatelinkserviceconnectionstate.go | 10 + ...model_privatelinkserviceipconfiguration.go | 12 + ...atelinkserviceipconfigurationproperties.go | 13 + .../model_privatelinkserviceproperties.go | 18 + .../privateendpoints/model_publicipaddress.go | 22 + .../model_publicipaddressdnssettings.go | 11 + .../model_publicipaddresspropertiesformat.go | 23 + .../model_publicipaddresssku.go | 9 + .../model_resourcenavigationlink.go | 12 + .../model_resourcenavigationlinkformat.go | 10 + .../privateendpoints/model_resourceset.go | 8 + .../model_retentionpolicyparameters.go | 9 + .../privateendpoints/model_route.go | 12 + .../model_routepropertiesformat.go | 12 + .../privateendpoints/model_routetable.go | 14 + .../model_routetablepropertiesformat.go | 12 + .../privateendpoints/model_securityrule.go | 12 + .../model_securityrulepropertiesformat.go | 23 + .../model_serviceassociationlink.go | 12 + ..._serviceassociationlinkpropertiesformat.go | 12 + ...model_servicedelegationpropertiesformat.go | 10 + .../model_serviceendpointpolicy.go | 15 + .../model_serviceendpointpolicydefinition.go | 12 + ...ndpointpolicydefinitionpropertiesformat.go | 11 + ...l_serviceendpointpolicypropertiesformat.go | 13 + .../model_serviceendpointpropertiesformat.go | 11 + .../privateendpoints/model_subnet.go | 12 + .../model_subnetpropertiesformat.go | 28 + .../privateendpoints/model_subresource.go | 8 + ...trafficanalyticsconfigurationproperties.go | 12 + .../model_trafficanalyticsproperties.go | 8 + .../model_virtualnetworktap.go | 14 + ...model_virtualnetworktappropertiesformat.go | 13 + .../2024-03-01/privateendpoints/predicates.go | 70 + .../2024-03-01/privateendpoints/version.go | 10 + .../2024-03-01/privatelinkservices/README.md | 234 ++ .../2024-03-01/privatelinkservices/client.go | 26 + .../privatelinkservices/constants.go | 1198 +++++++ .../privatelinkservices/id_location.go | 121 + .../id_privateendpointconnection.go | 139 + .../id_privatelinkservice.go | 130 + .../id_providerlocation.go | 130 + ...ethod_checkprivatelinkservicevisibility.go | 75 + ...atelinkservicevisibilitybyresourcegroup.go | 75 + .../method_createorupdate.go | 75 + .../privatelinkservices/method_delete.go | 71 + .../method_deleteprivateendpointconnection.go | 71 + .../privatelinkservices/method_get.go | 83 + .../method_getprivateendpointconnection.go | 83 + .../privatelinkservices/method_list.go | 106 + ...hod_listautoapprovedprivatelinkservices.go | 105 + ...rovedprivatelinkservicesbyresourcegroup.go | 105 + .../method_listbysubscription.go | 106 + .../method_listprivateendpointconnections.go | 105 + .../method_updateprivateendpointconnection.go | 57 + .../model_applicationgatewaybackendaddress.go | 9 + ...el_applicationgatewaybackendaddresspool.go | 12 + ...tewaybackendaddresspoolpropertiesformat.go | 10 + ...model_applicationgatewayipconfiguration.go | 12 + ...ngatewayipconfigurationpropertiesformat.go | 9 + .../model_applicationsecuritygroup.go | 14 + ...pplicationsecuritygrouppropertiesformat.go | 9 + .../model_autoapprovedprivatelinkservice.go | 8 + .../model_backendaddresspool.go | 12 + ...odel_backendaddresspoolpropertiesformat.go | 19 + ...heckprivatelinkservicevisibilityrequest.go | 8 + .../model_customdnsconfigpropertiesformat.go | 9 + .../privatelinkservices/model_ddossettings.go | 9 + .../privatelinkservices/model_delegation.go | 12 + .../privatelinkservices/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 9 + .../model_flowlogpropertiesformat.go | 16 + .../model_frontendipconfiguration.go | 17 + ...frontendipconfigurationpropertiesformat.go | 19 + ...odel_gatewayloadbalancertunnelinterface.go | 11 + .../model_inboundnatrule.go | 12 + .../model_inboundnatrulepropertiesformat.go | 19 + .../model_ipconfiguration.go | 11 + .../model_ipconfigurationprofile.go | 12 + ..._ipconfigurationprofilepropertiesformat.go | 9 + .../model_ipconfigurationpropertiesformat.go | 12 + .../privatelinkservices/model_iptag.go | 9 + .../model_loadbalancerbackendaddress.go | 9 + ...dbalancerbackendaddresspropertiesformat.go | 14 + .../privatelinkservices/model_natgateway.go | 20 + .../model_natgatewaypropertiesformat.go | 13 + .../model_natgatewaysku.go | 8 + .../model_natruleportmapping.go | 10 + .../model_networkinterface.go | 19 + .../model_networkinterfacednssettings.go | 12 + .../model_networkinterfaceipconfiguration.go | 12 + ...gurationprivatelinkconnectionproperties.go | 10 + ...nterfaceipconfigurationpropertiesformat.go | 22 + .../model_networkinterfacepropertiesformat.go | 29 + .../model_networkinterfacetapconfiguration.go | 12 + ...terfacetapconfigurationpropertiesformat.go | 9 + .../model_networksecuritygroup.go | 14 + ...el_networksecuritygrouppropertiesformat.go | 15 + .../model_privateendpoint.go | 19 + .../model_privateendpointconnection.go | 12 + ...del_privateendpointconnectionproperties.go | 12 + .../model_privateendpointipconfiguration.go | 11 + ...rivateendpointipconfigurationproperties.go | 10 + .../model_privateendpointproperties.go | 16 + .../model_privatelinkservice.go | 19 + .../model_privatelinkserviceconnection.go | 12 + ..._privatelinkserviceconnectionproperties.go | 12 + ...model_privatelinkserviceconnectionstate.go | 10 + ...model_privatelinkserviceipconfiguration.go | 12 + ...atelinkserviceipconfigurationproperties.go | 13 + .../model_privatelinkserviceproperties.go | 18 + .../model_privatelinkservicevisibility.go | 8 + .../model_publicipaddress.go | 22 + .../model_publicipaddressdnssettings.go | 11 + .../model_publicipaddresspropertiesformat.go | 23 + .../model_publicipaddresssku.go | 9 + .../model_resourcenavigationlink.go | 12 + .../model_resourcenavigationlinkformat.go | 10 + .../privatelinkservices/model_resourceset.go | 8 + .../model_retentionpolicyparameters.go | 9 + .../privatelinkservices/model_route.go | 12 + .../model_routepropertiesformat.go | 12 + .../privatelinkservices/model_routetable.go | 14 + .../model_routetablepropertiesformat.go | 12 + .../privatelinkservices/model_securityrule.go | 12 + .../model_securityrulepropertiesformat.go | 23 + .../model_serviceassociationlink.go | 12 + ..._serviceassociationlinkpropertiesformat.go | 12 + ...model_servicedelegationpropertiesformat.go | 10 + .../model_serviceendpointpolicy.go | 15 + .../model_serviceendpointpolicydefinition.go | 12 + ...ndpointpolicydefinitionpropertiesformat.go | 11 + ...l_serviceendpointpolicypropertiesformat.go | 13 + .../model_serviceendpointpropertiesformat.go | 11 + .../privatelinkservices/model_subnet.go | 12 + .../model_subnetpropertiesformat.go | 28 + .../privatelinkservices/model_subresource.go | 8 + ...trafficanalyticsconfigurationproperties.go | 12 + .../model_trafficanalyticsproperties.go | 8 + .../model_virtualnetworktap.go | 14 + ...model_virtualnetworktappropertiesformat.go | 13 + .../privatelinkservices/predicates.go | 78 + .../2024-03-01/privatelinkservices/version.go | 10 + .../2024-03-01/publicipaddresses/README.md | 133 + .../2024-03-01/publicipaddresses/client.go | 26 + .../2024-03-01/publicipaddresses/constants.go | 1239 +++++++ .../method_createorupdate.go | 76 + .../method_ddosprotectionstatus.go | 72 + .../publicipaddresses/method_delete.go | 72 + .../publicipaddresses/method_get.go | 84 + .../publicipaddresses/method_list.go | 106 + .../publicipaddresses/method_listall.go | 106 + .../publicipaddresses/method_updatetags.go | 58 + .../model_applicationgatewaybackendaddress.go | 9 + ...el_applicationgatewaybackendaddresspool.go | 12 + ...tewaybackendaddresspoolpropertiesformat.go | 10 + ...model_applicationgatewayipconfiguration.go | 12 + ...ngatewayipconfigurationpropertiesformat.go | 9 + .../model_applicationsecuritygroup.go | 14 + ...pplicationsecuritygrouppropertiesformat.go | 9 + .../model_backendaddresspool.go | 12 + ...odel_backendaddresspoolpropertiesformat.go | 19 + .../model_customdnsconfigpropertiesformat.go | 9 + .../publicipaddresses/model_ddossettings.go | 9 + .../publicipaddresses/model_delegation.go | 12 + .../publicipaddresses/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 9 + .../model_flowlogpropertiesformat.go | 16 + .../model_frontendipconfiguration.go | 17 + ...frontendipconfigurationpropertiesformat.go | 19 + ...odel_gatewayloadbalancertunnelinterface.go | 11 + .../publicipaddresses/model_inboundnatrule.go | 12 + .../model_inboundnatrulepropertiesformat.go | 19 + .../model_ipconfiguration.go | 11 + .../model_ipconfigurationprofile.go | 12 + ..._ipconfigurationprofilepropertiesformat.go | 9 + .../model_ipconfigurationpropertiesformat.go | 12 + .../publicipaddresses/model_iptag.go | 9 + .../model_loadbalancerbackendaddress.go | 9 + ...dbalancerbackendaddresspropertiesformat.go | 14 + .../publicipaddresses/model_natgateway.go | 20 + .../model_natgatewaypropertiesformat.go | 13 + .../publicipaddresses/model_natgatewaysku.go | 8 + .../model_natruleportmapping.go | 10 + .../model_networkinterface.go | 19 + .../model_networkinterfacednssettings.go | 12 + .../model_networkinterfaceipconfiguration.go | 12 + ...gurationprivatelinkconnectionproperties.go | 10 + ...nterfaceipconfigurationpropertiesformat.go | 22 + .../model_networkinterfacepropertiesformat.go | 29 + .../model_networkinterfacetapconfiguration.go | 12 + ...terfacetapconfigurationpropertiesformat.go | 9 + .../model_networksecuritygroup.go | 14 + ...el_networksecuritygrouppropertiesformat.go | 15 + .../model_privateendpoint.go | 19 + .../model_privateendpointconnection.go | 12 + ...del_privateendpointconnectionproperties.go | 12 + .../model_privateendpointipconfiguration.go | 11 + ...rivateendpointipconfigurationproperties.go | 10 + .../model_privateendpointproperties.go | 16 + .../model_privatelinkservice.go | 19 + .../model_privatelinkserviceconnection.go | 12 + ..._privatelinkserviceconnectionproperties.go | 12 + ...model_privatelinkserviceconnectionstate.go | 10 + ...model_privatelinkserviceipconfiguration.go | 12 + ...atelinkserviceipconfigurationproperties.go | 13 + .../model_privatelinkserviceproperties.go | 18 + .../model_publicipaddress.go | 22 + .../model_publicipaddressdnssettings.go | 11 + .../model_publicipaddresspropertiesformat.go | 23 + .../model_publicipaddresssku.go | 9 + ...odel_publicipddosprotectionstatusresult.go | 11 + .../model_resourcenavigationlink.go | 12 + .../model_resourcenavigationlinkformat.go | 10 + .../publicipaddresses/model_resourceset.go | 8 + .../model_retentionpolicyparameters.go | 9 + .../publicipaddresses/model_route.go | 12 + .../model_routepropertiesformat.go | 12 + .../publicipaddresses/model_routetable.go | 14 + .../model_routetablepropertiesformat.go | 12 + .../publicipaddresses/model_securityrule.go | 12 + .../model_securityrulepropertiesformat.go | 23 + .../model_serviceassociationlink.go | 12 + ..._serviceassociationlinkpropertiesformat.go | 12 + ...model_servicedelegationpropertiesformat.go | 10 + .../model_serviceendpointpolicy.go | 15 + .../model_serviceendpointpolicydefinition.go | 12 + ...ndpointpolicydefinitionpropertiesformat.go | 11 + ...l_serviceendpointpolicypropertiesformat.go | 13 + .../model_serviceendpointpropertiesformat.go | 11 + .../publicipaddresses/model_subnet.go | 12 + .../model_subnetpropertiesformat.go | 28 + .../publicipaddresses/model_subresource.go | 8 + .../publicipaddresses/model_tagsobject.go | 8 + ...trafficanalyticsconfigurationproperties.go | 12 + .../model_trafficanalyticsproperties.go | 8 + .../model_virtualnetworktap.go | 14 + ...model_virtualnetworktappropertiesformat.go | 13 + .../publicipaddresses/predicates.go | 37 + .../2024-03-01/publicipaddresses/version.go | 10 + .../2024-03-01/publicipprefixes/README.md | 121 + .../2024-03-01/publicipprefixes/client.go | 26 + .../2024-03-01/publicipprefixes/constants.go | 215 ++ .../publicipprefixes/id_publicipprefix.go | 130 + .../publicipprefixes/method_createorupdate.go | 75 + .../publicipprefixes/method_delete.go | 71 + .../2024-03-01/publicipprefixes/method_get.go | 83 + .../publicipprefixes/method_list.go | 106 + .../publicipprefixes/method_listall.go | 106 + .../publicipprefixes/method_updatetags.go | 57 + .../publicipprefixes/model_iptag.go | 9 + .../publicipprefixes/model_natgateway.go | 20 + .../model_natgatewaypropertiesformat.go | 13 + .../publicipprefixes/model_natgatewaysku.go | 8 + .../publicipprefixes/model_publicipprefix.go | 22 + .../model_publicipprefixpropertiesformat.go | 17 + .../model_publicipprefixsku.go | 9 + .../model_referencedpublicipaddress.go | 8 + .../publicipprefixes/model_subresource.go | 8 + .../publicipprefixes/model_tagsobject.go | 8 + .../2024-03-01/publicipprefixes/predicates.go | 37 + .../2024-03-01/publicipprefixes/version.go | 10 + .../routefilterrules/README.md | 6 +- .../routefilterrules/client.go | 0 .../routefilterrules/constants.go | 0 .../routefilterrules/id_routefilter.go | 0 .../routefilterrules/id_routefilterrule.go | 0 .../routefilterrules/method_createorupdate.go | 0 .../routefilterrules/method_delete.go | 0 .../routefilterrules/method_get.go | 0 .../method_listbyroutefilter.go | 0 .../routefilterrules/model_routefilterrule.go | 0 .../model_routefilterrulepropertiesformat.go | 0 .../routefilterrules/predicates.go | 0 .../routefilterrules/version.go | 4 +- .../network/2024-03-01/routefilters/README.md | 121 + .../network/2024-03-01/routefilters/client.go | 26 + .../2024-03-01/routefilters/constants.go | 353 ++ .../2024-03-01/routefilters/id_routefilter.go | 130 + .../routefilters/method_createorupdate.go | 75 + .../2024-03-01/routefilters/method_delete.go | 71 + .../2024-03-01/routefilters/method_get.go | 83 + .../2024-03-01/routefilters/method_list.go | 106 + .../method_listbyresourcegroup.go | 106 + .../routefilters/method_updatetags.go | 57 + .../model_expressroutecircuitconnection.go | 12 + ...sroutecircuitconnectionpropertiesformat.go | 14 + .../model_expressroutecircuitpeering.go | 12 + .../model_expressroutecircuitpeeringconfig.go | 13 + ...ressroutecircuitpeeringpropertiesformat.go | 27 + .../model_expressroutecircuitstats.go | 11 + .../model_expressrouteconnectionid.go | 8 + .../model_ipv6circuitconnectionconfig.go | 9 + ...el_ipv6expressroutecircuitpeeringconfig.go | 12 + ...model_peerexpressroutecircuitconnection.go | 12 + ...sroutecircuitconnectionpropertiesformat.go | 14 + .../routefilters/model_routefilter.go | 14 + .../model_routefilterpropertiesformat.go | 11 + .../routefilters/model_routefilterrule.go | 12 + .../model_routefilterrulepropertiesformat.go | 11 + .../routefilters/model_subresource.go | 8 + .../routefilters/model_tagsobject.go | 8 + .../2024-03-01/routefilters/predicates.go | 37 + .../2024-03-01/routefilters/version.go | 10 + .../network/2024-03-01/routes/README.md | 82 + .../network/2024-03-01/routes/client.go | 26 + .../network/2024-03-01/routes/constants.go | 107 + .../network/2024-03-01/routes/id_route.go | 139 + .../2024-03-01/routes/id_routetable.go | 130 + .../routes/method_createorupdate.go | 75 + .../2024-03-01/routes/method_delete.go | 71 + .../network/2024-03-01/routes/method_get.go | 53 + .../network/2024-03-01/routes/method_list.go | 105 + .../network/2024-03-01/routes/model_route.go | 12 + .../routes/model_routepropertiesformat.go | 12 + .../network/2024-03-01/routes/predicates.go | 32 + .../network/2024-03-01/routes/version.go | 10 + .../network/2024-03-01/routetables/README.md | 121 + .../network/2024-03-01/routetables/client.go | 26 + .../2024-03-01/routetables/constants.go | 1198 +++++++ .../2024-03-01/routetables/id_routetable.go | 130 + .../routetables/method_createorupdate.go | 75 + .../2024-03-01/routetables/method_delete.go | 71 + .../2024-03-01/routetables/method_get.go | 83 + .../2024-03-01/routetables/method_list.go | 106 + .../2024-03-01/routetables/method_listall.go | 106 + .../routetables/method_updatetags.go | 57 + .../model_applicationgatewaybackendaddress.go | 9 + ...el_applicationgatewaybackendaddresspool.go | 12 + ...tewaybackendaddresspoolpropertiesformat.go | 10 + ...model_applicationgatewayipconfiguration.go | 12 + ...ngatewayipconfigurationpropertiesformat.go | 9 + .../model_applicationsecuritygroup.go | 14 + ...pplicationsecuritygrouppropertiesformat.go | 9 + .../routetables/model_backendaddresspool.go | 12 + ...odel_backendaddresspoolpropertiesformat.go | 19 + .../model_customdnsconfigpropertiesformat.go | 9 + .../routetables/model_ddossettings.go | 9 + .../routetables/model_delegation.go | 12 + .../2024-03-01/routetables/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 9 + .../model_flowlogpropertiesformat.go | 16 + .../model_frontendipconfiguration.go | 17 + ...frontendipconfigurationpropertiesformat.go | 19 + ...odel_gatewayloadbalancertunnelinterface.go | 11 + .../routetables/model_inboundnatrule.go | 12 + .../model_inboundnatrulepropertiesformat.go | 19 + .../routetables/model_ipconfiguration.go | 11 + .../model_ipconfigurationprofile.go | 12 + ..._ipconfigurationprofilepropertiesformat.go | 9 + .../model_ipconfigurationpropertiesformat.go | 12 + .../2024-03-01/routetables/model_iptag.go | 9 + .../model_loadbalancerbackendaddress.go | 9 + ...dbalancerbackendaddresspropertiesformat.go | 14 + .../routetables/model_natgateway.go | 20 + .../model_natgatewaypropertiesformat.go | 13 + .../routetables/model_natgatewaysku.go | 8 + .../routetables/model_natruleportmapping.go | 10 + .../routetables/model_networkinterface.go | 19 + .../model_networkinterfacednssettings.go | 12 + .../model_networkinterfaceipconfiguration.go | 12 + ...gurationprivatelinkconnectionproperties.go | 10 + ...nterfaceipconfigurationpropertiesformat.go | 22 + .../model_networkinterfacepropertiesformat.go | 29 + .../model_networkinterfacetapconfiguration.go | 12 + ...terfacetapconfigurationpropertiesformat.go | 9 + .../routetables/model_networksecuritygroup.go | 14 + ...el_networksecuritygrouppropertiesformat.go | 15 + .../routetables/model_privateendpoint.go | 19 + .../model_privateendpointconnection.go | 12 + ...del_privateendpointconnectionproperties.go | 12 + .../model_privateendpointipconfiguration.go | 11 + ...rivateendpointipconfigurationproperties.go | 10 + .../model_privateendpointproperties.go | 16 + .../routetables/model_privatelinkservice.go | 19 + .../model_privatelinkserviceconnection.go | 12 + ..._privatelinkserviceconnectionproperties.go | 12 + ...model_privatelinkserviceconnectionstate.go | 10 + ...model_privatelinkserviceipconfiguration.go | 12 + ...atelinkserviceipconfigurationproperties.go | 13 + .../model_privatelinkserviceproperties.go | 18 + .../routetables/model_publicipaddress.go | 22 + .../model_publicipaddressdnssettings.go | 11 + .../model_publicipaddresspropertiesformat.go | 23 + .../routetables/model_publicipaddresssku.go | 9 + .../model_resourcenavigationlink.go | 12 + .../model_resourcenavigationlinkformat.go | 10 + .../routetables/model_resourceset.go | 8 + .../model_retentionpolicyparameters.go | 9 + .../2024-03-01/routetables/model_route.go | 12 + .../model_routepropertiesformat.go | 12 + .../routetables/model_routetable.go | 14 + .../model_routetablepropertiesformat.go | 12 + .../routetables/model_securityrule.go | 12 + .../model_securityrulepropertiesformat.go | 23 + .../model_serviceassociationlink.go | 12 + ..._serviceassociationlinkpropertiesformat.go | 12 + ...model_servicedelegationpropertiesformat.go | 10 + .../model_serviceendpointpolicy.go | 15 + .../model_serviceendpointpolicydefinition.go | 12 + ...ndpointpolicydefinitionpropertiesformat.go | 11 + ...l_serviceendpointpolicypropertiesformat.go | 13 + .../model_serviceendpointpropertiesformat.go | 11 + .../2024-03-01/routetables/model_subnet.go | 12 + .../model_subnetpropertiesformat.go | 28 + .../routetables/model_subresource.go | 8 + .../routetables/model_tagsobject.go | 8 + ...trafficanalyticsconfigurationproperties.go | 12 + .../model_trafficanalyticsproperties.go | 8 + .../routetables/model_virtualnetworktap.go | 14 + ...model_virtualnetworktappropertiesformat.go | 13 + .../2024-03-01/routetables/predicates.go | 37 + .../network/2024-03-01/routetables/version.go | 10 + .../routingrulecollections/README.md | 86 + .../routingrulecollections/client.go | 26 + .../routingrulecollections/constants.go | 98 + .../id_routingconfiguration.go | 139 + .../id_rulecollection.go | 148 + .../method_createorupdate.go | 58 + .../routingrulecollections/method_delete.go | 100 + .../routingrulecollections/method_get.go | 53 + .../routingrulecollections/method_list.go | 134 + .../model_networkmanagerroutinggroupitem.go | 8 + .../model_routingrulecollection.go | 17 + ...l_routingrulecollectionpropertiesformat.go | 12 + .../routingrulecollections/predicates.go | 32 + .../routingrulecollections/version.go | 10 + .../network/2024-03-01/routingrules/README.md | 86 + .../network/2024-03-01/routingrules/client.go | 26 + .../2024-03-01/routingrules/constants.go | 148 + .../2024-03-01/routingrules/id_rule.go | 157 + .../routingrules/id_rulecollection.go | 148 + .../routingrules/method_createorupdate.go | 58 + .../2024-03-01/routingrules/method_delete.go | 100 + .../2024-03-01/routingrules/method_get.go | 53 + .../2024-03-01/routingrules/method_list.go | 105 + .../routingrules/model_routingrule.go | 17 + .../routingrules/model_routingrulenexthop.go | 9 + .../model_routingrulepropertiesformat.go | 12 + .../model_routingruleroutedestination.go | 9 + .../2024-03-01/routingrules/predicates.go | 32 + .../2024-03-01/routingrules/version.go | 10 + .../2024-03-01/scopeconnections/README.md | 90 + .../2024-03-01/scopeconnections/client.go | 26 + .../2024-03-01/scopeconnections/constants.go | 60 + .../scopeconnections/id_networkmanager.go | 130 + .../scopeconnections/id_scopeconnection.go | 139 + .../scopeconnections/method_createorupdate.go | 58 + .../scopeconnections/method_delete.go | 47 + .../2024-03-01/scopeconnections/method_get.go | 53 + .../scopeconnections/method_list.go | 134 + .../scopeconnections/model_scopeconnection.go | 17 + .../model_scopeconnectionproperties.go | 11 + .../2024-03-01/scopeconnections/predicates.go | 32 + .../2024-03-01/scopeconnections/version.go | 10 + .../securityadminconfigurations/README.md | 86 + .../securityadminconfigurations/client.go | 26 + .../securityadminconfigurations/constants.go | 101 + .../id_networkmanager.go | 130 + .../id_securityadminconfiguration.go | 139 + .../method_createorupdate.go | 58 + .../method_delete.go | 100 + .../securityadminconfigurations/method_get.go | 53 + .../method_list.go | 134 + .../model_securityadminconfiguration.go | 17 + ...urityadminconfigurationpropertiesformat.go | 11 + .../securityadminconfigurations/predicates.go | 32 + .../securityadminconfigurations/version.go | 10 + .../securitypartnerproviders/README.md | 121 + .../securitypartnerproviders/client.go | 26 + .../securitypartnerproviders/constants.go | 148 + .../id_securitypartnerprovider.go | 130 + .../method_createorupdate.go | 75 + .../securitypartnerproviders/method_delete.go | 71 + .../securitypartnerproviders/method_get.go | 53 + .../securitypartnerproviders/method_list.go | 106 + .../method_listbyresourcegroup.go | 106 + .../method_updatetags.go | 57 + .../model_securitypartnerprovider.go | 14 + ...securitypartnerproviderpropertiesformat.go | 11 + .../model_subresource.go | 8 + .../model_tagsobject.go | 8 + .../securitypartnerproviders/predicates.go | 37 + .../securitypartnerproviders/version.go | 10 + .../2024-03-01/securityrules/README.md | 115 + .../2024-03-01/securityrules/client.go | 26 + .../2024-03-01/securityrules/constants.go | 192 + .../securityrules/id_defaultsecurityrule.go | 139 + .../securityrules/id_networksecuritygroup.go | 130 + .../securityrules/id_securityrule.go | 139 + .../securityrules/method_createorupdate.go | 75 + .../method_defaultsecurityrulesget.go | 53 + .../method_defaultsecurityruleslist.go | 105 + .../2024-03-01/securityrules/method_delete.go | 71 + .../2024-03-01/securityrules/method_get.go | 53 + .../2024-03-01/securityrules/method_list.go | 105 + .../model_applicationsecuritygroup.go | 14 + ...pplicationsecuritygrouppropertiesformat.go | 9 + .../securityrules/model_securityrule.go | 12 + .../model_securityrulepropertiesformat.go | 23 + .../2024-03-01/securityrules/predicates.go | 32 + .../2024-03-01/securityrules/version.go | 10 + .../securityuserconfigurations/README.md | 86 + .../securityuserconfigurations/client.go | 26 + .../securityuserconfigurations/constants.go | 57 + .../id_networkmanager.go | 130 + .../id_securityuserconfiguration.go | 139 + .../method_createorupdate.go | 58 + .../method_delete.go | 100 + .../securityuserconfigurations/method_get.go | 53 + .../securityuserconfigurations/method_list.go | 134 + .../model_securityuserconfiguration.go | 17 + ...curityuserconfigurationpropertiesformat.go | 10 + .../securityuserconfigurations/predicates.go | 32 + .../securityuserconfigurations/version.go | 10 + .../securityuserrulecollections/README.md | 86 + .../securityuserrulecollections/client.go | 26 + .../securityuserrulecollections/constants.go | 57 + .../id_securityuserconfiguration.go | 139 + ...securityuserconfigurationrulecollection.go | 148 + .../method_createorupdate.go | 58 + .../method_delete.go | 100 + .../securityuserrulecollections/method_get.go | 53 + .../method_list.go | 134 + .../model_securityusergroupitem.go | 8 + .../model_securityuserrulecollection.go | 17 + ...urityuserrulecollectionpropertiesformat.go | 11 + .../securityuserrulecollections/predicates.go | 32 + .../securityuserrulecollections/version.go | 10 + .../2024-03-01/securityuserrules/README.md | 86 + .../2024-03-01/securityuserrules/client.go | 26 + .../2024-03-01/securityuserrules/constants.go | 192 + .../id_rulecollectionrule.go | 157 + ...securityuserconfigurationrulecollection.go | 148 + .../method_createorupdate.go | 58 + .../securityuserrules/method_delete.go | 100 + .../securityuserrules/method_get.go | 53 + .../securityuserrules/method_list.go | 105 + .../model_addressprefixitem.go | 9 + .../model_securityuserrule.go | 17 + .../model_securityuserrulepropertiesformat.go | 16 + .../securityuserrules/predicates.go | 32 + .../2024-03-01/securityuserrules/version.go | 10 + .../serviceendpointpolicies/README.md | 121 + .../serviceendpointpolicies/client.go | 26 + .../serviceendpointpolicies/constants.go | 1198 +++++++ .../id_serviceendpointpolicy.go | 130 + .../method_createorupdate.go | 75 + .../serviceendpointpolicies/method_delete.go | 71 + .../serviceendpointpolicies/method_get.go | 83 + .../serviceendpointpolicies/method_list.go | 106 + .../method_listbyresourcegroup.go | 106 + .../method_updatetags.go | 57 + .../model_applicationgatewaybackendaddress.go | 9 + ...el_applicationgatewaybackendaddresspool.go | 12 + ...tewaybackendaddresspoolpropertiesformat.go | 10 + ...model_applicationgatewayipconfiguration.go | 12 + ...ngatewayipconfigurationpropertiesformat.go | 9 + .../model_applicationsecuritygroup.go | 14 + ...pplicationsecuritygrouppropertiesformat.go | 9 + .../model_backendaddresspool.go | 12 + ...odel_backendaddresspoolpropertiesformat.go | 19 + .../model_customdnsconfigpropertiesformat.go | 9 + .../model_ddossettings.go | 9 + .../model_delegation.go | 12 + .../serviceendpointpolicies/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 9 + .../model_flowlogpropertiesformat.go | 16 + .../model_frontendipconfiguration.go | 17 + ...frontendipconfigurationpropertiesformat.go | 19 + ...odel_gatewayloadbalancertunnelinterface.go | 11 + .../model_inboundnatrule.go | 12 + .../model_inboundnatrulepropertiesformat.go | 19 + .../model_ipconfiguration.go | 11 + .../model_ipconfigurationprofile.go | 12 + ..._ipconfigurationprofilepropertiesformat.go | 9 + .../model_ipconfigurationpropertiesformat.go | 12 + .../serviceendpointpolicies/model_iptag.go | 9 + .../model_loadbalancerbackendaddress.go | 9 + ...dbalancerbackendaddresspropertiesformat.go | 14 + .../model_natgateway.go | 20 + .../model_natgatewaypropertiesformat.go | 13 + .../model_natgatewaysku.go | 8 + .../model_natruleportmapping.go | 10 + .../model_networkinterface.go | 19 + .../model_networkinterfacednssettings.go | 12 + .../model_networkinterfaceipconfiguration.go | 12 + ...gurationprivatelinkconnectionproperties.go | 10 + ...nterfaceipconfigurationpropertiesformat.go | 22 + .../model_networkinterfacepropertiesformat.go | 29 + .../model_networkinterfacetapconfiguration.go | 12 + ...terfacetapconfigurationpropertiesformat.go | 9 + .../model_networksecuritygroup.go | 14 + ...el_networksecuritygrouppropertiesformat.go | 15 + .../model_privateendpoint.go | 19 + .../model_privateendpointconnection.go | 12 + ...del_privateendpointconnectionproperties.go | 12 + .../model_privateendpointipconfiguration.go | 11 + ...rivateendpointipconfigurationproperties.go | 10 + .../model_privateendpointproperties.go | 16 + .../model_privatelinkservice.go | 19 + .../model_privatelinkserviceconnection.go | 12 + ..._privatelinkserviceconnectionproperties.go | 12 + ...model_privatelinkserviceconnectionstate.go | 10 + ...model_privatelinkserviceipconfiguration.go | 12 + ...atelinkserviceipconfigurationproperties.go | 13 + .../model_privatelinkserviceproperties.go | 18 + .../model_publicipaddress.go | 22 + .../model_publicipaddressdnssettings.go | 11 + .../model_publicipaddresspropertiesformat.go | 23 + .../model_publicipaddresssku.go | 9 + .../model_resourcenavigationlink.go | 12 + .../model_resourcenavigationlinkformat.go | 10 + .../model_resourceset.go | 8 + .../model_retentionpolicyparameters.go | 9 + .../serviceendpointpolicies/model_route.go | 12 + .../model_routepropertiesformat.go | 12 + .../model_routetable.go | 14 + .../model_routetablepropertiesformat.go | 12 + .../model_securityrule.go | 12 + .../model_securityrulepropertiesformat.go | 23 + .../model_serviceassociationlink.go | 12 + ..._serviceassociationlinkpropertiesformat.go | 12 + ...model_servicedelegationpropertiesformat.go | 10 + .../model_serviceendpointpolicy.go | 15 + .../model_serviceendpointpolicydefinition.go | 12 + ...ndpointpolicydefinitionpropertiesformat.go | 11 + ...l_serviceendpointpolicypropertiesformat.go | 13 + .../model_serviceendpointpropertiesformat.go | 11 + .../serviceendpointpolicies/model_subnet.go | 12 + .../model_subnetpropertiesformat.go | 28 + .../model_subresource.go | 8 + .../model_tagsobject.go | 8 + ...trafficanalyticsconfigurationproperties.go | 12 + .../model_trafficanalyticsproperties.go | 8 + .../model_virtualnetworktap.go | 14 + ...model_virtualnetworktappropertiesformat.go | 13 + .../serviceendpointpolicies/predicates.go | 42 + .../serviceendpointpolicies/version.go | 10 + .../README.md | 6 +- .../client.go | 0 .../constants.go | 0 .../id_serviceendpointpolicy.go | 0 .../id_serviceendpointpolicydefinition.go | 0 .../method_createorupdate.go | 0 .../method_delete.go | 0 .../method_get.go | 0 .../method_listbyresourcegroup.go | 0 .../model_serviceendpointpolicydefinition.go | 0 ...ndpointpolicydefinitionpropertiesformat.go | 0 .../predicates.go | 0 .../version.go | 4 +- .../network/2024-03-01/servicetags/README.md | 53 + .../network/2024-03-01/servicetags/client.go | 26 + .../2024-03-01/servicetags/id_location.go | 121 + .../method_servicetaginformationlist.go | 138 + .../servicetags/method_servicetagslist.go | 54 + .../model_servicetaginformation.go | 11 + ...l_servicetaginformationpropertiesformat.go | 12 + .../model_servicetagslistresult.go | 14 + .../2024-03-01/servicetags/predicates.go | 27 + .../network/2024-03-01/servicetags/version.go | 10 + .../2024-03-01/staticmembers/README.md | 90 + .../2024-03-01/staticmembers/client.go | 26 + .../2024-03-01/staticmembers/constants.go | 57 + .../staticmembers/id_networkgroup.go | 139 + .../staticmembers/id_staticmember.go | 148 + .../staticmembers/method_createorupdate.go | 58 + .../2024-03-01/staticmembers/method_delete.go | 47 + .../2024-03-01/staticmembers/method_get.go | 53 + .../2024-03-01/staticmembers/method_list.go | 134 + .../staticmembers/model_staticmember.go | 17 + .../model_staticmemberproperties.go | 10 + .../2024-03-01/staticmembers/predicates.go | 32 + .../2024-03-01/staticmembers/version.go | 10 + .../network/2024-03-01/subnets/README.md | 83 + .../network/2024-03-01/subnets/client.go | 26 + .../network/2024-03-01/subnets/constants.go | 1198 +++++++ .../subnets/method_createorupdate.go | 76 + .../2024-03-01/subnets/method_delete.go | 72 + .../network/2024-03-01/subnets/method_get.go | 84 + .../network/2024-03-01/subnets/method_list.go | 106 + .../model_applicationgatewaybackendaddress.go | 9 + ...el_applicationgatewaybackendaddresspool.go | 12 + ...tewaybackendaddresspoolpropertiesformat.go | 10 + ...model_applicationgatewayipconfiguration.go | 12 + ...ngatewayipconfigurationpropertiesformat.go | 9 + .../subnets/model_applicationsecuritygroup.go | 14 + ...pplicationsecuritygrouppropertiesformat.go | 9 + .../subnets/model_backendaddresspool.go | 12 + ...odel_backendaddresspoolpropertiesformat.go | 19 + .../model_customdnsconfigpropertiesformat.go | 9 + .../2024-03-01/subnets/model_ddossettings.go | 9 + .../2024-03-01/subnets/model_delegation.go | 12 + .../2024-03-01/subnets/model_flowlog.go | 19 + .../subnets/model_flowlogformatparameters.go | 9 + .../subnets/model_flowlogpropertiesformat.go | 16 + .../subnets/model_frontendipconfiguration.go | 17 + ...frontendipconfigurationpropertiesformat.go | 19 + ...odel_gatewayloadbalancertunnelinterface.go | 11 + .../subnets/model_inboundnatrule.go | 12 + .../model_inboundnatrulepropertiesformat.go | 19 + .../subnets/model_ipconfiguration.go | 11 + .../subnets/model_ipconfigurationprofile.go | 12 + ..._ipconfigurationprofilepropertiesformat.go | 9 + .../model_ipconfigurationpropertiesformat.go | 12 + .../network/2024-03-01/subnets/model_iptag.go | 9 + .../model_loadbalancerbackendaddress.go | 9 + ...dbalancerbackendaddresspropertiesformat.go | 14 + .../2024-03-01/subnets/model_natgateway.go | 20 + .../model_natgatewaypropertiesformat.go | 13 + .../2024-03-01/subnets/model_natgatewaysku.go | 8 + .../subnets/model_natruleportmapping.go | 10 + .../subnets/model_networkinterface.go | 19 + .../model_networkinterfacednssettings.go | 12 + .../model_networkinterfaceipconfiguration.go | 12 + ...gurationprivatelinkconnectionproperties.go | 10 + ...nterfaceipconfigurationpropertiesformat.go | 22 + .../model_networkinterfacepropertiesformat.go | 29 + .../model_networkinterfacetapconfiguration.go | 12 + ...terfacetapconfigurationpropertiesformat.go | 9 + .../subnets/model_networksecuritygroup.go | 14 + ...el_networksecuritygrouppropertiesformat.go | 15 + .../subnets/model_privateendpoint.go | 19 + .../model_privateendpointconnection.go | 12 + ...del_privateendpointconnectionproperties.go | 12 + .../model_privateendpointipconfiguration.go | 11 + ...rivateendpointipconfigurationproperties.go | 10 + .../model_privateendpointproperties.go | 16 + .../subnets/model_privatelinkservice.go | 19 + .../model_privatelinkserviceconnection.go | 12 + ..._privatelinkserviceconnectionproperties.go | 12 + ...model_privatelinkserviceconnectionstate.go | 10 + ...model_privatelinkserviceipconfiguration.go | 12 + ...atelinkserviceipconfigurationproperties.go | 13 + .../model_privatelinkserviceproperties.go | 18 + .../subnets/model_publicipaddress.go | 22 + .../model_publicipaddressdnssettings.go | 11 + .../model_publicipaddresspropertiesformat.go | 23 + .../subnets/model_publicipaddresssku.go | 9 + .../subnets/model_resourcenavigationlink.go | 12 + .../model_resourcenavigationlinkformat.go | 10 + .../2024-03-01/subnets/model_resourceset.go | 8 + .../model_retentionpolicyparameters.go | 9 + .../network/2024-03-01/subnets/model_route.go | 12 + .../subnets/model_routepropertiesformat.go | 12 + .../2024-03-01/subnets/model_routetable.go | 14 + .../model_routetablepropertiesformat.go | 12 + .../2024-03-01/subnets/model_securityrule.go | 12 + .../model_securityrulepropertiesformat.go | 23 + .../subnets/model_serviceassociationlink.go | 12 + ..._serviceassociationlinkpropertiesformat.go | 12 + ...model_servicedelegationpropertiesformat.go | 10 + .../subnets/model_serviceendpointpolicy.go | 15 + .../model_serviceendpointpolicydefinition.go | 12 + ...ndpointpolicydefinitionpropertiesformat.go | 11 + ...l_serviceendpointpolicypropertiesformat.go | 13 + .../model_serviceendpointpropertiesformat.go | 11 + .../2024-03-01/subnets/model_subnet.go | 12 + .../subnets/model_subnetpropertiesformat.go | 28 + .../2024-03-01/subnets/model_subresource.go | 8 + ...trafficanalyticsconfigurationproperties.go | 12 + .../model_trafficanalyticsproperties.go | 8 + .../subnets/model_virtualnetworktap.go | 14 + ...model_virtualnetworktappropertiesformat.go | 13 + .../network/2024-03-01/subnets/predicates.go | 32 + .../network/2024-03-01/subnets/version.go | 10 + .../trafficanalytics/README.md | 6 +- .../trafficanalytics/client.go | 0 .../trafficanalytics/constants.go | 0 .../trafficanalytics/id_networkwatcher.go | 0 .../method_networkwatchersgetflowlogstatus.go | 0 ..._networkwatcherssetflowlogconfiguration.go | 0 .../model_flowlogformatparameters.go | 0 .../model_flowloginformation.go | 15 + .../model_flowlogproperties.go | 12 + .../model_flowlogstatusparameters.go | 0 .../model_retentionpolicyparameters.go | 0 ...trafficanalyticsconfigurationproperties.go | 0 .../model_trafficanalyticsproperties.go | 0 .../trafficanalytics/version.go | 4 +- .../usages/README.md | 6 +- .../usages/client.go | 0 .../usages/constants.go | 0 .../usages/id_location.go | 0 .../usages/method_list.go | 0 .../usages/model_usage.go | 0 .../usages/model_usagename.go | 0 .../usages/predicates.go | 0 .../usages/version.go | 4 +- .../vipswap/README.md | 6 +- .../vipswap/client.go | 0 .../vipswap/constants.go | 0 .../vipswap/id_cloudservice.go | 0 .../vipswap/method_create.go | 0 .../vipswap/method_get.go | 0 .../vipswap/method_list.go | 0 .../vipswap/model_swapresource.go | 0 .../vipswap/model_swapresourcelistresult.go | 0 .../vipswap/model_swapresourceproperties.go | 0 .../vipswap/version.go | 4 +- .../virtualappliancesites/README.md | 6 +- .../virtualappliancesites/client.go | 0 .../virtualappliancesites/constants.go | 0 .../id_networkvirtualappliance.go | 0 .../id_virtualappliancesite.go | 0 .../method_createorupdate.go | 0 .../virtualappliancesites/method_delete.go | 0 .../virtualappliancesites/method_get.go | 0 .../virtualappliancesites/method_list.go | 0 .../model_breakoutcategorypolicies.go | 0 .../model_office365policyproperties.go | 0 .../model_virtualappliancesite.go | 0 .../model_virtualappliancesiteproperties.go | 0 .../virtualappliancesites/predicates.go | 0 .../virtualappliancesites/version.go | 4 +- .../virtualapplianceskus/README.md | 6 +- .../virtualapplianceskus/client.go | 0 .../id_networkvirtualappliancesku.go | 0 .../virtualapplianceskus/method_get.go | 0 .../virtualapplianceskus/method_list.go | 0 .../model_networkvirtualappliancesku.go | 0 ...del_networkvirtualapplianceskuinstances.go | 0 ...workvirtualapplianceskupropertiesformat.go | 0 .../virtualapplianceskus/predicates.go | 0 .../virtualapplianceskus/version.go | 4 +- .../README.md | 208 ++ .../client.go | 26 + .../constants.go | 1225 +++++++ .../id_connection.go | 130 + .../method_createorupdate.go | 75 + .../method_delete.go | 71 + .../method_get.go | 53 + .../method_getikesas.go | 71 + .../method_getsharedkey.go | 54 + .../method_list.go | 106 + .../method_resetconnection.go | 69 + .../method_resetsharedkey.go | 75 + .../method_setsharedkey.go | 75 + .../method_startpacketcapture.go | 75 + .../method_stoppacketcapture.go | 75 + .../method_updatetags.go | 75 + .../model_addressspace.go | 8 + .../model_bgpsettings.go | 11 + .../model_connectionresetsharedkey.go | 8 + .../model_connectionsharedkey.go | 9 + ...atewaycustombgpipaddressipconfiguration.go | 9 + .../model_ipconfigurationbgppeeringaddress.go | 11 + .../model_ipsecpolicy.go | 15 + .../model_localnetworkgateway.go | 14 + ...del_localnetworkgatewaypropertiesformat.go | 13 + .../model_radiusserver.go | 10 + .../model_subresource.go | 8 + .../model_tagsobject.go | 8 + .../model_trafficselectorpolicy.go | 9 + .../model_tunnelconnectionhealth.go | 12 + .../model_virtualnetworkgateway.go | 21 + ...el_virtualnetworkgatewayautoscalebounds.go | 9 + ...ualnetworkgatewayautoscaleconfiguration.go | 8 + .../model_virtualnetworkgatewayconnection.go | 14 + ...etworkgatewayconnectionpropertiesformat.go | 34 + ...el_virtualnetworkgatewayipconfiguration.go | 11 + ...kgatewayipconfigurationpropertiesformat.go | 12 + .../model_virtualnetworkgatewaynatrule.go | 12 + ..._virtualnetworkgatewaynatruleproperties.go | 13 + .../model_virtualnetworkgatewaypolicygroup.go | 11 + ..._virtualnetworkgatewaypolicygroupmember.go | 10 + ...tualnetworkgatewaypolicygroupproperties.go | 12 + ...l_virtualnetworkgatewaypropertiesformat.go | 33 + .../model_virtualnetworkgatewaysku.go | 10 + .../model_vngclientconnectionconfiguration.go | 11 + ...clientconnectionconfigurationproperties.go | 10 + .../model_vpnclientconfiguration.go | 20 + .../model_vpnclientrevokedcertificate.go | 11 + ...lientrevokedcertificatepropertiesformat.go | 9 + .../model_vpnclientrootcertificate.go | 11 + ...pnclientrootcertificatepropertiesformat.go | 9 + .../model_vpnnatrulemapping.go | 9 + .../model_vpnpacketcapturestartparameters.go | 8 + .../model_vpnpacketcapturestopparameters.go | 8 + .../predicates.go | 37 + .../version.go | 10 + .../virtualnetworkgateways/README.md | 414 +++ .../virtualnetworkgateways/client.go | 26 + .../virtualnetworkgateways/constants.go | 1357 +++++++ .../virtualnetworkgateways/id_connection.go | 130 + .../id_virtualnetworkgateway.go | 130 + .../id_virtualnetworkgatewaynatrule.go | 139 + .../method_createorupdate.go | 75 + .../virtualnetworkgateways/method_delete.go | 71 + ...nectvirtualnetworkgatewayvpnconnections.go | 74 + .../method_generatevpnclientpackage.go | 75 + .../method_generatevpnprofile.go | 75 + .../virtualnetworkgateways/method_get.go | 53 + .../method_getadvertisedroutes.go | 100 + .../method_getbgppeerstatus.go | 100 + .../method_getlearnedroutes.go | 71 + .../method_getvpnclientconnectionhealth.go | 71 + .../method_getvpnclientipsecparameters.go | 70 + .../method_getvpnprofilepackageurl.go | 71 + .../virtualnetworkgateways/method_list.go | 106 + .../method_listconnections.go | 105 + .../virtualnetworkgateways/method_reset.go | 100 + .../method_resetvpnclientsharedkey.go | 70 + .../method_setvpnclientipsecparameters.go | 75 + .../method_startpacketcapture.go | 75 + .../method_stoppacketcapture.go | 75 + .../method_supportedvpndevices.go | 54 + .../method_updatetags.go | 75 + ...ualnetworkgatewaynatrulescreateorupdate.go | 75 + ...hod_virtualnetworkgatewaynatrulesdelete.go | 71 + ...method_virtualnetworkgatewaynatrulesget.go | 53 + ...ewaynatruleslistbyvirtualnetworkgateway.go | 105 + .../method_vpndeviceconfigurationscript.go | 58 + .../model_addressspace.go | 8 + .../model_bgppeerstatus.go | 15 + .../model_bgppeerstatuslistresult.go | 8 + .../model_bgpsettings.go | 11 + ...atewaycustombgpipaddressipconfiguration.go | 9 + .../model_gatewayroute.go | 14 + .../model_gatewayroutelistresult.go | 8 + .../model_ipconfigurationbgppeeringaddress.go | 11 + .../model_ipsecpolicy.go | 15 + .../model_p2svpnconnectionrequest.go | 8 + .../model_radiusserver.go | 10 + .../model_subresource.go | 8 + .../model_tagsobject.go | 8 + .../model_trafficselectorpolicy.go | 9 + .../model_tunnelconnectionhealth.go | 12 + ...irtualnetworkconnectiongatewayreference.go | 8 + .../model_virtualnetworkgateway.go | 21 + ...el_virtualnetworkgatewayautoscalebounds.go | 9 + ...ualnetworkgatewayautoscaleconfiguration.go | 8 + ...rtualnetworkgatewayconnectionlistentity.go | 14 + ...wayconnectionlistentitypropertiesformat.go | 30 + ...el_virtualnetworkgatewayipconfiguration.go | 11 + ...kgatewayipconfigurationpropertiesformat.go | 12 + .../model_virtualnetworkgatewaynatrule.go | 12 + ..._virtualnetworkgatewaynatruleproperties.go | 13 + .../model_virtualnetworkgatewaypolicygroup.go | 11 + ..._virtualnetworkgatewaypolicygroupmember.go | 10 + ...tualnetworkgatewaypolicygroupproperties.go | 12 + ...l_virtualnetworkgatewaypropertiesformat.go | 33 + .../model_virtualnetworkgatewaysku.go | 10 + .../model_vngclientconnectionconfiguration.go | 11 + ...clientconnectionconfigurationproperties.go | 10 + .../model_vpnclientconfiguration.go | 20 + .../model_vpnclientconnectionhealthdetail.go | 19 + ...nclientconnectionhealthdetaillistresult.go | 8 + .../model_vpnclientipsecparameters.go | 15 + .../model_vpnclientparameters.go | 11 + .../model_vpnclientrevokedcertificate.go | 11 + ...lientrevokedcertificatepropertiesformat.go | 9 + .../model_vpnclientrootcertificate.go | 11 + ...pnclientrootcertificatepropertiesformat.go | 9 + .../model_vpndevicescriptparameters.go | 10 + .../model_vpnnatrulemapping.go | 9 + .../model_vpnpacketcapturestartparameters.go | 8 + .../model_vpnpacketcapturestopparameters.go | 8 + .../virtualnetworkgateways/predicates.go | 98 + .../virtualnetworkgateways/version.go | 10 + .../virtualnetworkpeerings/README.md | 83 + .../virtualnetworkpeerings/client.go | 26 + .../virtualnetworkpeerings/constants.go | 227 ++ .../id_virtualnetworkpeering.go | 139 + .../method_createorupdate.go | 104 + .../virtualnetworkpeerings/method_delete.go | 71 + .../virtualnetworkpeerings/method_get.go | 53 + .../virtualnetworkpeerings/method_list.go | 106 + .../model_addressspace.go | 8 + .../model_subresource.go | 8 + .../model_virtualnetworkbgpcommunities.go | 9 + .../model_virtualnetworkencryption.go | 9 + .../model_virtualnetworkpeering.go | 12 + ...l_virtualnetworkpeeringpropertiesformat.go | 27 + .../virtualnetworkpeerings/predicates.go | 32 + .../virtualnetworkpeerings/version.go | 10 + .../2024-03-01/virtualnetworks/README.md | 239 ++ .../2024-03-01/virtualnetworks/client.go | 26 + .../2024-03-01/virtualnetworks/constants.go | 1412 ++++++++ .../virtualnetworks/method_createorupdate.go | 76 + .../virtualnetworks/method_delete.go | 72 + .../2024-03-01/virtualnetworks/method_get.go | 84 + .../2024-03-01/virtualnetworks/method_list.go | 106 + .../virtualnetworks/method_listall.go | 106 + .../method_resourcenavigationlinkslist.go | 106 + .../method_serviceassociationlinkslist.go | 106 + .../method_subnetspreparenetworkpolicies.go | 75 + .../method_subnetsunpreparenetworkpolicies.go | 75 + .../virtualnetworks/method_updatetags.go | 58 + ...rtualnetworkscheckipaddressavailability.go | 84 + ...virtualnetworkslistddosprotectionstatus.go | 123 + .../method_virtualnetworkslistusage.go | 106 + .../virtualnetworks/model_addressspace.go | 8 + .../model_applicationgatewaybackendaddress.go | 9 + ...el_applicationgatewaybackendaddresspool.go | 12 + ...tewaybackendaddresspoolpropertiesformat.go | 10 + ...model_applicationgatewayipconfiguration.go | 12 + ...ngatewayipconfigurationpropertiesformat.go | 9 + .../model_applicationsecuritygroup.go | 14 + ...pplicationsecuritygrouppropertiesformat.go | 9 + .../model_backendaddresspool.go | 12 + ...odel_backendaddresspoolpropertiesformat.go | 19 + .../model_customdnsconfigpropertiesformat.go | 9 + .../virtualnetworks/model_ddossettings.go | 9 + .../virtualnetworks/model_delegation.go | 12 + .../virtualnetworks/model_dhcpoptions.go | 8 + .../virtualnetworks/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 9 + .../model_flowlogpropertiesformat.go | 16 + .../model_frontendipconfiguration.go | 17 + ...frontendipconfigurationpropertiesformat.go | 19 + ...odel_gatewayloadbalancertunnelinterface.go | 11 + .../virtualnetworks/model_inboundnatrule.go | 12 + .../model_inboundnatrulepropertiesformat.go | 19 + .../model_ipaddressavailabilityresult.go | 10 + .../virtualnetworks/model_ipconfiguration.go | 11 + .../model_ipconfigurationprofile.go | 12 + ..._ipconfigurationprofilepropertiesformat.go | 9 + .../model_ipconfigurationpropertiesformat.go | 12 + .../2024-03-01/virtualnetworks/model_iptag.go | 9 + .../model_loadbalancerbackendaddress.go | 9 + ...dbalancerbackendaddresspropertiesformat.go | 14 + .../virtualnetworks/model_natgateway.go | 20 + .../model_natgatewaypropertiesformat.go | 13 + .../virtualnetworks/model_natgatewaysku.go | 8 + .../model_natruleportmapping.go | 10 + .../model_networkintentpolicy.go | 13 + .../model_networkintentpolicyconfiguration.go | 9 + .../virtualnetworks/model_networkinterface.go | 19 + .../model_networkinterfacednssettings.go | 12 + .../model_networkinterfaceipconfiguration.go | 12 + ...gurationprivatelinkconnectionproperties.go | 10 + ...nterfaceipconfigurationpropertiesformat.go | 22 + .../model_networkinterfacepropertiesformat.go | 29 + .../model_networkinterfacetapconfiguration.go | 12 + ...terfacetapconfigurationpropertiesformat.go | 9 + .../model_networksecuritygroup.go | 14 + ...el_networksecuritygrouppropertiesformat.go | 15 + .../model_preparenetworkpoliciesrequest.go | 9 + .../virtualnetworks/model_privateendpoint.go | 19 + .../model_privateendpointconnection.go | 12 + ...del_privateendpointconnectionproperties.go | 12 + .../model_privateendpointipconfiguration.go | 11 + ...rivateendpointipconfigurationproperties.go | 10 + .../model_privateendpointproperties.go | 16 + .../model_privatelinkservice.go | 19 + .../model_privatelinkserviceconnection.go | 12 + ..._privatelinkserviceconnectionproperties.go | 12 + ...model_privatelinkserviceconnectionstate.go | 10 + ...model_privatelinkserviceipconfiguration.go | 12 + ...atelinkserviceipconfigurationproperties.go | 13 + .../model_privatelinkserviceproperties.go | 18 + .../virtualnetworks/model_publicipaddress.go | 22 + .../model_publicipaddressdnssettings.go | 11 + .../model_publicipaddresspropertiesformat.go | 23 + .../model_publicipaddresssku.go | 9 + ...odel_publicipddosprotectionstatusresult.go | 11 + .../model_resourcenavigationlink.go | 12 + .../model_resourcenavigationlinkformat.go | 10 + .../virtualnetworks/model_resourceset.go | 8 + .../model_retentionpolicyparameters.go | 9 + .../2024-03-01/virtualnetworks/model_route.go | 12 + .../model_routepropertiesformat.go | 12 + .../virtualnetworks/model_routetable.go | 14 + .../model_routetablepropertiesformat.go | 12 + .../virtualnetworks/model_securityrule.go | 12 + .../model_securityrulepropertiesformat.go | 23 + .../model_serviceassociationlink.go | 12 + ..._serviceassociationlinkpropertiesformat.go | 12 + ...model_servicedelegationpropertiesformat.go | 10 + .../model_serviceendpointpolicy.go | 15 + .../model_serviceendpointpolicydefinition.go | 12 + ...ndpointpolicydefinitionpropertiesformat.go | 11 + ...l_serviceendpointpolicypropertiesformat.go | 13 + .../model_serviceendpointpropertiesformat.go | 11 + .../virtualnetworks/model_subnet.go | 12 + .../model_subnetpropertiesformat.go | 28 + .../virtualnetworks/model_subresource.go | 8 + .../virtualnetworks/model_tagsobject.go | 8 + ...trafficanalyticsconfigurationproperties.go | 12 + .../model_trafficanalyticsproperties.go | 8 + .../model_unpreparenetworkpoliciesrequest.go | 8 + .../virtualnetworks/model_virtualnetwork.go | 19 + .../model_virtualnetworkbgpcommunities.go | 9 + .../model_virtualnetworkencryption.go | 9 + .../model_virtualnetworkpeering.go | 12 + ...l_virtualnetworkpeeringpropertiesformat.go | 27 + .../model_virtualnetworkpropertiesformat.go | 22 + .../model_virtualnetworktap.go | 14 + ...model_virtualnetworktappropertiesformat.go | 13 + .../model_virtualnetworkusage.go | 12 + .../model_virtualnetworkusagename.go | 9 + .../2024-03-01/virtualnetworks/predicates.go | 144 + .../2024-03-01/virtualnetworks/version.go | 10 + .../virtualnetworktap/README.md | 6 +- .../virtualnetworktap/client.go | 0 .../virtualnetworktap/constants.go | 0 .../virtualnetworktap/id_virtualnetworktap.go | 0 .../method_createorupdate.go | 0 .../virtualnetworktap/method_delete.go | 0 .../virtualnetworktap/method_get.go | 0 .../virtualnetworktap/method_updatetags.go | 0 .../model_applicationgatewaybackendaddress.go | 0 ...el_applicationgatewaybackendaddresspool.go | 0 ...tewaybackendaddresspoolpropertiesformat.go | 0 ...model_applicationgatewayipconfiguration.go | 0 ...ngatewayipconfigurationpropertiesformat.go | 0 .../model_applicationsecuritygroup.go | 0 ...pplicationsecuritygrouppropertiesformat.go | 0 .../model_backendaddresspool.go | 0 ...odel_backendaddresspoolpropertiesformat.go | 0 .../model_customdnsconfigpropertiesformat.go | 0 .../virtualnetworktap/model_ddossettings.go | 0 .../virtualnetworktap/model_delegation.go | 0 .../virtualnetworktap/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 0 .../model_flowlogpropertiesformat.go | 1 + .../model_frontendipconfiguration.go | 0 ...frontendipconfigurationpropertiesformat.go | 0 ...odel_gatewayloadbalancertunnelinterface.go | 0 .../virtualnetworktap/model_inboundnatrule.go | 0 .../model_inboundnatrulepropertiesformat.go | 0 .../model_ipconfiguration.go | 0 .../model_ipconfigurationprofile.go | 0 ..._ipconfigurationprofilepropertiesformat.go | 0 .../model_ipconfigurationpropertiesformat.go | 0 .../virtualnetworktap/model_iptag.go | 0 .../model_loadbalancerbackendaddress.go | 0 ...dbalancerbackendaddresspropertiesformat.go | 0 .../virtualnetworktap/model_natgateway.go | 0 .../model_natgatewaypropertiesformat.go | 0 .../virtualnetworktap/model_natgatewaysku.go | 0 .../model_natruleportmapping.go | 0 .../model_networkinterface.go | 0 .../model_networkinterfacednssettings.go | 0 .../model_networkinterfaceipconfiguration.go | 0 ...gurationprivatelinkconnectionproperties.go | 0 ...nterfaceipconfigurationpropertiesformat.go | 0 .../model_networkinterfacepropertiesformat.go | 0 .../model_networkinterfacetapconfiguration.go | 0 ...terfacetapconfigurationpropertiesformat.go | 0 .../model_networksecuritygroup.go | 0 ...el_networksecuritygrouppropertiesformat.go | 0 .../model_privateendpoint.go | 0 .../model_privateendpointconnection.go | 0 ...del_privateendpointconnectionproperties.go | 0 .../model_privateendpointipconfiguration.go | 0 ...rivateendpointipconfigurationproperties.go | 0 .../model_privateendpointproperties.go | 0 .../model_privatelinkservice.go | 0 .../model_privatelinkserviceconnection.go | 0 ..._privatelinkserviceconnectionproperties.go | 0 ...model_privatelinkserviceconnectionstate.go | 0 ...model_privatelinkserviceipconfiguration.go | 0 ...atelinkserviceipconfigurationproperties.go | 0 .../model_privatelinkserviceproperties.go | 1 + .../model_publicipaddress.go | 0 .../model_publicipaddressdnssettings.go | 0 .../model_publicipaddresspropertiesformat.go | 0 .../model_publicipaddresssku.go | 0 .../model_resourcenavigationlink.go | 0 .../model_resourcenavigationlinkformat.go | 0 .../virtualnetworktap/model_resourceset.go | 0 .../model_retentionpolicyparameters.go | 0 .../virtualnetworktap/model_route.go | 0 .../model_routepropertiesformat.go | 0 .../virtualnetworktap/model_routetable.go | 0 .../model_routetablepropertiesformat.go | 0 .../virtualnetworktap/model_securityrule.go | 0 .../model_securityrulepropertiesformat.go | 0 .../model_serviceassociationlink.go | 0 ..._serviceassociationlinkpropertiesformat.go | 0 ...model_servicedelegationpropertiesformat.go | 0 .../model_serviceendpointpolicy.go | 0 .../model_serviceendpointpolicydefinition.go | 0 ...ndpointpolicydefinitionpropertiesformat.go | 0 ...l_serviceendpointpolicypropertiesformat.go | 0 .../model_serviceendpointpropertiesformat.go | 1 + .../virtualnetworktap/model_subnet.go | 0 .../model_subnetpropertiesformat.go | 0 .../virtualnetworktap/model_subresource.go | 0 .../virtualnetworktap/model_tagsobject.go | 0 ...trafficanalyticsconfigurationproperties.go | 0 .../model_trafficanalyticsproperties.go | 0 .../model_virtualnetworktap.go | 0 ...model_virtualnetworktappropertiesformat.go | 0 .../virtualnetworktap/version.go | 4 +- .../virtualnetworktaps/README.md | 6 +- .../virtualnetworktaps/client.go | 0 .../virtualnetworktaps/constants.go | 0 .../virtualnetworktaps/method_listall.go | 0 .../method_listbyresourcegroup.go | 0 .../model_applicationgatewaybackendaddress.go | 0 ...el_applicationgatewaybackendaddresspool.go | 0 ...tewaybackendaddresspoolpropertiesformat.go | 0 ...model_applicationgatewayipconfiguration.go | 0 ...ngatewayipconfigurationpropertiesformat.go | 0 .../model_applicationsecuritygroup.go | 0 ...pplicationsecuritygrouppropertiesformat.go | 0 .../model_backendaddresspool.go | 0 ...odel_backendaddresspoolpropertiesformat.go | 0 .../model_customdnsconfigpropertiesformat.go | 0 .../virtualnetworktaps/model_ddossettings.go | 0 .../virtualnetworktaps/model_delegation.go | 0 .../virtualnetworktaps/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 0 .../model_flowlogpropertiesformat.go | 1 + .../model_frontendipconfiguration.go | 0 ...frontendipconfigurationpropertiesformat.go | 0 ...odel_gatewayloadbalancertunnelinterface.go | 0 .../model_inboundnatrule.go | 0 .../model_inboundnatrulepropertiesformat.go | 0 .../model_ipconfiguration.go | 0 .../model_ipconfigurationprofile.go | 0 ..._ipconfigurationprofilepropertiesformat.go | 0 .../model_ipconfigurationpropertiesformat.go | 0 .../virtualnetworktaps/model_iptag.go | 0 .../model_loadbalancerbackendaddress.go | 0 ...dbalancerbackendaddresspropertiesformat.go | 0 .../virtualnetworktaps/model_natgateway.go | 0 .../model_natgatewaypropertiesformat.go | 0 .../virtualnetworktaps/model_natgatewaysku.go | 0 .../model_natruleportmapping.go | 0 .../model_networkinterface.go | 0 .../model_networkinterfacednssettings.go | 0 .../model_networkinterfaceipconfiguration.go | 0 ...gurationprivatelinkconnectionproperties.go | 0 ...nterfaceipconfigurationpropertiesformat.go | 0 .../model_networkinterfacepropertiesformat.go | 0 .../model_networkinterfacetapconfiguration.go | 0 ...terfacetapconfigurationpropertiesformat.go | 0 .../model_networksecuritygroup.go | 0 ...el_networksecuritygrouppropertiesformat.go | 0 .../model_privateendpoint.go | 0 .../model_privateendpointconnection.go | 0 ...del_privateendpointconnectionproperties.go | 0 .../model_privateendpointipconfiguration.go | 0 ...rivateendpointipconfigurationproperties.go | 0 .../model_privateendpointproperties.go | 0 .../model_privatelinkservice.go | 0 .../model_privatelinkserviceconnection.go | 0 ..._privatelinkserviceconnectionproperties.go | 0 ...model_privatelinkserviceconnectionstate.go | 0 ...model_privatelinkserviceipconfiguration.go | 0 ...atelinkserviceipconfigurationproperties.go | 0 .../model_privatelinkserviceproperties.go | 1 + .../model_publicipaddress.go | 0 .../model_publicipaddressdnssettings.go | 0 .../model_publicipaddresspropertiesformat.go | 0 .../model_publicipaddresssku.go | 0 .../model_resourcenavigationlink.go | 0 .../model_resourcenavigationlinkformat.go | 0 .../virtualnetworktaps/model_resourceset.go | 0 .../model_retentionpolicyparameters.go | 0 .../virtualnetworktaps/model_route.go | 0 .../model_routepropertiesformat.go | 0 .../virtualnetworktaps/model_routetable.go | 0 .../model_routetablepropertiesformat.go | 0 .../virtualnetworktaps/model_securityrule.go | 0 .../model_securityrulepropertiesformat.go | 0 .../model_serviceassociationlink.go | 0 ..._serviceassociationlinkpropertiesformat.go | 0 ...model_servicedelegationpropertiesformat.go | 0 .../model_serviceendpointpolicy.go | 0 .../model_serviceendpointpolicydefinition.go | 0 ...ndpointpolicydefinitionpropertiesformat.go | 0 ...l_serviceendpointpolicypropertiesformat.go | 0 .../model_serviceendpointpropertiesformat.go | 1 + .../virtualnetworktaps/model_subnet.go | 0 .../model_subnetpropertiesformat.go | 0 .../virtualnetworktaps/model_subresource.go | 0 ...trafficanalyticsconfigurationproperties.go | 0 .../model_trafficanalyticsproperties.go | 0 .../model_virtualnetworktap.go | 0 ...model_virtualnetworktappropertiesformat.go | 0 .../virtualnetworktaps/predicates.go | 0 .../virtualnetworktaps/version.go | 4 +- .../virtualrouterpeerings/README.md | 6 +- .../virtualrouterpeerings/client.go | 0 .../virtualrouterpeerings/constants.go | 0 .../virtualrouterpeerings/id_virtualrouter.go | 0 .../method_createorupdate.go | 0 .../virtualrouterpeerings/method_delete.go | 0 .../virtualrouterpeerings/method_get.go | 0 .../virtualrouterpeerings/method_list.go | 0 .../model_virtualrouterpeering.go | 0 .../model_virtualrouterpeeringproperties.go | 0 .../virtualrouterpeerings/predicates.go | 0 .../virtualrouterpeerings/version.go | 4 +- .../virtualrouters/README.md | 6 +- .../virtualrouters/client.go | 0 .../virtualrouters/constants.go | 0 .../virtualrouters/id_virtualrouter.go | 0 .../virtualrouters/method_createorupdate.go | 0 .../virtualrouters/method_delete.go | 0 .../virtualrouters/method_get.go | 0 .../virtualrouters/method_list.go | 0 .../method_listbyresourcegroup.go | 0 .../virtualrouters/model_subresource.go | 0 .../virtualrouters/model_virtualrouter.go | 0 .../model_virtualrouterpropertiesformat.go | 0 .../virtualrouters/predicates.go | 0 .../virtualrouters/version.go | 4 +- .../network/2024-03-01/virtualwans/README.md | 1534 ++++++++ .../network/2024-03-01/virtualwans/client.go | 26 + .../2024-03-01/virtualwans/constants.go | 2382 +++++++++++++ .../id_configurationpolicygroup.go | 139 + .../virtualwans/id_hubroutetable.go | 139 + .../id_hubvirtualnetworkconnection.go | 139 + .../2024-03-01/virtualwans/id_natrule.go | 139 + .../virtualwans/id_networkvirtualappliance.go | 130 + .../id_networkvirtualapplianceconnection.go | 139 + .../2024-03-01/virtualwans/id_routemap.go | 139 + .../virtualwans/id_routingintent.go | 139 + .../2024-03-01/virtualwans/id_virtualhub.go | 130 + .../virtualwans/id_virtualhubroutetable.go | 139 + .../2024-03-01/virtualwans/id_virtualwan.go | 130 + .../2024-03-01/virtualwans/id_vpngateway.go | 130 + .../virtualwans/id_vpnlinkconnection.go | 148 + .../virtualwans/id_vpnserverconfiguration.go | 130 + .../2024-03-01/virtualwans/id_vpnsite.go | 130 + .../2024-03-01/virtualwans/id_vpnsitelink.go | 139 + ...configurationpolicygroupscreateorupdate.go | 75 + .../method_configurationpolicygroupsdelete.go | 71 + .../method_configurationpolicygroupsget.go | 53 + ...olicygroupslistbyvpnserverconfiguration.go | 105 + ...tualwanvpnserverconfigurationvpnprofile.go | 75 + .../method_hubroutetablescreateorupdate.go | 75 + .../method_hubroutetablesdelete.go | 71 + .../virtualwans/method_hubroutetablesget.go | 53 + .../virtualwans/method_hubroutetableslist.go | 105 + ...virtualnetworkconnectionscreateorupdate.go | 75 + ...thod_hubvirtualnetworkconnectionsdelete.go | 71 + .../method_hubvirtualnetworkconnectionsget.go | 53 + ...method_hubvirtualnetworkconnectionslist.go | 105 + .../method_natrulescreateorupdate.go | 75 + .../virtualwans/method_natrulesdelete.go | 71 + .../virtualwans/method_natrulesget.go | 53 + .../method_natruleslistbyvpngateway.go | 105 + ...rtualapplianceconnectionscreateorupdate.go | 75 + ...etworkvirtualapplianceconnectionsdelete.go | 71 + ...d_networkvirtualapplianceconnectionsget.go | 53 + ..._networkvirtualapplianceconnectionslist.go | 105 + .../method_p2svpngatewayscreateorupdate.go | 76 + .../method_p2svpngatewaysdelete.go | 72 + .../virtualwans/method_p2svpngatewaysget.go | 54 + .../virtualwans/method_p2svpngatewayslist.go | 106 + ...ethod_p2svpngatewayslistbyresourcegroup.go | 106 + .../method_routemapscreateorupdate.go | 75 + .../virtualwans/method_routemapsdelete.go | 71 + .../virtualwans/method_routemapsget.go | 53 + .../virtualwans/method_routemapslist.go | 105 + .../method_routingintentcreateorupdate.go | 75 + .../virtualwans/method_routingintentdelete.go | 71 + .../virtualwans/method_routingintentget.go | 53 + .../virtualwans/method_routingintentlist.go | 105 + .../method_supportedsecurityproviders.go | 54 + .../virtualwans/method_updatetags.go | 57 + ...d_virtualhubbgpconnectioncreateorupdate.go | 76 + .../method_virtualhubbgpconnectiondelete.go | 72 + .../method_virtualhubbgpconnectionget.go | 54 + .../method_virtualhubbgpconnectionslist.go | 105 + ...alhubbgpconnectionslistadvertisedroutes.go | 72 + ...rtualhubbgpconnectionslistlearnedroutes.go | 72 + ...virtualhubipconfigurationcreateorupdate.go | 76 + .../method_virtualhubipconfigurationdelete.go | 72 + .../method_virtualhubipconfigurationget.go | 54 + .../method_virtualhubipconfigurationlist.go | 105 + ...d_virtualhubroutetablev2screateorupdate.go | 75 + .../method_virtualhubroutetablev2sdelete.go | 71 + .../method_virtualhubroutetablev2sget.go | 53 + .../method_virtualhubroutetablev2slist.go | 105 + .../method_virtualhubscreateorupdate.go | 75 + .../virtualwans/method_virtualhubsdelete.go | 71 + .../virtualwans/method_virtualhubsget.go | 53 + ...virtualhubsgeteffectivevirtualhubroutes.go | 75 + .../method_virtualhubsgetinboundroutes.go | 75 + .../method_virtualhubsgetoutboundroutes.go | 75 + .../virtualwans/method_virtualhubslist.go | 106 + .../method_virtualhubslistbyresourcegroup.go | 106 + .../method_virtualhubsupdatetags.go | 57 + .../method_virtualwanscreateorupdate.go | 75 + .../virtualwans/method_virtualwansdelete.go | 71 + .../virtualwans/method_virtualwansget.go | 53 + .../virtualwans/method_virtualwanslist.go | 106 + .../method_virtualwanslistbyresourcegroup.go | 106 + .../method_vpnconnectionscreateorupdate.go | 76 + .../method_vpnconnectionsdelete.go | 72 + .../virtualwans/method_vpnconnectionsget.go | 54 + .../method_vpnconnectionslistbyvpngateway.go | 105 + ...method_vpnconnectionsstartpacketcapture.go | 76 + .../method_vpnconnectionsstoppacketcapture.go | 76 + .../method_vpngatewayscreateorupdate.go | 75 + .../virtualwans/method_vpngatewaysdelete.go | 71 + .../virtualwans/method_vpngatewaysget.go | 53 + .../virtualwans/method_vpngatewayslist.go | 106 + .../method_vpngatewayslistbyresourcegroup.go | 106 + ...thod_vpnlinkconnectionsgetallsharedkeys.go | 105 + ...d_vpnlinkconnectionsgetdefaultsharedkey.go | 54 + .../method_vpnlinkconnectionsgetikesas.go | 71 + ...d_vpnlinkconnectionslistbyvpnconnection.go | 106 + ..._vpnlinkconnectionslistdefaultsharedkey.go | 54 + ...inkconnectionssetorinitdefaultsharedkey.go | 75 + ...figurationsassociatedwithvirtualwanlist.go | 71 + ...d_vpnserverconfigurationscreateorupdate.go | 75 + .../method_vpnserverconfigurationsdelete.go | 71 + .../method_vpnserverconfigurationsget.go | 53 + .../method_vpnserverconfigurationslist.go | 106 + ...serverconfigurationslistbyresourcegroup.go | 106 + .../method_vpnsitelinkconnectionsget.go | 53 + .../virtualwans/method_vpnsitelinksget.go | 53 + .../method_vpnsitelinkslistbyvpnsite.go | 105 + .../method_vpnsitesconfigurationdownload.go | 74 + .../method_vpnsitescreateorupdate.go | 75 + .../virtualwans/method_vpnsitesdelete.go | 71 + .../virtualwans/method_vpnsitesget.go | 53 + .../virtualwans/method_vpnsiteslist.go | 106 + .../method_vpnsiteslistbyresourcegroup.go | 106 + .../model_aadauthenticationparameters.go | 10 + .../2024-03-01/virtualwans/model_action.go | 9 + .../virtualwans/model_addressspace.go | 8 + .../model_applicationgatewaybackendaddress.go | 9 + ...el_applicationgatewaybackendaddresspool.go | 12 + ...tewaybackendaddresspoolpropertiesformat.go | 10 + ...model_applicationgatewayipconfiguration.go | 12 + ...ngatewayipconfigurationpropertiesformat.go | 9 + .../model_applicationsecuritygroup.go | 14 + ...pplicationsecuritygrouppropertiesformat.go | 9 + .../virtualwans/model_backendaddresspool.go | 12 + ...odel_backendaddresspoolpropertiesformat.go | 19 + .../virtualwans/model_bgpconnection.go} | 8 +- .../model_bgpconnectionproperties.go | 12 + .../virtualwans/model_bgpsettings.go | 11 + .../model_connectionsharedkeyresult.go | 11 + .../2024-03-01/virtualwans/model_criterion.go | 11 + .../model_customdnsconfigpropertiesformat.go | 9 + .../virtualwans/model_ddossettings.go | 9 + .../virtualwans/model_delegation.go | 12 + .../virtualwans/model_deviceproperties.go | 10 + .../model_effectiveroutemaproute.go | 10 + .../model_effectiveroutemaproutelist.go | 8 + .../model_effectiveroutesparameters.go | 9 + .../2024-03-01/virtualwans/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 9 + .../model_flowlogpropertiesformat.go | 16 + .../model_frontendipconfiguration.go | 17 + ...frontendipconfigurationpropertiesformat.go | 19 + ...atewaycustombgpipaddressipconfiguration.go | 9 + ...odel_gatewayloadbalancertunnelinterface.go | 11 + .../model_getinboundroutesparameters.go | 9 + .../model_getoutboundroutesparameters.go | 9 + .../model_getvpnsitesconfigurationrequest.go | 9 + .../virtualwans/model_hubipconfiguration.go | 12 + ...odel_hubipconfigurationpropertiesformat.go | 12 + .../2024-03-01/virtualwans/model_hubroute.go | 12 + .../virtualwans/model_hubroutetable.go} | 8 +- .../model_hubroutetableproperties.go | 12 + .../model_hubvirtualnetworkconnection.go | 11 + ...l_hubvirtualnetworkconnectionproperties.go | 13 + .../virtualwans/model_inboundnatrule.go | 12 + .../model_inboundnatrulepropertiesformat.go | 19 + .../virtualwans/model_ipconfiguration.go | 11 + .../model_ipconfigurationbgppeeringaddress.go | 11 + .../model_ipconfigurationprofile.go | 12 + ..._ipconfigurationprofilepropertiesformat.go | 9 + .../model_ipconfigurationpropertiesformat.go | 12 + .../virtualwans/model_ipsecpolicy.go | 15 + .../2024-03-01/virtualwans/model_iptag.go | 9 + .../model_loadbalancerbackendaddress.go | 9 + ...dbalancerbackendaddresspropertiesformat.go | 14 + .../virtualwans/model_natgateway.go | 20 + .../model_natgatewaypropertiesformat.go | 13 + .../virtualwans/model_natgatewaysku.go | 8 + .../virtualwans/model_natruleportmapping.go | 10 + .../virtualwans/model_networkinterface.go | 19 + .../model_networkinterfacednssettings.go | 12 + .../model_networkinterfaceipconfiguration.go | 12 + ...gurationprivatelinkconnectionproperties.go | 10 + ...nterfaceipconfigurationpropertiesformat.go | 22 + .../model_networkinterfacepropertiesformat.go | 29 + .../model_networkinterfacetapconfiguration.go | 12 + ...terfacetapconfigurationpropertiesformat.go | 9 + .../virtualwans/model_networksecuritygroup.go | 14 + ...el_networksecuritygrouppropertiesformat.go | 15 + ...model_networkvirtualapplianceconnection.go | 10 + ...orkvirtualapplianceconnectionproperties.go | 14 + .../model_o365breakoutcategorypolicies.go | 10 + .../virtualwans/model_o365policyproperties.go | 8 + .../model_p2sconnectionconfiguration.go | 11 + ...el_p2sconnectionconfigurationproperties.go | 13 + .../virtualwans/model_p2svpngateway.go} | 6 +- .../model_p2svpngatewayproperties.go | 15 + .../2024-03-01/virtualwans/model_parameter.go | 10 + .../2024-03-01/virtualwans/model_peerroute.go | 14 + .../virtualwans/model_privateendpoint.go | 19 + .../model_privateendpointconnection.go | 12 + ...del_privateendpointconnectionproperties.go | 12 + .../model_privateendpointipconfiguration.go | 11 + ...rivateendpointipconfigurationproperties.go | 10 + .../model_privateendpointproperties.go | 16 + .../virtualwans/model_privatelinkservice.go | 19 + .../model_privatelinkserviceconnection.go | 12 + ..._privatelinkserviceconnectionproperties.go | 12 + ...model_privatelinkserviceconnectionstate.go | 10 + ...model_privatelinkserviceipconfiguration.go | 12 + ...atelinkserviceipconfigurationproperties.go | 13 + .../model_privatelinkserviceproperties.go | 18 + .../virtualwans/model_propagatedroutetable.go | 9 + .../virtualwans/model_publicipaddress.go | 22 + .../model_publicipaddressdnssettings.go | 11 + .../model_publicipaddresspropertiesformat.go | 23 + .../virtualwans/model_publicipaddresssku.go | 9 + .../virtualwans/model_radiusserver.go | 10 + .../model_resourcenavigationlink.go | 12 + .../model_resourcenavigationlinkformat.go | 10 + .../virtualwans/model_resourceset.go | 8 + .../model_retentionpolicyparameters.go | 9 + .../2024-03-01/virtualwans/model_route.go | 12 + .../2024-03-01/virtualwans/model_routemap.go | 12 + .../virtualwans/model_routemapproperties.go | 11 + .../virtualwans/model_routemaprule.go | 11 + .../model_routepropertiesformat.go | 12 + .../virtualwans/model_routetable.go | 14 + .../model_routetablepropertiesformat.go | 12 + .../virtualwans/model_routingconfiguration.go | 12 + .../virtualwans/model_routingintent.go | 12 + .../model_routingintentproperties.go | 9 + .../virtualwans/model_routingpolicy.go | 10 + .../virtualwans/model_securityrule.go | 12 + .../model_securityrulepropertiesformat.go | 23 + .../model_serviceassociationlink.go | 12 + ..._serviceassociationlinkpropertiesformat.go | 12 + ...model_servicedelegationpropertiesformat.go | 10 + .../model_serviceendpointpolicy.go | 15 + .../model_serviceendpointpolicydefinition.go | 12 + ...ndpointpolicydefinitionpropertiesformat.go | 11 + ...l_serviceendpointpolicypropertiesformat.go | 13 + .../model_serviceendpointpropertiesformat.go | 11 + .../virtualwans/model_sharedkeyproperties.go | 10 + .../virtualwans/model_staticroute.go | 10 + .../virtualwans/model_staticroutesconfig.go | 9 + .../2024-03-01/virtualwans/model_subnet.go | 12 + .../model_subnetpropertiesformat.go | 28 + .../virtualwans/model_subresource.go | 8 + .../virtualwans/model_tagsobject.go | 8 + ...trafficanalyticsconfigurationproperties.go | 12 + .../model_trafficanalyticsproperties.go | 8 + .../model_trafficselectorpolicy.go | 9 + .../virtualwans/model_virtualhub.go | 15 + .../model_virtualhubeffectiveroute.go | 12 + .../model_virtualhubeffectiveroutelist.go | 8 + .../virtualwans/model_virtualhubproperties.go | 29 + .../virtualwans/model_virtualhubroute.go | 9 + .../virtualwans/model_virtualhubroutetable.go | 8 + .../model_virtualhubroutetablev2.go | 11 + .../model_virtualhubroutetablev2properties.go | 10 + .../virtualwans/model_virtualhubroutev2.go | 11 + .../virtualwans/model_virtualnetworktap.go | 14 + ...model_virtualnetworktappropertiesformat.go | 13 + ...del_virtualrouterautoscaleconfiguration.go | 8 + .../virtualwans/model_virtualwan.go | 14 + .../virtualwans/model_virtualwanproperties.go | 15 + .../model_virtualwansecurityprovider.go | 10 + .../model_virtualwansecurityproviders.go | 8 + .../model_virtualwanvpnprofileparameters.go | 9 + .../2024-03-01/virtualwans/model_vnetroute.go | 10 + .../model_vpnclientconnectionhealth.go | 11 + .../virtualwans/model_vpnconnection.go | 11 + ...nconnectionpacketcapturestartparameters.go | 9 + ...pnconnectionpacketcapturestopparameters.go | 9 + .../model_vpnconnectionproperties.go | 26 + .../virtualwans/model_vpngateway.go | 14 + .../model_vpngatewayipconfiguration.go | 10 + .../virtualwans/model_vpngatewaynatrule.go | 12 + .../model_vpngatewaynatruleproperties.go | 15 + .../virtualwans/model_vpngatewayproperties.go | 16 + .../virtualwans/model_vpnlinkbgpsettings.go | 9 + .../model_vpnlinkproviderproperties.go | 9 + .../virtualwans/model_vpnnatrulemapping.go | 9 + .../virtualwans/model_vpnprofileresponse.go | 8 + ...serverconfigradiusclientrootcertificate.go | 9 + ...serverconfigradiusserverrootcertificate.go | 9 + .../model_vpnserverconfiguration.go | 14 + ...model_vpnserverconfigurationpolicygroup.go | 12 + ...vpnserverconfigurationpolicygroupmember.go | 10 + ...erverconfigurationpolicygroupproperties.go | 12 + .../model_vpnserverconfigurationproperties.go | 23 + .../model_vpnserverconfigurationsresponse.go | 8 + ...serverconfigvpnclientrevokedcertificate.go | 9 + ...vpnserverconfigvpnclientrootcertificate.go | 9 + .../2024-03-01/virtualwans/model_vpnsite.go | 14 + .../virtualwans/model_vpnsitelink.go | 12 + .../model_vpnsitelinkconnection.go | 12 + .../model_vpnsitelinkconnectionproperties.go | 26 + .../model_vpnsitelinkproperties.go | 12 + .../virtualwans/model_vpnsiteproperties.go | 17 + .../2024-03-01/virtualwans/predicates.go | 569 +++ .../network/2024-03-01/virtualwans/version.go | 10 + .../vmsspublicipaddresses/README.md | 6 +- .../vmsspublicipaddresses/client.go | 0 .../vmsspublicipaddresses/constants.go | 0 .../id_virtualmachinescaleset.go | 0 ...etvirtualmachinescalesetpublicipaddress.go | 0 ...virtualmachinescalesetpublicipaddresses.go | 0 ...rtualmachinescalesetvmpublicipaddresses.go | 0 .../model_applicationgatewaybackendaddress.go | 0 ...el_applicationgatewaybackendaddresspool.go | 0 ...tewaybackendaddresspoolpropertiesformat.go | 0 ...model_applicationgatewayipconfiguration.go | 0 ...ngatewayipconfigurationpropertiesformat.go | 0 .../model_applicationsecuritygroup.go | 0 ...pplicationsecuritygrouppropertiesformat.go | 0 .../model_backendaddresspool.go | 0 ...odel_backendaddresspoolpropertiesformat.go | 0 .../model_customdnsconfigpropertiesformat.go | 0 .../model_ddossettings.go | 0 .../vmsspublicipaddresses/model_delegation.go | 0 .../vmsspublicipaddresses/model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 0 .../model_flowlogpropertiesformat.go | 1 + .../model_frontendipconfiguration.go | 0 ...frontendipconfigurationpropertiesformat.go | 0 ...odel_gatewayloadbalancertunnelinterface.go | 0 .../model_inboundnatrule.go | 0 .../model_inboundnatrulepropertiesformat.go | 0 .../model_ipconfiguration.go | 0 .../model_ipconfigurationprofile.go | 0 ..._ipconfigurationprofilepropertiesformat.go | 0 .../model_ipconfigurationpropertiesformat.go | 0 .../vmsspublicipaddresses/model_iptag.go | 0 .../model_loadbalancerbackendaddress.go | 0 ...dbalancerbackendaddresspropertiesformat.go | 0 .../vmsspublicipaddresses/model_natgateway.go | 0 .../model_natgatewaypropertiesformat.go | 0 .../model_natgatewaysku.go | 0 .../model_natruleportmapping.go | 0 .../model_networkinterface.go | 0 .../model_networkinterfacednssettings.go | 0 .../model_networkinterfaceipconfiguration.go | 0 ...gurationprivatelinkconnectionproperties.go | 0 ...nterfaceipconfigurationpropertiesformat.go | 0 .../model_networkinterfacepropertiesformat.go | 0 .../model_networkinterfacetapconfiguration.go | 0 ...terfacetapconfigurationpropertiesformat.go | 0 .../model_networksecuritygroup.go | 0 ...el_networksecuritygrouppropertiesformat.go | 0 .../model_privateendpoint.go | 0 .../model_privateendpointconnection.go | 0 ...del_privateendpointconnectionproperties.go | 0 .../model_privateendpointipconfiguration.go | 0 ...rivateendpointipconfigurationproperties.go | 0 .../model_privateendpointproperties.go | 0 .../model_privatelinkservice.go | 0 .../model_privatelinkserviceconnection.go | 0 ..._privatelinkserviceconnectionproperties.go | 0 ...model_privatelinkserviceconnectionstate.go | 0 ...model_privatelinkserviceipconfiguration.go | 0 ...atelinkserviceipconfigurationproperties.go | 0 .../model_privatelinkserviceproperties.go | 1 + .../model_publicipaddress.go | 0 .../model_publicipaddressdnssettings.go | 0 .../model_publicipaddresspropertiesformat.go | 0 .../model_publicipaddresssku.go | 0 .../model_resourcenavigationlink.go | 0 .../model_resourcenavigationlinkformat.go | 0 .../model_resourceset.go | 0 .../model_retentionpolicyparameters.go | 0 .../vmsspublicipaddresses/model_route.go | 0 .../model_routepropertiesformat.go | 0 .../vmsspublicipaddresses/model_routetable.go | 0 .../model_routetablepropertiesformat.go | 0 .../model_securityrule.go | 0 .../model_securityrulepropertiesformat.go | 0 .../model_serviceassociationlink.go | 0 ..._serviceassociationlinkpropertiesformat.go | 0 ...model_servicedelegationpropertiesformat.go | 0 .../model_serviceendpointpolicy.go | 0 .../model_serviceendpointpolicydefinition.go | 0 ...ndpointpolicydefinitionpropertiesformat.go | 0 ...l_serviceendpointpolicypropertiesformat.go | 0 .../model_serviceendpointpropertiesformat.go | 1 + .../vmsspublicipaddresses/model_subnet.go | 0 .../model_subnetpropertiesformat.go | 0 .../model_subresource.go | 0 ...trafficanalyticsconfigurationproperties.go | 0 .../model_trafficanalyticsproperties.go | 0 .../model_virtualnetworktap.go | 0 ...model_virtualnetworktappropertiesformat.go | 0 .../vmsspublicipaddresses/predicates.go | 0 .../vmsspublicipaddresses/version.go | 4 +- .../vpngateways/README.md | 6 +- .../vpngateways/client.go | 0 .../vpngateways/constants.go | 0 .../vpngateways/id_vpngateway.go | 0 .../vpngateways/method_reset.go | 0 .../vpngateways/method_startpacketcapture.go | 0 .../vpngateways/method_stoppacketcapture.go | 0 .../vpngateways/method_updatetags.go | 0 .../vpngateways/model_bgpsettings.go | 0 ...atewaycustombgpipaddressipconfiguration.go | 0 .../model_ipconfigurationbgppeeringaddress.go | 0 .../vpngateways/model_ipsecpolicy.go | 0 .../vpngateways/model_propagatedroutetable.go | 0 .../vpngateways/model_routingconfiguration.go | 0 .../vpngateways/model_staticroute.go | 0 .../vpngateways/model_staticroutesconfig.go | 0 .../vpngateways/model_subresource.go | 0 .../vpngateways/model_tagsobject.go | 0 .../model_trafficselectorpolicy.go | 0 .../vpngateways/model_vnetroute.go | 0 .../vpngateways/model_vpnconnection.go | 0 .../model_vpnconnectionproperties.go | 0 .../vpngateways/model_vpngateway.go | 0 .../model_vpngatewayipconfiguration.go | 0 .../vpngateways/model_vpngatewaynatrule.go | 0 .../model_vpngatewaynatruleproperties.go | 0 ..._vpngatewaypacketcapturestartparameters.go | 0 ...l_vpngatewaypacketcapturestopparameters.go | 0 .../vpngateways/model_vpngatewayproperties.go | 0 .../vpngateways/model_vpnnatrulemapping.go | 0 .../model_vpnsitelinkconnection.go | 0 .../model_vpnsitelinkconnectionproperties.go | 0 .../vpngateways/version.go | 4 +- .../vpnlinkconnections/client.go | 0 .../id_vpnlinkconnection.go | 0 .../method_resetconnection.go | 0 .../vpnlinkconnections/version.go | 4 +- .../vpnserverconfigurations/README.md | 6 +- .../vpnserverconfigurations/client.go | 0 .../vpnserverconfigurations/constants.go | 0 .../id_vpnserverconfiguration.go | 0 .../method_updatetags.go | 0 .../model_aadauthenticationparameters.go | 0 .../model_addressspace.go | 0 .../model_ipsecpolicy.go | 0 .../model_p2sconnectionconfiguration.go | 0 ...el_p2sconnectionconfigurationproperties.go | 0 .../model_p2svpngateway.go | 0 .../model_p2svpngatewayproperties.go | 0 .../model_propagatedroutetable.go | 0 .../model_radiusserver.go | 0 .../model_routingconfiguration.go | 0 .../model_staticroute.go | 0 .../model_staticroutesconfig.go | 0 .../model_subresource.go | 0 .../model_tagsobject.go | 0 .../model_vnetroute.go | 0 .../model_vpnclientconnectionhealth.go | 0 ...serverconfigradiusclientrootcertificate.go | 0 ...serverconfigradiusserverrootcertificate.go | 0 .../model_vpnserverconfiguration.go | 0 ...model_vpnserverconfigurationpolicygroup.go | 0 ...vpnserverconfigurationpolicygroupmember.go | 0 ...erverconfigurationpolicygroupproperties.go | 0 .../model_vpnserverconfigurationproperties.go | 0 ...serverconfigvpnclientrevokedcertificate.go | 0 ...vpnserverconfigvpnclientrootcertificate.go | 0 .../vpnserverconfigurations/version.go | 4 +- .../vpnsites/README.md | 6 +- .../vpnsites/client.go | 0 .../vpnsites/constants.go | 0 .../vpnsites/id_vpnsite.go | 0 .../vpnsites/method_updatetags.go | 0 .../vpnsites/model_addressspace.go | 0 .../vpnsites/model_bgpsettings.go | 0 .../vpnsites/model_deviceproperties.go | 0 .../model_ipconfigurationbgppeeringaddress.go | 0 .../model_o365breakoutcategorypolicies.go | 0 .../vpnsites/model_o365policyproperties.go | 0 .../vpnsites/model_subresource.go | 0 .../vpnsites/model_tagsobject.go | 0 .../vpnsites/model_vpnlinkbgpsettings.go | 0 .../model_vpnlinkproviderproperties.go | 0 .../vpnsites/model_vpnsite.go | 0 .../vpnsites/model_vpnsitelink.go | 0 .../vpnsites/model_vpnsitelinkproperties.go | 0 .../vpnsites/model_vpnsiteproperties.go | 0 .../vpnsites/version.go | 4 +- .../webapplicationfirewallpolicies/README.md | 104 + .../webapplicationfirewallpolicies/client.go | 26 + .../constants.go | 3124 +++++++++++++++++ ...tiongatewaywebapplicationfirewallpolicy.go | 130 + .../method_createorupdate.go | 58 + .../method_delete.go | 71 + .../method_get.go | 53 + .../method_list.go | 106 + .../method_listall.go | 106 + .../model_applicationgateway.go | 21 + ...icationgatewayauthenticationcertificate.go | 12 + ...thenticationcertificatepropertiesformat.go | 9 + ...pplicationgatewayautoscaleconfiguration.go | 9 + .../model_applicationgatewaybackendaddress.go | 9 + ...el_applicationgatewaybackendaddresspool.go | 12 + ...tewaybackendaddresspoolpropertiesformat.go | 10 + ...l_applicationgatewaybackendhttpsettings.go | 12 + ...ewaybackendhttpsettingspropertiesformat.go | 21 + ...model_applicationgatewaybackendsettings.go | 12 + ...ngatewaybackendsettingspropertiesformat.go | 15 + ...plicationgatewayclientauthconfiguration.go | 9 + ...el_applicationgatewayconnectiondraining.go | 9 + .../model_applicationgatewaycustomerror.go | 9 + ...icationgatewayfirewalldisabledrulegroup.go | 9 + ...del_applicationgatewayfirewallexclusion.go | 10 + ...gatewayforcontainersreferencedefinition.go | 8 + ...plicationgatewayfrontendipconfiguration.go | 12 + ...frontendipconfigurationpropertiesformat.go | 13 + .../model_applicationgatewayfrontendport.go | 12 + ...tiongatewayfrontendportpropertiesformat.go | 9 + ...l_applicationgatewayglobalconfiguration.go | 9 + ...l_applicationgatewayheaderconfiguration.go | 10 + .../model_applicationgatewayhttplistener.go | 12 + ...tiongatewayhttplistenerpropertiesformat.go | 18 + ...model_applicationgatewayipconfiguration.go | 12 + ...ngatewayipconfigurationpropertiesformat.go | 9 + .../model_applicationgatewaylistener.go | 12 + ...licationgatewaylistenerpropertiesformat.go | 14 + ...pplicationgatewayloaddistributionpolicy.go | 12 + ...yloaddistributionpolicypropertiesformat.go | 10 + ...pplicationgatewayloaddistributiontarget.go | 12 + ...yloaddistributiontargetpropertiesformat.go | 9 + .../model_applicationgatewaypathrule.go | 12 + ...licationgatewaypathrulepropertiesformat.go | 15 + ...icationgatewayprivateendpointconnection.go | 12 + ...ewayprivateendpointconnectionproperties.go | 11 + ...licationgatewayprivatelinkconfiguration.go | 12 + ...tewayprivatelinkconfigurationproperties.go | 9 + ...cationgatewayprivatelinkipconfiguration.go | 12 + ...wayprivatelinkipconfigurationproperties.go | 12 + .../model_applicationgatewayprobe.go | 12 + ...licationgatewayprobehealthresponsematch.go | 9 + ...applicationgatewayprobepropertiesformat.go | 19 + ...odel_applicationgatewaypropertiesformat.go | 43 + ...applicationgatewayredirectconfiguration.go | 12 + ...ayredirectconfigurationpropertiesformat.go | 15 + ...el_applicationgatewayrequestroutingrule.go | 12 + ...tewayrequestroutingrulepropertiesformat.go | 17 + .../model_applicationgatewayrewriterule.go | 11 + ..._applicationgatewayrewriteruleactionset.go | 10 + ..._applicationgatewayrewriterulecondition.go | 11 + .../model_applicationgatewayrewriteruleset.go | 11 + ...ongatewayrewriterulesetpropertiesformat.go | 9 + .../model_applicationgatewayroutingrule.go | 12 + ...ationgatewayroutingrulepropertiesformat.go | 13 + .../model_applicationgatewaysku.go | 11 + .../model_applicationgatewaysslcertificate.go | 12 + ...ongatewaysslcertificatepropertiesformat.go | 12 + .../model_applicationgatewaysslpolicy.go | 12 + .../model_applicationgatewaysslprofile.go | 12 + ...cationgatewaysslprofilepropertiesformat.go | 11 + ...licationgatewaytrustedclientcertificate.go | 12 + ...rustedclientcertificatepropertiesformat.go | 11 + ...pplicationgatewaytrustedrootcertificate.go | 12 + ...ytrustedrootcertificatepropertiesformat.go | 10 + ...odel_applicationgatewayurlconfiguration.go | 10 + .../model_applicationgatewayurlpathmap.go | 12 + ...cationgatewayurlpathmappropertiesformat.go | 14 + ...ewaywebapplicationfirewallconfiguration.go | 17 + .../model_applicationsecuritygroup.go | 14 + ...pplicationsecuritygrouppropertiesformat.go | 9 + .../model_backendaddresspool.go | 12 + ...odel_backendaddresspoolpropertiesformat.go | 19 + .../model_customdnsconfigpropertiesformat.go | 9 + .../model_ddossettings.go | 9 + .../model_delegation.go | 12 + .../model_exceptionentry.go | 13 + .../model_exclusionmanagedrule.go | 8 + .../model_exclusionmanagedrulegroup.go | 9 + .../model_exclusionmanagedruleset.go | 10 + .../model_flowlog.go | 19 + .../model_flowlogformatparameters.go | 9 + .../model_flowlogpropertiesformat.go | 16 + .../model_frontendipconfiguration.go | 17 + ...frontendipconfigurationpropertiesformat.go | 19 + ...odel_gatewayloadbalancertunnelinterface.go | 11 + .../model_groupbyusersession.go | 8 + .../model_groupbyvariable.go | 8 + .../model_headervaluematcher.go | 10 + .../model_inboundnatrule.go | 12 + .../model_inboundnatrulepropertiesformat.go | 19 + .../model_ipconfiguration.go | 11 + .../model_ipconfigurationprofile.go | 12 + ..._ipconfigurationprofilepropertiesformat.go | 9 + .../model_ipconfigurationpropertiesformat.go | 12 + .../model_iptag.go | 9 + .../model_loadbalancerbackendaddress.go | 9 + ...dbalancerbackendaddresspropertiesformat.go | 14 + .../model_managedrulegroupoverride.go | 9 + .../model_managedruleoverride.go | 11 + .../model_managedrulesdefinition.go | 10 + .../model_managedruleset.go | 10 + .../model_matchcondition.go | 12 + .../model_matchvariable.go | 9 + .../model_natgateway.go | 20 + .../model_natgatewaypropertiesformat.go | 13 + .../model_natgatewaysku.go | 8 + .../model_natruleportmapping.go | 10 + .../model_networkinterface.go | 19 + .../model_networkinterfacednssettings.go | 12 + .../model_networkinterfaceipconfiguration.go | 12 + ...gurationprivatelinkconnectionproperties.go | 10 + ...nterfaceipconfigurationpropertiesformat.go | 22 + .../model_networkinterfacepropertiesformat.go | 29 + .../model_networkinterfacetapconfiguration.go | 12 + ...terfacetapconfigurationpropertiesformat.go | 9 + .../model_networksecuritygroup.go | 14 + ...el_networksecuritygrouppropertiesformat.go | 15 + .../model_owaspcrsexclusionentry.go | 11 + .../model_policysettings.go | 19 + .../model_policysettingslogscrubbing.go | 9 + .../model_privateendpoint.go | 19 + .../model_privateendpointconnection.go | 12 + ...del_privateendpointconnectionproperties.go | 12 + .../model_privateendpointipconfiguration.go | 11 + ...rivateendpointipconfigurationproperties.go | 10 + .../model_privateendpointproperties.go | 16 + .../model_privatelinkservice.go | 19 + .../model_privatelinkserviceconnection.go | 12 + ..._privatelinkserviceconnectionproperties.go | 12 + ...model_privatelinkserviceconnectionstate.go | 10 + ...model_privatelinkserviceipconfiguration.go | 12 + ...atelinkserviceipconfigurationproperties.go | 13 + .../model_privatelinkserviceproperties.go | 18 + .../model_publicipaddress.go | 22 + .../model_publicipaddressdnssettings.go | 11 + .../model_publicipaddresspropertiesformat.go | 23 + .../model_publicipaddresssku.go | 9 + .../model_resourcenavigationlink.go | 12 + .../model_resourcenavigationlinkformat.go | 10 + .../model_resourceset.go | 8 + .../model_retentionpolicyparameters.go | 9 + .../model_route.go | 12 + .../model_routepropertiesformat.go | 12 + .../model_routetable.go | 14 + .../model_routetablepropertiesformat.go | 12 + .../model_securityrule.go | 12 + .../model_securityrulepropertiesformat.go | 23 + .../model_serviceassociationlink.go | 12 + ..._serviceassociationlinkpropertiesformat.go | 12 + ...model_servicedelegationpropertiesformat.go | 10 + .../model_serviceendpointpolicy.go | 15 + .../model_serviceendpointpolicydefinition.go | 12 + ...ndpointpolicydefinitionpropertiesformat.go | 11 + ...l_serviceendpointpolicypropertiesformat.go | 13 + .../model_serviceendpointpropertiesformat.go | 11 + .../model_subnet.go | 12 + .../model_subnetpropertiesformat.go | 28 + .../model_subresource.go | 8 + ...trafficanalyticsconfigurationproperties.go | 12 + .../model_trafficanalyticsproperties.go | 8 + .../model_virtualnetworktap.go | 14 + ...model_virtualnetworktappropertiesformat.go | 13 + .../model_webapplicationfirewallcustomrule.go | 17 + .../model_webapplicationfirewallpolicy.go | 14 + ...plicationfirewallpolicypropertiesformat.go | 16 + ...el_webapplicationfirewallscrubbingrules.go | 11 + .../predicates.go | 37 + .../webapplicationfirewallpolicies/version.go | 10 + .../webcategories/README.md | 6 +- .../webcategories/client.go | 0 .../webcategories/id_azurewebcategory.go | 0 .../webcategories/method_get.go | 0 .../method_listbysubscription.go | 0 .../webcategories/model_azurewebcategory.go | 0 .../model_azurewebcategorypropertiesformat.go | 0 .../webcategories/predicates.go | 0 .../webcategories/version.go | 4 +- vendor/modules.txt | 166 +- 4403 files changed, 127024 insertions(+), 834 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlog.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlog.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_probepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowloginformation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowlogproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlog.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/id_securityadminconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/id_securityadminconfigurationrulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_adminrulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_adminrulecollectionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_networkmanagersecuritygroupitem.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/client.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01/networkmanageractiveconfigurations => 2024-03-01/adminrules}/constants.go (91%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/id_securityadminconfigurationrulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/id_securityadminconfigurationrulecollectionrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_addressprefixitem.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_adminpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_adminrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_baseadminrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_defaultadminpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_defaultadminrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/id_applicationgateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/id_applicationgatewayprivateendpointconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/method_update.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_applicationsecuritygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_applicationsecuritygrouppropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_backendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_backendaddresspoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_customdnsconfigpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_ddossettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_delegation.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlog.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_flowlogformatparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_flowlogpropertiesformat.go (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_frontendipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_frontendipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_gatewayloadbalancertunnelinterface.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_inboundnatrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_inboundnatrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_ipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_ipconfigurationprofile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_ipconfigurationprofilepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_ipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_iptag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddresspropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_natgateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_natgatewaypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_natgatewaysku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_natruleportmapping.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_networkinterface.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_networkinterfacednssettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_networkinterfacepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_networksecuritygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_networksecuritygrouppropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_privateendpoint.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_privateendpointconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_privateendpointconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_privateendpointipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_privateendpointipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_privateendpointproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_privatelinkservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionstate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_privatelinkserviceproperties.go (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_publicipaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_publicipaddressdnssettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_publicipaddresspropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_publicipaddresssku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_resourcenavigationlink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_resourcenavigationlinkformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_resourceset.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_retentionpolicyparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_route.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_routepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_routetable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_routetablepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_securityrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_securityrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_serviceassociationlink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_serviceassociationlinkpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_servicedelegationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_serviceendpointpolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinition.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinitionpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_serviceendpointpolicypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_serviceendpointpropertiesformat.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_subnet.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_subnetpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_trafficanalyticsconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_trafficanalyticsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_virtualnetworktap.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/model_virtualnetworktappropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivateendpointconnections/version.go (82%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivatelinkresources/README.md (84%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivatelinkresources/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivatelinkresources/id_applicationgateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivatelinkresources/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresourceproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivatelinkresources/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewayprivatelinkresources/version.go (83%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/id_applicationgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/id_predefinedpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_backendhealth.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_backendhealthondemand.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_getsslpredefinedpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablerequestheaders.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailableresponseheaders.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailableservervariables.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablessloptions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablesslpredefinedpolicies.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablewafrulesets.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_start.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_stop.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayauthenticationcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayauthenticationcertificatepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayautoscaleconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablessloptions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablessloptionspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablewafrulesetsresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealth.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthhttpsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthondemand.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthpool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthserver.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhttpsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhttpsettingspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendsettingspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayclientauthconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayconnectiondraining.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaycustomerror.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewalldisabledrulegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallexclusion.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrulegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallruleset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrulesetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendport.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendportpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayglobalconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayheaderconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayhttplistener.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayhttplistenerpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaylistener.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaylistenerpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributionpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributionpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributiontarget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributiontargetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayondemandprobe.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypathrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypathrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobe.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobehealthresponsematch.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayredirectconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayredirectconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrequestroutingrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrequestroutingrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriteruleactionset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterulecondition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriteruleset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterulesetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayroutingrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayroutingrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslcertificatepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpredefinedpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpredefinedpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslprofilepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedclientcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedclientcertificatepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedrootcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedrootcertificatepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlpathmap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlpathmappropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaywebapplicationfirewallconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationsecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_backendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_backendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_customdnsconfigpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ddossettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_delegation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlogformatparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlogpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_frontendipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_frontendipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_gatewayloadbalancertunnelinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_headervaluematcher.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_inboundnatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_inboundnatrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationprofilepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_iptag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_loadbalancerbackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_loadbalancerbackendaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natruleportmapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacednssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacetapconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacetapconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networksecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnectionstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddressdnssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddresssku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourcenavigationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourcenavigationlinkformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourceset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_retentionpolicyparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_route.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routetablepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_securityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_securityrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceassociationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceassociationlinkpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_servicedelegationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicydefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicydefinitionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subnetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_trafficanalyticsconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_trafficanalyticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_virtualnetworktap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_virtualnetworktappropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewaywafdynamicmanifests/README.md (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewaywafdynamicmanifests/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewaywafdynamicmanifests/constants.go (79%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewaywafdynamicmanifests/id_location.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewaywafdynamicmanifests/method_defaultget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewaywafdynamicmanifests/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallmanifestruleset.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrule.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrulegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestpropertiesresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewaywafdynamicmanifests/model_defaultrulesetpropertyformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewaywafdynamicmanifests/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/applicationgatewaywafdynamicmanifests/version.go (83%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/id_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_listall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_applicationsecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availabledelegations/README.md (91%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availabledelegations/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availabledelegations/id_location.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availabledelegations/id_providerlocation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availabledelegations/method_availabledelegationslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availabledelegations/method_availableresourcegroupdelegationslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availabledelegations/model_availabledelegation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availabledelegations/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availabledelegations/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availableservicealiases/README.md (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availableservicealiases/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availableservicealiases/id_location.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availableservicealiases/id_providerlocation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availableservicealiases/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availableservicealiases/method_listbyresourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availableservicealiases/model_availableservicealias.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availableservicealiases/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/availableservicealiases/version.go (68%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/id_azurefirewall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_azurefirewallslistlearnedprefixes.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_listall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_packetcapture.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrulecollectionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationruleprotocol.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallautoscaleconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipgroups.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrcaction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrulecollectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrulecollectionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpacketcaptureflags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpacketcapturerule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpublicipaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallrcaction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallsku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_firewallpacketcaptureparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_hubipaddresses.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_hubpublicipaddresses.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_ipprefixeslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/README.md (98%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/constants.go (97%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/id_bastionhost.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/method_deletebastionshareablelink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/method_deletebastionshareablelinkbytoken.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/method_disconnectactivesessions.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/method_getactivesessions.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/method_getbastionshareablelink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/method_listbyresourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/method_putbastionshareablelink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/method_updatetags.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/model_bastionactivesession.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/model_bastionhost.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/model_bastionhostipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/model_bastionhostipconfigurationpropertiesformat.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostpropertiesformat.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/model_bastionhostpropertiesformatnetworkacls.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/model_bastionsessionstate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/model_bastionshareablelink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/model_bastionshareablelinklistrequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/model_bastionshareablelinktokenlistrequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/model_iprule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/model_resource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/model_sessionids.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/model_sku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/model_tagsobject.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionhosts/version.go (68%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionshareablelink/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionshareablelink/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionshareablelink/id_bastionhost.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionshareablelink/method_deletebastionshareablelink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionshareablelink/method_deletebastionshareablelinkbytoken.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionshareablelink/method_getbastionshareablelink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionshareablelink/method_putbastionshareablelink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionshareablelink/model_bastionshareablelink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionshareablelink/model_bastionshareablelinklistrequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionshareablelink/model_bastionshareablelinktokenlistrequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionshareablelink/model_resource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionshareablelink/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bastionshareablelink/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bgpservicecommunities/README.md (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bgpservicecommunities/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bgpservicecommunities/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bgpservicecommunities/model_bgpcommunity.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bgpservicecommunities/model_bgpservicecommunity.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bgpservicecommunities/model_bgpservicecommunitypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bgpservicecommunities/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/bgpservicecommunities/version.go (68%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/checkdnsavailabilities/README.md (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/checkdnsavailabilities/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/checkdnsavailabilities/id_location.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/checkdnsavailabilities/method_checkdnsnameavailability.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/checkdnsavailabilities/model_dnsnameavailabilityresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/checkdnsavailabilities/version.go (68%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/client.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/id_providercloudservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_applicationgatewaybackendaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_applicationgatewayipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_applicationsecuritygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_applicationsecuritygrouppropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_backendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_backendaddresspoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_customdnsconfigpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_ddossettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_delegation.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlog.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_flowlogformatparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_flowlogpropertiesformat.go (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_frontendipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_frontendipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_gatewayloadbalancertunnelinterface.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_inboundnatrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_inboundnatrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_ipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_ipconfigurationprofile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_ipconfigurationprofilepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_ipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_iptag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_loadbalancerbackendaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_natgateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_natgatewaypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_natgatewaysku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_natruleportmapping.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_networkinterface.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_networkinterfacednssettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_networkinterfaceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_networkinterfacepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_networkinterfacetapconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_networksecuritygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_networksecuritygrouppropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_privateendpoint.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_privateendpointconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_privateendpointconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_privateendpointipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_privateendpointipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_privateendpointproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_privatelinkservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_privatelinkserviceconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_privatelinkserviceconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_privatelinkserviceconnectionstate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_privatelinkserviceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_privatelinkserviceipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_privatelinkserviceproperties.go (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_publicipaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_publicipaddressdnssettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_publicipaddresspropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_publicipaddresssku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_resourcenavigationlink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_resourcenavigationlinkformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_resourceset.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_retentionpolicyparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_route.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_routepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_routetable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_routetablepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_securityrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_securityrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_serviceassociationlink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_serviceassociationlinkpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_servicedelegationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_serviceendpointpolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_serviceendpointpolicydefinition.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_serviceendpointpolicypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_serviceendpointpropertiesformat.go (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_subnet.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_subnetpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_trafficanalyticsconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_trafficanalyticsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_virtualnetworktap.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/model_virtualnetworktappropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/cloudservicepublicipaddresses/version.go (85%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/id_connectionmonitor.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/id_networkwatcher.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_query.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_start.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_stop.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitor.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitordestination.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointfilter.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointfilteritem.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointlocationdetails.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointscope.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointscopeitem.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorhttpconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitoricmpconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorlistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitoroutput.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorqueryresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorresultproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorsource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorsuccessthreshold.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortcpconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortestconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortestgroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorworkspacesettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionstatesnapshot.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectivityhop.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectivityissue.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_hoplink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_hoplinkproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_httpheader.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/client.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01/networkmanageractiveconnectivityconfigurations => 2024-03-01/connectivityconfigurations}/constants.go (99%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/id_connectivityconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/id_networkmanager.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivityconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivityconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivitygroupitem.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_hub.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/id_customipprefix.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_listall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_customipprefix.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_customipprefixpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ddoscustompolicies/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ddoscustompolicies/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ddoscustompolicies/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ddoscustompolicies/id_ddoscustompolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ddoscustompolicies/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ddoscustompolicies/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ddoscustompolicies/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ddoscustompolicies/method_updatetags.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ddoscustompolicies/model_ddoscustompolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ddoscustompolicies/model_ddoscustompolicypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ddoscustompolicies/model_tagsobject.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ddoscustompolicies/version.go (67%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/id_ddosprotectionplan.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_listbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_ddosprotectionplan.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_ddosprotectionplanpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/README.md (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/id_dscpconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_applicationgatewaybackendaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_applicationgatewaybackendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_applicationgatewaybackendaddresspoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_applicationgatewayipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_applicationgatewayipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_applicationsecuritygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_applicationsecuritygrouppropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_backendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_backendaddresspoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_customdnsconfigpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_ddossettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_delegation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_dscpconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_dscpconfigurationpropertiesformat.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlog.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_flowlogformatparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_flowlogpropertiesformat.go (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_frontendipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_frontendipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_gatewayloadbalancertunnelinterface.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_inboundnatrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_inboundnatrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_ipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_ipconfigurationprofile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_ipconfigurationprofilepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_ipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_iptag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_loadbalancerbackendaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_loadbalancerbackendaddresspropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_natgateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_natgatewaypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_natgatewaysku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_natruleportmapping.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_networkinterface.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_networkinterfacednssettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_networkinterfaceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_networkinterfaceipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_networkinterfacepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_networkinterfacetapconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_networkinterfacetapconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_networksecuritygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_networksecuritygrouppropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_privateendpoint.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_privateendpointconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_privateendpointconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_privateendpointipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_privateendpointipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_privateendpointproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_privatelinkservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_privatelinkserviceconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_privatelinkserviceconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_privatelinkserviceconnectionstate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_privatelinkserviceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_privatelinkserviceipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_privatelinkserviceproperties.go (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_publicipaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_publicipaddressdnssettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_publicipaddresspropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_publicipaddresssku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_qosdefinition.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_qosiprange.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_qosportrange.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_resourcenavigationlink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_resourcenavigationlinkformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_resourceset.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_retentionpolicyparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_route.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_routepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_routetable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_routetablepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_securityrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_securityrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_serviceassociationlink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_serviceassociationlinkpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_servicedelegationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_serviceendpointpolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_serviceendpointpolicydefinition.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_serviceendpointpolicydefinitionpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_serviceendpointpolicypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_serviceendpointpropertiesformat.go (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_subnet.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_subnetpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_trafficanalyticsconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_trafficanalyticsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_virtualnetworktap.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/model_virtualnetworktappropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfiguration/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/README.md (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/method_dscpconfigurationlist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/method_dscpconfigurationlistall.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_applicationgatewaybackendaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_applicationgatewaybackendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_applicationgatewaybackendaddresspoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_applicationgatewayipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_applicationgatewayipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_applicationsecuritygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_applicationsecuritygrouppropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_backendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_backendaddresspoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_customdnsconfigpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_ddossettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_delegation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_dscpconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_dscpconfigurationpropertiesformat.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlog.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_flowlogformatparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_flowlogpropertiesformat.go (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_frontendipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_frontendipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_gatewayloadbalancertunnelinterface.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_inboundnatrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_inboundnatrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_ipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_ipconfigurationprofile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_ipconfigurationprofilepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_ipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_iptag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_loadbalancerbackendaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_loadbalancerbackendaddresspropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_natgateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_natgatewaypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_natgatewaysku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_natruleportmapping.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_networkinterface.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_networkinterfacednssettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_networkinterfaceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_networkinterfaceipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_networkinterfacepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_networkinterfacetapconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_networkinterfacetapconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_networksecuritygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_networksecuritygrouppropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_privateendpoint.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_privateendpointconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_privateendpointconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_privateendpointipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_privateendpointipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_privateendpointproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_privatelinkservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_privatelinkserviceconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_privatelinkserviceconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_privatelinkserviceconnectionstate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_privatelinkserviceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_privatelinkserviceipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_privatelinkserviceproperties.go (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_publicipaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_publicipaddressdnssettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_publicipaddresspropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_publicipaddresssku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_qosdefinition.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_qosiprange.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_qosportrange.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_resourcenavigationlink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_resourcenavigationlinkformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_resourceset.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_retentionpolicyparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_route.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_routepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_routetable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_routetablepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_securityrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_securityrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_serviceassociationlink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_serviceassociationlinkpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_servicedelegationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_serviceendpointpolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_serviceendpointpolicydefinition.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_serviceendpointpolicydefinitionpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_serviceendpointpolicypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_serviceendpointpropertiesformat.go (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_subnet.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_subnetpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_trafficanalyticsconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_trafficanalyticsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_virtualnetworktap.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/model_virtualnetworktappropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/dscpconfigurations/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/endpointservices/README.md (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/endpointservices/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/endpointservices/id_location.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/endpointservices/method_availableendpointserviceslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/endpointservices/model_endpointserviceresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/endpointservices/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/endpointservices/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitarptable/README.md (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitarptable/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitarptable/id_arptable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitarptable/model_expressroutecircuitarptable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitarptable/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitarptable/version.go (66%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/id_authorization.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/id_expressroutecircuit.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/model_authorizationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/model_expressroutecircuitauthorization.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/id_peeringconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_expressroutecircuitconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_expressroutecircuitconnectionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_ipv6circuitconnectionconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/id_expressroutecircuit.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitconnectionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeering.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitstats.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressrouteconnectionid.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_ipv6circuitconnectionconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_ipv6expressroutecircuitpeeringconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnectionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitroutestable/README.md (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitroutestable/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitroutestable/id_peeringroutetable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitroutestable/model_expressroutecircuitroutestable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitroutestable/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitroutestable/version.go (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitroutestablesummary/README.md (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitroutestablesummary/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitroutestablesummary/id_routetablessummary.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitroutestablesummary/model_expressroutecircuitroutestablesummary.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitroutestablesummary/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitroutestablesummary/version.go (83%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/id_expressroutecircuit.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_get.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01/expressroutecrossconnections => 2024-03-01/expressroutecircuits}/method_list.go (69%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_listall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_authorizationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuit.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitauthorization.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitconnectionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeering.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeeringconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeeringpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitserviceproviderproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitsku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitstats.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressrouteconnectionid.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_ipv6circuitconnectionconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_ipv6expressroutecircuitpeeringconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_peerexpressroutecircuitconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_peerexpressroutecircuitconnectionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitstats/README.md (91%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitstats/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitstats/id_expressroutecircuit.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitstats/method_expressroutecircuitsgetpeeringstats.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitstats/method_expressroutecircuitsgetstats.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitstats/model_expressroutecircuitstats.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecircuitstats/version.go (68%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/id_expressrouteconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/id_expressroutegateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressroutecircuitpeeringid.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnectionlist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_propagatedroutetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_routingconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_staticroute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_staticroutesconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_vnetroute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionarptable/README.md (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionarptable/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionarptable/id_peeringarptable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionarptable/model_expressroutecircuitarptable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionarptable/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionarptable/version.go (84%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionpeerings/README.md (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionpeerings/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionpeerings/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionpeerings/id_expressroutecrossconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionpeerings/id_peering.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionpeerings/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionpeerings/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionpeerings/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionpeerings/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionpeerings/model_expressroutecircuitpeeringconfig.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeering.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeeringproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionpeerings/model_ipv6expressroutecircuitpeeringconfig.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionpeerings/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionpeerings/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionpeerings/version.go (84%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionroutetable/README.md (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionroutetable/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionroutetable/id_expressroutecrossconnectionpeeringroutetable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionroutetable/model_expressroutecircuitroutestable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionroutetable/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionroutetable/version.go (83%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionroutetablesummary/README.md (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionroutetablesummary/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionroutetablesummary/id_peeringroutetablessummary.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionroutetablesummary/model_expressroutecrossconnectionroutestablesummary.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionroutetablesummary/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnectionroutetablesummary/version.go (82%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/README.md (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/id_expressroutecrossconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/method_get.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_list.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/method_listbyresourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/method_updatetags.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/model_expressroutecircuitpeeringconfig.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/model_expressroutecircuitreference.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/model_expressroutecrossconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/model_expressroutecrossconnectionpeering.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/model_expressroutecrossconnectionpeeringproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/model_expressroutecrossconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/model_ipv6expressroutecircuitpeeringconfig.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/model_tagsobject.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutecrossconnections/version.go (85%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/id_expressroutegateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_listbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_listbysubscription.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutecircuitpeeringid.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressrouteconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressrouteconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaylist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewayproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaypropertiesautoscaleconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaypropertiesautoscaleconfigurationbounds.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_propagatedroutetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_routingconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_staticroute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_staticroutesconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_virtualhubid.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_vnetroute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutelinks/README.md (91%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutelinks/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutelinks/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutelinks/id_expressrouteport.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutelinks/id_link.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutelinks/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutelinks/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutelinks/model_expressroutelink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutelinks/model_expressroutelinkmacsecconfig.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutelinks/model_expressroutelinkpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutelinks/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressroutelinks/version.go (67%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/id_expressrouteport.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/id_expressrouteportauthorization.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/model_expressrouteportauthorization.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/model_expressrouteportauthorizationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/id_expressrouteport.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_generateloa.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_listbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelinkmacsecconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelinkpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressrouteport.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressrouteportpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_generateexpressrouteportsloarequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_generateexpressrouteportsloaresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteportslocations/README.md (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteportslocations/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteportslocations/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteportslocations/id_expressrouteportslocation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteportslocations/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteportslocations/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteportslocations/model_expressrouteportslocation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteportslocations/model_expressrouteportslocationbandwidths.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteportslocations/model_expressrouteportslocationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteportslocations/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteportslocations/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteproviderports/README.md (91%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteproviderports/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteproviderports/id_expressrouteproviderport.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteproviderports/method_expressrouteproviderport.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteproviderports/method_locationlist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteproviderports/model_expressrouteproviderport.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteproviderports/model_expressrouteproviderportproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteproviderports/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteproviderports/version.go (66%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteserviceproviders/README.md (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteserviceproviders/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteserviceproviders/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteserviceproviders/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteserviceproviders/model_expressrouteserviceprovider.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteserviceproviders/model_expressrouteserviceproviderbandwidthsoffered.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteserviceproviders/model_expressrouteserviceproviderpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteserviceproviders/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/expressrouteserviceproviders/version.go (85%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/id_firewallpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/id_rulecollectiongroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydeploymentsdeploy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftscreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftsdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftsget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesfiltervalueslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignatureslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverrideslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridespatch.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesput.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftscreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_listall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_applicationrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_dnssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_explicitproxy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_filteritems.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicycertificateauthority.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicydraft.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicydraftproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyfilterrulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyfilterrulecollectionaction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyhttpheadertoinsert.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyinsights.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionbypasstrafficspecifications.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionsignaturespecification.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyloganalyticsresources.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyloganalyticsworkspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicynatrulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicynatrulecollectionaction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyruleapplicationprotocol.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraft.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraftproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysnat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysql.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicythreatintelwhitelist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicytransportsecurity.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_idpsqueryobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_natrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_networkrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_orderby.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_queryresults.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signatureoverridesfiltervaluesquery.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signatureoverridesfiltervaluesresponse.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverrides.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverrideslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverridesproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_singlequeryresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/id_firewallpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/id_rulecollectiongroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_applicationrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollectionaction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyhttpheadertoinsert.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollectionaction.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyruleapplicationprotocol.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroupproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_natrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_networkrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/id_flowlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/id_networkwatcher.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlogformatparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlogpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_retentionpolicyparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_trafficanalyticsconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_trafficanalyticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ipallocations/README.md (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ipallocations/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ipallocations/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ipallocations/id_ipallocation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ipallocations/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ipallocations/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ipallocations/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ipallocations/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ipallocations/method_listbyresourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ipallocations/method_updatetags.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ipallocations/model_ipallocation.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ipallocations/model_ipallocationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ipallocations/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ipallocations/model_tagsobject.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ipallocations/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/ipallocations/version.go (68%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/id_ipgroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_listbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_updategroups.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01/loadbalancers/model_flowlog.go => 2024-03-01/ipgroups/model_ipgroup.go} (83%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_ipgrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/README.md (99%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/constants.go (97%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/id_backendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/id_frontendipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/id_inboundnatrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/id_loadbalancer.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/id_loadbalancerbackendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/id_loadbalancingrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/id_location.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/id_outboundrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/id_probe.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/id_providerloadbalancer.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_inboundnatrulescreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_inboundnatrulesdelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_inboundnatrulesget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_inboundnatruleslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_listall.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_listinboundnatruleportmappings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_loadbalancerbackendaddresspoolscreateorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_loadbalancerbackendaddresspoolsdelete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_loadbalancerbackendaddresspoolsget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_loadbalancerbackendaddresspoolslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_loadbalancerloadbalancingrulesget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_loadbalancerloadbalancingruleslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_loadbalancernetworkinterfaceslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_loadbalanceroutboundrulesget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_loadbalanceroutboundruleslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_loadbalancerprobesget.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_loadbalancerprobeslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_migratetoipbased.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_swappublicipaddresses.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/method_updatetags.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_applicationgatewaybackendaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_applicationgatewaybackendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_applicationgatewaybackendaddresspoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_applicationgatewayipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_applicationgatewayipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_applicationsecuritygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_applicationsecuritygrouppropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_backendaddressinboundnatruleportmappings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_backendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_backendaddresspoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_customdnsconfigpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_ddossettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_delegation.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlog.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_flowlogformatparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_flowlogpropertiesformat.go (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_frontendipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_frontendipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_gatewayloadbalancertunnelinterface.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_inboundnatpool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_inboundnatpoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_inboundnatrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_inboundnatruleportmapping.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_inboundnatrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_ipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_ipconfigurationprofile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_ipconfigurationprofilepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_ipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_iptag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_loadbalancer.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_loadbalancerbackendaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_loadbalancerbackendaddresspropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_loadbalancerpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_loadbalancersku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_loadbalancervipswaprequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_loadbalancervipswaprequestfrontendipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_loadbalancervipswaprequestfrontendipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_loadbalancingrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_loadbalancingrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_migratedpools.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_migrateloadbalancertoipbasedrequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_natgateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_natgatewaypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_natgatewaysku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_natruleportmapping.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_networkinterface.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_networkinterfacednssettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_networkinterfaceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_networkinterfaceipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_networkinterfacepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_networkinterfacetapconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_networkinterfacetapconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_networksecuritygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_networksecuritygrouppropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_outboundrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_outboundrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_privateendpoint.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_privateendpointconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_privateendpointconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_privateendpointipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_privateendpointipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_privateendpointproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_privatelinkservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_privatelinkserviceconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_privatelinkserviceconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_privatelinkserviceconnectionstate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_privatelinkserviceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_privatelinkserviceipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_privatelinkserviceproperties.go (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_probe.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_probepropertiesformat.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_publicipaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_publicipaddressdnssettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_publicipaddresspropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_publicipaddresssku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_queryinboundnatruleportmappingrequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_resourcenavigationlink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_resourcenavigationlinkformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_resourceset.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_retentionpolicyparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_route.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_routepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_routetable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_routetablepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_securityrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_securityrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_serviceassociationlink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_serviceassociationlinkpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_servicedelegationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_serviceendpointpolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_serviceendpointpolicydefinition.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_serviceendpointpolicydefinitionpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_serviceendpointpolicypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_serviceendpointpropertiesformat.go (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_subnet.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_subnetpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_tagsobject.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_trafficanalyticsconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_trafficanalyticsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_virtualnetworktap.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/model_virtualnetworktappropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/loadbalancers/version.go (68%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/id_localnetworkgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_addressspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_bgpsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_ipconfigurationbgppeeringaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_localnetworkgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_localnetworkgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/id_natgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_listall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/id_networkgroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/id_networkmanager.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/model_networkgroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/model_networkgroupproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_providercloudservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_roleinstance.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_roleinstancenetworkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_tapconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_virtualmachine.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_virtualmachinescaleset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getcloudservicenetworkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_geteffectiveroutetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationscreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationsdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewayipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewayipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationsecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_backendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_backendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_customdnsconfigpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ddossettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_delegation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecuritygroupassociation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecurityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectiveroute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlogformatparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlogpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_frontendipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_frontendipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_gatewayloadbalancertunnelinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatpool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatpoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationprofilepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_iptag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancer.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerbackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerbackendaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancersku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancingrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancingrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natruleportmapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacednssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacetapconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacetapconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networksecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_outboundrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_outboundrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnectionstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_probe.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_probepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddressdnssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddresssku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourcenavigationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourcenavigationlinkformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourceset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_retentionpolicyparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_route.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routetablepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_securityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_securityrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceassociationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceassociationlinkpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_servicedelegationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicydefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicydefinitionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subnetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_trafficanalyticsconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_trafficanalyticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_virtualnetworktap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_virtualnetworktappropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconfigurations/README.md (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconfigurations/client.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/constants.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconfigurations/id_networkmanager.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconfigurations/method_listactivesecurityadminrules.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconfigurations/model_activebasesecurityadminrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconfigurations/model_activeconfigurationparameter.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconfigurations/model_activedefaultsecurityadminrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconfigurations/model_activesecurityadminrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconfigurations/model_activesecurityadminruleslistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconfigurations/model_addressprefixitem.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconfigurations/model_adminpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconfigurations/model_configurationgroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconfigurations/model_defaultadminpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconfigurations/model_networkgroupproperties.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconfigurations/model_networkmanagersecuritygroupitem.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconfigurations/version.go (84%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconnectivityconfigurations/README.md (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconnectivityconfigurations/client.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/constants.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconnectivityconfigurations/id_networkmanager.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconnectivityconfigurations/method_listactiveconnectivityconfigurations.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconnectivityconfigurations/model_activeconfigurationparameter.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfigurationslistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconnectivityconfigurations/model_configurationgroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconnectivityconfigurations/model_connectivityconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconnectivityconfigurations/model_connectivitygroupitem.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconnectivityconfigurations/model_hub.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconnectivityconfigurations/model_networkgroupproperties.go (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanageractiveconnectivityconfigurations/version.go (82%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/id_networkmanagerconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/id_providers2networkmanagerconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionscreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionscreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/model_networkmanagerconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/model_networkmanagerconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectiveconnectivityconfiguration/README.md (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectiveconnectivityconfiguration/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectiveconnectivityconfiguration/constants.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectiveconnectivityconfiguration/method_listnetworkmanagereffectiveconnectivityconfigurations.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectiveconnectivityconfiguration/model_configurationgroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectiveconnectivityconfiguration/model_connectivityconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectiveconnectivityconfiguration/model_connectivitygroupitem.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectiveconnectivityconfiguration/model_effectiveconnectivityconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectiveconnectivityconfiguration/model_hub.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectiveconnectivityconfiguration/model_networkgroupproperties.go (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectiveconnectivityconfiguration/model_networkmanagereffectiveconnectivityconfigurationlistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectiveconnectivityconfiguration/model_queryrequestoptions.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectiveconnectivityconfiguration/version.go (81%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectivesecurityadminrules/README.md (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectivesecurityadminrules/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectivesecurityadminrules/constants.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectivesecurityadminrules/method_listnetworkmanagereffectivesecurityadminrules.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectivesecurityadminrules/model_addressprefixitem.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectivesecurityadminrules/model_adminpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectivesecurityadminrules/model_configurationgroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectivesecurityadminrules/model_defaultadminpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectivesecurityadminrules/model_effectivebasesecurityadminrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectivesecurityadminrules/model_effectivedefaultsecurityadminrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectivesecurityadminrules/model_effectivesecurityadminrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectivesecurityadminrules/model_networkgroupproperties.go (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectivesecurityadminrules/model_networkmanagereffectivesecurityadminruleslistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectivesecurityadminrules/model_networkmanagersecuritygroupitem.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectivesecurityadminrules/model_queryrequestoptions.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/networkmanagereffectivesecurityadminrules/version.go (83%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/id_networkmanager.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/id_routingconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/model_networkmanagerroutingconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/model_networkmanagerroutingconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/id_networkmanager.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_listbysubscription.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_networkmanagercommitspost.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_patch.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_crosstenantscopes.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanager.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagercommit.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatuslistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatusparameter.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerpropertiesnetworkmanagerscopes.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_patchobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/id_networkprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_listall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewayipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewayipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationsecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_backendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_backendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfacepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_customdnsconfigpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ddossettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_delegation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlogformatparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlogpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_frontendipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_frontendipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_gatewayloadbalancertunnelinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_inboundnatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_inboundnatrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationprofilepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_iptag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_loadbalancerbackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_loadbalancerbackendaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natruleportmapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacednssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacetapconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacetapconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkprofilepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networksecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnectionstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddressdnssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddresssku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourcenavigationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourcenavigationlinkformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourceset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_retentionpolicyparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_route.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routetablepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_securityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_securityrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceassociationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceassociationlinkpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_servicedelegationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicydefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicydefinitionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subnetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_trafficanalyticsconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_trafficanalyticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_virtualnetworktap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_virtualnetworktappropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/id_networksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_listall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewayipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewayipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationsecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_backendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_backendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_customdnsconfigpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ddossettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_delegation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlogformatparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlogpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_frontendipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_frontendipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_gatewayloadbalancertunnelinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_inboundnatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_inboundnatrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationprofilepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_iptag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_loadbalancerbackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_loadbalancerbackendaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natruleportmapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacednssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacetapconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacetapconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networksecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnectionstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddressdnssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddresssku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourcenavigationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourcenavigationlinkformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourceset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_retentionpolicyparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_route.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routetablepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_securityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_securityrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceassociationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceassociationlinkpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_servicedelegationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicydefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicydefinitionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subnetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_trafficanalyticsconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_trafficanalyticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_virtualnetworktap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_virtualnetworktappropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/id_inboundsecurityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/id_networkvirtualappliance.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_inboundsecurityrulecreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_inboundsecurityruleget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_listbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_restart.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_delegationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityruleproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityrules.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_internetingresspublicipsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliance.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualapplianceinstanceids.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformatnetworkprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_partnermanagedresourceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceadditionalnicproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenicproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceskuproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/id_networkwatcher.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_checkconnectivity.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getazurereachabilityreport.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getflowlogstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getnetworkconfigurationdiagnostic.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getnexthop.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettopology.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettroubleshooting.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettroubleshootingresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getvmsecurityrules.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_listall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_listavailableproviders.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_setflowlogconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_verifyipflow.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_applicationsecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistcity.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistcountry.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableprovidersliststate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreport.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportitem.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportlatencyinfo.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportlocation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivitydestination.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityhop.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityinformation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityissue.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivitysource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_effectivenetworksecurityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_evaluatednetworksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogformatparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowloginformation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogstatusparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_hoplink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_hoplinkproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_httpconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_httpheader.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_matchedrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticresponse.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkinterfaceassociation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networksecuritygroupresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networksecurityrulesevaluationresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcher.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcherlistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcherpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_nexthopparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_nexthopresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_protocolconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_querytroubleshootingparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_retentionpolicyparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupnetworkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupviewparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupviewresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityruleassociations.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_subnetassociation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topology.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyassociation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_trafficanalyticsconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_trafficanalyticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingdetails.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingrecommendedactions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_verificationipflowparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_verificationipflowresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/method_disconnectp2svpnconnections.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/method_generatevpnprofile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/method_getp2svpnconnectionhealth.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/method_getp2svpnconnectionhealthdetailed.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/method_reset.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/method_updatetags.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_addressspace.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_p2sconnectionconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_p2sconnectionconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_p2svpnconnectionhealth.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_p2svpnconnectionhealthrequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_p2svpnconnectionrequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_p2svpngateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_p2svpngatewayproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_p2svpnprofileparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_propagatedroutetable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_routingconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_staticroute.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_staticroutesconfig.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_tagsobject.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_vnetroute.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_vpnclientconnectionhealth.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_vpnprofileresponse.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_vpnserverconfigurationpolicygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_vpnserverconfigurationpolicygroupmember.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/model_vpnserverconfigurationpolicygroupproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/p2svpngateways/version.go (68%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/id_networkwatcher.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/id_packetcapture.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_create.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_getstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_stop.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapture.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturefilter.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturelistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturemachinescope.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturequerystatusresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureresultproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturesettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturestoragelocation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/peerexpressroutecircuitconnections/README.md (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/peerexpressroutecircuitconnections/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/peerexpressroutecircuitconnections/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/peerexpressroutecircuitconnections/id_peerconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/peerexpressroutecircuitconnections/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/peerexpressroutecircuitconnections/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnectionpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/peerexpressroutecircuitconnections/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/peerexpressroutecircuitconnections/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/peerexpressroutecircuitconnections/version.go (84%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/id_privatednszonegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/id_privateendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszoneconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonegrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_recordset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_location.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_privateendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_providerlocation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_availableprivateendpointtypeslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_listbysubscription.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewayipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewayipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationsecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_availableprivateendpointtype.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_backendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_backendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_customdnsconfigpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ddossettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_delegation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlogformatparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlogpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_frontendipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_frontendipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_gatewayloadbalancertunnelinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_inboundnatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_inboundnatrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationprofilepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_iptag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_loadbalancerbackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_loadbalancerbackendaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natruleportmapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacednssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacetapconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacetapconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networksecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnectionstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddressdnssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddresssku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourcenavigationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourcenavigationlinkformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourceset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_retentionpolicyparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_route.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routetablepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_securityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_securityrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceassociationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceassociationlinkpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_servicedelegationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicydefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicydefinitionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subnetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_trafficanalyticsconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_trafficanalyticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_virtualnetworktap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_virtualnetworktappropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_location.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_privatelinkservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_providerlocation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_checkprivatelinkservicevisibility.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_checkprivatelinkservicevisibilitybyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_deleteprivateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_getprivateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listbysubscription.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listprivateendpointconnections.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_updateprivateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewayipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewayipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationsecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_autoapprovedprivatelinkservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_backendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_backendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_checkprivatelinkservicevisibilityrequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_customdnsconfigpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ddossettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_delegation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlogformatparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlogpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_frontendipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_frontendipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_gatewayloadbalancertunnelinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_inboundnatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_inboundnatrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationprofilepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_iptag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_loadbalancerbackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_loadbalancerbackendaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natruleportmapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacednssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacetapconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacetapconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networksecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnectionstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkservicevisibility.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddressdnssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddresssku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourcenavigationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourcenavigationlinkformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourceset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_retentionpolicyparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_route.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routetablepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_securityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_securityrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceassociationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceassociationlinkpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_servicedelegationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicydefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicydefinitionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subnetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_trafficanalyticsconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_trafficanalyticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_virtualnetworktap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_virtualnetworktappropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_ddosprotectionstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_listall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewayipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationsecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_backendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_backendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_customdnsconfigpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ddossettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_delegation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlogformatparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlogpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_frontendipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_frontendipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_gatewayloadbalancertunnelinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_inboundnatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_inboundnatrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationprofilepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_iptag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_loadbalancerbackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natruleportmapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacednssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacetapconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networksecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnectionstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddressdnssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddresssku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipddosprotectionstatusresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourcenavigationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourcenavigationlinkformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourceset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_retentionpolicyparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_route.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routetablepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_securityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_securityrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceassociationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceassociationlinkpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_servicedelegationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicydefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subnetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_trafficanalyticsconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_trafficanalyticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_virtualnetworktap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_virtualnetworktappropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/id_publicipprefix.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_listall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_iptag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefix.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefixpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefixsku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_referencedpublicipaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/routefilterrules/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/routefilterrules/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/routefilterrules/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/routefilterrules/id_routefilter.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/routefilterrules/id_routefilterrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/routefilterrules/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/routefilterrules/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/routefilterrules/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/routefilterrules/method_listbyroutefilter.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/routefilterrules/model_routefilterrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/routefilterrules/model_routefilterrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/routefilterrules/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/routefilterrules/version.go (67%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/id_routefilter.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_listbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitconnectionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeering.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeeringconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeeringpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitstats.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressrouteconnectionid.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_ipv6circuitconnectionconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_ipv6expressroutecircuitpeeringconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_peerexpressroutecircuitconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_peerexpressroutecircuitconnectionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilter.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/id_route.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/id_routetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/model_route.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/model_routepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/id_routetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_listall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewayipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewayipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationsecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_backendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_backendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_customdnsconfigpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ddossettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_delegation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlogformatparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlogpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_frontendipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_frontendipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_gatewayloadbalancertunnelinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_inboundnatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_inboundnatrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationprofilepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_iptag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_loadbalancerbackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_loadbalancerbackendaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natruleportmapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacednssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacetapconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacetapconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networksecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnectionstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddressdnssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddresssku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourcenavigationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourcenavigationlinkformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourceset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_retentionpolicyparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_route.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routetablepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_securityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_securityrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceassociationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceassociationlinkpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_servicedelegationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicydefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicydefinitionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subnetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_trafficanalyticsconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_trafficanalyticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_virtualnetworktap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_virtualnetworktappropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/id_routingconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/id_rulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_networkmanagerroutinggroupitem.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_routingrulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_routingrulecollectionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/id_rule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/id_rulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrulenexthop.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingruleroutedestination.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/id_networkmanager.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/id_scopeconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/model_scopeconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/model_scopeconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/id_networkmanager.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/id_securityadminconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/model_securityadminconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/model_securityadminconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/id_securitypartnerprovider.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_listbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_securitypartnerprovider.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_securitypartnerproviderpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_defaultsecurityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_networksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_securityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_defaultsecurityrulesget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_defaultsecurityruleslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_applicationsecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_securityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_securityrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/id_networkmanager.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/id_securityuserconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/model_securityuserconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/model_securityuserconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/id_securityuserconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/id_securityuserconfigurationrulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityusergroupitem.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityuserrulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityuserrulecollectionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/id_rulecollectionrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/id_securityuserconfigurationrulecollection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_addressprefixitem.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_securityuserrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_securityuserrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/id_serviceendpointpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_listbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewayipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewayipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationsecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_backendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_backendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_customdnsconfigpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ddossettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_delegation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlogformatparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlogpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_frontendipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_frontendipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_gatewayloadbalancertunnelinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_inboundnatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_inboundnatrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationprofilepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_iptag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_loadbalancerbackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_loadbalancerbackendaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natruleportmapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacednssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacetapconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacetapconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networksecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnectionstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddressdnssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddresssku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourcenavigationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourcenavigationlinkformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourceset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_retentionpolicyparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_route.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routetablepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_securityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_securityrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceassociationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceassociationlinkpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_servicedelegationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicydefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicydefinitionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subnetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_trafficanalyticsconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_trafficanalyticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_virtualnetworktap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_virtualnetworktappropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/serviceendpointpolicydefinitions/README.md (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/serviceendpointpolicydefinitions/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/serviceendpointpolicydefinitions/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/serviceendpointpolicydefinitions/id_serviceendpointpolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/serviceendpointpolicydefinitions/id_serviceendpointpolicydefinition.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/serviceendpointpolicydefinitions/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/serviceendpointpolicydefinitions/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/serviceendpointpolicydefinitions/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/serviceendpointpolicydefinitions/method_listbyresourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinition.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinitionpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/serviceendpointpolicydefinitions/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/serviceendpointpolicydefinitions/version.go (84%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/id_location.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/method_servicetaginformationlist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/method_servicetagslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetaginformation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetaginformationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetagslistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/id_networkgroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/id_staticmember.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/model_staticmember.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/model_staticmemberproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewayipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewayipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationsecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_backendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_backendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_customdnsconfigpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ddossettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_delegation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlogformatparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlogpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_frontendipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_frontendipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_gatewayloadbalancertunnelinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_inboundnatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_inboundnatrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationprofilepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_iptag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_loadbalancerbackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_loadbalancerbackendaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natruleportmapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacednssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacetapconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacetapconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networksecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnectionstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddressdnssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddresssku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourcenavigationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourcenavigationlinkformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourceset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_retentionpolicyparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_route.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routetablepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_securityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_securityrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceassociationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceassociationlinkpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_servicedelegationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicydefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicydefinitionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subnetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_trafficanalyticsconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_trafficanalyticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_virtualnetworktap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_virtualnetworktappropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/trafficanalytics/README.md (91%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/trafficanalytics/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/trafficanalytics/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/trafficanalytics/id_networkwatcher.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/trafficanalytics/method_networkwatchersgetflowlogstatus.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/trafficanalytics/method_networkwatcherssetflowlogconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/trafficanalytics/model_flowlogformatparameters.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowloginformation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowlogproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/trafficanalytics/model_flowlogstatusparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/trafficanalytics/model_retentionpolicyparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/trafficanalytics/model_trafficanalyticsconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/trafficanalytics/model_trafficanalyticsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/trafficanalytics/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/usages/README.md (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/usages/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/usages/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/usages/id_location.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/usages/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/usages/model_usage.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/usages/model_usagename.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/usages/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/usages/version.go (69%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vipswap/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vipswap/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vipswap/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vipswap/id_cloudservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vipswap/method_create.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vipswap/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vipswap/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vipswap/model_swapresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vipswap/model_swapresourcelistresult.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vipswap/model_swapresourceproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vipswap/version.go (69%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualappliancesites/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualappliancesites/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualappliancesites/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualappliancesites/id_networkvirtualappliance.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualappliancesites/id_virtualappliancesite.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualappliancesites/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualappliancesites/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualappliancesites/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualappliancesites/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualappliancesites/model_breakoutcategorypolicies.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualappliancesites/model_office365policyproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualappliancesites/model_virtualappliancesite.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualappliancesites/model_virtualappliancesiteproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualappliancesites/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualappliancesites/version.go (68%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualapplianceskus/README.md (91%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualapplianceskus/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualapplianceskus/id_networkvirtualappliancesku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualapplianceskus/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualapplianceskus/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualapplianceskus/model_networkvirtualappliancesku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualapplianceskus/model_networkvirtualapplianceskuinstances.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualapplianceskus/model_networkvirtualapplianceskupropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualapplianceskus/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualapplianceskus/version.go (67%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/id_connection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_getikesas.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_getsharedkey.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_resetconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_resetsharedkey.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_setsharedkey.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_startpacketcapture.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_stoppacketcapture.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_addressspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_bgpsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_connectionresetsharedkey.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_connectionsharedkey.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_gatewaycustombgpipaddressipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_ipconfigurationbgppeeringaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_ipsecpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_localnetworkgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_localnetworkgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_radiusserver.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_trafficselectorpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_tunnelconnectionhealth.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayautoscalebounds.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayautoscaleconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayconnectionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaynatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaynatruleproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroupmember.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroupproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vngclientconnectionconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vngclientconnectionconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrevokedcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrevokedcertificatepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrootcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrootcertificatepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnnatrulemapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnpacketcapturestartparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnpacketcapturestopparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_connection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_virtualnetworkgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_virtualnetworkgatewaynatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_disconnectvirtualnetworkgatewayvpnconnections.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_generatevpnclientpackage.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_generatevpnprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getadvertisedroutes.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getbgppeerstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getlearnedroutes.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnclientconnectionhealth.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnclientipsecparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnprofilepackageurl.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_listconnections.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_reset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_resetvpnclientsharedkey.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_setvpnclientipsecparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_startpacketcapture.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_stoppacketcapture.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_supportedvpndevices.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulescreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_vpndeviceconfigurationscript.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_addressspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgppeerstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgppeerstatuslistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgpsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewaycustombgpipaddressipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewayroute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewayroutelistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_ipconfigurationbgppeeringaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_ipsecpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_p2svpnconnectionrequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_radiusserver.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_trafficselectorpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_tunnelconnectionhealth.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkconnectiongatewayreference.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscalebounds.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscaleconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentity.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentitypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaynatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaynatruleproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupmember.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vngclientconnectionconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vngclientconnectionconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetail.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetaillistresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientipsecparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrevokedcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrevokedcertificatepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrootcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrootcertificatepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpndevicescriptparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnnatrulemapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnpacketcapturestartparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnpacketcapturestopparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/id_virtualnetworkpeering.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_addressspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkbgpcommunities.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkencryption.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkpeering.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkpeeringpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/version.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_listall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_resourcenavigationlinkslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_serviceassociationlinkslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_subnetspreparenetworkpolicies.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_subnetsunpreparenetworkpolicies.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkslistusage.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_addressspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewayipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewayipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationsecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_backendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_backendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_customdnsconfigpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ddossettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_delegation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_dhcpoptions.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlogformatparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlogpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_frontendipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_frontendipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_gatewayloadbalancertunnelinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_inboundnatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_inboundnatrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipaddressavailabilityresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationprofilepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_iptag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_loadbalancerbackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_loadbalancerbackendaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natruleportmapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkintentpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkintentpolicyconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacednssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacetapconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacetapconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networksecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_preparenetworkpoliciesrequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnectionstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddressdnssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddresssku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipddosprotectionstatusresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourcenavigationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourcenavigationlinkformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourceset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_retentionpolicyparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_route.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routetablepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_securityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_securityrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceassociationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceassociationlinkpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_servicedelegationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicydefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicydefinitionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subnetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_trafficanalyticsconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_trafficanalyticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_unpreparenetworkpoliciesrequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetwork.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkbgpcommunities.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkencryption.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpeering.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpeeringpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworktap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworktappropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkusage.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkusagename.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/id_virtualnetworktap.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/method_updatetags.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_applicationgatewaybackendaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_applicationgatewaybackendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_applicationgatewaybackendaddresspoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_applicationgatewayipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_applicationgatewayipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_applicationsecuritygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_applicationsecuritygrouppropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_backendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_backendaddresspoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_customdnsconfigpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_ddossettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_delegation.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlog.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_flowlogformatparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_flowlogpropertiesformat.go (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_frontendipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_frontendipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_gatewayloadbalancertunnelinterface.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_inboundnatrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_inboundnatrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_ipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_ipconfigurationprofile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_ipconfigurationprofilepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_ipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_iptag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_loadbalancerbackendaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_loadbalancerbackendaddresspropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_natgateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_natgatewaypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_natgatewaysku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_natruleportmapping.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_networkinterface.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_networkinterfacednssettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_networkinterfaceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_networkinterfaceipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_networkinterfacepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_networkinterfacetapconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_networkinterfacetapconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_networksecuritygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_networksecuritygrouppropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_privateendpoint.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_privateendpointconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_privateendpointconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_privateendpointipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_privateendpointipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_privateendpointproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_privatelinkservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_privatelinkserviceconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_privatelinkserviceconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_privatelinkserviceconnectionstate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_privatelinkserviceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_privatelinkserviceipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_privatelinkserviceproperties.go (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_publicipaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_publicipaddressdnssettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_publicipaddresspropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_publicipaddresssku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_resourcenavigationlink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_resourcenavigationlinkformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_resourceset.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_retentionpolicyparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_route.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_routepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_routetable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_routetablepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_securityrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_securityrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_serviceassociationlink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_serviceassociationlinkpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_servicedelegationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_serviceendpointpolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_serviceendpointpolicydefinition.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_serviceendpointpolicydefinitionpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_serviceendpointpolicypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_serviceendpointpropertiesformat.go (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_subnet.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_subnetpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_tagsobject.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_trafficanalyticsconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_trafficanalyticsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_virtualnetworktap.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/model_virtualnetworktappropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktap/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/README.md (91%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/method_listall.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/method_listbyresourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_applicationgatewaybackendaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_applicationgatewaybackendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_applicationgatewaybackendaddresspoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_applicationgatewayipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_applicationgatewayipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_applicationsecuritygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_applicationsecuritygrouppropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_backendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_backendaddresspoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_customdnsconfigpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_ddossettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_delegation.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlog.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_flowlogformatparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_flowlogpropertiesformat.go (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_frontendipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_frontendipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_gatewayloadbalancertunnelinterface.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_inboundnatrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_inboundnatrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_ipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_ipconfigurationprofile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_ipconfigurationprofilepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_ipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_iptag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_loadbalancerbackendaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_loadbalancerbackendaddresspropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_natgateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_natgatewaypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_natgatewaysku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_natruleportmapping.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_networkinterface.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_networkinterfacednssettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_networkinterfaceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_networkinterfaceipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_networkinterfacepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_networkinterfacetapconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_networkinterfacetapconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_networksecuritygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_networksecuritygrouppropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_privateendpoint.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_privateendpointconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_privateendpointconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_privateendpointipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_privateendpointipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_privateendpointproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_privatelinkservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_privatelinkserviceconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_privatelinkserviceconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_privatelinkserviceconnectionstate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_privatelinkserviceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_privatelinkserviceipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_privatelinkserviceproperties.go (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_publicipaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_publicipaddressdnssettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_publicipaddresspropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_publicipaddresssku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_resourcenavigationlink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_resourcenavigationlinkformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_resourceset.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_retentionpolicyparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_route.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_routepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_routetable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_routetablepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_securityrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_securityrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_serviceassociationlink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_serviceassociationlinkpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_servicedelegationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_serviceendpointpolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_serviceendpointpolicydefinition.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_serviceendpointpolicydefinitionpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_serviceendpointpolicypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_serviceendpointpropertiesformat.go (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_subnet.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_subnetpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_trafficanalyticsconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_trafficanalyticsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_virtualnetworktap.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/model_virtualnetworktappropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualnetworktaps/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouterpeerings/README.md (93%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouterpeerings/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouterpeerings/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouterpeerings/id_virtualrouter.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouterpeerings/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouterpeerings/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouterpeerings/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouterpeerings/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouterpeerings/model_virtualrouterpeering.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouterpeerings/model_virtualrouterpeeringproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouterpeerings/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouterpeerings/version.go (68%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouters/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouters/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouters/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouters/id_virtualrouter.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouters/method_createorupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouters/method_delete.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouters/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouters/method_list.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouters/method_listbyresourcegroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouters/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouters/model_virtualrouter.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouters/model_virtualrouterpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouters/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/virtualrouters/version.go (68%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_configurationpolicygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_hubroutetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_hubvirtualnetworkconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_natrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_networkvirtualappliance.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_networkvirtualapplianceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_routemap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_routingintent.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualhub.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualhubroutetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualwan.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpngateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnlinkconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnserverconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnsite.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnsitelink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupscreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupsdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupsget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_generatevirtualwanvpnserverconfigurationvpnprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablescreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablesdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablesget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetableslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionscreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionsdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionsget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulescreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulesdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulesget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natruleslistbyvpngateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionscreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionsdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionsget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayscreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewaysdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewaysget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapscreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapsdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapsget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentcreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentlist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_supportedsecurityproviders.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_updatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectioncreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectiondelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslistadvertisedroutes.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslistlearnedroutes.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationcreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationlist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2screateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2sdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2sget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2slist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubscreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgeteffectivevirtualhubroutes.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgetinboundroutes.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgetoutboundroutes.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubslistbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsupdatetags.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanscreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwansdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwansget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanslistbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionscreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionslistbyvpngateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsstartpacketcapture.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsstoppacketcapture.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayscreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewaysdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewaysget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayslistbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetallsharedkeys.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetdefaultsharedkey.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetikesas.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionslistdefaultsharedkey.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionssetorinitdefaultsharedkey.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsassociatedwithvirtualwanlist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationscreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinkconnectionsget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinksget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesconfigurationdownload.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitescreateorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesdelete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsiteslist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsiteslistbyresourcegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_aadauthenticationparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_action.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_addressspace.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewayipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewayipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationsecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_backendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_backendaddresspoolpropertiesformat.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01/virtualnetworktap/model_flowlog.go => 2024-03-01/virtualwans/model_bgpconnection.go} (62%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_connectionsharedkeyresult.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_criterion.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_customdnsconfigpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ddossettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_delegation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_deviceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutemaproute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutemaproutelist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutesparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlogformatparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlogpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_frontendipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_frontendipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_gatewaycustombgpipaddressipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_gatewayloadbalancertunnelinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getinboundroutesparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getoutboundroutesparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getvpnsitesconfigurationrequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroute.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01/dscpconfigurations/model_flowlog.go => 2024-03-01/virtualwans/model_hubroutetable.go} (62%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroutetableproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubvirtualnetworkconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubvirtualnetworkconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_inboundnatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_inboundnatrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationbgppeeringaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationprofilepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipsecpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_iptag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_loadbalancerbackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_loadbalancerbackendaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natruleportmapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacednssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacetapconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacetapconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networksecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkvirtualapplianceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkvirtualapplianceconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_o365breakoutcategorypolicies.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_o365policyproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2sconnectionconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2sconnectionconfigurationproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01/dscpconfiguration/model_flowlog.go => 2024-03-01/virtualwans/model_p2svpngateway.go} (82%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2svpngatewayproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_parameter.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_peerroute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnectionstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_propagatedroutetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddressdnssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddresssku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_radiusserver.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourcenavigationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourcenavigationlinkformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourceset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_retentionpolicyparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_route.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemapproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemaprule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routetablepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingintent.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingintentproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_securityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_securityrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceassociationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceassociationlinkpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_servicedelegationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicydefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicydefinitionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_sharedkeyproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_staticroute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_staticroutesconfig.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subnetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_tagsobject.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficanalyticsconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficanalyticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficselectorpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhub.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubeffectiveroute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubeffectiveroutelist.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetablev2.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetablev2properties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutev2.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualnetworktap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualnetworktappropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualrouterautoscaleconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwan.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwanproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwansecurityprovider.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwansecurityproviders.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwanvpnprofileparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vnetroute.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnclientconnectionhealth.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionpacketcapturestartparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionpacketcapturestopparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewayipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewaynatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewaynatruleproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewayproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnlinkbgpsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnlinkproviderproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnnatrulemapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnprofileresponse.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigradiusclientrootcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigradiusserverrootcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroupmember.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroupproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationsresponse.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigvpnclientrevokedcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigvpnclientrootcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsite.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsiteproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/id_virtualmachinescaleset.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_applicationgatewaybackendaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_applicationgatewaybackendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_applicationgatewayipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_applicationsecuritygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_applicationsecuritygrouppropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_backendaddresspool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_backendaddresspoolpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_customdnsconfigpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_ddossettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_delegation.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlog.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_flowlogformatparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_flowlogpropertiesformat.go (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_frontendipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_frontendipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_gatewayloadbalancertunnelinterface.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_inboundnatrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_inboundnatrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_ipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_ipconfigurationprofile.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_ipconfigurationprofilepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_ipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_iptag.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_loadbalancerbackendaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_natgateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_natgatewaypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_natgatewaysku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_natruleportmapping.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_networkinterface.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_networkinterfacednssettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_networkinterfaceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_networkinterfacepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_networkinterfacetapconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_networksecuritygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_networksecuritygrouppropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_privateendpoint.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_privateendpointconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_privateendpointconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_privateendpointipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_privateendpointipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_privateendpointproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_privatelinkservice.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_privatelinkserviceconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_privatelinkserviceconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_privatelinkserviceconnectionstate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_privatelinkserviceipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_privatelinkserviceipconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_privatelinkserviceproperties.go (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_publicipaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_publicipaddressdnssettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_publicipaddresspropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_publicipaddresssku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_resourcenavigationlink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_resourcenavigationlinkformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_resourceset.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_retentionpolicyparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_route.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_routepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_routetable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_routetablepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_securityrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_securityrulepropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_serviceassociationlink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_serviceassociationlinkpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_servicedelegationpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_serviceendpointpolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_serviceendpointpolicydefinition.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_serviceendpointpolicypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_serviceendpointpropertiesformat.go (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_subnet.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_subnetpropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_trafficanalyticsconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_trafficanalyticsproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_virtualnetworktap.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/model_virtualnetworktappropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vmsspublicipaddresses/version.go (68%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/id_vpngateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/method_reset.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/method_startpacketcapture.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/method_stoppacketcapture.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/method_updatetags.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_bgpsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_gatewaycustombgpipaddressipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_ipconfigurationbgppeeringaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_ipsecpolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_propagatedroutetable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_routingconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_staticroute.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_staticroutesconfig.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_tagsobject.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_trafficselectorpolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_vnetroute.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_vpnconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_vpnconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_vpngateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_vpngatewayipconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_vpngatewaynatrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_vpngatewaynatruleproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_vpngatewaypacketcapturestartparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_vpngatewaypacketcapturestopparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_vpngatewayproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_vpnnatrulemapping.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_vpnsitelinkconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/model_vpnsitelinkconnectionproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpngateways/version.go (68%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnlinkconnections/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnlinkconnections/id_vpnlinkconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnlinkconnections/method_resetconnection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnlinkconnections/version.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/README.md (87%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/id_vpnserverconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/method_updatetags.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_aadauthenticationparameters.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_addressspace.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_ipsecpolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_p2sconnectionconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_p2sconnectionconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_p2svpngateway.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_p2svpngatewayproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_propagatedroutetable.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_radiusserver.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_routingconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_staticroute.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_staticroutesconfig.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_tagsobject.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_vnetroute.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_vpnclientconnectionhealth.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_vpnserverconfigradiusclientrootcertificate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_vpnserverconfigradiusserverrootcertificate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_vpnserverconfiguration.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_vpnserverconfigurationpolicygroup.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupmember.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_vpnserverconfigurationproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_vpnserverconfigvpnclientrevokedcertificate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/model_vpnserverconfigvpnclientrootcertificate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnserverconfigurations/version.go (68%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/README.md (90%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/id_vpnsite.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/method_updatetags.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/model_addressspace.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/model_bgpsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/model_deviceproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/model_ipconfigurationbgppeeringaddress.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/model_o365breakoutcategorypolicies.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/model_o365policyproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/model_subresource.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/model_tagsobject.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/model_vpnlinkbgpsettings.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/model_vpnlinkproviderproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/model_vpnsite.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/model_vpnsitelink.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/model_vpnsitelinkproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/model_vpnsiteproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/vpnsites/version.go (68%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/README.md create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/client.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/constants.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/id_applicationgatewaywebapplicationfirewallpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_createorupdate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_delete.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_get.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_list.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_listall.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayauthenticationcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayauthenticationcertificatepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayautoscaleconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendhttpsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendhttpsettingspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendsettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendsettingspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayclientauthconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayconnectiondraining.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaycustomerror.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfirewalldisabledrulegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfirewallexclusion.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayforcontainersreferencedefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendport.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendportpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayglobalconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayheaderconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayhttplistener.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayhttplistenerpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaylistener.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaylistenerpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributionpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributionpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributiontarget.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributiontargetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypathrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypathrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobe.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobehealthresponsematch.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayredirectconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayredirectconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrequestroutingrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrequestroutingrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriteruleactionset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterulecondition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriteruleset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterulesetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayroutingrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayroutingrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslcertificatepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslprofilepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedclientcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedclientcertificatepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedrootcertificate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedrootcertificatepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlpathmap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlpathmappropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaywebapplicationfirewallconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationsecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationsecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_backendaddresspool.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_backendaddresspoolpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_customdnsconfigpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ddossettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_delegation.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exceptionentry.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedrulegroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedruleset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlog.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlogformatparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlogpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_frontendipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_frontendipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_gatewayloadbalancertunnelinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_groupbyusersession.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_groupbyvariable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_headervaluematcher.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_inboundnatrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_inboundnatrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationprofile.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationprofilepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_iptag.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_loadbalancerbackendaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_loadbalancerbackendaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedrulegroupoverride.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedruleoverride.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedrulesdefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedruleset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_matchcondition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_matchvariable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgateway.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgatewaypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgatewaysku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natruleportmapping.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterface.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacednssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacetapconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacetapconfigurationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networksecuritygroup.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networksecuritygrouppropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_owaspcrsexclusionentry.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_policysettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_policysettingslogscrubbing.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpoint.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkservice.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnection.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnectionproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnectionstate.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceipconfiguration.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceipconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddress.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddressdnssettings.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddresspropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddresssku.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourcenavigationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourcenavigationlinkformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourceset.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_retentionpolicyparameters.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_route.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routetable.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routetablepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_securityrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_securityrulepropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceassociationlink.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceassociationlinkpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_servicedelegationpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicydefinition.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicydefinitionpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subnet.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subnetpropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subresource.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_trafficanalyticsconfigurationproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_trafficanalyticsproperties.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_virtualnetworktap.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_virtualnetworktappropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallcustomrule.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallpolicy.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallpolicypropertiesformat.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallscrubbingrules.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/predicates.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/version.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/webcategories/README.md (92%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/webcategories/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/webcategories/id_azurewebcategory.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/webcategories/method_get.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/webcategories/method_listbysubscription.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/webcategories/model_azurewebcategory.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/webcategories/model_azurewebcategorypropertiesformat.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/webcategories/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/{2023-11-01 => 2024-03-01}/webcategories/version.go (68%) diff --git a/internal/services/appservice/app_service_environment_v3_resource.go b/internal/services/appservice/app_service_environment_v3_resource.go index 65ea1d20a110..2fb5fb796a70 100644 --- a/internal/services/appservice/app_service_environment_v3_resource.go +++ b/internal/services/appservice/app_service_environment_v3_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/web/validate" diff --git a/internal/services/compute/network_interface.go b/internal/services/compute/network_interface.go index a51249456ae9..40f9dc86a806 100644 --- a/internal/services/compute/network_interface.go +++ b/internal/services/compute/network_interface.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/firewall/firewall_application_rule_collection_resource.go b/internal/services/firewall/firewall_application_rule_collection_resource.go index e4f77f7de246..258a7673d7f1 100644 --- a/internal/services/firewall/firewall_application_rule_collection_resource.go +++ b/internal/services/firewall/firewall_application_rule_collection_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/firewall/firewall_application_rule_collection_resource_test.go b/internal/services/firewall/firewall_application_rule_collection_resource_test.go index 8ebb2fc95ddf..613488b57ce3 100644 --- a/internal/services/firewall/firewall_application_rule_collection_resource_test.go +++ b/internal/services/firewall/firewall_application_rule_collection_resource_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/firewall/firewall_data_source.go b/internal/services/firewall/firewall_data_source.go index 443ea723881c..602b7e580e7f 100644 --- a/internal/services/firewall/firewall_data_source.go +++ b/internal/services/firewall/firewall_data_source.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/firewall/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/firewall/firewall_nat_rule_collection_resource.go b/internal/services/firewall/firewall_nat_rule_collection_resource.go index 40963c1b10ab..3c649e2d9a95 100644 --- a/internal/services/firewall/firewall_nat_rule_collection_resource.go +++ b/internal/services/firewall/firewall_nat_rule_collection_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/firewall/firewall_nat_rule_collection_resource_test.go b/internal/services/firewall/firewall_nat_rule_collection_resource_test.go index 8c73f2287655..654f579c07e3 100644 --- a/internal/services/firewall/firewall_nat_rule_collection_resource_test.go +++ b/internal/services/firewall/firewall_nat_rule_collection_resource_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/firewall/firewall_network_rule_collection_resource.go b/internal/services/firewall/firewall_network_rule_collection_resource.go index 2f1f629aaeb8..3780e1c7cbb8 100644 --- a/internal/services/firewall/firewall_network_rule_collection_resource.go +++ b/internal/services/firewall/firewall_network_rule_collection_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/firewall/firewall_network_rule_collection_resource_test.go b/internal/services/firewall/firewall_network_rule_collection_resource_test.go index 19a0906b9ccd..bc7d8cfa62c0 100644 --- a/internal/services/firewall/firewall_network_rule_collection_resource_test.go +++ b/internal/services/firewall/firewall_network_rule_collection_resource_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/firewall/firewall_policy_data_source.go b/internal/services/firewall/firewall_policy_data_source.go index 5214898f0bbd..db3adcfd7aed 100644 --- a/internal/services/firewall/firewall_policy_data_source.go +++ b/internal/services/firewall/firewall_policy_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/firewall/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/firewall/firewall_policy_resource.go b/internal/services/firewall/firewall_policy_resource.go index ff4ace2126f6..4ae96dbfb789 100644 --- a/internal/services/firewall/firewall_policy_resource.go +++ b/internal/services/firewall/firewall_policy_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies" "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" diff --git a/internal/services/firewall/firewall_policy_resource_test.go b/internal/services/firewall/firewall_policy_resource_test.go index c2856ddd1d53..705cab2f6ad5 100644 --- a/internal/services/firewall/firewall_policy_resource_test.go +++ b/internal/services/firewall/firewall_policy_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/firewall/firewall_policy_rule_collection_group_resource.go b/internal/services/firewall/firewall_policy_rule_collection_group_resource.go index 76ab1e18fb52..3678e60cb7da 100644 --- a/internal/services/firewall/firewall_policy_rule_collection_group_resource.go +++ b/internal/services/firewall/firewall_policy_rule_collection_group_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/firewall/firewall_policy_rule_collection_group_resource_test.go b/internal/services/firewall/firewall_policy_rule_collection_group_resource_test.go index 00b680c02f91..b0eba00e190f 100644 --- a/internal/services/firewall/firewall_policy_rule_collection_group_resource_test.go +++ b/internal/services/firewall/firewall_policy_rule_collection_group_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/firewall/firewall_resource.go b/internal/services/firewall/firewall_resource.go index 10c0f690c6eb..c044e9784adc 100644 --- a/internal/services/firewall/firewall_resource.go +++ b/internal/services/firewall/firewall_resource.go @@ -17,8 +17,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" diff --git a/internal/services/firewall/firewall_resource_test.go b/internal/services/firewall/firewall_resource_test.go index 2bb466a17fb3..6c9a3382bd02 100644 --- a/internal/services/firewall/firewall_resource_test.go +++ b/internal/services/firewall/firewall_resource_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/firewall/subresource.go b/internal/services/firewall/subresource.go index 6ce8bdd6c419..cce5e840be95 100644 --- a/internal/services/firewall/subresource.go +++ b/internal/services/firewall/subresource.go @@ -4,7 +4,7 @@ package firewall import ( - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies" ) func flattenNetworkSubResourceID(input *[]firewallpolicies.SubResource) []interface{} { diff --git a/internal/services/legacy/virtual_machine_resource.go b/internal/services/legacy/virtual_machine_resource.go index 7eae820bbea0..dc5f34b33a19 100644 --- a/internal/services/legacy/virtual_machine_resource.go +++ b/internal/services/legacy/virtual_machine_resource.go @@ -22,8 +22,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/logic/integration_service_environment.go b/internal/services/logic/integration_service_environment.go index c5076979184c..1ad39df184a4 100644 --- a/internal/services/logic/integration_service_environment.go +++ b/internal/services/logic/integration_service_environment.go @@ -18,7 +18,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/application_gateway_data_source.go b/internal/services/network/application_gateway_data_source.go index b61c61908dc7..b4dc5040ef61 100644 --- a/internal/services/network/application_gateway_data_source.go +++ b/internal/services/network/application_gateway_data_source.go @@ -14,8 +14,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/application_gateway_resource.go b/internal/services/network/application_gateway_resource.go index 0028ec225f34..ba302fbb5d11 100644 --- a/internal/services/network/application_gateway_resource.go +++ b/internal/services/network/application_gateway_resource.go @@ -19,8 +19,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" diff --git a/internal/services/network/application_gateway_resource_test.go b/internal/services/network/application_gateway_resource_test.go index 0ee0de00fb24..8516ec6036d2 100644 --- a/internal/services/network/application_gateway_resource_test.go +++ b/internal/services/network/application_gateway_resource_test.go @@ -14,7 +14,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/application_security_group_data_source.go b/internal/services/network/application_security_group_data_source.go index 0eca83eb102d..62b316e8504f 100644 --- a/internal/services/network/application_security_group_data_source.go +++ b/internal/services/network/application_security_group_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/application_security_group_resource.go b/internal/services/network/application_security_group_resource.go index 3dfc86efef93..70c508b0187c 100644 --- a/internal/services/network/application_security_group_resource.go +++ b/internal/services/network/application_security_group_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/application_security_group_resource_test.go b/internal/services/network/application_security_group_resource_test.go index b599e2c48b03..483b3eeaa098 100644 --- a/internal/services/network/application_security_group_resource_test.go +++ b/internal/services/network/application_security_group_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/client/client.go b/internal/services/network/client/client.go index 7544c886d824..b5d5488a5094 100644 --- a/internal/services/network/client/client.go +++ b/internal/services/network/client/client.go @@ -8,14 +8,14 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses" - network_2023_11_01 "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts" + network_2024_03_01 "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01" "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) type Client struct { - *network_2023_11_01.Client + *network_2024_03_01.Client BastionHostsClient *bastionhosts.BastionHostsClient // VMSS Data Source requires the Network Interfaces and VMSSPublicIpAddresses client from `2023-09-01` for the `ListVirtualMachineScaleSetVMNetworkInterfacesComplete` method @@ -42,7 +42,7 @@ func NewClient(o *common.ClientOptions) (*Client, error) { } o.Configure(VMSSPublicIPAddressesClient.Client, o.Authorizers.ResourceManager) - client, err := network_2023_11_01.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { + client, err := network_2024_03_01.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { o.Configure(c, o.Authorizers.ResourceManager) }) if err != nil { diff --git a/internal/services/network/custom_ip_prefix_resource.go b/internal/services/network/custom_ip_prefix_resource.go index aa04c68bcf6e..efc486d336bd 100644 --- a/internal/services/network/custom_ip_prefix_resource.go +++ b/internal/services/network/custom_ip_prefix_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/custom_ip_prefix_resource_test.go b/internal/services/network/custom_ip_prefix_resource_test.go index e81388cc7f81..3473d7782466 100644 --- a/internal/services/network/custom_ip_prefix_resource_test.go +++ b/internal/services/network/custom_ip_prefix_resource_test.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/custompollers/local_network_gateway_poller.go b/internal/services/network/custompollers/local_network_gateway_poller.go index 3b501f12390b..94bc038957e8 100644 --- a/internal/services/network/custompollers/local_network_gateway_poller.go +++ b/internal/services/network/custompollers/local_network_gateway_poller.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways" "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" ) diff --git a/internal/services/network/express_route_circuit_authorization_resource.go b/internal/services/network/express_route_circuit_authorization_resource.go index a21629e8bb8f..2effd7d2a039 100644 --- a/internal/services/network/express_route_circuit_authorization_resource.go +++ b/internal/services/network/express_route_circuit_authorization_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/express_route_circuit_authorization_resource_test.go b/internal/services/network/express_route_circuit_authorization_resource_test.go index 326589e3f177..4bd710f972b8 100644 --- a/internal/services/network/express_route_circuit_authorization_resource_test.go +++ b/internal/services/network/express_route_circuit_authorization_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/express_route_circuit_connection_resource.go b/internal/services/network/express_route_circuit_connection_resource.go index 527191ce8978..8fc0197708dd 100644 --- a/internal/services/network/express_route_circuit_connection_resource.go +++ b/internal/services/network/express_route_circuit_connection_resource.go @@ -11,8 +11,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" diff --git a/internal/services/network/express_route_circuit_connection_resource_test.go b/internal/services/network/express_route_circuit_connection_resource_test.go index 6b2b94cfd880..ee94a0c0471e 100644 --- a/internal/services/network/express_route_circuit_connection_resource_test.go +++ b/internal/services/network/express_route_circuit_connection_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/express_route_circuit_data_source.go b/internal/services/network/express_route_circuit_data_source.go index 910545850ec8..3b4ab547a936 100644 --- a/internal/services/network/express_route_circuit_data_source.go +++ b/internal/services/network/express_route_circuit_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/express_route_circuit_peering_data_source.go b/internal/services/network/express_route_circuit_peering_data_source.go index 6c045182820d..12c32dc9bde1 100644 --- a/internal/services/network/express_route_circuit_peering_data_source.go +++ b/internal/services/network/express_route_circuit_peering_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/express_route_circuit_peering_resource.go b/internal/services/network/express_route_circuit_peering_resource.go index 44f6a77acfbe..b170cd6f9254 100644 --- a/internal/services/network/express_route_circuit_peering_resource.go +++ b/internal/services/network/express_route_circuit_peering_resource.go @@ -14,8 +14,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/express_route_circuit_resource.go b/internal/services/network/express_route_circuit_resource.go index 4ce5ae2dc4e8..a4f88ce93763 100644 --- a/internal/services/network/express_route_circuit_resource.go +++ b/internal/services/network/express_route_circuit_resource.go @@ -14,8 +14,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/express_route_circuit_resource_test.go b/internal/services/network/express_route_circuit_resource_test.go index 9a829867b341..202d683c8fcf 100644 --- a/internal/services/network/express_route_circuit_resource_test.go +++ b/internal/services/network/express_route_circuit_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/express_route_connection_resource.go b/internal/services/network/express_route_connection_resource.go index 04a1c1c88a96..acc44b2fc5b9 100644 --- a/internal/services/network/express_route_connection_resource.go +++ b/internal/services/network/express_route_connection_resource.go @@ -10,9 +10,9 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" diff --git a/internal/services/network/express_route_connection_resource_test.go b/internal/services/network/express_route_connection_resource_test.go index 14e06318f805..ed50edee9584 100644 --- a/internal/services/network/express_route_connection_resource_test.go +++ b/internal/services/network/express_route_connection_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/express_route_gateway_resource.go b/internal/services/network/express_route_gateway_resource.go index 589330d18786..7e5d6f16e392 100644 --- a/internal/services/network/express_route_gateway_resource.go +++ b/internal/services/network/express_route_gateway_resource.go @@ -14,8 +14,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/express_route_gateway_resource_test.go b/internal/services/network/express_route_gateway_resource_test.go index 68cf7d474ef3..fd737ba564b8 100644 --- a/internal/services/network/express_route_gateway_resource_test.go +++ b/internal/services/network/express_route_gateway_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/express_route_port_authorization_resource.go b/internal/services/network/express_route_port_authorization_resource.go index 855d7028b1d9..2e11bd851175 100644 --- a/internal/services/network/express_route_port_authorization_resource.go +++ b/internal/services/network/express_route_port_authorization_resource.go @@ -10,8 +10,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/express_route_port_authorization_resource_test.go b/internal/services/network/express_route_port_authorization_resource_test.go index c549a29172d7..557e2ca5c80e 100644 --- a/internal/services/network/express_route_port_authorization_resource_test.go +++ b/internal/services/network/express_route_port_authorization_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/express_route_port_resource.go b/internal/services/network/express_route_port_resource.go index 5c43b3eb98c4..506737081df3 100644 --- a/internal/services/network/express_route_port_resource.go +++ b/internal/services/network/express_route_port_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" diff --git a/internal/services/network/express_route_port_resource_test.go b/internal/services/network/express_route_port_resource_test.go index b02d6b8c492d..b2e21b998aef 100644 --- a/internal/services/network/express_route_port_resource_test.go +++ b/internal/services/network/express_route_port_resource_test.go @@ -10,7 +10,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/ip_group_cidr_resource.go b/internal/services/network/ip_group_cidr_resource.go index 67e6251d88c4..f79abdb8df43 100644 --- a/internal/services/network/ip_group_cidr_resource.go +++ b/internal/services/network/ip_group_cidr_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/ip_group_cidr_resource_test.go b/internal/services/network/ip_group_cidr_resource_test.go index 578b5340367e..ec392a393825 100644 --- a/internal/services/network/ip_group_cidr_resource_test.go +++ b/internal/services/network/ip_group_cidr_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/ip_group_data_source.go b/internal/services/network/ip_group_data_source.go index b49e48a580f6..ba89e5d5bc21 100644 --- a/internal/services/network/ip_group_data_source.go +++ b/internal/services/network/ip_group_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/ip_group_resource.go b/internal/services/network/ip_group_resource.go index af6ea1f8b3f8..bf20d2f18bcd 100644 --- a/internal/services/network/ip_group_resource.go +++ b/internal/services/network/ip_group_resource.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/ip_group_resource_test.go b/internal/services/network/ip_group_resource_test.go index ac6505ff5b1c..ba8132cf36bd 100644 --- a/internal/services/network/ip_group_resource_test.go +++ b/internal/services/network/ip_group_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/local_network_gateway_data_source.go b/internal/services/network/local_network_gateway_data_source.go index 2978b684f0b4..596996b91d61 100644 --- a/internal/services/network/local_network_gateway_data_source.go +++ b/internal/services/network/local_network_gateway_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/local_network_gateway_resource.go b/internal/services/network/local_network_gateway_resource.go index 3cdcc6468fa3..d6e521325517 100644 --- a/internal/services/network/local_network_gateway_resource.go +++ b/internal/services/network/local_network_gateway_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways" "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/local_network_gateway_resource_test.go b/internal/services/network/local_network_gateway_resource_test.go index 74381fed11a1..5e8e5a60c1ea 100644 --- a/internal/services/network/local_network_gateway_resource_test.go +++ b/internal/services/network/local_network_gateway_resource_test.go @@ -10,7 +10,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/nat_gateway_data_source.go b/internal/services/network/nat_gateway_data_source.go index cf2e9bd85d5e..07f3aa6323a3 100644 --- a/internal/services/network/nat_gateway_data_source.go +++ b/internal/services/network/nat_gateway_data_source.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/nat_gateway_public_ip_association_resource.go b/internal/services/network/nat_gateway_public_ip_association_resource.go index 533ab2ba4e7f..de8acd269a0c 100644 --- a/internal/services/network/nat_gateway_public_ip_association_resource.go +++ b/internal/services/network/nat_gateway_public_ip_association_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/nat_gateway_public_ip_association_resource_test.go b/internal/services/network/nat_gateway_public_ip_association_resource_test.go index ce82a2683cba..06e8caf44e23 100644 --- a/internal/services/network/nat_gateway_public_ip_association_resource_test.go +++ b/internal/services/network/nat_gateway_public_ip_association_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/nat_gateway_public_ip_prefix_association_resource.go b/internal/services/network/nat_gateway_public_ip_prefix_association_resource.go index 0f92a27489aa..8a7d8f363a8d 100644 --- a/internal/services/network/nat_gateway_public_ip_prefix_association_resource.go +++ b/internal/services/network/nat_gateway_public_ip_prefix_association_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/nat_gateway_public_ip_prefix_association_resource_test.go b/internal/services/network/nat_gateway_public_ip_prefix_association_resource_test.go index c6d28c8d59e5..f21f7f75a3ff 100644 --- a/internal/services/network/nat_gateway_public_ip_prefix_association_resource_test.go +++ b/internal/services/network/nat_gateway_public_ip_prefix_association_resource_test.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/nat_gateway_resource.go b/internal/services/network/nat_gateway_resource.go index 5c5e417f3620..603512ef3dec 100644 --- a/internal/services/network/nat_gateway_resource.go +++ b/internal/services/network/nat_gateway_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/nat_gateway_resource_test.go b/internal/services/network/nat_gateway_resource_test.go index e2b39b7b3472..9661832140c8 100644 --- a/internal/services/network/nat_gateway_resource_test.go +++ b/internal/services/network/nat_gateway_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_connection_monitor_resource.go b/internal/services/network/network_connection_monitor_resource.go index 2802e3abc752..648ae3ccb8d8 100644 --- a/internal/services/network/network_connection_monitor_resource.go +++ b/internal/services/network/network_connection_monitor_resource.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors" "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" diff --git a/internal/services/network/network_connection_monitor_resource_test.go b/internal/services/network/network_connection_monitor_resource_test.go index ef04a5de8591..1ea1f6354bfe 100644 --- a/internal/services/network/network_connection_monitor_resource_test.go +++ b/internal/services/network/network_connection_monitor_resource_test.go @@ -9,7 +9,7 @@ import ( "regexp" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_ddos_protection_plan_data_source.go b/internal/services/network/network_ddos_protection_plan_data_source.go index 6e81203a20c7..ac8b41b355ef 100644 --- a/internal/services/network/network_ddos_protection_plan_data_source.go +++ b/internal/services/network/network_ddos_protection_plan_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/network_ddos_protection_plan_resource.go b/internal/services/network/network_ddos_protection_plan_resource.go index d7329a32f9ee..ffb880a61164 100644 --- a/internal/services/network/network_ddos_protection_plan_resource.go +++ b/internal/services/network/network_ddos_protection_plan_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/network_ddos_protection_plan_resource_test.go b/internal/services/network/network_ddos_protection_plan_resource_test.go index c8985edffd52..5bf48b3d1d0a 100644 --- a/internal/services/network/network_ddos_protection_plan_resource_test.go +++ b/internal/services/network/network_ddos_protection_plan_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_interface.go b/internal/services/network/network_interface.go index 41a75d02d97d..a7e6250a9853 100644 --- a/internal/services/network/network_interface.go +++ b/internal/services/network/network_interface.go @@ -4,7 +4,7 @@ package network import ( - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/utils" ) diff --git a/internal/services/network/network_interface_application_gateway_association_resource.go b/internal/services/network/network_interface_application_gateway_association_resource.go index bbb5ed0e6d4e..a2c3bf7955a0 100644 --- a/internal/services/network/network_interface_application_gateway_association_resource.go +++ b/internal/services/network/network_interface_application_gateway_association_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/network_interface_application_gateway_association_resource_test.go b/internal/services/network/network_interface_application_gateway_association_resource_test.go index a461e9cdabb4..4895dd03b447 100644 --- a/internal/services/network/network_interface_application_gateway_association_resource_test.go +++ b/internal/services/network/network_interface_application_gateway_association_resource_test.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_interface_application_security_group_association_resource.go b/internal/services/network/network_interface_application_security_group_association_resource.go index 03e270b3b65b..666f3a90fad7 100644 --- a/internal/services/network/network_interface_application_security_group_association_resource.go +++ b/internal/services/network/network_interface_application_security_group_association_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/network_interface_application_security_group_association_resource_test.go b/internal/services/network/network_interface_application_security_group_association_resource_test.go index a48a4e046dc3..c5c6208c0086 100644 --- a/internal/services/network/network_interface_application_security_group_association_resource_test.go +++ b/internal/services/network/network_interface_application_security_group_association_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_interface_backend_address_pool_association_resource.go b/internal/services/network/network_interface_backend_address_pool_association_resource.go index 68618124a51e..c72e9b8c3fb7 100644 --- a/internal/services/network/network_interface_backend_address_pool_association_resource.go +++ b/internal/services/network/network_interface_backend_address_pool_association_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/network_interface_backend_address_pool_association_resource_test.go b/internal/services/network/network_interface_backend_address_pool_association_resource_test.go index 71ff126d91a7..59ad40bb4a20 100644 --- a/internal/services/network/network_interface_backend_address_pool_association_resource_test.go +++ b/internal/services/network/network_interface_backend_address_pool_association_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_interface_data_source.go b/internal/services/network/network_interface_data_source.go index 33ddccae9c24..a47a8894a36d 100644 --- a/internal/services/network/network_interface_data_source.go +++ b/internal/services/network/network_interface_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" diff --git a/internal/services/network/network_interface_helpers.go b/internal/services/network/network_interface_helpers.go index 308be3fac623..810243a6e737 100644 --- a/internal/services/network/network_interface_helpers.go +++ b/internal/services/network/network_interface_helpers.go @@ -4,7 +4,7 @@ package network import ( - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" ) func FindNetworkInterfaceIPConfiguration(input *[]networkinterfaces.NetworkInterfaceIPConfiguration, name string) *networkinterfaces.NetworkInterfaceIPConfiguration { diff --git a/internal/services/network/network_interface_locking.go b/internal/services/network/network_interface_locking.go index 163cae84af8a..2443f4ce0f62 100644 --- a/internal/services/network/network_interface_locking.go +++ b/internal/services/network/network_interface_locking.go @@ -5,7 +5,7 @@ package network import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/utils" ) diff --git a/internal/services/network/network_interface_nat_rule_association_resource.go b/internal/services/network/network_interface_nat_rule_association_resource.go index 5b5eb0e4aa99..8079306d48d1 100644 --- a/internal/services/network/network_interface_nat_rule_association_resource.go +++ b/internal/services/network/network_interface_nat_rule_association_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/network_interface_nat_rule_association_resource_test.go b/internal/services/network/network_interface_nat_rule_association_resource_test.go index e56aef671e24..5bf5a04b5b15 100644 --- a/internal/services/network/network_interface_nat_rule_association_resource_test.go +++ b/internal/services/network/network_interface_nat_rule_association_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_interface_resource.go b/internal/services/network/network_interface_resource.go index 5635669bbaaa..7b09a9ee0d70 100644 --- a/internal/services/network/network_interface_resource.go +++ b/internal/services/network/network_interface_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" diff --git a/internal/services/network/network_interface_resource_test.go b/internal/services/network/network_interface_resource_test.go index 2eda68d6e2b3..8f8240d1d7f0 100644 --- a/internal/services/network/network_interface_resource_test.go +++ b/internal/services/network/network_interface_resource_test.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_interface_security_group_association_resource.go b/internal/services/network/network_interface_security_group_association_resource.go index 198c8fe1c5e0..45b93be9d3a6 100644 --- a/internal/services/network/network_interface_security_group_association_resource.go +++ b/internal/services/network/network_interface_security_group_association_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/network_interface_security_group_association_resource_test.go b/internal/services/network/network_interface_security_group_association_resource_test.go index ccd39de44a33..a5c43da5cc2d 100644 --- a/internal/services/network/network_interface_security_group_association_resource_test.go +++ b/internal/services/network/network_interface_security_group_association_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_manager_admin_rule_collection_resource.go b/internal/services/network/network_manager_admin_rule_collection_resource.go index 5d41d5a59151..70a34981422f 100644 --- a/internal/services/network/network_manager_admin_rule_collection_resource.go +++ b/internal/services/network/network_manager_admin_rule_collection_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -37,7 +37,7 @@ func (r ManagerAdminRuleCollectionResource) ModelObject() interface{} { } func (r ManagerAdminRuleCollectionResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { - return adminrulecollections.ValidateRuleCollectionID + return adminrulecollections.ValidateSecurityAdminConfigurationRuleCollectionID } func (r ManagerAdminRuleCollectionResource) Arguments() map[string]*pluginsdk.Schema { @@ -91,7 +91,7 @@ func (r ManagerAdminRuleCollectionResource) Create() sdk.ResourceFunc { return err } - id := adminrulecollections.NewRuleCollectionID(configurationId.SubscriptionId, configurationId.ResourceGroupName, + id := adminrulecollections.NewSecurityAdminConfigurationRuleCollectionID(configurationId.SubscriptionId, configurationId.ResourceGroupName, configurationId.NetworkManagerName, configurationId.SecurityAdminConfigurationName, model.Name) existing, err := client.Get(ctx, id) @@ -129,7 +129,7 @@ func (r ManagerAdminRuleCollectionResource) Update() sdk.ResourceFunc { Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Network.AdminRuleCollections - id, err := adminrulecollections.ParseRuleCollectionID(metadata.ResourceData.Id()) + id, err := adminrulecollections.ParseSecurityAdminConfigurationRuleCollectionID(metadata.ResourceData.Id()) if err != nil { return err } @@ -175,7 +175,7 @@ func (r ManagerAdminRuleCollectionResource) Read() sdk.ResourceFunc { Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Network.AdminRuleCollections - id, err := adminrulecollections.ParseRuleCollectionID(metadata.ResourceData.Id()) + id, err := adminrulecollections.ParseSecurityAdminConfigurationRuleCollectionID(metadata.ResourceData.Id()) if err != nil { return err } @@ -219,7 +219,7 @@ func (r ManagerAdminRuleCollectionResource) Delete() sdk.ResourceFunc { Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Network.AdminRuleCollections - id, err := adminrulecollections.ParseRuleCollectionID(metadata.ResourceData.Id()) + id, err := adminrulecollections.ParseSecurityAdminConfigurationRuleCollectionID(metadata.ResourceData.Id()) if err != nil { return err } diff --git a/internal/services/network/network_manager_admin_rule_collection_resource_test.go b/internal/services/network/network_manager_admin_rule_collection_resource_test.go index df346aff9a48..dd8b0e5d4816 100644 --- a/internal/services/network/network_manager_admin_rule_collection_resource_test.go +++ b/internal/services/network/network_manager_admin_rule_collection_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -83,7 +83,7 @@ func testAccNetworkManagerAdminRuleCollection_update(t *testing.T) { } func (r NetworkAdminRuleCollectionResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := adminrulecollections.ParseRuleCollectionID(state.ID) + id, err := adminrulecollections.ParseSecurityAdminConfigurationRuleCollectionID(state.ID) if err != nil { return nil, err } diff --git a/internal/services/network/network_manager_admin_rule_resource.go b/internal/services/network/network_manager_admin_rule_resource.go index 8555b80e775b..7da70f43825d 100644 --- a/internal/services/network/network_manager_admin_rule_resource.go +++ b/internal/services/network/network_manager_admin_rule_resource.go @@ -9,7 +9,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -48,7 +48,7 @@ func (r ManagerAdminRuleResource) ModelObject() interface{} { } func (r ManagerAdminRuleResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { - return adminrules.ValidateRuleID + return adminrules.ValidateSecurityAdminConfigurationRuleCollectionRuleID } func (r ManagerAdminRuleResource) Arguments() map[string]*pluginsdk.Schema { @@ -64,7 +64,7 @@ func (r ManagerAdminRuleResource) Arguments() map[string]*pluginsdk.Schema { Type: pluginsdk.TypeString, Required: true, ForceNew: true, - ValidateFunc: adminrules.ValidateRuleCollectionID, + ValidateFunc: adminrules.ValidateSecurityAdminConfigurationRuleCollectionID, }, "action": { @@ -191,12 +191,12 @@ func (r ManagerAdminRuleResource) Create() sdk.ResourceFunc { } client := metadata.Client.Network.AdminRules - ruleCollectionId, err := adminrules.ParseRuleCollectionID(model.NetworkRuleCollectionId) + ruleCollectionId, err := adminrules.ParseSecurityAdminConfigurationRuleCollectionID(model.NetworkRuleCollectionId) if err != nil { return err } - id := adminrules.NewRuleID(ruleCollectionId.SubscriptionId, ruleCollectionId.ResourceGroupName, + id := adminrules.NewSecurityAdminConfigurationRuleCollectionRuleID(ruleCollectionId.SubscriptionId, ruleCollectionId.ResourceGroupName, ruleCollectionId.NetworkManagerName, ruleCollectionId.SecurityAdminConfigurationName, ruleCollectionId.RuleCollectionName, model.Name) existing, err := client.Get(ctx, id) if err != nil && !response.WasNotFound(existing.HttpResponse) { @@ -240,7 +240,7 @@ func (r ManagerAdminRuleResource) Update() sdk.ResourceFunc { Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Network.AdminRules - id, err := adminrules.ParseRuleID(metadata.ResourceData.Id()) + id, err := adminrules.ParseSecurityAdminConfigurationRuleCollectionRuleID(metadata.ResourceData.Id()) if err != nil { return err } @@ -324,7 +324,7 @@ func (r ManagerAdminRuleResource) Read() sdk.ResourceFunc { Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Network.AdminRules - id, err := adminrules.ParseRuleID(metadata.ResourceData.Id()) + id, err := adminrules.ParseSecurityAdminConfigurationRuleCollectionRuleID(metadata.ResourceData.Id()) if err != nil { return err } @@ -355,7 +355,7 @@ func (r ManagerAdminRuleResource) Read() sdk.ResourceFunc { state := ManagerAdminRuleModel{ Action: properties.Access, Name: id.RuleName, - NetworkRuleCollectionId: adminrules.NewRuleCollectionID(id.SubscriptionId, id.ResourceGroupName, + NetworkRuleCollectionId: adminrules.NewSecurityAdminConfigurationRuleCollectionID(id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName, id.RuleCollectionName).ID(), Destinations: flattenAddressPrefixItemModel(properties.Destinations), Direction: properties.Direction, @@ -387,7 +387,7 @@ func (r ManagerAdminRuleResource) Delete() sdk.ResourceFunc { Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Network.AdminRules - id, err := adminrules.ParseRuleID(metadata.ResourceData.Id()) + id, err := adminrules.ParseSecurityAdminConfigurationRuleCollectionRuleID(metadata.ResourceData.Id()) if err != nil { return err } diff --git a/internal/services/network/network_manager_admin_rule_resource_test.go b/internal/services/network/network_manager_admin_rule_resource_test.go index 26ffc26d1d7b..11a392725604 100644 --- a/internal/services/network/network_manager_admin_rule_resource_test.go +++ b/internal/services/network/network_manager_admin_rule_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -90,7 +90,7 @@ func testAccNetworkManagerAdminRule_update(t *testing.T) { } func (r ManagerAdminRuleResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := adminrules.ParseRuleID(state.ID) + id, err := adminrules.ParseSecurityAdminConfigurationRuleCollectionRuleID(state.ID) if err != nil { return nil, err } diff --git a/internal/services/network/network_manager_connectivity_configuration_data_source.go b/internal/services/network/network_manager_connectivity_configuration_data_source.go index 285f7371fc48..006b7bd4cda4 100644 --- a/internal/services/network/network_manager_connectivity_configuration_data_source.go +++ b/internal/services/network/network_manager_connectivity_configuration_data_source.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/network_manager_connectivity_configuration_resource.go b/internal/services/network/network_manager_connectivity_configuration_resource.go index 4b583ddaf902..91d003af18b7 100644 --- a/internal/services/network/network_manager_connectivity_configuration_resource.go +++ b/internal/services/network/network_manager_connectivity_configuration_resource.go @@ -9,7 +9,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/network_manager_connectivity_configuration_resource_test.go b/internal/services/network/network_manager_connectivity_configuration_resource_test.go index da6793c6b24d..44894389bf14 100644 --- a/internal/services/network/network_manager_connectivity_configuration_resource_test.go +++ b/internal/services/network/network_manager_connectivity_configuration_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_manager_data_source.go b/internal/services/network/network_manager_data_source.go index 9600cd5a0b09..6b31150b6a15 100644 --- a/internal/services/network/network_manager_data_source.go +++ b/internal/services/network/network_manager_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/network_manager_deployment_resource.go b/internal/services/network/network_manager_deployment_resource.go index 5869a137aadc..c7b655e7864e 100644 --- a/internal/services/network/network_manager_deployment_resource.go +++ b/internal/services/network/network_manager_deployment_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" diff --git a/internal/services/network/network_manager_deployment_resource_test.go b/internal/services/network/network_manager_deployment_resource_test.go index 1a709fda61f0..c6c2bd760482 100644 --- a/internal/services/network/network_manager_deployment_resource_test.go +++ b/internal/services/network/network_manager_deployment_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" diff --git a/internal/services/network/network_manager_management_group_connection_resource.go b/internal/services/network/network_manager_management_group_connection_resource.go index f17aab268f52..1ee13f43c5cf 100644 --- a/internal/services/network/network_manager_management_group_connection_resource.go +++ b/internal/services/network/network_manager_management_group_connection_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" managementParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/managementgroup/parse" managementValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/managementgroup/validate" diff --git a/internal/services/network/network_manager_management_group_connection_resource_test.go b/internal/services/network/network_manager_management_group_connection_resource_test.go index 9acef782b973..e0c25105a90f 100644 --- a/internal/services/network/network_manager_management_group_connection_resource_test.go +++ b/internal/services/network/network_manager_management_group_connection_resource_test.go @@ -10,7 +10,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_manager_network_group_data_source.go b/internal/services/network/network_manager_network_group_data_source.go index c183420381df..67fb64220b47 100644 --- a/internal/services/network/network_manager_network_group_data_source.go +++ b/internal/services/network/network_manager_network_group_data_source.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/network_manager_network_group_resource.go b/internal/services/network/network_manager_network_group_resource.go index 91ea8824ebfe..8669fa71c4bc 100644 --- a/internal/services/network/network_manager_network_group_resource.go +++ b/internal/services/network/network_manager_network_group_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/network_manager_network_group_resource_test.go b/internal/services/network/network_manager_network_group_resource_test.go index 34ce8cbe7433..093b65f81c8b 100644 --- a/internal/services/network/network_manager_network_group_resource_test.go +++ b/internal/services/network/network_manager_network_group_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_manager_resource.go b/internal/services/network/network_manager_resource.go index b455ebd5075a..ce212c353f7c 100644 --- a/internal/services/network/network_manager_resource.go +++ b/internal/services/network/network_manager_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" diff --git a/internal/services/network/network_manager_resource_test.go b/internal/services/network/network_manager_resource_test.go index 01f36c03ba62..82c90fe79d9b 100644 --- a/internal/services/network/network_manager_resource_test.go +++ b/internal/services/network/network_manager_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_manager_scope_connection_resource.go b/internal/services/network/network_manager_scope_connection_resource.go index ef1f1e0ed6ca..38658878c78b 100644 --- a/internal/services/network/network_manager_scope_connection_resource.go +++ b/internal/services/network/network_manager_scope_connection_resource.go @@ -9,7 +9,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/network_manager_scope_connection_resource_test.go b/internal/services/network/network_manager_scope_connection_resource_test.go index b59868565ed9..91d0054a5a10 100644 --- a/internal/services/network/network_manager_scope_connection_resource_test.go +++ b/internal/services/network/network_manager_scope_connection_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_manager_security_admin_configuration_resource.go b/internal/services/network/network_manager_security_admin_configuration_resource.go index fbe49a918fee..53b70d721ec8 100644 --- a/internal/services/network/network_manager_security_admin_configuration_resource.go +++ b/internal/services/network/network_manager_security_admin_configuration_resource.go @@ -9,7 +9,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/network_manager_security_admin_configuration_resource_test.go b/internal/services/network/network_manager_security_admin_configuration_resource_test.go index 8cffd99c0553..669910ba8605 100644 --- a/internal/services/network/network_manager_security_admin_configuration_resource_test.go +++ b/internal/services/network/network_manager_security_admin_configuration_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_manager_static_member_resource.go b/internal/services/network/network_manager_static_member_resource.go index 85f61e79b192..9ceedcc912c4 100644 --- a/internal/services/network/network_manager_static_member_resource.go +++ b/internal/services/network/network_manager_static_member_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/network_manager_static_member_resource_test.go b/internal/services/network/network_manager_static_member_resource_test.go index b5b9d0972fe2..1b86dc8ec765 100644 --- a/internal/services/network/network_manager_static_member_resource_test.go +++ b/internal/services/network/network_manager_static_member_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_manager_subscription_connection_resource.go b/internal/services/network/network_manager_subscription_connection_resource.go index 705a44cbdf9a..34b62f4e92e6 100644 --- a/internal/services/network/network_manager_subscription_connection_resource.go +++ b/internal/services/network/network_manager_subscription_connection_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/network_manager_subscription_connection_resource_test.go b/internal/services/network/network_manager_subscription_connection_resource_test.go index 2099299a3bb7..e7963bc7f8c6 100644 --- a/internal/services/network/network_manager_subscription_connection_resource_test.go +++ b/internal/services/network/network_manager_subscription_connection_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_packet_capture_resource.go b/internal/services/network/network_packet_capture_resource.go index c1bcbcefe7c6..772bde4680b3 100644 --- a/internal/services/network/network_packet_capture_resource.go +++ b/internal/services/network/network_packet_capture_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/migration" diff --git a/internal/services/network/network_packet_capture_resource_test.go b/internal/services/network/network_packet_capture_resource_test.go index b337b245e575..2cfe68f4af14 100644 --- a/internal/services/network/network_packet_capture_resource_test.go +++ b/internal/services/network/network_packet_capture_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_profile_resource.go b/internal/services/network/network_profile_resource.go index b7ef01bf1a50..1ed2c0268d6e 100644 --- a/internal/services/network/network_profile_resource.go +++ b/internal/services/network/network_profile_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/network_profile_resource_test.go b/internal/services/network/network_profile_resource_test.go index 1effcee5ebd3..238892c8566d 100644 --- a/internal/services/network/network_profile_resource_test.go +++ b/internal/services/network/network_profile_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_security_group_data_source.go b/internal/services/network/network_security_group_data_source.go index d0eb195a0734..c2ebcf1c8f53 100644 --- a/internal/services/network/network_security_group_data_source.go +++ b/internal/services/network/network_security_group_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/network_security_group_resource.go b/internal/services/network/network_security_group_resource.go index 682eefc9dca1..16564b66742a 100644 --- a/internal/services/network/network_security_group_resource.go +++ b/internal/services/network/network_security_group_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_security_group_resource_test.go b/internal/services/network/network_security_group_resource_test.go index 4fd7f476831c..1e446a302798 100644 --- a/internal/services/network/network_security_group_resource_test.go +++ b/internal/services/network/network_security_group_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_security_rule_resource.go b/internal/services/network/network_security_rule_resource.go index 858777342a89..e849bca8c6a2 100644 --- a/internal/services/network/network_security_rule_resource.go +++ b/internal/services/network/network_security_rule_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/network_security_rule_resource_test.go b/internal/services/network/network_security_rule_resource_test.go index 487986357c26..08591371b481 100644 --- a/internal/services/network/network_security_rule_resource_test.go +++ b/internal/services/network/network_security_rule_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_service_tags_data_source.go b/internal/services/network/network_service_tags_data_source.go index 43c1869cc073..b001db446f10 100644 --- a/internal/services/network/network_service_tags_data_source.go +++ b/internal/services/network/network_service_tags_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/network_watcher_data_source.go b/internal/services/network/network_watcher_data_source.go index 1f8cf5eed8c0..4040694afc9f 100644 --- a/internal/services/network/network_watcher_data_source.go +++ b/internal/services/network/network_watcher_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/network_watcher_flow_log_resource.go b/internal/services/network/network_watcher_flow_log_resource.go index b1af4492b3bc..ae786f9d3543 100644 --- a/internal/services/network/network_watcher_flow_log_resource.go +++ b/internal/services/network/network_watcher_flow_log_resource.go @@ -14,9 +14,9 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_watcher_flow_log_resource_test.go b/internal/services/network/network_watcher_flow_log_resource_test.go index 9c888ed32101..c63236b7b221 100644 --- a/internal/services/network/network_watcher_flow_log_resource_test.go +++ b/internal/services/network/network_watcher_flow_log_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_watcher_resource.go b/internal/services/network/network_watcher_resource.go index 81d1bf17d52b..41c9f67ffaf4 100644 --- a/internal/services/network/network_watcher_resource.go +++ b/internal/services/network/network_watcher_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/network_watcher_resource_test.go b/internal/services/network/network_watcher_resource_test.go index f2520b457dd8..57b9766f220b 100644 --- a/internal/services/network/network_watcher_resource_test.go +++ b/internal/services/network/network_watcher_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/parse/private_endpoint_application_security_group_association_id.go b/internal/services/network/parse/private_endpoint_application_security_group_association_id.go index 34cca218c579..ce74080f2adc 100644 --- a/internal/services/network/parse/private_endpoint_application_security_group_association_id.go +++ b/internal/services/network/parse/private_endpoint_application_security_group_association_id.go @@ -8,8 +8,8 @@ import ( "strings" "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" ) var _ resourceids.Id = PrivateEndpointApplicationSecurityGroupAssociationId{} diff --git a/internal/services/network/parse/private_endpoint_application_security_group_association_id_test.go b/internal/services/network/parse/private_endpoint_application_security_group_association_id_test.go index 054cc78f2106..2019a7fc942a 100644 --- a/internal/services/network/parse/private_endpoint_application_security_group_association_id_test.go +++ b/internal/services/network/parse/private_endpoint_application_security_group_association_id_test.go @@ -6,8 +6,8 @@ package parse import ( "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" ) func TestPrivateEndpointApplicationSecurityGroupAssociationID(t *testing.T) { diff --git a/internal/services/network/point_to_site_vpn_gateway_resource.go b/internal/services/network/point_to_site_vpn_gateway_resource.go index 0f7a9f5c0ba0..98e3f79020f9 100644 --- a/internal/services/network/point_to_site_vpn_gateway_resource.go +++ b/internal/services/network/point_to_site_vpn_gateway_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/private_endpoint_application_security_group_association.go b/internal/services/network/private_endpoint_application_security_group_association.go index 6737e8b8c405..1431e217580f 100644 --- a/internal/services/network/private_endpoint_application_security_group_association.go +++ b/internal/services/network/private_endpoint_application_security_group_association.go @@ -10,8 +10,8 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/parse" diff --git a/internal/services/network/private_endpoint_application_security_group_association_test.go b/internal/services/network/private_endpoint_application_security_group_association_test.go index 31d033368d67..6de27fcadb28 100644 --- a/internal/services/network/private_endpoint_application_security_group_association_test.go +++ b/internal/services/network/private_endpoint_application_security_group_association_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/private_endpoint_connection_data_source.go b/internal/services/network/private_endpoint_connection_data_source.go index 813e711033e8..d226f24a2d1d 100644 --- a/internal/services/network/private_endpoint_connection_data_source.go +++ b/internal/services/network/private_endpoint_connection_data_source.go @@ -12,8 +12,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/private_endpoint_resource.go b/internal/services/network/private_endpoint_resource.go index b5d79f073d64..9ab1f514c560 100644 --- a/internal/services/network/private_endpoint_resource.go +++ b/internal/services/network/private_endpoint_resource.go @@ -19,8 +19,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" mariadbServers "github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers" "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" postgresqlServers "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers" "github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones" "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis" diff --git a/internal/services/network/private_endpoint_resource_test.go b/internal/services/network/private_endpoint_resource_test.go index 0eff18de5519..07ec605e2361 100644 --- a/internal/services/network/private_endpoint_resource_test.go +++ b/internal/services/network/private_endpoint_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/private_link_service_data_source.go b/internal/services/network/private_link_service_data_source.go index 5c2055c890c9..7895299b66ce 100644 --- a/internal/services/network/private_link_service_data_source.go +++ b/internal/services/network/private_link_service_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/private_link_service_endpoint_connections_data_source.go b/internal/services/network/private_link_service_endpoint_connections_data_source.go index e1471edf2c5d..9b1d0afe2df1 100644 --- a/internal/services/network/private_link_service_endpoint_connections_data_source.go +++ b/internal/services/network/private_link_service_endpoint_connections_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/private_link_service_resource.go b/internal/services/network/private_link_service_resource.go index a251c57207b4..4a62ab851a3a 100644 --- a/internal/services/network/private_link_service_resource.go +++ b/internal/services/network/private_link_service_resource.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" diff --git a/internal/services/network/private_link_service_resource_test.go b/internal/services/network/private_link_service_resource_test.go index 6a354a6e0ebf..b25681878a45 100644 --- a/internal/services/network/private_link_service_resource_test.go +++ b/internal/services/network/private_link_service_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/public_ip_data_source.go b/internal/services/network/public_ip_data_source.go index 7d50378273de..8293ad31baa2 100644 --- a/internal/services/network/public_ip_data_source.go +++ b/internal/services/network/public_ip_data_source.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/public_ip_prefix_data_source.go b/internal/services/network/public_ip_prefix_data_source.go index f5235681af56..f01d91382a72 100644 --- a/internal/services/network/public_ip_prefix_data_source.go +++ b/internal/services/network/public_ip_prefix_data_source.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/public_ip_prefix_resource.go b/internal/services/network/public_ip_prefix_resource.go index cac92346133f..804b6bcfcc5e 100644 --- a/internal/services/network/public_ip_prefix_resource.go +++ b/internal/services/network/public_ip_prefix_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/public_ip_prefix_resource_test.go b/internal/services/network/public_ip_prefix_resource_test.go index 80ad19e5268e..2c3685633ef9 100644 --- a/internal/services/network/public_ip_prefix_resource_test.go +++ b/internal/services/network/public_ip_prefix_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/public_ip_resource.go b/internal/services/network/public_ip_resource.go index f8f5ebb60d30..679d7ea320e8 100644 --- a/internal/services/network/public_ip_resource.go +++ b/internal/services/network/public_ip_resource.go @@ -17,8 +17,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/public_ip_resource_test.go b/internal/services/network/public_ip_resource_test.go index 20f9174395ad..24dc40cb2899 100644 --- a/internal/services/network/public_ip_resource_test.go +++ b/internal/services/network/public_ip_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/public_ips_data_source.go b/internal/services/network/public_ips_data_source.go index 4f97ab288c01..318d9a7b353d 100644 --- a/internal/services/network/public_ips_data_source.go +++ b/internal/services/network/public_ips_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/route_filter_data_source.go b/internal/services/network/route_filter_data_source.go index 4d6529a7a4d5..a17dc76ed63a 100644 --- a/internal/services/network/route_filter_data_source.go +++ b/internal/services/network/route_filter_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/route_filter_resource.go b/internal/services/network/route_filter_resource.go index ee4d45b7b6c9..b7a555d45575 100644 --- a/internal/services/network/route_filter_resource.go +++ b/internal/services/network/route_filter_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/route_filter_resource_test.go b/internal/services/network/route_filter_resource_test.go index b752a55e9139..c1706ac6f000 100644 --- a/internal/services/network/route_filter_resource_test.go +++ b/internal/services/network/route_filter_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/route_map_resource.go b/internal/services/network/route_map_resource.go index 12e07f6caa85..1cfe272dede8 100644 --- a/internal/services/network/route_map_resource.go +++ b/internal/services/network/route_map_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/route_map_resource_test.go b/internal/services/network/route_map_resource_test.go index 88e4daf47c83..1ba61f4b2c2b 100644 --- a/internal/services/network/route_map_resource_test.go +++ b/internal/services/network/route_map_resource_test.go @@ -10,7 +10,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/route_resource.go b/internal/services/network/route_resource.go index 6672126ad0ff..e02c30bdf2be 100644 --- a/internal/services/network/route_resource.go +++ b/internal/services/network/route_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/route_resource_test.go b/internal/services/network/route_resource_test.go index 4b503b3ba527..2d1b772aa05d 100644 --- a/internal/services/network/route_resource_test.go +++ b/internal/services/network/route_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/route_server_bgp_connection_resource.go b/internal/services/network/route_server_bgp_connection_resource.go index c5b456d633e3..13f2feb502fe 100644 --- a/internal/services/network/route_server_bgp_connection_resource.go +++ b/internal/services/network/route_server_bgp_connection_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/route_server_resource.go b/internal/services/network/route_server_resource.go index 2ecc1fca1433..bac8b724ef7c 100644 --- a/internal/services/network/route_server_resource.go +++ b/internal/services/network/route_server_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/route_server_resource_test.go b/internal/services/network/route_server_resource_test.go index 8a7b0c2fcb2b..e84e6021557c 100644 --- a/internal/services/network/route_server_resource_test.go +++ b/internal/services/network/route_server_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/route_table_data_source.go b/internal/services/network/route_table_data_source.go index b20227be3d55..f8c3c00d1aca 100644 --- a/internal/services/network/route_table_data_source.go +++ b/internal/services/network/route_table_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/route_table_resource.go b/internal/services/network/route_table_resource.go index 6e880d1d7833..02052630516a 100644 --- a/internal/services/network/route_table_resource.go +++ b/internal/services/network/route_table_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" diff --git a/internal/services/network/route_table_resource_test.go b/internal/services/network/route_table_resource_test.go index 06e1060ac26f..710a65a80664 100644 --- a/internal/services/network/route_table_resource_test.go +++ b/internal/services/network/route_table_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/subnet_data_source.go b/internal/services/network/subnet_data_source.go index b511ada644f4..9f9fe138dc19 100644 --- a/internal/services/network/subnet_data_source.go +++ b/internal/services/network/subnet_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/subnet_nat_gateway_association_resource.go b/internal/services/network/subnet_nat_gateway_association_resource.go index 96394c308cb3..ac3e7d880f14 100644 --- a/internal/services/network/subnet_nat_gateway_association_resource.go +++ b/internal/services/network/subnet_nat_gateway_association_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/subnet_nat_gateway_association_resource_test.go b/internal/services/network/subnet_nat_gateway_association_resource_test.go index 67a3f5544890..5ca45833750a 100644 --- a/internal/services/network/subnet_nat_gateway_association_resource_test.go +++ b/internal/services/network/subnet_nat_gateway_association_resource_test.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/subnet_network_security_group_association_resource.go b/internal/services/network/subnet_network_security_group_association_resource.go index f68fc73141e5..a3ce480f7925 100644 --- a/internal/services/network/subnet_network_security_group_association_resource.go +++ b/internal/services/network/subnet_network_security_group_association_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/subnet_network_security_group_association_resource_test.go b/internal/services/network/subnet_network_security_group_association_resource_test.go index 243511dbaab2..2c5c438504e6 100644 --- a/internal/services/network/subnet_network_security_group_association_resource_test.go +++ b/internal/services/network/subnet_network_security_group_association_resource_test.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/subnet_resource.go b/internal/services/network/subnet_resource.go index 2a0bc4698e81..83b99797b94b 100644 --- a/internal/services/network/subnet_resource.go +++ b/internal/services/network/subnet_resource.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" diff --git a/internal/services/network/subnet_resource_test.go b/internal/services/network/subnet_resource_test.go index a0aa30290ccf..b3de11245f2f 100644 --- a/internal/services/network/subnet_resource_test.go +++ b/internal/services/network/subnet_resource_test.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/subnet_route_table_association_resource.go b/internal/services/network/subnet_route_table_association_resource.go index a0fa4314f148..da3d563e0a56 100644 --- a/internal/services/network/subnet_route_table_association_resource.go +++ b/internal/services/network/subnet_route_table_association_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/subnet_route_table_association_resource_test.go b/internal/services/network/subnet_route_table_association_resource_test.go index 25142a576c48..600355104551 100644 --- a/internal/services/network/subnet_route_table_association_resource_test.go +++ b/internal/services/network/subnet_route_table_association_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/subnet_service_endpoint_storage_policy_resource.go b/internal/services/network/subnet_service_endpoint_storage_policy_resource.go index ae6f1e89d12a..97f33f2d2bfb 100644 --- a/internal/services/network/subnet_service_endpoint_storage_policy_resource.go +++ b/internal/services/network/subnet_service_endpoint_storage_policy_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/subnet_service_endpoint_storage_policy_resource_test.go b/internal/services/network/subnet_service_endpoint_storage_policy_resource_test.go index 00e5d01b219b..b58297bb9ba3 100644 --- a/internal/services/network/subnet_service_endpoint_storage_policy_resource_test.go +++ b/internal/services/network/subnet_service_endpoint_storage_policy_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_hub_bgp_connection_resource.go b/internal/services/network/virtual_hub_bgp_connection_resource.go index 840e3668f1fc..d9efdb4deb12 100644 --- a/internal/services/network/virtual_hub_bgp_connection_resource.go +++ b/internal/services/network/virtual_hub_bgp_connection_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/virtual_hub_connection_data_source.go b/internal/services/network/virtual_hub_connection_data_source.go index 53bce2b406e7..4eaf14feb5f4 100644 --- a/internal/services/network/virtual_hub_connection_data_source.go +++ b/internal/services/network/virtual_hub_connection_data_source.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/virtual_hub_connection_resource.go b/internal/services/network/virtual_hub_connection_resource.go index 76758e0565a0..6c8b2a8a961f 100644 --- a/internal/services/network/virtual_hub_connection_resource.go +++ b/internal/services/network/virtual_hub_connection_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/virtual_hub_connection_resource_test.go b/internal/services/network/virtual_hub_connection_resource_test.go index 562f40451bd1..017fe8be6889 100644 --- a/internal/services/network/virtual_hub_connection_resource_test.go +++ b/internal/services/network/virtual_hub_connection_resource_test.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_hub_data_source.go b/internal/services/network/virtual_hub_data_source.go index 9119acf56fb7..240d8a09df08 100644 --- a/internal/services/network/virtual_hub_data_source.go +++ b/internal/services/network/virtual_hub_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/virtual_hub_ip_resource.go b/internal/services/network/virtual_hub_ip_resource.go index 82a8162136fa..d9464f8c5644 100644 --- a/internal/services/network/virtual_hub_ip_resource.go +++ b/internal/services/network/virtual_hub_ip_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/virtual_hub_resource.go b/internal/services/network/virtual_hub_resource.go index 695274b869dd..4dbf603540cf 100644 --- a/internal/services/network/virtual_hub_resource.go +++ b/internal/services/network/virtual_hub_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_hub_resource_test.go b/internal/services/network/virtual_hub_resource_test.go index f4a880ebdd60..c68c13ca0a07 100644 --- a/internal/services/network/virtual_hub_resource_test.go +++ b/internal/services/network/virtual_hub_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_hub_route_table_data_source.go b/internal/services/network/virtual_hub_route_table_data_source.go index 1cb22ba9cce7..17624fc2d582 100644 --- a/internal/services/network/virtual_hub_route_table_data_source.go +++ b/internal/services/network/virtual_hub_route_table_data_source.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" networkValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/virtual_hub_route_table_resource.go b/internal/services/network/virtual_hub_route_table_resource.go index fbf5e00d26dd..b7a6f0f6963a 100644 --- a/internal/services/network/virtual_hub_route_table_resource.go +++ b/internal/services/network/virtual_hub_route_table_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_hub_route_table_resource_test.go b/internal/services/network/virtual_hub_route_table_resource_test.go index 5747b17e39da..7741f3a4bdf3 100644 --- a/internal/services/network/virtual_hub_route_table_resource_test.go +++ b/internal/services/network/virtual_hub_route_table_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_hub_route_table_route_resource.go b/internal/services/network/virtual_hub_route_table_route_resource.go index c346336b4560..d372e19341f6 100644 --- a/internal/services/network/virtual_hub_route_table_route_resource.go +++ b/internal/services/network/virtual_hub_route_table_route_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_hub_route_table_route_resource_test.go b/internal/services/network/virtual_hub_route_table_route_resource_test.go index 3cbfa910688d..b1f6ac0d9677 100644 --- a/internal/services/network/virtual_hub_route_table_route_resource_test.go +++ b/internal/services/network/virtual_hub_route_table_route_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_hub_routing_intent_resource.go b/internal/services/network/virtual_hub_routing_intent_resource.go index 129d24d1b8d1..bf923c894725 100644 --- a/internal/services/network/virtual_hub_routing_intent_resource.go +++ b/internal/services/network/virtual_hub_routing_intent_resource.go @@ -9,7 +9,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/virtual_hub_routing_intent_resource_test.go b/internal/services/network/virtual_hub_routing_intent_resource_test.go index 8fcfb69cb575..56428b9d7c82 100644 --- a/internal/services/network/virtual_hub_routing_intent_resource_test.go +++ b/internal/services/network/virtual_hub_routing_intent_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_hub_security_partner_provider_resource.go b/internal/services/network/virtual_hub_security_partner_provider_resource.go index c9d441847797..62eed221a79a 100644 --- a/internal/services/network/virtual_hub_security_partner_provider_resource.go +++ b/internal/services/network/virtual_hub_security_partner_provider_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/virtual_hub_security_partner_provider_resource_test.go b/internal/services/network/virtual_hub_security_partner_provider_resource_test.go index 9a8dbb279dc6..b5fdce6f985e 100644 --- a/internal/services/network/virtual_hub_security_partner_provider_resource_test.go +++ b/internal/services/network/virtual_hub_security_partner_provider_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_machine_packet_capture_resource.go b/internal/services/network/virtual_machine_packet_capture_resource.go index 451a21f831c3..04f8b15d7a11 100644 --- a/internal/services/network/virtual_machine_packet_capture_resource.go +++ b/internal/services/network/virtual_machine_packet_capture_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" networkValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" diff --git a/internal/services/network/virtual_machine_packet_capture_resource_test.go b/internal/services/network/virtual_machine_packet_capture_resource_test.go index c7a2508971c8..bc6b61836e61 100644 --- a/internal/services/network/virtual_machine_packet_capture_resource_test.go +++ b/internal/services/network/virtual_machine_packet_capture_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_machine_scale_set_packet_capture_resource.go b/internal/services/network/virtual_machine_scale_set_packet_capture_resource.go index 93624c815acc..c28858a8fd19 100644 --- a/internal/services/network/virtual_machine_scale_set_packet_capture_resource.go +++ b/internal/services/network/virtual_machine_scale_set_packet_capture_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" computeParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/compute/parse" diff --git a/internal/services/network/virtual_machine_scale_set_packet_capture_resource_test.go b/internal/services/network/virtual_machine_scale_set_packet_capture_resource_test.go index 5d484a1e9adb..b78eb8d7fa89 100644 --- a/internal/services/network/virtual_machine_scale_set_packet_capture_resource_test.go +++ b/internal/services/network/virtual_machine_scale_set_packet_capture_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_network_data_source.go b/internal/services/network/virtual_network_data_source.go index a81ade0ede42..4f766e7bf0c5 100644 --- a/internal/services/network/virtual_network_data_source.go +++ b/internal/services/network/virtual_network_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/virtual_network_dns_servers_resource.go b/internal/services/network/virtual_network_dns_servers_resource.go index ce64aa28e936..66833d53b704 100644 --- a/internal/services/network/virtual_network_dns_servers_resource.go +++ b/internal/services/network/virtual_network_dns_servers_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/parse" diff --git a/internal/services/network/virtual_network_dns_servers_resource_test.go b/internal/services/network/virtual_network_dns_servers_resource_test.go index f7c63504dcd1..0d8d0c7b20cc 100644 --- a/internal/services/network/virtual_network_dns_servers_resource_test.go +++ b/internal/services/network/virtual_network_dns_servers_resource_test.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_network_gateway_connection_data_source.go b/internal/services/network/virtual_network_gateway_connection_data_source.go index ec49c6efbe86..0f37cb077956 100644 --- a/internal/services/network/virtual_network_gateway_connection_data_source.go +++ b/internal/services/network/virtual_network_gateway_connection_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/virtual_network_gateway_connection_resource.go b/internal/services/network/virtual_network_gateway_connection_resource.go index eded6aa1f0ec..feb955358b11 100644 --- a/internal/services/network/virtual_network_gateway_connection_resource.go +++ b/internal/services/network/virtual_network_gateway_connection_resource.go @@ -16,8 +16,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" diff --git a/internal/services/network/virtual_network_gateway_connection_resource_test.go b/internal/services/network/virtual_network_gateway_connection_resource_test.go index 2128c00dd5b0..348e6b6b5bfb 100644 --- a/internal/services/network/virtual_network_gateway_connection_resource_test.go +++ b/internal/services/network/virtual_network_gateway_connection_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_network_gateway_data_source.go b/internal/services/network/virtual_network_gateway_data_source.go index 50a7c96b52be..142a26743363 100644 --- a/internal/services/network/virtual_network_gateway_data_source.go +++ b/internal/services/network/virtual_network_gateway_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/virtual_network_gateway_nat_rule_resource.go b/internal/services/network/virtual_network_gateway_nat_rule_resource.go index e046a9b48a15..4393b22aef2b 100644 --- a/internal/services/network/virtual_network_gateway_nat_rule_resource.go +++ b/internal/services/network/virtual_network_gateway_nat_rule_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" diff --git a/internal/services/network/virtual_network_gateway_nat_rule_resource_test.go b/internal/services/network/virtual_network_gateway_nat_rule_resource_test.go index bfcae0a94323..8fc045004c67 100644 --- a/internal/services/network/virtual_network_gateway_nat_rule_resource_test.go +++ b/internal/services/network/virtual_network_gateway_nat_rule_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_network_gateway_resource.go b/internal/services/network/virtual_network_gateway_resource.go index 6e6d6f40eede..994e2d08e868 100644 --- a/internal/services/network/virtual_network_gateway_resource.go +++ b/internal/services/network/virtual_network_gateway_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/parse" diff --git a/internal/services/network/virtual_network_gateway_resource_test.go b/internal/services/network/virtual_network_gateway_resource_test.go index c2d642821e82..274cf793433d 100644 --- a/internal/services/network/virtual_network_gateway_resource_test.go +++ b/internal/services/network/virtual_network_gateway_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_network_peering_resource.go b/internal/services/network/virtual_network_peering_resource.go index 406a9c85e2e0..d6570b572d4f 100644 --- a/internal/services/network/virtual_network_peering_resource.go +++ b/internal/services/network/virtual_network_peering_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/virtual_network_peering_resource_test.go b/internal/services/network/virtual_network_peering_resource_test.go index 7b63a975b88b..7a095002f57f 100644 --- a/internal/services/network/virtual_network_peering_resource_test.go +++ b/internal/services/network/virtual_network_peering_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_network_resource.go b/internal/services/network/virtual_network_resource.go index acfca5eaaf2e..d7b2fa610d31 100644 --- a/internal/services/network/virtual_network_resource.go +++ b/internal/services/network/virtual_network_resource.go @@ -22,7 +22,7 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" diff --git a/internal/services/network/virtual_network_resource_test.go b/internal/services/network/virtual_network_resource_test.go index e75f5cd6e414..edf8d8aa083c 100644 --- a/internal/services/network/virtual_network_resource_test.go +++ b/internal/services/network/virtual_network_resource_test.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_wan_data_source.go b/internal/services/network/virtual_wan_data_source.go index e7174b12ea24..dbfaf6b1ff03 100644 --- a/internal/services/network/virtual_wan_data_source.go +++ b/internal/services/network/virtual_wan_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/virtual_wan_resource.go b/internal/services/network/virtual_wan_resource.go index bf66c99aff07..0d8a0353c653 100644 --- a/internal/services/network/virtual_wan_resource.go +++ b/internal/services/network/virtual_wan_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/virtual_wan_resource_test.go b/internal/services/network/virtual_wan_resource_test.go index 429ca5dde644..d71a0157db67 100644 --- a/internal/services/network/virtual_wan_resource_test.go +++ b/internal/services/network/virtual_wan_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/vpn_gateway_connection_resource.go b/internal/services/network/vpn_gateway_connection_resource.go index 899ec14a462a..ad44edfce685 100644 --- a/internal/services/network/vpn_gateway_connection_resource.go +++ b/internal/services/network/vpn_gateway_connection_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/vpn_gateway_data_source.go b/internal/services/network/vpn_gateway_data_source.go index 5a0fd412ae1c..e9c9f4822c73 100644 --- a/internal/services/network/vpn_gateway_data_source.go +++ b/internal/services/network/vpn_gateway_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/vpn_gateway_nat_rule_resource.go b/internal/services/network/vpn_gateway_nat_rule_resource.go index a78cbcc77bfe..d21380ce7a11 100644 --- a/internal/services/network/vpn_gateway_nat_rule_resource.go +++ b/internal/services/network/vpn_gateway_nat_rule_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/resourcegroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/vpn_gateway_nat_rule_resource_test.go b/internal/services/network/vpn_gateway_nat_rule_resource_test.go index 33c03ba505c5..0c20e1e281c7 100644 --- a/internal/services/network/vpn_gateway_nat_rule_resource_test.go +++ b/internal/services/network/vpn_gateway_nat_rule_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/vpn_gateway_resource.go b/internal/services/network/vpn_gateway_resource.go index 76f13d1f6b92..d2275eceb877 100644 --- a/internal/services/network/vpn_gateway_resource.go +++ b/internal/services/network/vpn_gateway_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" commonValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/vpn_gateway_resource_test.go b/internal/services/network/vpn_gateway_resource_test.go index e47711bdff71..28f021eb7ba1 100644 --- a/internal/services/network/vpn_gateway_resource_test.go +++ b/internal/services/network/vpn_gateway_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/vpn_server_configuration_data_source_resource.go b/internal/services/network/vpn_server_configuration_data_source_resource.go index 01eb177be82e..d4cae72fc76c 100644 --- a/internal/services/network/vpn_server_configuration_data_source_resource.go +++ b/internal/services/network/vpn_server_configuration_data_source_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/network/vpn_server_configuration_policy_group_resource.go b/internal/services/network/vpn_server_configuration_policy_group_resource.go index b94b193460f5..5a37c6812a7c 100644 --- a/internal/services/network/vpn_server_configuration_policy_group_resource.go +++ b/internal/services/network/vpn_server_configuration_policy_group_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/vpn_server_configuration_policy_group_resource_test.go b/internal/services/network/vpn_server_configuration_policy_group_resource_test.go index 2f4f290f70b6..206816e82a7f 100644 --- a/internal/services/network/vpn_server_configuration_policy_group_resource_test.go +++ b/internal/services/network/vpn_server_configuration_policy_group_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/vpn_server_configuration_resource.go b/internal/services/network/vpn_server_configuration_resource.go index 0dcae37fb6b1..163984a41cbf 100644 --- a/internal/services/network/vpn_server_configuration_resource.go +++ b/internal/services/network/vpn_server_configuration_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/vpn_server_configuration_resource_test.go b/internal/services/network/vpn_server_configuration_resource_test.go index 1e2b37ff944d..1e4d15d2299a 100644 --- a/internal/services/network/vpn_server_configuration_resource_test.go +++ b/internal/services/network/vpn_server_configuration_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/vpn_site_resource.go b/internal/services/network/vpn_site_resource.go index d5de90205344..53273ee511d2 100644 --- a/internal/services/network/vpn_site_resource.go +++ b/internal/services/network/vpn_site_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" diff --git a/internal/services/network/vpn_site_resource_test.go b/internal/services/network/vpn_site_resource_test.go index 0399336285bf..ce14eda5cf0a 100644 --- a/internal/services/network/vpn_site_resource_test.go +++ b/internal/services/network/vpn_site_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/web_application_firewall_policy_data_source.go b/internal/services/network/web_application_firewall_policy_data_source.go index 70de6dbbe980..315b0e4961d0 100644 --- a/internal/services/network/web_application_firewall_policy_data_source.go +++ b/internal/services/network/web_application_firewall_policy_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/web_application_firewall_policy_resource.go b/internal/services/network/web_application_firewall_policy_resource.go index 12053a12fd61..03ea1d57ff18 100644 --- a/internal/services/network/web_application_firewall_policy_resource.go +++ b/internal/services/network/web_application_firewall_policy_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/web_application_firewall_policy_resource_test.go b/internal/services/network/web_application_firewall_policy_resource_test.go index f27211b69546..c8f8a59a74d1 100644 --- a/internal/services/network/web_application_firewall_policy_resource_test.go +++ b/internal/services/network/web_application_firewall_policy_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/paloalto/network_virtual_appliance_resource.go b/internal/services/paloalto/network_virtual_appliance_resource.go index 812a60cf4731..5712196f169b 100644 --- a/internal/services/paloalto/network_virtual_appliance_resource.go +++ b/internal/services/paloalto/network_virtual_appliance_resource.go @@ -11,8 +11,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" diff --git a/internal/services/web/app_service_environment_resource.go b/internal/services/web/app_service_environment_resource.go index cfdbc2198e5b..2f1be92a0a67 100644 --- a/internal/services/web/app_service_environment_resource.go +++ b/internal/services/web/app_service_environment_resource.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" helpersValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlog.go deleted file mode 100644 index b3f068af815a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package applicationgatewayprivateendpointconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrule.go deleted file mode 100644 index 723193ddc360..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package applicationgatewaywafdynamicmanifests - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayFirewallRule struct { - Action *ApplicationGatewayWafRuleActionTypes `json:"action,omitempty"` - Description *string `json:"description,omitempty"` - RuleId int64 `json:"ruleId"` - RuleIdString *string `json:"ruleIdString,omitempty"` - State *ApplicationGatewayWafRuleStateTypes `json:"state,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostpropertiesformat.go deleted file mode 100644 index 32bf85022ef1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostpropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package bastionhosts - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BastionHostPropertiesFormat struct { - DisableCopyPaste *bool `json:"disableCopyPaste,omitempty"` - DnsName *string `json:"dnsName,omitempty"` - EnableFileCopy *bool `json:"enableFileCopy,omitempty"` - EnableIPConnect *bool `json:"enableIpConnect,omitempty"` - EnableKerberos *bool `json:"enableKerberos,omitempty"` - EnableShareableLink *bool `json:"enableShareableLink,omitempty"` - EnableTunneling *bool `json:"enableTunneling,omitempty"` - IPConfigurations *[]BastionHostIPConfiguration `json:"ipConfigurations,omitempty"` - NetworkAcls *BastionHostPropertiesFormatNetworkAcls `json:"networkAcls,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ScaleUnits *int64 `json:"scaleUnits,omitempty"` - VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlog.go deleted file mode 100644 index b5951b652697..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package cloudservicepublicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_probepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_probepropertiesformat.go deleted file mode 100644 index ddc84044699b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_probepropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package loadbalancers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProbePropertiesFormat struct { - IntervalInSeconds *int64 `json:"intervalInSeconds,omitempty"` - LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` - NumberOfProbes *int64 `json:"numberOfProbes,omitempty"` - Port int64 `json:"port"` - ProbeThreshold *int64 `json:"probeThreshold,omitempty"` - Protocol ProbeProtocol `json:"protocol"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RequestPath *string `json:"requestPath,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowloginformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowloginformation.go deleted file mode 100644 index 15a1cc0029d5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowloginformation.go +++ /dev/null @@ -1,10 +0,0 @@ -package trafficanalytics - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogInformation struct { - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Properties FlowLogProperties `json:"properties"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowlogproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowlogproperties.go deleted file mode 100644 index b26bd4b572a3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowlogproperties.go +++ /dev/null @@ -1,11 +0,0 @@ -package trafficanalytics - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogProperties struct { - Enabled bool `json:"enabled"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlog.go deleted file mode 100644 index 5a7b0a4647b2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package virtualnetworktaps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlog.go deleted file mode 100644 index b816a9fb4d85..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package vmsspublicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/README.md new file mode 100644 index 000000000000..5435c98716ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections` Documentation + +The `adminrulecollections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections" +``` + + +### Client Initialization + +```go +client := adminrulecollections.NewAdminRuleCollectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `AdminRuleCollectionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := adminrulecollections.NewSecurityAdminConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName") + +payload := adminrulecollections.AdminRuleCollection{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AdminRuleCollectionsClient.Delete` + +```go +ctx := context.TODO() +id := adminrulecollections.NewSecurityAdminConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName") + +if err := client.DeleteThenPoll(ctx, id, adminrulecollections.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `AdminRuleCollectionsClient.Get` + +```go +ctx := context.TODO() +id := adminrulecollections.NewSecurityAdminConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AdminRuleCollectionsClient.List` + +```go +ctx := context.TODO() +id := adminrulecollections.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName") + +// alternatively `client.List(ctx, id, adminrulecollections.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, adminrulecollections.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/client.go new file mode 100644 index 000000000000..a0e144b1d96a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/client.go @@ -0,0 +1,26 @@ +package adminrulecollections + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdminRuleCollectionsClient struct { + Client *resourcemanager.Client +} + +func NewAdminRuleCollectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*AdminRuleCollectionsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "adminrulecollections", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating AdminRuleCollectionsClient: %+v", err) + } + + return &AdminRuleCollectionsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/constants.go new file mode 100644 index 000000000000..d3e735bf0f14 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/constants.go @@ -0,0 +1,57 @@ +package adminrulecollections + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/id_securityadminconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/id_securityadminconfiguration.go new file mode 100644 index 000000000000..193fa95d9b53 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/id_securityadminconfiguration.go @@ -0,0 +1,139 @@ +package adminrulecollections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityAdminConfigurationId{}) +} + +var _ resourceids.ResourceId = &SecurityAdminConfigurationId{} + +// SecurityAdminConfigurationId is a struct representing the Resource ID for a Security Admin Configuration +type SecurityAdminConfigurationId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityAdminConfigurationName string +} + +// NewSecurityAdminConfigurationID returns a new SecurityAdminConfigurationId struct +func NewSecurityAdminConfigurationID(subscriptionId string, resourceGroupName string, networkManagerName string, securityAdminConfigurationName string) SecurityAdminConfigurationId { + return SecurityAdminConfigurationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityAdminConfigurationName: securityAdminConfigurationName, + } +} + +// ParseSecurityAdminConfigurationID parses 'input' into a SecurityAdminConfigurationId +func ParseSecurityAdminConfigurationID(input string) (*SecurityAdminConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityAdminConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityAdminConfigurationIDInsensitively parses 'input' case-insensitively into a SecurityAdminConfigurationId +// note: this method should only be used for API response data and not user input +func ParseSecurityAdminConfigurationIDInsensitively(input string) (*SecurityAdminConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityAdminConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityAdminConfigurationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityAdminConfigurationName, ok = input.Parsed["securityAdminConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityAdminConfigurationName", input) + } + + return nil +} + +// ValidateSecurityAdminConfigurationID checks that 'input' can be parsed as a Security Admin Configuration ID +func ValidateSecurityAdminConfigurationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityAdminConfigurationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security Admin Configuration ID +func (id SecurityAdminConfigurationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityAdminConfigurations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security Admin Configuration ID +func (id SecurityAdminConfigurationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), + resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationName"), + } +} + +// String returns a human-readable description of this Security Admin Configuration ID +func (id SecurityAdminConfigurationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security Admin Configuration Name: %q", id.SecurityAdminConfigurationName), + } + return fmt.Sprintf("Security Admin Configuration (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/id_securityadminconfigurationrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/id_securityadminconfigurationrulecollection.go new file mode 100644 index 000000000000..543fa58afbec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/id_securityadminconfigurationrulecollection.go @@ -0,0 +1,148 @@ +package adminrulecollections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityAdminConfigurationRuleCollectionId{}) +} + +var _ resourceids.ResourceId = &SecurityAdminConfigurationRuleCollectionId{} + +// SecurityAdminConfigurationRuleCollectionId is a struct representing the Resource ID for a Security Admin Configuration Rule Collection +type SecurityAdminConfigurationRuleCollectionId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityAdminConfigurationName string + RuleCollectionName string +} + +// NewSecurityAdminConfigurationRuleCollectionID returns a new SecurityAdminConfigurationRuleCollectionId struct +func NewSecurityAdminConfigurationRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, securityAdminConfigurationName string, ruleCollectionName string) SecurityAdminConfigurationRuleCollectionId { + return SecurityAdminConfigurationRuleCollectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityAdminConfigurationName: securityAdminConfigurationName, + RuleCollectionName: ruleCollectionName, + } +} + +// ParseSecurityAdminConfigurationRuleCollectionID parses 'input' into a SecurityAdminConfigurationRuleCollectionId +func ParseSecurityAdminConfigurationRuleCollectionID(input string) (*SecurityAdminConfigurationRuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationRuleCollectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityAdminConfigurationRuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityAdminConfigurationRuleCollectionIDInsensitively parses 'input' case-insensitively into a SecurityAdminConfigurationRuleCollectionId +// note: this method should only be used for API response data and not user input +func ParseSecurityAdminConfigurationRuleCollectionIDInsensitively(input string) (*SecurityAdminConfigurationRuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationRuleCollectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityAdminConfigurationRuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityAdminConfigurationRuleCollectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityAdminConfigurationName, ok = input.Parsed["securityAdminConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityAdminConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + return nil +} + +// ValidateSecurityAdminConfigurationRuleCollectionID checks that 'input' can be parsed as a Security Admin Configuration Rule Collection ID +func ValidateSecurityAdminConfigurationRuleCollectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityAdminConfigurationRuleCollectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security Admin Configuration Rule Collection ID +func (id SecurityAdminConfigurationRuleCollectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityAdminConfigurations/%s/ruleCollections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName, id.RuleCollectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security Admin Configuration Rule Collection ID +func (id SecurityAdminConfigurationRuleCollectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), + resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + } +} + +// String returns a human-readable description of this Security Admin Configuration Rule Collection ID +func (id SecurityAdminConfigurationRuleCollectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security Admin Configuration Name: %q", id.SecurityAdminConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + } + return fmt.Sprintf("Security Admin Configuration Rule Collection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_createorupdate.go new file mode 100644 index 000000000000..aa29bb560319 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_createorupdate.go @@ -0,0 +1,58 @@ +package adminrulecollections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *AdminRuleCollection +} + +// CreateOrUpdate ... +func (c AdminRuleCollectionsClient) CreateOrUpdate(ctx context.Context, id SecurityAdminConfigurationRuleCollectionId, input AdminRuleCollection) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model AdminRuleCollection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_delete.go new file mode 100644 index 000000000000..cb7d683e73a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_delete.go @@ -0,0 +1,100 @@ +package adminrulecollections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c AdminRuleCollectionsClient) Delete(ctx context.Context, id SecurityAdminConfigurationRuleCollectionId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c AdminRuleCollectionsClient) DeleteThenPoll(ctx context.Context, id SecurityAdminConfigurationRuleCollectionId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_get.go new file mode 100644 index 000000000000..4f1440daece4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_get.go @@ -0,0 +1,53 @@ +package adminrulecollections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *AdminRuleCollection +} + +// Get ... +func (c AdminRuleCollectionsClient) Get(ctx context.Context, id SecurityAdminConfigurationRuleCollectionId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model AdminRuleCollection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_list.go new file mode 100644 index 000000000000..2ef5b46d0a4d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_list.go @@ -0,0 +1,134 @@ +package adminrulecollections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]AdminRuleCollection +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []AdminRuleCollection +} + +type ListOperationOptions struct { + Top *int64 +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c AdminRuleCollectionsClient) List(ctx context.Context, id SecurityAdminConfigurationId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/ruleCollections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]AdminRuleCollection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c AdminRuleCollectionsClient) ListComplete(ctx context.Context, id SecurityAdminConfigurationId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, AdminRuleCollectionOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AdminRuleCollectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id SecurityAdminConfigurationId, options ListOperationOptions, predicate AdminRuleCollectionOperationPredicate) (result ListCompleteResult, err error) { + items := make([]AdminRuleCollection, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_adminrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_adminrulecollection.go new file mode 100644 index 000000000000..aea91d2ba708 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_adminrulecollection.go @@ -0,0 +1,17 @@ +package adminrulecollections + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdminRuleCollection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *AdminRuleCollectionPropertiesFormat `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_adminrulecollectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_adminrulecollectionpropertiesformat.go new file mode 100644 index 000000000000..43e02d8ca9c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_adminrulecollectionpropertiesformat.go @@ -0,0 +1,11 @@ +package adminrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdminRuleCollectionPropertiesFormat struct { + AppliesToGroups []NetworkManagerSecurityGroupItem `json:"appliesToGroups"` + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_networkmanagersecuritygroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_networkmanagersecuritygroupitem.go new file mode 100644 index 000000000000..ce59c38f4fd0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_networkmanagersecuritygroupitem.go @@ -0,0 +1,8 @@ +package adminrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerSecurityGroupItem struct { + NetworkGroupId string `json:"networkGroupId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/predicates.go new file mode 100644 index 000000000000..67b37b95643f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/predicates.go @@ -0,0 +1,32 @@ +package adminrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdminRuleCollectionOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p AdminRuleCollectionOperationPredicate) Matches(input AdminRuleCollection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/version.go new file mode 100644 index 000000000000..f020535927b1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/version.go @@ -0,0 +1,10 @@ +package adminrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/adminrulecollections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/README.md new file mode 100644 index 000000000000..32b418ffc4ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules` Documentation + +The `adminrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules" +``` + + +### Client Initialization + +```go +client := adminrules.NewAdminRulesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `AdminRulesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := adminrules.NewSecurityAdminConfigurationRuleCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName", "ruleName") + +payload := adminrules.BaseAdminRule{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AdminRulesClient.Delete` + +```go +ctx := context.TODO() +id := adminrules.NewSecurityAdminConfigurationRuleCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName", "ruleName") + +if err := client.DeleteThenPoll(ctx, id, adminrules.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `AdminRulesClient.Get` + +```go +ctx := context.TODO() +id := adminrules.NewSecurityAdminConfigurationRuleCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName", "ruleName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AdminRulesClient.List` + +```go +ctx := context.TODO() +id := adminrules.NewSecurityAdminConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/client.go new file mode 100644 index 000000000000..811271711b61 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/client.go @@ -0,0 +1,26 @@ +package adminrules + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdminRulesClient struct { + Client *resourcemanager.Client +} + +func NewAdminRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*AdminRulesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "adminrules", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating AdminRulesClient: %+v", err) + } + + return &AdminRulesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/constants.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/constants.go index e4a2b230b6e1..fbaa03c55436 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/constants.go @@ -1,4 +1,4 @@ -package networkmanageractiveconfigurations +package adminrules import ( "encoding/json" @@ -50,26 +50,26 @@ func parseAddressPrefixType(input string) (*AddressPrefixType, error) { return &out, nil } -type EffectiveAdminRuleKind string +type AdminRuleKind string const ( - EffectiveAdminRuleKindCustom EffectiveAdminRuleKind = "Custom" - EffectiveAdminRuleKindDefault EffectiveAdminRuleKind = "Default" + AdminRuleKindCustom AdminRuleKind = "Custom" + AdminRuleKindDefault AdminRuleKind = "Default" ) -func PossibleValuesForEffectiveAdminRuleKind() []string { +func PossibleValuesForAdminRuleKind() []string { return []string{ - string(EffectiveAdminRuleKindCustom), - string(EffectiveAdminRuleKindDefault), + string(AdminRuleKindCustom), + string(AdminRuleKindDefault), } } -func (s *EffectiveAdminRuleKind) UnmarshalJSON(bytes []byte) error { +func (s *AdminRuleKind) UnmarshalJSON(bytes []byte) error { var decoded string if err := json.Unmarshal(bytes, &decoded); err != nil { return fmt.Errorf("unmarshaling: %+v", err) } - out, err := parseEffectiveAdminRuleKind(decoded) + out, err := parseAdminRuleKind(decoded) if err != nil { return fmt.Errorf("parsing %q: %+v", decoded, err) } @@ -77,17 +77,17 @@ func (s *EffectiveAdminRuleKind) UnmarshalJSON(bytes []byte) error { return nil } -func parseEffectiveAdminRuleKind(input string) (*EffectiveAdminRuleKind, error) { - vals := map[string]EffectiveAdminRuleKind{ - "custom": EffectiveAdminRuleKindCustom, - "default": EffectiveAdminRuleKindDefault, +func parseAdminRuleKind(input string) (*AdminRuleKind, error) { + vals := map[string]AdminRuleKind{ + "custom": AdminRuleKindCustom, + "default": AdminRuleKindDefault, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil } // otherwise presume it's an undefined value and best-effort it - out := EffectiveAdminRuleKind(input) + out := AdminRuleKind(input) return &out, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/id_securityadminconfigurationrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/id_securityadminconfigurationrulecollection.go new file mode 100644 index 000000000000..cc58659b8781 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/id_securityadminconfigurationrulecollection.go @@ -0,0 +1,148 @@ +package adminrules + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityAdminConfigurationRuleCollectionId{}) +} + +var _ resourceids.ResourceId = &SecurityAdminConfigurationRuleCollectionId{} + +// SecurityAdminConfigurationRuleCollectionId is a struct representing the Resource ID for a Security Admin Configuration Rule Collection +type SecurityAdminConfigurationRuleCollectionId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityAdminConfigurationName string + RuleCollectionName string +} + +// NewSecurityAdminConfigurationRuleCollectionID returns a new SecurityAdminConfigurationRuleCollectionId struct +func NewSecurityAdminConfigurationRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, securityAdminConfigurationName string, ruleCollectionName string) SecurityAdminConfigurationRuleCollectionId { + return SecurityAdminConfigurationRuleCollectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityAdminConfigurationName: securityAdminConfigurationName, + RuleCollectionName: ruleCollectionName, + } +} + +// ParseSecurityAdminConfigurationRuleCollectionID parses 'input' into a SecurityAdminConfigurationRuleCollectionId +func ParseSecurityAdminConfigurationRuleCollectionID(input string) (*SecurityAdminConfigurationRuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationRuleCollectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityAdminConfigurationRuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityAdminConfigurationRuleCollectionIDInsensitively parses 'input' case-insensitively into a SecurityAdminConfigurationRuleCollectionId +// note: this method should only be used for API response data and not user input +func ParseSecurityAdminConfigurationRuleCollectionIDInsensitively(input string) (*SecurityAdminConfigurationRuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationRuleCollectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityAdminConfigurationRuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityAdminConfigurationRuleCollectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityAdminConfigurationName, ok = input.Parsed["securityAdminConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityAdminConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + return nil +} + +// ValidateSecurityAdminConfigurationRuleCollectionID checks that 'input' can be parsed as a Security Admin Configuration Rule Collection ID +func ValidateSecurityAdminConfigurationRuleCollectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityAdminConfigurationRuleCollectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security Admin Configuration Rule Collection ID +func (id SecurityAdminConfigurationRuleCollectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityAdminConfigurations/%s/ruleCollections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName, id.RuleCollectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security Admin Configuration Rule Collection ID +func (id SecurityAdminConfigurationRuleCollectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), + resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + } +} + +// String returns a human-readable description of this Security Admin Configuration Rule Collection ID +func (id SecurityAdminConfigurationRuleCollectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security Admin Configuration Name: %q", id.SecurityAdminConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + } + return fmt.Sprintf("Security Admin Configuration Rule Collection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/id_securityadminconfigurationrulecollectionrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/id_securityadminconfigurationrulecollectionrule.go new file mode 100644 index 000000000000..9ff1e96755df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/id_securityadminconfigurationrulecollectionrule.go @@ -0,0 +1,157 @@ +package adminrules + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityAdminConfigurationRuleCollectionRuleId{}) +} + +var _ resourceids.ResourceId = &SecurityAdminConfigurationRuleCollectionRuleId{} + +// SecurityAdminConfigurationRuleCollectionRuleId is a struct representing the Resource ID for a Security Admin Configuration Rule Collection Rule +type SecurityAdminConfigurationRuleCollectionRuleId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityAdminConfigurationName string + RuleCollectionName string + RuleName string +} + +// NewSecurityAdminConfigurationRuleCollectionRuleID returns a new SecurityAdminConfigurationRuleCollectionRuleId struct +func NewSecurityAdminConfigurationRuleCollectionRuleID(subscriptionId string, resourceGroupName string, networkManagerName string, securityAdminConfigurationName string, ruleCollectionName string, ruleName string) SecurityAdminConfigurationRuleCollectionRuleId { + return SecurityAdminConfigurationRuleCollectionRuleId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityAdminConfigurationName: securityAdminConfigurationName, + RuleCollectionName: ruleCollectionName, + RuleName: ruleName, + } +} + +// ParseSecurityAdminConfigurationRuleCollectionRuleID parses 'input' into a SecurityAdminConfigurationRuleCollectionRuleId +func ParseSecurityAdminConfigurationRuleCollectionRuleID(input string) (*SecurityAdminConfigurationRuleCollectionRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationRuleCollectionRuleId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityAdminConfigurationRuleCollectionRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityAdminConfigurationRuleCollectionRuleIDInsensitively parses 'input' case-insensitively into a SecurityAdminConfigurationRuleCollectionRuleId +// note: this method should only be used for API response data and not user input +func ParseSecurityAdminConfigurationRuleCollectionRuleIDInsensitively(input string) (*SecurityAdminConfigurationRuleCollectionRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationRuleCollectionRuleId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityAdminConfigurationRuleCollectionRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityAdminConfigurationRuleCollectionRuleId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityAdminConfigurationName, ok = input.Parsed["securityAdminConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityAdminConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + if id.RuleName, ok = input.Parsed["ruleName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleName", input) + } + + return nil +} + +// ValidateSecurityAdminConfigurationRuleCollectionRuleID checks that 'input' can be parsed as a Security Admin Configuration Rule Collection Rule ID +func ValidateSecurityAdminConfigurationRuleCollectionRuleID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityAdminConfigurationRuleCollectionRuleID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security Admin Configuration Rule Collection Rule ID +func (id SecurityAdminConfigurationRuleCollectionRuleId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityAdminConfigurations/%s/ruleCollections/%s/rules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName, id.RuleCollectionName, id.RuleName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security Admin Configuration Rule Collection Rule ID +func (id SecurityAdminConfigurationRuleCollectionRuleId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), + resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + resourceids.StaticSegment("staticRules", "rules", "rules"), + resourceids.UserSpecifiedSegment("ruleName", "ruleName"), + } +} + +// String returns a human-readable description of this Security Admin Configuration Rule Collection Rule ID +func (id SecurityAdminConfigurationRuleCollectionRuleId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security Admin Configuration Name: %q", id.SecurityAdminConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + fmt.Sprintf("Rule Name: %q", id.RuleName), + } + return fmt.Sprintf("Security Admin Configuration Rule Collection Rule (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_createorupdate.go new file mode 100644 index 000000000000..ab848b3599ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_createorupdate.go @@ -0,0 +1,63 @@ +package adminrules + +import ( + "context" + "encoding/json" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model BaseAdminRule +} + +// CreateOrUpdate ... +func (c AdminRulesClient) CreateOrUpdate(ctx context.Context, id SecurityAdminConfigurationRuleCollectionRuleId, input BaseAdminRule) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var respObj json.RawMessage + if err = resp.Unmarshal(&respObj); err != nil { + return + } + model, err := UnmarshalBaseAdminRuleImplementation(respObj) + if err != nil { + return + } + result.Model = model + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_delete.go new file mode 100644 index 000000000000..fed9fcb52389 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_delete.go @@ -0,0 +1,100 @@ +package adminrules + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c AdminRulesClient) Delete(ctx context.Context, id SecurityAdminConfigurationRuleCollectionRuleId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c AdminRulesClient) DeleteThenPoll(ctx context.Context, id SecurityAdminConfigurationRuleCollectionRuleId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_get.go new file mode 100644 index 000000000000..5373d7e1d2bc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_get.go @@ -0,0 +1,58 @@ +package adminrules + +import ( + "context" + "encoding/json" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model BaseAdminRule +} + +// Get ... +func (c AdminRulesClient) Get(ctx context.Context, id SecurityAdminConfigurationRuleCollectionRuleId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var respObj json.RawMessage + if err = resp.Unmarshal(&respObj); err != nil { + return + } + model, err := UnmarshalBaseAdminRuleImplementation(respObj) + if err != nil { + return + } + result.Model = model + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_list.go new file mode 100644 index 000000000000..1ae59bc10882 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_list.go @@ -0,0 +1,117 @@ +package adminrules + +import ( + "context" + "encoding/json" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]BaseAdminRule +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []BaseAdminRule +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c AdminRulesClient) List(ctx context.Context, id SecurityAdminConfigurationRuleCollectionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/rules", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]json.RawMessage `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + temp := make([]BaseAdminRule, 0) + if values.Values != nil { + for i, v := range *values.Values { + val, err := UnmarshalBaseAdminRuleImplementation(v) + if err != nil { + err = fmt.Errorf("unmarshalling item %d for BaseAdminRule (%q): %+v", i, v, err) + return result, err + } + temp = append(temp, val) + } + } + result.Model = &temp + + return +} + +// ListComplete retrieves all the results into a single object +func (c AdminRulesClient) ListComplete(ctx context.Context, id SecurityAdminConfigurationRuleCollectionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, BaseAdminRuleOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AdminRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id SecurityAdminConfigurationRuleCollectionId, predicate BaseAdminRuleOperationPredicate) (result ListCompleteResult, err error) { + items := make([]BaseAdminRule, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_addressprefixitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_addressprefixitem.go new file mode 100644 index 000000000000..223aec22448a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_addressprefixitem.go @@ -0,0 +1,9 @@ +package adminrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressPrefixItem struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixType *AddressPrefixType `json:"addressPrefixType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_adminpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_adminpropertiesformat.go new file mode 100644 index 000000000000..a0e21af6c0dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_adminpropertiesformat.go @@ -0,0 +1,18 @@ +package adminrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdminPropertiesFormat struct { + Access SecurityConfigurationRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Destinations *[]AddressPrefixItem `json:"destinations,omitempty"` + Direction SecurityConfigurationRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityConfigurationRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` + Sources *[]AddressPrefixItem `json:"sources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_adminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_adminrule.go new file mode 100644 index 000000000000..74d9a7cd9c13 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_adminrule.go @@ -0,0 +1,62 @@ +package adminrules + +import ( + "encoding/json" + "fmt" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ BaseAdminRule = AdminRule{} + +type AdminRule struct { + Properties *AdminPropertiesFormat `json:"properties,omitempty"` + + // Fields inherited from BaseAdminRule + + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind AdminRuleKind `json:"kind"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s AdminRule) BaseAdminRule() BaseBaseAdminRuleImpl { + return BaseBaseAdminRuleImpl{ + Etag: s.Etag, + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + SystemData: s.SystemData, + Type: s.Type, + } +} + +var _ json.Marshaler = AdminRule{} + +func (s AdminRule) MarshalJSON() ([]byte, error) { + type wrapper AdminRule + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling AdminRule: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling AdminRule: %+v", err) + } + + decoded["kind"] = "Custom" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling AdminRule: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_baseadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_baseadminrule.go new file mode 100644 index 000000000000..ed6bfa3adb9d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_baseadminrule.go @@ -0,0 +1,90 @@ +package adminrules + +import ( + "encoding/json" + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BaseAdminRule interface { + BaseAdminRule() BaseBaseAdminRuleImpl +} + +var _ BaseAdminRule = BaseBaseAdminRuleImpl{} + +type BaseBaseAdminRuleImpl struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind AdminRuleKind `json:"kind"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s BaseBaseAdminRuleImpl) BaseAdminRule() BaseBaseAdminRuleImpl { + return s +} + +var _ BaseAdminRule = RawBaseAdminRuleImpl{} + +// RawBaseAdminRuleImpl is returned when the Discriminated Value doesn't match any of the defined types +// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) +// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). +type RawBaseAdminRuleImpl struct { + baseAdminRule BaseBaseAdminRuleImpl + Type string + Values map[string]interface{} +} + +func (s RawBaseAdminRuleImpl) BaseAdminRule() BaseBaseAdminRuleImpl { + return s.baseAdminRule +} + +func UnmarshalBaseAdminRuleImplementation(input []byte) (BaseAdminRule, error) { + if input == nil { + return nil, nil + } + + var temp map[string]interface{} + if err := json.Unmarshal(input, &temp); err != nil { + return nil, fmt.Errorf("unmarshaling BaseAdminRule into map[string]interface: %+v", err) + } + + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) + } + + if strings.EqualFold(value, "Custom") { + var out AdminRule + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into AdminRule: %+v", err) + } + return out, nil + } + + if strings.EqualFold(value, "Default") { + var out DefaultAdminRule + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into DefaultAdminRule: %+v", err) + } + return out, nil + } + + var parent BaseBaseAdminRuleImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseBaseAdminRuleImpl: %+v", err) + } + + return RawBaseAdminRuleImpl{ + baseAdminRule: parent, + Type: value, + Values: temp, + }, nil + +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_defaultadminpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_defaultadminpropertiesformat.go new file mode 100644 index 000000000000..a8242069c886 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_defaultadminpropertiesformat.go @@ -0,0 +1,19 @@ +package adminrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DefaultAdminPropertiesFormat struct { + Access *SecurityConfigurationRuleAccess `json:"access,omitempty"` + Description *string `json:"description,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Destinations *[]AddressPrefixItem `json:"destinations,omitempty"` + Direction *SecurityConfigurationRuleDirection `json:"direction,omitempty"` + Flag *string `json:"flag,omitempty"` + Priority *int64 `json:"priority,omitempty"` + Protocol *SecurityConfigurationRuleProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` + Sources *[]AddressPrefixItem `json:"sources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_defaultadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_defaultadminrule.go new file mode 100644 index 000000000000..3695c8332dc1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_defaultadminrule.go @@ -0,0 +1,62 @@ +package adminrules + +import ( + "encoding/json" + "fmt" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ BaseAdminRule = DefaultAdminRule{} + +type DefaultAdminRule struct { + Properties *DefaultAdminPropertiesFormat `json:"properties,omitempty"` + + // Fields inherited from BaseAdminRule + + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind AdminRuleKind `json:"kind"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s DefaultAdminRule) BaseAdminRule() BaseBaseAdminRuleImpl { + return BaseBaseAdminRuleImpl{ + Etag: s.Etag, + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + SystemData: s.SystemData, + Type: s.Type, + } +} + +var _ json.Marshaler = DefaultAdminRule{} + +func (s DefaultAdminRule) MarshalJSON() ([]byte, error) { + type wrapper DefaultAdminRule + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling DefaultAdminRule: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling DefaultAdminRule: %+v", err) + } + + decoded["kind"] = "Default" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling DefaultAdminRule: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/predicates.go new file mode 100644 index 000000000000..f594b9ac1be2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/predicates.go @@ -0,0 +1,12 @@ +package adminrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BaseAdminRuleOperationPredicate struct { +} + +func (p BaseAdminRuleOperationPredicate) Matches(input BaseAdminRule) bool { + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/version.go new file mode 100644 index 000000000000..c0386d4dc40c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/version.go @@ -0,0 +1,10 @@ +package adminrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/adminrules/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/README.md index 6446e85ef614..548c490d7446 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections` Documentation -The `applicationgatewayprivateendpointconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `applicationgatewayprivateendpointconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/id_applicationgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/id_applicationgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/id_applicationgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/id_applicationgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/id_applicationgatewayprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/id_applicationgatewayprivateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/id_applicationgatewayprivateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/id_applicationgatewayprivateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlog.go new file mode 100644 index 000000000000..1222520d55aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlog.go @@ -0,0 +1,19 @@ +package applicationgatewayprivateendpointconnections + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlogpropertiesformat.go similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlogpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlogpropertiesformat.go index 922ced2b2f18..4081ff944153 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlogpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlogpropertiesformat.go @@ -5,6 +5,7 @@ package applicationgatewayprivateendpointconnections type FlowLogPropertiesFormat struct { Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` Format *FlowLogFormatParameters `json:"format,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceproperties.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceproperties.go index dc3f962814c0..8578a51238a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceproperties.go @@ -6,6 +6,7 @@ package applicationgatewayprivateendpointconnections type PrivateLinkServiceProperties struct { Alias *string `json:"alias,omitempty"` AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` Fqdns *[]string `json:"fqdns,omitempty"` IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpropertiesformat.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpropertiesformat.go index fa1f92d606ac..5deea5147b00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpropertiesformat.go @@ -5,6 +5,7 @@ package applicationgatewayprivateendpointconnections type ServiceEndpointPropertiesFormat struct { Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Service *string `json:"service,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/version.go similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/version.go index a24110f3eeed..8f05a6e32485 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/version.go @@ -3,8 +3,8 @@ package applicationgatewayprivateendpointconnections // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/applicationgatewayprivateendpointconnections/2023-11-01" + return "hashicorp/go-azure-sdk/applicationgatewayprivateendpointconnections/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/README.md similarity index 84% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/README.md index c6b7d5ed7202..cb3dad452bd8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources` Documentation -The `applicationgatewayprivatelinkresources` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `applicationgatewayprivatelinkresources` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/id_applicationgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/id_applicationgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/id_applicationgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/id_applicationgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresourceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/version.go similarity index 83% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/version.go index 869c6b2db404..18617611436e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/version.go @@ -3,8 +3,8 @@ package applicationgatewayprivatelinkresources // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/applicationgatewayprivatelinkresources/2023-11-01" + return "hashicorp/go-azure-sdk/applicationgatewayprivatelinkresources/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/README.md new file mode 100644 index 000000000000..1ed3a1cf838b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/README.md @@ -0,0 +1,287 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways` Documentation + +The `applicationgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways" +``` + + +### Client Initialization + +```go +client := applicationgateways.NewApplicationGatewaysClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ApplicationGatewaysClient.BackendHealth` + +```go +ctx := context.TODO() +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +if err := client.BackendHealthThenPoll(ctx, id, applicationgateways.DefaultBackendHealthOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationGatewaysClient.BackendHealthOnDemand` + +```go +ctx := context.TODO() +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +payload := applicationgateways.ApplicationGatewayOnDemandProbe{ + // ... +} + + +if err := client.BackendHealthOnDemandThenPoll(ctx, id, payload, applicationgateways.DefaultBackendHealthOnDemandOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationGatewaysClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +payload := applicationgateways.ApplicationGateway{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationGatewaysClient.Delete` + +```go +ctx := context.TODO() +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationGatewaysClient.Get` + +```go +ctx := context.TODO() +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationGatewaysClient.GetSslPredefinedPolicy` + +```go +ctx := context.TODO() +id := applicationgateways.NewPredefinedPolicyID("12345678-1234-9876-4563-123456789012", "predefinedPolicyName") + +read, err := client.GetSslPredefinedPolicy(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationGatewaysClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApplicationGatewaysClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApplicationGatewaysClient.ListAvailableRequestHeaders` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.ListAvailableRequestHeaders(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationGatewaysClient.ListAvailableResponseHeaders` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.ListAvailableResponseHeaders(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationGatewaysClient.ListAvailableServerVariables` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.ListAvailableServerVariables(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationGatewaysClient.ListAvailableSslOptions` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.ListAvailableSslOptions(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationGatewaysClient.ListAvailableSslPredefinedPolicies` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAvailableSslPredefinedPolicies(ctx, id)` can be used to do batched pagination +items, err := client.ListAvailableSslPredefinedPoliciesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApplicationGatewaysClient.ListAvailableWafRuleSets` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.ListAvailableWafRuleSets(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationGatewaysClient.Start` + +```go +ctx := context.TODO() +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +if err := client.StartThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationGatewaysClient.Stop` + +```go +ctx := context.TODO() +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +if err := client.StopThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationGatewaysClient.UpdateTags` + +```go +ctx := context.TODO() +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +payload := applicationgateways.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/client.go new file mode 100644 index 000000000000..3cd17d717260 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/client.go @@ -0,0 +1,26 @@ +package applicationgateways + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaysClient struct { + Client *resourcemanager.Client +} + +func NewApplicationGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationGatewaysClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "applicationgateways", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ApplicationGatewaysClient: %+v", err) + } + + return &ApplicationGatewaysClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/constants.go new file mode 100644 index 000000000000..b7f19d34f72f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/constants.go @@ -0,0 +1,2254 @@ +package applicationgateways + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHealthServerHealth string + +const ( + ApplicationGatewayBackendHealthServerHealthDown ApplicationGatewayBackendHealthServerHealth = "Down" + ApplicationGatewayBackendHealthServerHealthDraining ApplicationGatewayBackendHealthServerHealth = "Draining" + ApplicationGatewayBackendHealthServerHealthPartial ApplicationGatewayBackendHealthServerHealth = "Partial" + ApplicationGatewayBackendHealthServerHealthUnknown ApplicationGatewayBackendHealthServerHealth = "Unknown" + ApplicationGatewayBackendHealthServerHealthUp ApplicationGatewayBackendHealthServerHealth = "Up" +) + +func PossibleValuesForApplicationGatewayBackendHealthServerHealth() []string { + return []string{ + string(ApplicationGatewayBackendHealthServerHealthDown), + string(ApplicationGatewayBackendHealthServerHealthDraining), + string(ApplicationGatewayBackendHealthServerHealthPartial), + string(ApplicationGatewayBackendHealthServerHealthUnknown), + string(ApplicationGatewayBackendHealthServerHealthUp), + } +} + +func (s *ApplicationGatewayBackendHealthServerHealth) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayBackendHealthServerHealth(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayBackendHealthServerHealth(input string) (*ApplicationGatewayBackendHealthServerHealth, error) { + vals := map[string]ApplicationGatewayBackendHealthServerHealth{ + "down": ApplicationGatewayBackendHealthServerHealthDown, + "draining": ApplicationGatewayBackendHealthServerHealthDraining, + "partial": ApplicationGatewayBackendHealthServerHealthPartial, + "unknown": ApplicationGatewayBackendHealthServerHealthUnknown, + "up": ApplicationGatewayBackendHealthServerHealthUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayBackendHealthServerHealth(input) + return &out, nil +} + +type ApplicationGatewayClientRevocationOptions string + +const ( + ApplicationGatewayClientRevocationOptionsNone ApplicationGatewayClientRevocationOptions = "None" + ApplicationGatewayClientRevocationOptionsOCSP ApplicationGatewayClientRevocationOptions = "OCSP" +) + +func PossibleValuesForApplicationGatewayClientRevocationOptions() []string { + return []string{ + string(ApplicationGatewayClientRevocationOptionsNone), + string(ApplicationGatewayClientRevocationOptionsOCSP), + } +} + +func (s *ApplicationGatewayClientRevocationOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayClientRevocationOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayClientRevocationOptions(input string) (*ApplicationGatewayClientRevocationOptions, error) { + vals := map[string]ApplicationGatewayClientRevocationOptions{ + "none": ApplicationGatewayClientRevocationOptionsNone, + "ocsp": ApplicationGatewayClientRevocationOptionsOCSP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayClientRevocationOptions(input) + return &out, nil +} + +type ApplicationGatewayCookieBasedAffinity string + +const ( + ApplicationGatewayCookieBasedAffinityDisabled ApplicationGatewayCookieBasedAffinity = "Disabled" + ApplicationGatewayCookieBasedAffinityEnabled ApplicationGatewayCookieBasedAffinity = "Enabled" +) + +func PossibleValuesForApplicationGatewayCookieBasedAffinity() []string { + return []string{ + string(ApplicationGatewayCookieBasedAffinityDisabled), + string(ApplicationGatewayCookieBasedAffinityEnabled), + } +} + +func (s *ApplicationGatewayCookieBasedAffinity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayCookieBasedAffinity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayCookieBasedAffinity(input string) (*ApplicationGatewayCookieBasedAffinity, error) { + vals := map[string]ApplicationGatewayCookieBasedAffinity{ + "disabled": ApplicationGatewayCookieBasedAffinityDisabled, + "enabled": ApplicationGatewayCookieBasedAffinityEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayCookieBasedAffinity(input) + return &out, nil +} + +type ApplicationGatewayCustomErrorStatusCode string + +const ( + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveHundred ApplicationGatewayCustomErrorStatusCode = "HttpStatus500" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroFour ApplicationGatewayCustomErrorStatusCode = "HttpStatus504" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroThree ApplicationGatewayCustomErrorStatusCode = "HttpStatus503" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroTwo ApplicationGatewayCustomErrorStatusCode = "HttpStatus502" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourHundred ApplicationGatewayCustomErrorStatusCode = "HttpStatus400" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroEight ApplicationGatewayCustomErrorStatusCode = "HttpStatus408" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFive ApplicationGatewayCustomErrorStatusCode = "HttpStatus405" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFour ApplicationGatewayCustomErrorStatusCode = "HttpStatus404" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroThree ApplicationGatewayCustomErrorStatusCode = "HttpStatus403" +) + +func PossibleValuesForApplicationGatewayCustomErrorStatusCode() []string { + return []string{ + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveHundred), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroFour), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroThree), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroTwo), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourHundred), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroEight), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFive), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFour), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroThree), + } +} + +func (s *ApplicationGatewayCustomErrorStatusCode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayCustomErrorStatusCode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayCustomErrorStatusCode(input string) (*ApplicationGatewayCustomErrorStatusCode, error) { + vals := map[string]ApplicationGatewayCustomErrorStatusCode{ + "httpstatus500": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveHundred, + "httpstatus504": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroFour, + "httpstatus503": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroThree, + "httpstatus502": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroTwo, + "httpstatus400": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourHundred, + "httpstatus408": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroEight, + "httpstatus405": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFive, + "httpstatus404": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFour, + "httpstatus403": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroThree, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayCustomErrorStatusCode(input) + return &out, nil +} + +type ApplicationGatewayFirewallMode string + +const ( + ApplicationGatewayFirewallModeDetection ApplicationGatewayFirewallMode = "Detection" + ApplicationGatewayFirewallModePrevention ApplicationGatewayFirewallMode = "Prevention" +) + +func PossibleValuesForApplicationGatewayFirewallMode() []string { + return []string{ + string(ApplicationGatewayFirewallModeDetection), + string(ApplicationGatewayFirewallModePrevention), + } +} + +func (s *ApplicationGatewayFirewallMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayFirewallMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayFirewallMode(input string) (*ApplicationGatewayFirewallMode, error) { + vals := map[string]ApplicationGatewayFirewallMode{ + "detection": ApplicationGatewayFirewallModeDetection, + "prevention": ApplicationGatewayFirewallModePrevention, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayFirewallMode(input) + return &out, nil +} + +type ApplicationGatewayLoadDistributionAlgorithm string + +const ( + ApplicationGatewayLoadDistributionAlgorithmIPHash ApplicationGatewayLoadDistributionAlgorithm = "IpHash" + ApplicationGatewayLoadDistributionAlgorithmLeastConnections ApplicationGatewayLoadDistributionAlgorithm = "LeastConnections" + ApplicationGatewayLoadDistributionAlgorithmRoundRobin ApplicationGatewayLoadDistributionAlgorithm = "RoundRobin" +) + +func PossibleValuesForApplicationGatewayLoadDistributionAlgorithm() []string { + return []string{ + string(ApplicationGatewayLoadDistributionAlgorithmIPHash), + string(ApplicationGatewayLoadDistributionAlgorithmLeastConnections), + string(ApplicationGatewayLoadDistributionAlgorithmRoundRobin), + } +} + +func (s *ApplicationGatewayLoadDistributionAlgorithm) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayLoadDistributionAlgorithm(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayLoadDistributionAlgorithm(input string) (*ApplicationGatewayLoadDistributionAlgorithm, error) { + vals := map[string]ApplicationGatewayLoadDistributionAlgorithm{ + "iphash": ApplicationGatewayLoadDistributionAlgorithmIPHash, + "leastconnections": ApplicationGatewayLoadDistributionAlgorithmLeastConnections, + "roundrobin": ApplicationGatewayLoadDistributionAlgorithmRoundRobin, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayLoadDistributionAlgorithm(input) + return &out, nil +} + +type ApplicationGatewayOperationalState string + +const ( + ApplicationGatewayOperationalStateRunning ApplicationGatewayOperationalState = "Running" + ApplicationGatewayOperationalStateStarting ApplicationGatewayOperationalState = "Starting" + ApplicationGatewayOperationalStateStopped ApplicationGatewayOperationalState = "Stopped" + ApplicationGatewayOperationalStateStopping ApplicationGatewayOperationalState = "Stopping" +) + +func PossibleValuesForApplicationGatewayOperationalState() []string { + return []string{ + string(ApplicationGatewayOperationalStateRunning), + string(ApplicationGatewayOperationalStateStarting), + string(ApplicationGatewayOperationalStateStopped), + string(ApplicationGatewayOperationalStateStopping), + } +} + +func (s *ApplicationGatewayOperationalState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayOperationalState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayOperationalState(input string) (*ApplicationGatewayOperationalState, error) { + vals := map[string]ApplicationGatewayOperationalState{ + "running": ApplicationGatewayOperationalStateRunning, + "starting": ApplicationGatewayOperationalStateStarting, + "stopped": ApplicationGatewayOperationalStateStopped, + "stopping": ApplicationGatewayOperationalStateStopping, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayOperationalState(input) + return &out, nil +} + +type ApplicationGatewayProtocol string + +const ( + ApplicationGatewayProtocolHTTP ApplicationGatewayProtocol = "Http" + ApplicationGatewayProtocolHTTPS ApplicationGatewayProtocol = "Https" + ApplicationGatewayProtocolTcp ApplicationGatewayProtocol = "Tcp" + ApplicationGatewayProtocolTls ApplicationGatewayProtocol = "Tls" +) + +func PossibleValuesForApplicationGatewayProtocol() []string { + return []string{ + string(ApplicationGatewayProtocolHTTP), + string(ApplicationGatewayProtocolHTTPS), + string(ApplicationGatewayProtocolTcp), + string(ApplicationGatewayProtocolTls), + } +} + +func (s *ApplicationGatewayProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayProtocol(input string) (*ApplicationGatewayProtocol, error) { + vals := map[string]ApplicationGatewayProtocol{ + "http": ApplicationGatewayProtocolHTTP, + "https": ApplicationGatewayProtocolHTTPS, + "tcp": ApplicationGatewayProtocolTcp, + "tls": ApplicationGatewayProtocolTls, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayProtocol(input) + return &out, nil +} + +type ApplicationGatewayRedirectType string + +const ( + ApplicationGatewayRedirectTypeFound ApplicationGatewayRedirectType = "Found" + ApplicationGatewayRedirectTypePermanent ApplicationGatewayRedirectType = "Permanent" + ApplicationGatewayRedirectTypeSeeOther ApplicationGatewayRedirectType = "SeeOther" + ApplicationGatewayRedirectTypeTemporary ApplicationGatewayRedirectType = "Temporary" +) + +func PossibleValuesForApplicationGatewayRedirectType() []string { + return []string{ + string(ApplicationGatewayRedirectTypeFound), + string(ApplicationGatewayRedirectTypePermanent), + string(ApplicationGatewayRedirectTypeSeeOther), + string(ApplicationGatewayRedirectTypeTemporary), + } +} + +func (s *ApplicationGatewayRedirectType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayRedirectType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayRedirectType(input string) (*ApplicationGatewayRedirectType, error) { + vals := map[string]ApplicationGatewayRedirectType{ + "found": ApplicationGatewayRedirectTypeFound, + "permanent": ApplicationGatewayRedirectTypePermanent, + "seeother": ApplicationGatewayRedirectTypeSeeOther, + "temporary": ApplicationGatewayRedirectTypeTemporary, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayRedirectType(input) + return &out, nil +} + +type ApplicationGatewayRequestRoutingRuleType string + +const ( + ApplicationGatewayRequestRoutingRuleTypeBasic ApplicationGatewayRequestRoutingRuleType = "Basic" + ApplicationGatewayRequestRoutingRuleTypePathBasedRouting ApplicationGatewayRequestRoutingRuleType = "PathBasedRouting" +) + +func PossibleValuesForApplicationGatewayRequestRoutingRuleType() []string { + return []string{ + string(ApplicationGatewayRequestRoutingRuleTypeBasic), + string(ApplicationGatewayRequestRoutingRuleTypePathBasedRouting), + } +} + +func (s *ApplicationGatewayRequestRoutingRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayRequestRoutingRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayRequestRoutingRuleType(input string) (*ApplicationGatewayRequestRoutingRuleType, error) { + vals := map[string]ApplicationGatewayRequestRoutingRuleType{ + "basic": ApplicationGatewayRequestRoutingRuleTypeBasic, + "pathbasedrouting": ApplicationGatewayRequestRoutingRuleTypePathBasedRouting, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayRequestRoutingRuleType(input) + return &out, nil +} + +type ApplicationGatewaySkuFamily string + +const ( + ApplicationGatewaySkuFamilyGenerationOne ApplicationGatewaySkuFamily = "Generation_1" + ApplicationGatewaySkuFamilyGenerationTwo ApplicationGatewaySkuFamily = "Generation_2" +) + +func PossibleValuesForApplicationGatewaySkuFamily() []string { + return []string{ + string(ApplicationGatewaySkuFamilyGenerationOne), + string(ApplicationGatewaySkuFamilyGenerationTwo), + } +} + +func (s *ApplicationGatewaySkuFamily) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySkuFamily(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySkuFamily(input string) (*ApplicationGatewaySkuFamily, error) { + vals := map[string]ApplicationGatewaySkuFamily{ + "generation_1": ApplicationGatewaySkuFamilyGenerationOne, + "generation_2": ApplicationGatewaySkuFamilyGenerationTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySkuFamily(input) + return &out, nil +} + +type ApplicationGatewaySkuName string + +const ( + ApplicationGatewaySkuNameBasic ApplicationGatewaySkuName = "Basic" + ApplicationGatewaySkuNameStandardLarge ApplicationGatewaySkuName = "Standard_Large" + ApplicationGatewaySkuNameStandardMedium ApplicationGatewaySkuName = "Standard_Medium" + ApplicationGatewaySkuNameStandardSmall ApplicationGatewaySkuName = "Standard_Small" + ApplicationGatewaySkuNameStandardVTwo ApplicationGatewaySkuName = "Standard_v2" + ApplicationGatewaySkuNameWAFLarge ApplicationGatewaySkuName = "WAF_Large" + ApplicationGatewaySkuNameWAFMedium ApplicationGatewaySkuName = "WAF_Medium" + ApplicationGatewaySkuNameWAFVTwo ApplicationGatewaySkuName = "WAF_v2" +) + +func PossibleValuesForApplicationGatewaySkuName() []string { + return []string{ + string(ApplicationGatewaySkuNameBasic), + string(ApplicationGatewaySkuNameStandardLarge), + string(ApplicationGatewaySkuNameStandardMedium), + string(ApplicationGatewaySkuNameStandardSmall), + string(ApplicationGatewaySkuNameStandardVTwo), + string(ApplicationGatewaySkuNameWAFLarge), + string(ApplicationGatewaySkuNameWAFMedium), + string(ApplicationGatewaySkuNameWAFVTwo), + } +} + +func (s *ApplicationGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySkuName(input string) (*ApplicationGatewaySkuName, error) { + vals := map[string]ApplicationGatewaySkuName{ + "basic": ApplicationGatewaySkuNameBasic, + "standard_large": ApplicationGatewaySkuNameStandardLarge, + "standard_medium": ApplicationGatewaySkuNameStandardMedium, + "standard_small": ApplicationGatewaySkuNameStandardSmall, + "standard_v2": ApplicationGatewaySkuNameStandardVTwo, + "waf_large": ApplicationGatewaySkuNameWAFLarge, + "waf_medium": ApplicationGatewaySkuNameWAFMedium, + "waf_v2": ApplicationGatewaySkuNameWAFVTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySkuName(input) + return &out, nil +} + +type ApplicationGatewaySslCipherSuite string + +const ( + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHThreeDESEDECBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" + ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightGCMSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixGCMSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightGCMSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_GCM_SHA256" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixGCMSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_GCM_SHA384" + ApplicationGatewaySslCipherSuiteTLSRSAWITHThreeDESEDECBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_3DES_EDE_CBC_SHA" +) + +func PossibleValuesForApplicationGatewaySslCipherSuite() []string { + return []string{ + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHThreeDESEDECBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHThreeDESEDECBCSHA), + } +} + +func (s *ApplicationGatewaySslCipherSuite) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySslCipherSuite(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySslCipherSuite(input string) (*ApplicationGatewaySslCipherSuite, error) { + vals := map[string]ApplicationGatewaySslCipherSuite{ + "tls_dhe_dss_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHA, + "tls_dhe_dss_with_aes_128_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_dhe_dss_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHA, + "tls_dhe_dss_with_aes_256_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHATwoFiveSix, + "tls_dhe_dss_with_3des_ede_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHThreeDESEDECBCSHA, + "tls_dhe_rsa_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightCBCSHA, + "tls_dhe_rsa_with_aes_128_gcm_sha256": ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_dhe_rsa_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixCBCSHA, + "tls_dhe_rsa_with_aes_256_gcm_sha384": ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_ecdhe_ecdsa_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHA, + "tls_ecdhe_ecdsa_with_aes_128_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_ecdhe_ecdsa_with_aes_128_gcm_sha256": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_ecdhe_ecdsa_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHA, + "tls_ecdhe_ecdsa_with_aes_256_cbc_sha384": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHAThreeEightFour, + "tls_ecdhe_ecdsa_with_aes_256_gcm_sha384": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_ecdhe_rsa_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHA, + "tls_ecdhe_rsa_with_aes_128_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_ecdhe_rsa_with_aes_128_gcm_sha256": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_ecdhe_rsa_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHA, + "tls_ecdhe_rsa_with_aes_256_cbc_sha384": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHAThreeEightFour, + "tls_ecdhe_rsa_with_aes_256_gcm_sha384": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_rsa_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHA, + "tls_rsa_with_aes_128_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_rsa_with_aes_128_gcm_sha256": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_rsa_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHA, + "tls_rsa_with_aes_256_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHATwoFiveSix, + "tls_rsa_with_aes_256_gcm_sha384": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_rsa_with_3des_ede_cbc_sha": ApplicationGatewaySslCipherSuiteTLSRSAWITHThreeDESEDECBCSHA, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySslCipherSuite(input) + return &out, nil +} + +type ApplicationGatewaySslPolicyName string + +const ( + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneFiveZeroFiveZeroOne ApplicationGatewaySslPolicyName = "AppGwSslPolicy20150501" + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOne ApplicationGatewaySslPolicyName = "AppGwSslPolicy20170401" + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOneS ApplicationGatewaySslPolicyName = "AppGwSslPolicy20170401S" + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOne ApplicationGatewaySslPolicyName = "AppGwSslPolicy20220101" + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOneS ApplicationGatewaySslPolicyName = "AppGwSslPolicy20220101S" +) + +func PossibleValuesForApplicationGatewaySslPolicyName() []string { + return []string{ + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneFiveZeroFiveZeroOne), + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOne), + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOneS), + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOne), + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOneS), + } +} + +func (s *ApplicationGatewaySslPolicyName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySslPolicyName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySslPolicyName(input string) (*ApplicationGatewaySslPolicyName, error) { + vals := map[string]ApplicationGatewaySslPolicyName{ + "appgwsslpolicy20150501": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneFiveZeroFiveZeroOne, + "appgwsslpolicy20170401": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOne, + "appgwsslpolicy20170401s": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOneS, + "appgwsslpolicy20220101": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOne, + "appgwsslpolicy20220101s": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOneS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySslPolicyName(input) + return &out, nil +} + +type ApplicationGatewaySslPolicyType string + +const ( + ApplicationGatewaySslPolicyTypeCustom ApplicationGatewaySslPolicyType = "Custom" + ApplicationGatewaySslPolicyTypeCustomVTwo ApplicationGatewaySslPolicyType = "CustomV2" + ApplicationGatewaySslPolicyTypePredefined ApplicationGatewaySslPolicyType = "Predefined" +) + +func PossibleValuesForApplicationGatewaySslPolicyType() []string { + return []string{ + string(ApplicationGatewaySslPolicyTypeCustom), + string(ApplicationGatewaySslPolicyTypeCustomVTwo), + string(ApplicationGatewaySslPolicyTypePredefined), + } +} + +func (s *ApplicationGatewaySslPolicyType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySslPolicyType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySslPolicyType(input string) (*ApplicationGatewaySslPolicyType, error) { + vals := map[string]ApplicationGatewaySslPolicyType{ + "custom": ApplicationGatewaySslPolicyTypeCustom, + "customv2": ApplicationGatewaySslPolicyTypeCustomVTwo, + "predefined": ApplicationGatewaySslPolicyTypePredefined, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySslPolicyType(input) + return &out, nil +} + +type ApplicationGatewaySslProtocol string + +const ( + ApplicationGatewaySslProtocolTLSvOneOne ApplicationGatewaySslProtocol = "TLSv1_1" + ApplicationGatewaySslProtocolTLSvOneThree ApplicationGatewaySslProtocol = "TLSv1_3" + ApplicationGatewaySslProtocolTLSvOneTwo ApplicationGatewaySslProtocol = "TLSv1_2" + ApplicationGatewaySslProtocolTLSvOneZero ApplicationGatewaySslProtocol = "TLSv1_0" +) + +func PossibleValuesForApplicationGatewaySslProtocol() []string { + return []string{ + string(ApplicationGatewaySslProtocolTLSvOneOne), + string(ApplicationGatewaySslProtocolTLSvOneThree), + string(ApplicationGatewaySslProtocolTLSvOneTwo), + string(ApplicationGatewaySslProtocolTLSvOneZero), + } +} + +func (s *ApplicationGatewaySslProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySslProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySslProtocol(input string) (*ApplicationGatewaySslProtocol, error) { + vals := map[string]ApplicationGatewaySslProtocol{ + "tlsv1_1": ApplicationGatewaySslProtocolTLSvOneOne, + "tlsv1_3": ApplicationGatewaySslProtocolTLSvOneThree, + "tlsv1_2": ApplicationGatewaySslProtocolTLSvOneTwo, + "tlsv1_0": ApplicationGatewaySslProtocolTLSvOneZero, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySslProtocol(input) + return &out, nil +} + +type ApplicationGatewayTier string + +const ( + ApplicationGatewayTierBasic ApplicationGatewayTier = "Basic" + ApplicationGatewayTierStandard ApplicationGatewayTier = "Standard" + ApplicationGatewayTierStandardVTwo ApplicationGatewayTier = "Standard_v2" + ApplicationGatewayTierWAF ApplicationGatewayTier = "WAF" + ApplicationGatewayTierWAFVTwo ApplicationGatewayTier = "WAF_v2" +) + +func PossibleValuesForApplicationGatewayTier() []string { + return []string{ + string(ApplicationGatewayTierBasic), + string(ApplicationGatewayTierStandard), + string(ApplicationGatewayTierStandardVTwo), + string(ApplicationGatewayTierWAF), + string(ApplicationGatewayTierWAFVTwo), + } +} + +func (s *ApplicationGatewayTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayTier(input string) (*ApplicationGatewayTier, error) { + vals := map[string]ApplicationGatewayTier{ + "basic": ApplicationGatewayTierBasic, + "standard": ApplicationGatewayTierStandard, + "standard_v2": ApplicationGatewayTierStandardVTwo, + "waf": ApplicationGatewayTierWAF, + "waf_v2": ApplicationGatewayTierWAFVTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayTier(input) + return &out, nil +} + +type ApplicationGatewayTierTypes string + +const ( + ApplicationGatewayTierTypesStandard ApplicationGatewayTierTypes = "Standard" + ApplicationGatewayTierTypesStandardVTwo ApplicationGatewayTierTypes = "Standard_v2" + ApplicationGatewayTierTypesWAF ApplicationGatewayTierTypes = "WAF" + ApplicationGatewayTierTypesWAFVTwo ApplicationGatewayTierTypes = "WAF_v2" +) + +func PossibleValuesForApplicationGatewayTierTypes() []string { + return []string{ + string(ApplicationGatewayTierTypesStandard), + string(ApplicationGatewayTierTypesStandardVTwo), + string(ApplicationGatewayTierTypesWAF), + string(ApplicationGatewayTierTypesWAFVTwo), + } +} + +func (s *ApplicationGatewayTierTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayTierTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayTierTypes(input string) (*ApplicationGatewayTierTypes, error) { + vals := map[string]ApplicationGatewayTierTypes{ + "standard": ApplicationGatewayTierTypesStandard, + "standard_v2": ApplicationGatewayTierTypesStandardVTwo, + "waf": ApplicationGatewayTierTypesWAF, + "waf_v2": ApplicationGatewayTierTypesWAFVTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayTierTypes(input) + return &out, nil +} + +type ApplicationGatewayWafRuleActionTypes string + +const ( + ApplicationGatewayWafRuleActionTypesAllow ApplicationGatewayWafRuleActionTypes = "Allow" + ApplicationGatewayWafRuleActionTypesAnomalyScoring ApplicationGatewayWafRuleActionTypes = "AnomalyScoring" + ApplicationGatewayWafRuleActionTypesBlock ApplicationGatewayWafRuleActionTypes = "Block" + ApplicationGatewayWafRuleActionTypesLog ApplicationGatewayWafRuleActionTypes = "Log" + ApplicationGatewayWafRuleActionTypesNone ApplicationGatewayWafRuleActionTypes = "None" +) + +func PossibleValuesForApplicationGatewayWafRuleActionTypes() []string { + return []string{ + string(ApplicationGatewayWafRuleActionTypesAllow), + string(ApplicationGatewayWafRuleActionTypesAnomalyScoring), + string(ApplicationGatewayWafRuleActionTypesBlock), + string(ApplicationGatewayWafRuleActionTypesLog), + string(ApplicationGatewayWafRuleActionTypesNone), + } +} + +func (s *ApplicationGatewayWafRuleActionTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayWafRuleActionTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayWafRuleActionTypes(input string) (*ApplicationGatewayWafRuleActionTypes, error) { + vals := map[string]ApplicationGatewayWafRuleActionTypes{ + "allow": ApplicationGatewayWafRuleActionTypesAllow, + "anomalyscoring": ApplicationGatewayWafRuleActionTypesAnomalyScoring, + "block": ApplicationGatewayWafRuleActionTypesBlock, + "log": ApplicationGatewayWafRuleActionTypesLog, + "none": ApplicationGatewayWafRuleActionTypesNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayWafRuleActionTypes(input) + return &out, nil +} + +type ApplicationGatewayWafRuleSensitivityTypes string + +const ( + ApplicationGatewayWafRuleSensitivityTypesHigh ApplicationGatewayWafRuleSensitivityTypes = "High" + ApplicationGatewayWafRuleSensitivityTypesLow ApplicationGatewayWafRuleSensitivityTypes = "Low" + ApplicationGatewayWafRuleSensitivityTypesMedium ApplicationGatewayWafRuleSensitivityTypes = "Medium" + ApplicationGatewayWafRuleSensitivityTypesNone ApplicationGatewayWafRuleSensitivityTypes = "None" +) + +func PossibleValuesForApplicationGatewayWafRuleSensitivityTypes() []string { + return []string{ + string(ApplicationGatewayWafRuleSensitivityTypesHigh), + string(ApplicationGatewayWafRuleSensitivityTypesLow), + string(ApplicationGatewayWafRuleSensitivityTypesMedium), + string(ApplicationGatewayWafRuleSensitivityTypesNone), + } +} + +func (s *ApplicationGatewayWafRuleSensitivityTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayWafRuleSensitivityTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayWafRuleSensitivityTypes(input string) (*ApplicationGatewayWafRuleSensitivityTypes, error) { + vals := map[string]ApplicationGatewayWafRuleSensitivityTypes{ + "high": ApplicationGatewayWafRuleSensitivityTypesHigh, + "low": ApplicationGatewayWafRuleSensitivityTypesLow, + "medium": ApplicationGatewayWafRuleSensitivityTypesMedium, + "none": ApplicationGatewayWafRuleSensitivityTypesNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayWafRuleSensitivityTypes(input) + return &out, nil +} + +type ApplicationGatewayWafRuleStateTypes string + +const ( + ApplicationGatewayWafRuleStateTypesDisabled ApplicationGatewayWafRuleStateTypes = "Disabled" + ApplicationGatewayWafRuleStateTypesEnabled ApplicationGatewayWafRuleStateTypes = "Enabled" +) + +func PossibleValuesForApplicationGatewayWafRuleStateTypes() []string { + return []string{ + string(ApplicationGatewayWafRuleStateTypesDisabled), + string(ApplicationGatewayWafRuleStateTypesEnabled), + } +} + +func (s *ApplicationGatewayWafRuleStateTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayWafRuleStateTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayWafRuleStateTypes(input string) (*ApplicationGatewayWafRuleStateTypes, error) { + vals := map[string]ApplicationGatewayWafRuleStateTypes{ + "disabled": ApplicationGatewayWafRuleStateTypesDisabled, + "enabled": ApplicationGatewayWafRuleStateTypesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayWafRuleStateTypes(input) + return &out, nil +} + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/id_applicationgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/id_applicationgateway.go new file mode 100644 index 000000000000..90637014b692 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/id_applicationgateway.go @@ -0,0 +1,130 @@ +package applicationgateways + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ApplicationGatewayId{}) +} + +var _ resourceids.ResourceId = &ApplicationGatewayId{} + +// ApplicationGatewayId is a struct representing the Resource ID for a Application Gateway +type ApplicationGatewayId struct { + SubscriptionId string + ResourceGroupName string + ApplicationGatewayName string +} + +// NewApplicationGatewayID returns a new ApplicationGatewayId struct +func NewApplicationGatewayID(subscriptionId string, resourceGroupName string, applicationGatewayName string) ApplicationGatewayId { + return ApplicationGatewayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ApplicationGatewayName: applicationGatewayName, + } +} + +// ParseApplicationGatewayID parses 'input' into a ApplicationGatewayId +func ParseApplicationGatewayID(input string) (*ApplicationGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApplicationGatewayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApplicationGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseApplicationGatewayIDInsensitively parses 'input' case-insensitively into a ApplicationGatewayId +// note: this method should only be used for API response data and not user input +func ParseApplicationGatewayIDInsensitively(input string) (*ApplicationGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApplicationGatewayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApplicationGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ApplicationGatewayId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ApplicationGatewayName, ok = input.Parsed["applicationGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "applicationGatewayName", input) + } + + return nil +} + +// ValidateApplicationGatewayID checks that 'input' can be parsed as a Application Gateway ID +func ValidateApplicationGatewayID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseApplicationGatewayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Application Gateway ID +func (id ApplicationGatewayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/applicationGateways/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ApplicationGatewayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Application Gateway ID +func (id ApplicationGatewayId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticApplicationGateways", "applicationGateways", "applicationGateways"), + resourceids.UserSpecifiedSegment("applicationGatewayName", "applicationGatewayName"), + } +} + +// String returns a human-readable description of this Application Gateway ID +func (id ApplicationGatewayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Application Gateway Name: %q", id.ApplicationGatewayName), + } + return fmt.Sprintf("Application Gateway (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/id_predefinedpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/id_predefinedpolicy.go new file mode 100644 index 000000000000..098e66be9e45 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/id_predefinedpolicy.go @@ -0,0 +1,123 @@ +package applicationgateways + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&PredefinedPolicyId{}) +} + +var _ resourceids.ResourceId = &PredefinedPolicyId{} + +// PredefinedPolicyId is a struct representing the Resource ID for a Predefined Policy +type PredefinedPolicyId struct { + SubscriptionId string + PredefinedPolicyName string +} + +// NewPredefinedPolicyID returns a new PredefinedPolicyId struct +func NewPredefinedPolicyID(subscriptionId string, predefinedPolicyName string) PredefinedPolicyId { + return PredefinedPolicyId{ + SubscriptionId: subscriptionId, + PredefinedPolicyName: predefinedPolicyName, + } +} + +// ParsePredefinedPolicyID parses 'input' into a PredefinedPolicyId +func ParsePredefinedPolicyID(input string) (*PredefinedPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&PredefinedPolicyId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PredefinedPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParsePredefinedPolicyIDInsensitively parses 'input' case-insensitively into a PredefinedPolicyId +// note: this method should only be used for API response data and not user input +func ParsePredefinedPolicyIDInsensitively(input string) (*PredefinedPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&PredefinedPolicyId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PredefinedPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *PredefinedPolicyId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.PredefinedPolicyName, ok = input.Parsed["predefinedPolicyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "predefinedPolicyName", input) + } + + return nil +} + +// ValidatePredefinedPolicyID checks that 'input' can be parsed as a Predefined Policy ID +func ValidatePredefinedPolicyID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParsePredefinedPolicyID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Predefined Policy ID +func (id PredefinedPolicyId) ID() string { + fmtString := "/subscriptions/%s/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.PredefinedPolicyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Predefined Policy ID +func (id PredefinedPolicyId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticApplicationGatewayAvailableSslOptions", "applicationGatewayAvailableSslOptions", "applicationGatewayAvailableSslOptions"), + resourceids.StaticSegment("staticDefault", "default", "default"), + resourceids.StaticSegment("staticPredefinedPolicies", "predefinedPolicies", "predefinedPolicies"), + resourceids.UserSpecifiedSegment("predefinedPolicyName", "predefinedPolicyName"), + } +} + +// String returns a human-readable description of this Predefined Policy ID +func (id PredefinedPolicyId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Predefined Policy Name: %q", id.PredefinedPolicyName), + } + return fmt.Sprintf("Predefined Policy (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_backendhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_backendhealth.go new file mode 100644 index 000000000000..2ab399ab3f9e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_backendhealth.go @@ -0,0 +1,100 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendHealthOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationGatewayBackendHealth +} + +type BackendHealthOperationOptions struct { + Expand *string +} + +func DefaultBackendHealthOperationOptions() BackendHealthOperationOptions { + return BackendHealthOperationOptions{} +} + +func (o BackendHealthOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o BackendHealthOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o BackendHealthOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// BackendHealth ... +func (c ApplicationGatewaysClient) BackendHealth(ctx context.Context, id ApplicationGatewayId, options BackendHealthOperationOptions) (result BackendHealthOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + OptionsObject: options, + Path: fmt.Sprintf("%s/backendhealth", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// BackendHealthThenPoll performs BackendHealth then polls until it's completed +func (c ApplicationGatewaysClient) BackendHealthThenPoll(ctx context.Context, id ApplicationGatewayId, options BackendHealthOperationOptions) error { + result, err := c.BackendHealth(ctx, id, options) + if err != nil { + return fmt.Errorf("performing BackendHealth: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after BackendHealth: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_backendhealthondemand.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_backendhealthondemand.go new file mode 100644 index 000000000000..a22fd7135ce6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_backendhealthondemand.go @@ -0,0 +1,104 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendHealthOnDemandOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationGatewayBackendHealthOnDemand +} + +type BackendHealthOnDemandOperationOptions struct { + Expand *string +} + +func DefaultBackendHealthOnDemandOperationOptions() BackendHealthOnDemandOperationOptions { + return BackendHealthOnDemandOperationOptions{} +} + +func (o BackendHealthOnDemandOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o BackendHealthOnDemandOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o BackendHealthOnDemandOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// BackendHealthOnDemand ... +func (c ApplicationGatewaysClient) BackendHealthOnDemand(ctx context.Context, id ApplicationGatewayId, input ApplicationGatewayOnDemandProbe, options BackendHealthOnDemandOperationOptions) (result BackendHealthOnDemandOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + OptionsObject: options, + Path: fmt.Sprintf("%s/getBackendHealthOnDemand", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// BackendHealthOnDemandThenPoll performs BackendHealthOnDemand then polls until it's completed +func (c ApplicationGatewaysClient) BackendHealthOnDemandThenPoll(ctx context.Context, id ApplicationGatewayId, input ApplicationGatewayOnDemandProbe, options BackendHealthOnDemandOperationOptions) error { + result, err := c.BackendHealthOnDemand(ctx, id, input, options) + if err != nil { + return fmt.Errorf("performing BackendHealthOnDemand: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after BackendHealthOnDemand: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_createorupdate.go new file mode 100644 index 000000000000..66330483b32a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_createorupdate.go @@ -0,0 +1,75 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationGateway +} + +// CreateOrUpdate ... +func (c ApplicationGatewaysClient) CreateOrUpdate(ctx context.Context, id ApplicationGatewayId, input ApplicationGateway) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ApplicationGatewaysClient) CreateOrUpdateThenPoll(ctx context.Context, id ApplicationGatewayId, input ApplicationGateway) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_delete.go new file mode 100644 index 000000000000..6769fa69c245 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_delete.go @@ -0,0 +1,71 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ApplicationGatewaysClient) Delete(ctx context.Context, id ApplicationGatewayId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ApplicationGatewaysClient) DeleteThenPoll(ctx context.Context, id ApplicationGatewayId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_get.go new file mode 100644 index 000000000000..c25227f49ca2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_get.go @@ -0,0 +1,53 @@ +package applicationgateways + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationGateway +} + +// Get ... +func (c ApplicationGatewaysClient) Get(ctx context.Context, id ApplicationGatewayId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ApplicationGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_getsslpredefinedpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_getsslpredefinedpolicy.go new file mode 100644 index 000000000000..d42b5d2730ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_getsslpredefinedpolicy.go @@ -0,0 +1,53 @@ +package applicationgateways + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSslPredefinedPolicyOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationGatewaySslPredefinedPolicy +} + +// GetSslPredefinedPolicy ... +func (c ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Context, id PredefinedPolicyId) (result GetSslPredefinedPolicyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ApplicationGatewaySslPredefinedPolicy + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_list.go new file mode 100644 index 000000000000..5993122f77d6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_list.go @@ -0,0 +1,106 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ApplicationGateway +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ApplicationGateway +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ApplicationGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ApplicationGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ApplicationGatewaysClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, ApplicationGatewayOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ApplicationGatewaysClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ApplicationGatewayOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ApplicationGateway, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listall.go new file mode 100644 index 000000000000..2339a539153a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listall.go @@ -0,0 +1,106 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ApplicationGateway +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []ApplicationGateway +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c ApplicationGatewaysClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ApplicationGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c ApplicationGatewaysClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, ApplicationGatewayOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ApplicationGatewaysClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ApplicationGatewayOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]ApplicationGateway, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablerequestheaders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablerequestheaders.go new file mode 100644 index 000000000000..8132f0945cfe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablerequestheaders.go @@ -0,0 +1,55 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAvailableRequestHeadersOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]string +} + +// ListAvailableRequestHeaders ... +func (c ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context.Context, id commonids.SubscriptionId) (result ListAvailableRequestHeadersOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayAvailableRequestHeaders", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model []string + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailableresponseheaders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailableresponseheaders.go new file mode 100644 index 000000000000..89bdb636e2ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailableresponseheaders.go @@ -0,0 +1,55 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAvailableResponseHeadersOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]string +} + +// ListAvailableResponseHeaders ... +func (c ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context.Context, id commonids.SubscriptionId) (result ListAvailableResponseHeadersOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayAvailableResponseHeaders", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model []string + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailableservervariables.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailableservervariables.go new file mode 100644 index 000000000000..f2a0d8c4b796 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailableservervariables.go @@ -0,0 +1,55 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAvailableServerVariablesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]string +} + +// ListAvailableServerVariables ... +func (c ApplicationGatewaysClient) ListAvailableServerVariables(ctx context.Context, id commonids.SubscriptionId) (result ListAvailableServerVariablesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayAvailableServerVariables", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model []string + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablessloptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablessloptions.go new file mode 100644 index 000000000000..f446cd3730a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablessloptions.go @@ -0,0 +1,55 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAvailableSslOptionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationGatewayAvailableSslOptions +} + +// ListAvailableSslOptions ... +func (c ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Context, id commonids.SubscriptionId) (result ListAvailableSslOptionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ApplicationGatewayAvailableSslOptions + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablesslpredefinedpolicies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablesslpredefinedpolicies.go new file mode 100644 index 000000000000..60e04b841d40 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablesslpredefinedpolicies.go @@ -0,0 +1,106 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAvailableSslPredefinedPoliciesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ApplicationGatewaySslPredefinedPolicy +} + +type ListAvailableSslPredefinedPoliciesCompleteResult struct { + LatestHttpResponse *http.Response + Items []ApplicationGatewaySslPredefinedPolicy +} + +type ListAvailableSslPredefinedPoliciesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAvailableSslPredefinedPoliciesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAvailableSslPredefinedPolicies ... +func (c ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx context.Context, id commonids.SubscriptionId) (result ListAvailableSslPredefinedPoliciesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAvailableSslPredefinedPoliciesCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ApplicationGatewaySslPredefinedPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAvailableSslPredefinedPoliciesComplete retrieves all the results into a single object +func (c ApplicationGatewaysClient) ListAvailableSslPredefinedPoliciesComplete(ctx context.Context, id commonids.SubscriptionId) (ListAvailableSslPredefinedPoliciesCompleteResult, error) { + return c.ListAvailableSslPredefinedPoliciesCompleteMatchingPredicate(ctx, id, ApplicationGatewaySslPredefinedPolicyOperationPredicate{}) +} + +// ListAvailableSslPredefinedPoliciesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ApplicationGatewaysClient) ListAvailableSslPredefinedPoliciesCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ApplicationGatewaySslPredefinedPolicyOperationPredicate) (result ListAvailableSslPredefinedPoliciesCompleteResult, err error) { + items := make([]ApplicationGatewaySslPredefinedPolicy, 0) + + resp, err := c.ListAvailableSslPredefinedPolicies(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAvailableSslPredefinedPoliciesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablewafrulesets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablewafrulesets.go new file mode 100644 index 000000000000..ee2a21477a57 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablewafrulesets.go @@ -0,0 +1,55 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAvailableWafRuleSetsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationGatewayAvailableWafRuleSetsResult +} + +// ListAvailableWafRuleSets ... +func (c ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Context, id commonids.SubscriptionId) (result ListAvailableWafRuleSetsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ApplicationGatewayAvailableWafRuleSetsResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_start.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_start.go new file mode 100644 index 000000000000..828fc60cb3c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_start.go @@ -0,0 +1,70 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Start ... +func (c ApplicationGatewaysClient) Start(ctx context.Context, id ApplicationGatewayId) (result StartOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/start", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StartThenPoll performs Start then polls until it's completed +func (c ApplicationGatewaysClient) StartThenPoll(ctx context.Context, id ApplicationGatewayId) error { + result, err := c.Start(ctx, id) + if err != nil { + return fmt.Errorf("performing Start: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Start: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_stop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_stop.go new file mode 100644 index 000000000000..75b68cdf697a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_stop.go @@ -0,0 +1,70 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Stop ... +func (c ApplicationGatewaysClient) Stop(ctx context.Context, id ApplicationGatewayId) (result StopOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stop", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StopThenPoll performs Stop then polls until it's completed +func (c ApplicationGatewaysClient) StopThenPoll(ctx context.Context, id ApplicationGatewayId) error { + result, err := c.Stop(ctx, id) + if err != nil { + return fmt.Errorf("performing Stop: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Stop: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_updatetags.go new file mode 100644 index 000000000000..875c2ce138d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_updatetags.go @@ -0,0 +1,57 @@ +package applicationgateways + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationGateway +} + +// UpdateTags ... +func (c ApplicationGatewaysClient) UpdateTags(ctx context.Context, id ApplicationGatewayId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ApplicationGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgateway.go new file mode 100644 index 000000000000..26c26a889270 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgateway.go @@ -0,0 +1,21 @@ +package applicationgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayauthenticationcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayauthenticationcertificate.go new file mode 100644 index 000000000000..21a1fec007fc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayauthenticationcertificate.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAuthenticationCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayAuthenticationCertificatePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayauthenticationcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayauthenticationcertificatepropertiesformat.go new file mode 100644 index 000000000000..37f5189d68aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayauthenticationcertificatepropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAuthenticationCertificatePropertiesFormat struct { + Data *string `json:"data,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayautoscaleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayautoscaleconfiguration.go new file mode 100644 index 000000000000..e8f13521e070 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayautoscaleconfiguration.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAutoscaleConfiguration struct { + MaxCapacity *int64 `json:"maxCapacity,omitempty"` + MinCapacity int64 `json:"minCapacity"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablessloptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablessloptions.go new file mode 100644 index 000000000000..18677bfa9ada --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablessloptions.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAvailableSslOptions struct { + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayAvailableSslOptionsPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablessloptionspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablessloptionspropertiesformat.go new file mode 100644 index 000000000000..552b956629b8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablessloptionspropertiesformat.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAvailableSslOptionsPropertiesFormat struct { + AvailableCipherSuites *[]ApplicationGatewaySslCipherSuite `json:"availableCipherSuites,omitempty"` + AvailableProtocols *[]ApplicationGatewaySslProtocol `json:"availableProtocols,omitempty"` + DefaultPolicy *ApplicationGatewaySslPolicyName `json:"defaultPolicy,omitempty"` + PredefinedPolicies *[]SubResource `json:"predefinedPolicies,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablewafrulesetsresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablewafrulesetsresult.go new file mode 100644 index 000000000000..b960a888077e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablewafrulesetsresult.go @@ -0,0 +1,8 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAvailableWafRuleSetsResult struct { + Value *[]ApplicationGatewayFirewallRuleSet `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..9245b4581ff5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..e62cc5f5a6aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..92e4b6fcae04 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealth.go new file mode 100644 index 000000000000..b84392209575 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealth.go @@ -0,0 +1,8 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHealth struct { + BackendAddressPools *[]ApplicationGatewayBackendHealthPool `json:"backendAddressPools,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthhttpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthhttpsettings.go new file mode 100644 index 000000000000..00f4c87c142f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthhttpsettings.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHealthHTTPSettings struct { + BackendHTTPSettings *ApplicationGatewayBackendHTTPSettings `json:"backendHttpSettings,omitempty"` + Servers *[]ApplicationGatewayBackendHealthServer `json:"servers,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthondemand.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthondemand.go new file mode 100644 index 000000000000..3bf6d17e80cd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthondemand.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHealthOnDemand struct { + BackendAddressPool *ApplicationGatewayBackendAddressPool `json:"backendAddressPool,omitempty"` + BackendHealthHTTPSettings *ApplicationGatewayBackendHealthHTTPSettings `json:"backendHealthHttpSettings,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthpool.go new file mode 100644 index 000000000000..b32fffdf6140 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthpool.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHealthPool struct { + BackendAddressPool *ApplicationGatewayBackendAddressPool `json:"backendAddressPool,omitempty"` + BackendHTTPSettingsCollection *[]ApplicationGatewayBackendHealthHTTPSettings `json:"backendHttpSettingsCollection,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthserver.go new file mode 100644 index 000000000000..c11aed154b2f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthserver.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHealthServer struct { + Address *string `json:"address,omitempty"` + Health *ApplicationGatewayBackendHealthServerHealth `json:"health,omitempty"` + HealthProbeLog *string `json:"healthProbeLog,omitempty"` + IPConfiguration *NetworkInterfaceIPConfiguration `json:"ipConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhttpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhttpsettings.go new file mode 100644 index 000000000000..7cfbecd35064 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhttpsettings.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHTTPSettings struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendHTTPSettingsPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhttpsettingspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhttpsettingspropertiesformat.go new file mode 100644 index 000000000000..68ccfd35301c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhttpsettingspropertiesformat.go @@ -0,0 +1,21 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHTTPSettingsPropertiesFormat struct { + AffinityCookieName *string `json:"affinityCookieName,omitempty"` + AuthenticationCertificates *[]SubResource `json:"authenticationCertificates,omitempty"` + ConnectionDraining *ApplicationGatewayConnectionDraining `json:"connectionDraining,omitempty"` + CookieBasedAffinity *ApplicationGatewayCookieBasedAffinity `json:"cookieBasedAffinity,omitempty"` + HostName *string `json:"hostName,omitempty"` + Path *string `json:"path,omitempty"` + PickHostNameFromBackendAddress *bool `json:"pickHostNameFromBackendAddress,omitempty"` + Port *int64 `json:"port,omitempty"` + Probe *SubResource `json:"probe,omitempty"` + ProbeEnabled *bool `json:"probeEnabled,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestTimeout *int64 `json:"requestTimeout,omitempty"` + TrustedRootCertificates *[]SubResource `json:"trustedRootCertificates,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendsettings.go new file mode 100644 index 000000000000..435626e72963 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendsettings.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendSettings struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendSettingsPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendsettingspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendsettingspropertiesformat.go new file mode 100644 index 000000000000..5d5c1275f2e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendsettingspropertiesformat.go @@ -0,0 +1,15 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendSettingsPropertiesFormat struct { + HostName *string `json:"hostName,omitempty"` + PickHostNameFromBackendAddress *bool `json:"pickHostNameFromBackendAddress,omitempty"` + Port *int64 `json:"port,omitempty"` + Probe *SubResource `json:"probe,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Timeout *int64 `json:"timeout,omitempty"` + TrustedRootCertificates *[]SubResource `json:"trustedRootCertificates,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayclientauthconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayclientauthconfiguration.go new file mode 100644 index 000000000000..7be179f89f0a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayclientauthconfiguration.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayClientAuthConfiguration struct { + VerifyClientCertIssuerDN *bool `json:"verifyClientCertIssuerDN,omitempty"` + VerifyClientRevocation *ApplicationGatewayClientRevocationOptions `json:"verifyClientRevocation,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayconnectiondraining.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayconnectiondraining.go new file mode 100644 index 000000000000..f40777a88f84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayconnectiondraining.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayConnectionDraining struct { + DrainTimeoutInSec int64 `json:"drainTimeoutInSec"` + Enabled bool `json:"enabled"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaycustomerror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaycustomerror.go new file mode 100644 index 000000000000..8b0e5fb8d20f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaycustomerror.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayCustomError struct { + CustomErrorPageURL *string `json:"customErrorPageUrl,omitempty"` + StatusCode *ApplicationGatewayCustomErrorStatusCode `json:"statusCode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewalldisabledrulegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewalldisabledrulegroup.go new file mode 100644 index 000000000000..30534c50f525 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewalldisabledrulegroup.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallDisabledRuleGroup struct { + RuleGroupName string `json:"ruleGroupName"` + Rules *[]int64 `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallexclusion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallexclusion.go new file mode 100644 index 000000000000..77bfe2cf65c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallexclusion.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallExclusion struct { + MatchVariable string `json:"matchVariable"` + Selector string `json:"selector"` + SelectorMatchOperator string `json:"selectorMatchOperator"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrule.go new file mode 100644 index 000000000000..3e364fe77a2e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrule.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallRule struct { + Action *ApplicationGatewayWafRuleActionTypes `json:"action,omitempty"` + Description *string `json:"description,omitempty"` + RuleId int64 `json:"ruleId"` + RuleIdString *string `json:"ruleIdString,omitempty"` + Sensitivity *ApplicationGatewayWafRuleSensitivityTypes `json:"sensitivity,omitempty"` + State *ApplicationGatewayWafRuleStateTypes `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrulegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrulegroup.go new file mode 100644 index 000000000000..06c7cbffb389 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrulegroup.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallRuleGroup struct { + Description *string `json:"description,omitempty"` + RuleGroupName string `json:"ruleGroupName"` + Rules []ApplicationGatewayFirewallRule `json:"rules"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallruleset.go new file mode 100644 index 000000000000..3eb743516241 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallruleset.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallRuleSet struct { + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayFirewallRuleSetPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrulesetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrulesetpropertiesformat.go new file mode 100644 index 000000000000..f0bd967c325e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrulesetpropertiesformat.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallRuleSetPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RuleGroups []ApplicationGatewayFirewallRuleGroup `json:"ruleGroups"` + RuleSetType string `json:"ruleSetType"` + RuleSetVersion string `json:"ruleSetVersion"` + Tiers *[]ApplicationGatewayTierTypes `json:"tiers,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendipconfiguration.go new file mode 100644 index 000000000000..16f3a44fe687 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendipconfiguration.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayFrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..45f83bbaa113 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendipconfigurationpropertiesformat.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFrontendIPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConfiguration *SubResource `json:"privateLinkConfiguration,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendport.go new file mode 100644 index 000000000000..9b3c8763e014 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendport.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFrontendPort struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayFrontendPortPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendportpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendportpropertiesformat.go new file mode 100644 index 000000000000..a9399610b8b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendportpropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFrontendPortPropertiesFormat struct { + Port *int64 `json:"port,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayglobalconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayglobalconfiguration.go new file mode 100644 index 000000000000..8f031b6ad381 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayglobalconfiguration.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayGlobalConfiguration struct { + EnableRequestBuffering *bool `json:"enableRequestBuffering,omitempty"` + EnableResponseBuffering *bool `json:"enableResponseBuffering,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayheaderconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayheaderconfiguration.go new file mode 100644 index 000000000000..a7a9580c702c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayheaderconfiguration.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayHeaderConfiguration struct { + HeaderName *string `json:"headerName,omitempty"` + HeaderValue *string `json:"headerValue,omitempty"` + HeaderValueMatcher *HeaderValueMatcher `json:"headerValueMatcher,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayhttplistener.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayhttplistener.go new file mode 100644 index 000000000000..457c3af7d7bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayhttplistener.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayHTTPListener struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayHTTPListenerPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayhttplistenerpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayhttplistenerpropertiesformat.go new file mode 100644 index 000000000000..7d3436f61862 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayhttplistenerpropertiesformat.go @@ -0,0 +1,18 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayHTTPListenerPropertiesFormat struct { + CustomErrorConfigurations *[]ApplicationGatewayCustomError `json:"customErrorConfigurations,omitempty"` + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *SubResource `json:"frontendPort,omitempty"` + HostName *string `json:"hostName,omitempty"` + HostNames *[]string `json:"hostNames,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequireServerNameIndication *bool `json:"requireServerNameIndication,omitempty"` + SslCertificate *SubResource `json:"sslCertificate,omitempty"` + SslProfile *SubResource `json:"sslProfile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..7b513c563594 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..67b2b22486e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaylistener.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaylistener.go new file mode 100644 index 000000000000..eb251dad173a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaylistener.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayListener struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayListenerPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaylistenerpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaylistenerpropertiesformat.go new file mode 100644 index 000000000000..96c7728780de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaylistenerpropertiesformat.go @@ -0,0 +1,14 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayListenerPropertiesFormat struct { + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *SubResource `json:"frontendPort,omitempty"` + HostNames *[]string `json:"hostNames,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SslCertificate *SubResource `json:"sslCertificate,omitempty"` + SslProfile *SubResource `json:"sslProfile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributionpolicy.go new file mode 100644 index 000000000000..9c07ad54259c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributionpolicy.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayLoadDistributionPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayLoadDistributionPolicyPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributionpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributionpolicypropertiesformat.go new file mode 100644 index 000000000000..9ae762454d0a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributionpolicypropertiesformat.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayLoadDistributionPolicyPropertiesFormat struct { + LoadDistributionAlgorithm *ApplicationGatewayLoadDistributionAlgorithm `json:"loadDistributionAlgorithm,omitempty"` + LoadDistributionTargets *[]ApplicationGatewayLoadDistributionTarget `json:"loadDistributionTargets,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributiontarget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributiontarget.go new file mode 100644 index 000000000000..5db29bd27a5c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributiontarget.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayLoadDistributionTarget struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayLoadDistributionTargetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributiontargetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributiontargetpropertiesformat.go new file mode 100644 index 000000000000..cd785c4126e4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributiontargetpropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayLoadDistributionTargetPropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + WeightPerServer *int64 `json:"weightPerServer,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayondemandprobe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayondemandprobe.go new file mode 100644 index 000000000000..6ee19e174e2a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayondemandprobe.go @@ -0,0 +1,15 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayOnDemandProbe struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendHTTPSettings *SubResource `json:"backendHttpSettings,omitempty"` + Host *string `json:"host,omitempty"` + Match *ApplicationGatewayProbeHealthResponseMatch `json:"match,omitempty"` + Path *string `json:"path,omitempty"` + PickHostNameFromBackendHTTPSettings *bool `json:"pickHostNameFromBackendHttpSettings,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + Timeout *int64 `json:"timeout,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypathrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypathrule.go new file mode 100644 index 000000000000..ae684eb5860a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypathrule.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPathRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPathRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypathrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypathrulepropertiesformat.go new file mode 100644 index 000000000000..c0586444c859 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypathrulepropertiesformat.go @@ -0,0 +1,15 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPathRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendHTTPSettings *SubResource `json:"backendHttpSettings,omitempty"` + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` + LoadDistributionPolicy *SubResource `json:"loadDistributionPolicy,omitempty"` + Paths *[]string `json:"paths,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RedirectConfiguration *SubResource `json:"redirectConfiguration,omitempty"` + RewriteRuleSet *SubResource `json:"rewriteRuleSet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivateendpointconnection.go new file mode 100644 index 000000000000..8099219aff4c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivateendpointconnection.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivateendpointconnectionproperties.go new file mode 100644 index 000000000000..400c841d704a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivateendpointconnectionproperties.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkconfiguration.go new file mode 100644 index 000000000000..1997234fb4da --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkconfiguration.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateLinkConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPrivateLinkConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkconfigurationproperties.go new file mode 100644 index 000000000000..b86b3f170145 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkconfigurationproperties.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateLinkConfigurationProperties struct { + IPConfigurations *[]ApplicationGatewayPrivateLinkIPConfiguration `json:"ipConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkipconfiguration.go new file mode 100644 index 000000000000..ad8bfa28be72 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkipconfiguration.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateLinkIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPrivateLinkIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkipconfigurationproperties.go new file mode 100644 index 000000000000..b2d2b2af23ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkipconfigurationproperties.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateLinkIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobe.go new file mode 100644 index 000000000000..9b27b4f71333 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobe.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayProbe struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayProbePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobehealthresponsematch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobehealthresponsematch.go new file mode 100644 index 000000000000..68ccf1eaaaff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobehealthresponsematch.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayProbeHealthResponseMatch struct { + Body *string `json:"body,omitempty"` + StatusCodes *[]string `json:"statusCodes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobepropertiesformat.go new file mode 100644 index 000000000000..dab5ee7ae23f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobepropertiesformat.go @@ -0,0 +1,19 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayProbePropertiesFormat struct { + Host *string `json:"host,omitempty"` + Interval *int64 `json:"interval,omitempty"` + Match *ApplicationGatewayProbeHealthResponseMatch `json:"match,omitempty"` + MinServers *int64 `json:"minServers,omitempty"` + Path *string `json:"path,omitempty"` + PickHostNameFromBackendHTTPSettings *bool `json:"pickHostNameFromBackendHttpSettings,omitempty"` + PickHostNameFromBackendSettings *bool `json:"pickHostNameFromBackendSettings,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Timeout *int64 `json:"timeout,omitempty"` + UnhealthyThreshold *int64 `json:"unhealthyThreshold,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypropertiesformat.go new file mode 100644 index 000000000000..4e54c939bcb9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypropertiesformat.go @@ -0,0 +1,43 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPropertiesFormat struct { + AuthenticationCertificates *[]ApplicationGatewayAuthenticationCertificate `json:"authenticationCertificates,omitempty"` + AutoscaleConfiguration *ApplicationGatewayAutoscaleConfiguration `json:"autoscaleConfiguration,omitempty"` + BackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"backendAddressPools,omitempty"` + BackendHTTPSettingsCollection *[]ApplicationGatewayBackendHTTPSettings `json:"backendHttpSettingsCollection,omitempty"` + BackendSettingsCollection *[]ApplicationGatewayBackendSettings `json:"backendSettingsCollection,omitempty"` + CustomErrorConfigurations *[]ApplicationGatewayCustomError `json:"customErrorConfigurations,omitempty"` + DefaultPredefinedSslPolicy *ApplicationGatewaySslPolicyName `json:"defaultPredefinedSslPolicy,omitempty"` + EnableFips *bool `json:"enableFips,omitempty"` + EnableHTTP2 *bool `json:"enableHttp2,omitempty"` + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` + ForceFirewallPolicyAssociation *bool `json:"forceFirewallPolicyAssociation,omitempty"` + FrontendIPConfigurations *[]ApplicationGatewayFrontendIPConfiguration `json:"frontendIPConfigurations,omitempty"` + FrontendPorts *[]ApplicationGatewayFrontendPort `json:"frontendPorts,omitempty"` + GatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"gatewayIPConfigurations,omitempty"` + GlobalConfiguration *ApplicationGatewayGlobalConfiguration `json:"globalConfiguration,omitempty"` + HTTPListeners *[]ApplicationGatewayHTTPListener `json:"httpListeners,omitempty"` + Listeners *[]ApplicationGatewayListener `json:"listeners,omitempty"` + LoadDistributionPolicies *[]ApplicationGatewayLoadDistributionPolicy `json:"loadDistributionPolicies,omitempty"` + OperationalState *ApplicationGatewayOperationalState `json:"operationalState,omitempty"` + PrivateEndpointConnections *[]ApplicationGatewayPrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + PrivateLinkConfigurations *[]ApplicationGatewayPrivateLinkConfiguration `json:"privateLinkConfigurations,omitempty"` + Probes *[]ApplicationGatewayProbe `json:"probes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RedirectConfigurations *[]ApplicationGatewayRedirectConfiguration `json:"redirectConfigurations,omitempty"` + RequestRoutingRules *[]ApplicationGatewayRequestRoutingRule `json:"requestRoutingRules,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + RewriteRuleSets *[]ApplicationGatewayRewriteRuleSet `json:"rewriteRuleSets,omitempty"` + RoutingRules *[]ApplicationGatewayRoutingRule `json:"routingRules,omitempty"` + Sku *ApplicationGatewaySku `json:"sku,omitempty"` + SslCertificates *[]ApplicationGatewaySslCertificate `json:"sslCertificates,omitempty"` + SslPolicy *ApplicationGatewaySslPolicy `json:"sslPolicy,omitempty"` + SslProfiles *[]ApplicationGatewaySslProfile `json:"sslProfiles,omitempty"` + TrustedClientCertificates *[]ApplicationGatewayTrustedClientCertificate `json:"trustedClientCertificates,omitempty"` + TrustedRootCertificates *[]ApplicationGatewayTrustedRootCertificate `json:"trustedRootCertificates,omitempty"` + UrlPathMaps *[]ApplicationGatewayURLPathMap `json:"urlPathMaps,omitempty"` + WebApplicationFirewallConfiguration *ApplicationGatewayWebApplicationFirewallConfiguration `json:"webApplicationFirewallConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayredirectconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayredirectconfiguration.go new file mode 100644 index 000000000000..99a2df5f0de9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayredirectconfiguration.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRedirectConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayRedirectConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayredirectconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayredirectconfigurationpropertiesformat.go new file mode 100644 index 000000000000..b629d49b4119 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayredirectconfigurationpropertiesformat.go @@ -0,0 +1,15 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRedirectConfigurationPropertiesFormat struct { + IncludePath *bool `json:"includePath,omitempty"` + IncludeQueryString *bool `json:"includeQueryString,omitempty"` + PathRules *[]SubResource `json:"pathRules,omitempty"` + RedirectType *ApplicationGatewayRedirectType `json:"redirectType,omitempty"` + RequestRoutingRules *[]SubResource `json:"requestRoutingRules,omitempty"` + TargetListener *SubResource `json:"targetListener,omitempty"` + TargetURL *string `json:"targetUrl,omitempty"` + UrlPathMaps *[]SubResource `json:"urlPathMaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrequestroutingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrequestroutingrule.go new file mode 100644 index 000000000000..8968674820d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrequestroutingrule.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRequestRoutingRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayRequestRoutingRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrequestroutingrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrequestroutingrulepropertiesformat.go new file mode 100644 index 000000000000..d7ab0f3f4d94 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrequestroutingrulepropertiesformat.go @@ -0,0 +1,17 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRequestRoutingRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendHTTPSettings *SubResource `json:"backendHttpSettings,omitempty"` + HTTPListener *SubResource `json:"httpListener,omitempty"` + LoadDistributionPolicy *SubResource `json:"loadDistributionPolicy,omitempty"` + Priority *int64 `json:"priority,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RedirectConfiguration *SubResource `json:"redirectConfiguration,omitempty"` + RewriteRuleSet *SubResource `json:"rewriteRuleSet,omitempty"` + RuleType *ApplicationGatewayRequestRoutingRuleType `json:"ruleType,omitempty"` + UrlPathMap *SubResource `json:"urlPathMap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterule.go new file mode 100644 index 000000000000..6ce3b9a1f5d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterule.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRule struct { + ActionSet *ApplicationGatewayRewriteRuleActionSet `json:"actionSet,omitempty"` + Conditions *[]ApplicationGatewayRewriteRuleCondition `json:"conditions,omitempty"` + Name *string `json:"name,omitempty"` + RuleSequence *int64 `json:"ruleSequence,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriteruleactionset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriteruleactionset.go new file mode 100644 index 000000000000..c46a7bd6d6c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriteruleactionset.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRuleActionSet struct { + RequestHeaderConfigurations *[]ApplicationGatewayHeaderConfiguration `json:"requestHeaderConfigurations,omitempty"` + ResponseHeaderConfigurations *[]ApplicationGatewayHeaderConfiguration `json:"responseHeaderConfigurations,omitempty"` + UrlConfiguration *ApplicationGatewayURLConfiguration `json:"urlConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterulecondition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterulecondition.go new file mode 100644 index 000000000000..c7e6af3b85a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterulecondition.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRuleCondition struct { + IgnoreCase *bool `json:"ignoreCase,omitempty"` + Negate *bool `json:"negate,omitempty"` + Pattern *string `json:"pattern,omitempty"` + Variable *string `json:"variable,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriteruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriteruleset.go new file mode 100644 index 000000000000..571e90385085 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriteruleset.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRuleSet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayRewriteRuleSetPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterulesetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterulesetpropertiesformat.go new file mode 100644 index 000000000000..031206c13cec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterulesetpropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRuleSetPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RewriteRules *[]ApplicationGatewayRewriteRule `json:"rewriteRules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayroutingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayroutingrule.go new file mode 100644 index 000000000000..448709de6b46 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayroutingrule.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRoutingRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayRoutingRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayroutingrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayroutingrulepropertiesformat.go new file mode 100644 index 000000000000..5be005525341 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayroutingrulepropertiesformat.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRoutingRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendSettings *SubResource `json:"backendSettings,omitempty"` + Listener *SubResource `json:"listener,omitempty"` + Priority int64 `json:"priority"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RuleType *ApplicationGatewayRequestRoutingRuleType `json:"ruleType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysku.go new file mode 100644 index 000000000000..461f2f965a6b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysku.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySku struct { + Capacity *int64 `json:"capacity,omitempty"` + Family *ApplicationGatewaySkuFamily `json:"family,omitempty"` + Name *ApplicationGatewaySkuName `json:"name,omitempty"` + Tier *ApplicationGatewayTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslcertificate.go new file mode 100644 index 000000000000..1f5898678625 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslcertificate.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewaySslCertificatePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslcertificatepropertiesformat.go new file mode 100644 index 000000000000..1c92efb93bd5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslcertificatepropertiesformat.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslCertificatePropertiesFormat struct { + Data *string `json:"data,omitempty"` + KeyVaultSecretId *string `json:"keyVaultSecretId,omitempty"` + Password *string `json:"password,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicCertData *string `json:"publicCertData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpolicy.go new file mode 100644 index 000000000000..be42ac49a185 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpolicy.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslPolicy struct { + CipherSuites *[]ApplicationGatewaySslCipherSuite `json:"cipherSuites,omitempty"` + DisabledSslProtocols *[]ApplicationGatewaySslProtocol `json:"disabledSslProtocols,omitempty"` + MinProtocolVersion *ApplicationGatewaySslProtocol `json:"minProtocolVersion,omitempty"` + PolicyName *ApplicationGatewaySslPolicyName `json:"policyName,omitempty"` + PolicyType *ApplicationGatewaySslPolicyType `json:"policyType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpredefinedpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpredefinedpolicy.go new file mode 100644 index 000000000000..a7932dc66dbe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpredefinedpolicy.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslPredefinedPolicy struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewaySslPredefinedPolicyPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpredefinedpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpredefinedpolicypropertiesformat.go new file mode 100644 index 000000000000..15702750dea7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpredefinedpolicypropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslPredefinedPolicyPropertiesFormat struct { + CipherSuites *[]ApplicationGatewaySslCipherSuite `json:"cipherSuites,omitempty"` + MinProtocolVersion *ApplicationGatewaySslProtocol `json:"minProtocolVersion,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslprofile.go new file mode 100644 index 000000000000..609877668f8c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslprofile.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewaySslProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslprofilepropertiesformat.go new file mode 100644 index 000000000000..a7c5ae2c8831 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslprofilepropertiesformat.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslProfilePropertiesFormat struct { + ClientAuthConfiguration *ApplicationGatewayClientAuthConfiguration `json:"clientAuthConfiguration,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SslPolicy *ApplicationGatewaySslPolicy `json:"sslPolicy,omitempty"` + TrustedClientCertificates *[]SubResource `json:"trustedClientCertificates,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedclientcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedclientcertificate.go new file mode 100644 index 000000000000..731b46860d77 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedclientcertificate.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayTrustedClientCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayTrustedClientCertificatePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedclientcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedclientcertificatepropertiesformat.go new file mode 100644 index 000000000000..67b5d91461dc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedclientcertificatepropertiesformat.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayTrustedClientCertificatePropertiesFormat struct { + ClientCertIssuerDN *string `json:"clientCertIssuerDN,omitempty"` + Data *string `json:"data,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ValidatedCertData *string `json:"validatedCertData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedrootcertificate.go new file mode 100644 index 000000000000..12343718b358 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedrootcertificate.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayTrustedRootCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayTrustedRootCertificatePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedrootcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedrootcertificatepropertiesformat.go new file mode 100644 index 000000000000..7aeb8e0a84e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedrootcertificatepropertiesformat.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayTrustedRootCertificatePropertiesFormat struct { + Data *string `json:"data,omitempty"` + KeyVaultSecretId *string `json:"keyVaultSecretId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlconfiguration.go new file mode 100644 index 000000000000..9c77d1808a21 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlconfiguration.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayURLConfiguration struct { + ModifiedPath *string `json:"modifiedPath,omitempty"` + ModifiedQueryString *string `json:"modifiedQueryString,omitempty"` + Reroute *bool `json:"reroute,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlpathmap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlpathmap.go new file mode 100644 index 000000000000..9ca546cb9579 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlpathmap.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayURLPathMap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayURLPathMapPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlpathmappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlpathmappropertiesformat.go new file mode 100644 index 000000000000..9c00ae43cdf9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlpathmappropertiesformat.go @@ -0,0 +1,14 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayURLPathMapPropertiesFormat struct { + DefaultBackendAddressPool *SubResource `json:"defaultBackendAddressPool,omitempty"` + DefaultBackendHTTPSettings *SubResource `json:"defaultBackendHttpSettings,omitempty"` + DefaultLoadDistributionPolicy *SubResource `json:"defaultLoadDistributionPolicy,omitempty"` + DefaultRedirectConfiguration *SubResource `json:"defaultRedirectConfiguration,omitempty"` + DefaultRewriteRuleSet *SubResource `json:"defaultRewriteRuleSet,omitempty"` + PathRules *[]ApplicationGatewayPathRule `json:"pathRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaywebapplicationfirewallconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaywebapplicationfirewallconfiguration.go new file mode 100644 index 000000000000..561512df449c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaywebapplicationfirewallconfiguration.go @@ -0,0 +1,17 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayWebApplicationFirewallConfiguration struct { + DisabledRuleGroups *[]ApplicationGatewayFirewallDisabledRuleGroup `json:"disabledRuleGroups,omitempty"` + Enabled bool `json:"enabled"` + Exclusions *[]ApplicationGatewayFirewallExclusion `json:"exclusions,omitempty"` + FileUploadLimitInMb *int64 `json:"fileUploadLimitInMb,omitempty"` + FirewallMode ApplicationGatewayFirewallMode `json:"firewallMode"` + MaxRequestBodySize *int64 `json:"maxRequestBodySize,omitempty"` + MaxRequestBodySizeInKb *int64 `json:"maxRequestBodySizeInKb,omitempty"` + RequestBodyCheck *bool `json:"requestBodyCheck,omitempty"` + RuleSetType string `json:"ruleSetType"` + RuleSetVersion string `json:"ruleSetVersion"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..71e4f60a5a08 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..c8593cff7762 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_backendaddresspool.go new file mode 100644 index 000000000000..1a7d2037c678 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..74aca7bc73d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..821207ea54b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ddossettings.go new file mode 100644 index 000000000000..afe28edd8fce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ddossettings.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_delegation.go new file mode 100644 index 000000000000..dde48e048ee9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_delegation.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlog.go new file mode 100644 index 000000000000..af3968a2f683 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlog.go @@ -0,0 +1,19 @@ +package applicationgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlogformatparameters.go new file mode 100644 index 000000000000..79d541b9318d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..a180a38c6fb1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_frontendipconfiguration.go new file mode 100644 index 000000000000..6af1ef349913 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package applicationgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..dfcbf3e5acac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..81f735923092 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_headervaluematcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_headervaluematcher.go new file mode 100644 index 000000000000..5c2f77f54e2d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_headervaluematcher.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HeaderValueMatcher struct { + IgnoreCase *bool `json:"ignoreCase,omitempty"` + Negate *bool `json:"negate,omitempty"` + Pattern *string `json:"pattern,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_inboundnatrule.go new file mode 100644 index 000000000000..e8326d63cddf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..e68b37342b31 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfiguration.go new file mode 100644 index 000000000000..3035f84c5962 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..edb884d27183 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..1c6df0dcda2c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..5de8de82f9ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_iptag.go new file mode 100644 index 000000000000..e423a8c05939 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_iptag.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..a4bb848daa55 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..ab1822cd6b6a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgateway.go new file mode 100644 index 000000000000..eb51b102cada --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgateway.go @@ -0,0 +1,20 @@ +package applicationgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..21ac8a2eca2b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgatewaysku.go new file mode 100644 index 000000000000..54ee08d24982 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natruleportmapping.go new file mode 100644 index 000000000000..1ca2ef21443e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterface.go new file mode 100644 index 000000000000..73b1cb41a522 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterface.go @@ -0,0 +1,19 @@ +package applicationgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..92961ce7d045 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..1be55bfe4695 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..fed49bbe9de6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..452ec816a207 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..302d4c3283d0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..8dc171864266 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..199c278ace04 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networksecuritygroup.go new file mode 100644 index 000000000000..14268c44ed07 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..e16fb5f6fb3c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpoint.go new file mode 100644 index 000000000000..4ec265596645 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpoint.go @@ -0,0 +1,19 @@ +package applicationgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointconnection.go new file mode 100644 index 000000000000..72911c666f83 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..baec08812d8e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..7cae9c3cf716 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..f1f5adead632 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointproperties.go new file mode 100644 index 000000000000..832b7f18a5d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkservice.go new file mode 100644 index 000000000000..238c6ee31c6f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package applicationgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..ee88d81eb06d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..26b1b21ad327 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..2d2970905b08 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..18d6fcdf24dc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..02fc04bab97f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..545a2473e0fc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddress.go new file mode 100644 index 000000000000..c17efae3e57c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddress.go @@ -0,0 +1,22 @@ +package applicationgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..4aeba6f0581e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..d714bdf3daa0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddresssku.go new file mode 100644 index 000000000000..976ba6d175a0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourcenavigationlink.go new file mode 100644 index 000000000000..0aeedfe5241e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..540e9b96c41a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourceset.go new file mode 100644 index 000000000000..05c6f87a0974 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourceset.go @@ -0,0 +1,8 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..aed6889cbaba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_route.go new file mode 100644 index 000000000000..8b16e63b0d46 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_route.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routepropertiesformat.go new file mode 100644 index 000000000000..e5c5f6988741 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routetable.go new file mode 100644 index 000000000000..6b3d63e8b6cd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routetable.go @@ -0,0 +1,14 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..af2c694b5dbc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_securityrule.go new file mode 100644 index 000000000000..ef187da7432b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_securityrule.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..c96607c5d206 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceassociationlink.go new file mode 100644 index 000000000000..fcd770e8b43f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..74146988cafb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..508b02893d33 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..3c9d04af717f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..3c52f56e9ead --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..0ccd3a839f33 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..edd49bd36a4e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..651b33530e8a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subnet.go new file mode 100644 index 000000000000..9bad3a3150cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subnet.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..d252ccc3e8c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subresource.go new file mode 100644 index 000000000000..5e7297f22b2b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subresource.go @@ -0,0 +1,8 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_tagsobject.go new file mode 100644 index 000000000000..d5962ed5647f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_tagsobject.go @@ -0,0 +1,8 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..657671157786 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..b9b39e7b346c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_virtualnetworktap.go new file mode 100644 index 000000000000..610065f3a8a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..a7db53f16295 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/predicates.go new file mode 100644 index 000000000000..c51e6f7b000d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/predicates.go @@ -0,0 +1,55 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p ApplicationGatewayOperationPredicate) Matches(input ApplicationGateway) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type ApplicationGatewaySslPredefinedPolicyOperationPredicate struct { + Id *string + Name *string +} + +func (p ApplicationGatewaySslPredefinedPolicyOperationPredicate) Matches(input ApplicationGatewaySslPredefinedPolicy) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/version.go new file mode 100644 index 000000000000..75cb5f6a69c4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/version.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/applicationgateways/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/README.md similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/README.md index 6fdb959e2d84..d3be5076b6bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests` Documentation -The `applicationgatewaywafdynamicmanifests` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `applicationgatewaywafdynamicmanifests` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/constants.go similarity index 79% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/constants.go index 0d7db7ea47d6..40d85530d248 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/constants.go @@ -153,6 +153,53 @@ func parseApplicationGatewayWafRuleActionTypes(input string) (*ApplicationGatewa return &out, nil } +type ApplicationGatewayWafRuleSensitivityTypes string + +const ( + ApplicationGatewayWafRuleSensitivityTypesHigh ApplicationGatewayWafRuleSensitivityTypes = "High" + ApplicationGatewayWafRuleSensitivityTypesLow ApplicationGatewayWafRuleSensitivityTypes = "Low" + ApplicationGatewayWafRuleSensitivityTypesMedium ApplicationGatewayWafRuleSensitivityTypes = "Medium" + ApplicationGatewayWafRuleSensitivityTypesNone ApplicationGatewayWafRuleSensitivityTypes = "None" +) + +func PossibleValuesForApplicationGatewayWafRuleSensitivityTypes() []string { + return []string{ + string(ApplicationGatewayWafRuleSensitivityTypesHigh), + string(ApplicationGatewayWafRuleSensitivityTypesLow), + string(ApplicationGatewayWafRuleSensitivityTypesMedium), + string(ApplicationGatewayWafRuleSensitivityTypesNone), + } +} + +func (s *ApplicationGatewayWafRuleSensitivityTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayWafRuleSensitivityTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayWafRuleSensitivityTypes(input string) (*ApplicationGatewayWafRuleSensitivityTypes, error) { + vals := map[string]ApplicationGatewayWafRuleSensitivityTypes{ + "high": ApplicationGatewayWafRuleSensitivityTypesHigh, + "low": ApplicationGatewayWafRuleSensitivityTypesLow, + "medium": ApplicationGatewayWafRuleSensitivityTypesMedium, + "none": ApplicationGatewayWafRuleSensitivityTypesNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayWafRuleSensitivityTypes(input) + return &out, nil +} + type ApplicationGatewayWafRuleStateTypes string const ( diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/method_defaultget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/method_defaultget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/method_defaultget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/method_defaultget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallmanifestruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallmanifestruleset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallmanifestruleset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallmanifestruleset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrule.go new file mode 100644 index 000000000000..30a847539f1c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrule.go @@ -0,0 +1,13 @@ +package applicationgatewaywafdynamicmanifests + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallRule struct { + Action *ApplicationGatewayWafRuleActionTypes `json:"action,omitempty"` + Description *string `json:"description,omitempty"` + RuleId int64 `json:"ruleId"` + RuleIdString *string `json:"ruleIdString,omitempty"` + Sensitivity *ApplicationGatewayWafRuleSensitivityTypes `json:"sensitivity,omitempty"` + State *ApplicationGatewayWafRuleStateTypes `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrulegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrulegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrulegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrulegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestpropertiesresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestpropertiesresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestpropertiesresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestpropertiesresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_defaultrulesetpropertyformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_defaultrulesetpropertyformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_defaultrulesetpropertyformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_defaultrulesetpropertyformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/version.go similarity index 83% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/version.go index 888716ce6f2c..34255b778968 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/version.go @@ -3,8 +3,8 @@ package applicationgatewaywafdynamicmanifests // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/applicationgatewaywafdynamicmanifests/2023-11-01" + return "hashicorp/go-azure-sdk/applicationgatewaywafdynamicmanifests/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/README.md new file mode 100644 index 000000000000..2acd6fec383b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups` Documentation + +The `applicationsecuritygroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups" +``` + + +### Client Initialization + +```go +client := applicationsecuritygroups.NewApplicationSecurityGroupsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ApplicationSecurityGroupsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") + +payload := applicationsecuritygroups.ApplicationSecurityGroup{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationSecurityGroupsClient.Delete` + +```go +ctx := context.TODO() +id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationSecurityGroupsClient.Get` + +```go +ctx := context.TODO() +id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationSecurityGroupsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApplicationSecurityGroupsClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApplicationSecurityGroupsClient.UpdateTags` + +```go +ctx := context.TODO() +id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") + +payload := applicationsecuritygroups.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/client.go new file mode 100644 index 000000000000..81de33d92a02 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/client.go @@ -0,0 +1,26 @@ +package applicationsecuritygroups + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupsClient struct { + Client *resourcemanager.Client +} + +func NewApplicationSecurityGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationSecurityGroupsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "applicationsecuritygroups", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ApplicationSecurityGroupsClient: %+v", err) + } + + return &ApplicationSecurityGroupsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/constants.go new file mode 100644 index 000000000000..a226eb6274e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/constants.go @@ -0,0 +1,57 @@ +package applicationsecuritygroups + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/id_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/id_applicationsecuritygroup.go new file mode 100644 index 000000000000..65cacde62c92 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/id_applicationsecuritygroup.go @@ -0,0 +1,130 @@ +package applicationsecuritygroups + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ApplicationSecurityGroupId{}) +} + +var _ resourceids.ResourceId = &ApplicationSecurityGroupId{} + +// ApplicationSecurityGroupId is a struct representing the Resource ID for a Application Security Group +type ApplicationSecurityGroupId struct { + SubscriptionId string + ResourceGroupName string + ApplicationSecurityGroupName string +} + +// NewApplicationSecurityGroupID returns a new ApplicationSecurityGroupId struct +func NewApplicationSecurityGroupID(subscriptionId string, resourceGroupName string, applicationSecurityGroupName string) ApplicationSecurityGroupId { + return ApplicationSecurityGroupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ApplicationSecurityGroupName: applicationSecurityGroupName, + } +} + +// ParseApplicationSecurityGroupID parses 'input' into a ApplicationSecurityGroupId +func ParseApplicationSecurityGroupID(input string) (*ApplicationSecurityGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApplicationSecurityGroupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApplicationSecurityGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseApplicationSecurityGroupIDInsensitively parses 'input' case-insensitively into a ApplicationSecurityGroupId +// note: this method should only be used for API response data and not user input +func ParseApplicationSecurityGroupIDInsensitively(input string) (*ApplicationSecurityGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApplicationSecurityGroupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApplicationSecurityGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ApplicationSecurityGroupId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ApplicationSecurityGroupName, ok = input.Parsed["applicationSecurityGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "applicationSecurityGroupName", input) + } + + return nil +} + +// ValidateApplicationSecurityGroupID checks that 'input' can be parsed as a Application Security Group ID +func ValidateApplicationSecurityGroupID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseApplicationSecurityGroupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Application Security Group ID +func (id ApplicationSecurityGroupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/applicationSecurityGroups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ApplicationSecurityGroupName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Application Security Group ID +func (id ApplicationSecurityGroupId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticApplicationSecurityGroups", "applicationSecurityGroups", "applicationSecurityGroups"), + resourceids.UserSpecifiedSegment("applicationSecurityGroupName", "applicationSecurityGroupName"), + } +} + +// String returns a human-readable description of this Application Security Group ID +func (id ApplicationSecurityGroupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Application Security Group Name: %q", id.ApplicationSecurityGroupName), + } + return fmt.Sprintf("Application Security Group (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_createorupdate.go new file mode 100644 index 000000000000..f2b60b46a6a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_createorupdate.go @@ -0,0 +1,75 @@ +package applicationsecuritygroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationSecurityGroup +} + +// CreateOrUpdate ... +func (c ApplicationSecurityGroupsClient) CreateOrUpdate(ctx context.Context, id ApplicationSecurityGroupId, input ApplicationSecurityGroup) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ApplicationSecurityGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id ApplicationSecurityGroupId, input ApplicationSecurityGroup) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_delete.go new file mode 100644 index 000000000000..6d16cb628e38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_delete.go @@ -0,0 +1,71 @@ +package applicationsecuritygroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ApplicationSecurityGroupsClient) Delete(ctx context.Context, id ApplicationSecurityGroupId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ApplicationSecurityGroupsClient) DeleteThenPoll(ctx context.Context, id ApplicationSecurityGroupId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_get.go new file mode 100644 index 000000000000..88fdcf2df15b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_get.go @@ -0,0 +1,53 @@ +package applicationsecuritygroups + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationSecurityGroup +} + +// Get ... +func (c ApplicationSecurityGroupsClient) Get(ctx context.Context, id ApplicationSecurityGroupId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ApplicationSecurityGroup + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_list.go new file mode 100644 index 000000000000..1e8cc5c05ebf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_list.go @@ -0,0 +1,106 @@ +package applicationsecuritygroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ApplicationSecurityGroup +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ApplicationSecurityGroup +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ApplicationSecurityGroupsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationSecurityGroups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ApplicationSecurityGroup `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ApplicationSecurityGroupsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, ApplicationSecurityGroupOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ApplicationSecurityGroupsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ApplicationSecurityGroupOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ApplicationSecurityGroup, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_listall.go new file mode 100644 index 000000000000..b0f38c737fac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_listall.go @@ -0,0 +1,106 @@ +package applicationsecuritygroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ApplicationSecurityGroup +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []ApplicationSecurityGroup +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c ApplicationSecurityGroupsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationSecurityGroups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ApplicationSecurityGroup `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c ApplicationSecurityGroupsClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, ApplicationSecurityGroupOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ApplicationSecurityGroupsClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ApplicationSecurityGroupOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]ApplicationSecurityGroup, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_updatetags.go new file mode 100644 index 000000000000..3337e0dc239b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_updatetags.go @@ -0,0 +1,57 @@ +package applicationsecuritygroups + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationSecurityGroup +} + +// UpdateTags ... +func (c ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, id ApplicationSecurityGroupId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ApplicationSecurityGroup + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..56c89e2151e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package applicationsecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..c54772935dae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package applicationsecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_tagsobject.go new file mode 100644 index 000000000000..b945e6c9cdf0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_tagsobject.go @@ -0,0 +1,8 @@ +package applicationsecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/predicates.go new file mode 100644 index 000000000000..6ea534ecd892 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/predicates.go @@ -0,0 +1,37 @@ +package applicationsecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p ApplicationSecurityGroupOperationPredicate) Matches(input ApplicationSecurityGroup) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/version.go new file mode 100644 index 000000000000..5aa09750d510 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/version.go @@ -0,0 +1,10 @@ +package applicationsecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/applicationsecuritygroups/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/README.md similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/README.md index f5e22d4c56ea..d5441dd3d42b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations` Documentation -The `availabledelegations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `availabledelegations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/id_providerlocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/id_providerlocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/id_providerlocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/method_availabledelegationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/method_availabledelegationslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/method_availabledelegationslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/method_availabledelegationslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/method_availableresourcegroupdelegationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/method_availableresourcegroupdelegationslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/method_availableresourcegroupdelegationslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/method_availableresourcegroupdelegationslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/model_availabledelegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/model_availabledelegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/model_availabledelegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/model_availabledelegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/version.go index d0e5dfca13d1..689dcde82fb5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/version.go @@ -3,8 +3,8 @@ package availabledelegations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/availabledelegations/2023-11-01" + return "hashicorp/go-azure-sdk/availabledelegations/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/README.md similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/README.md index 6608e57b9fad..ad6706a27ced 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases` Documentation -The `availableservicealiases` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `availableservicealiases` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/id_providerlocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/id_providerlocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/id_providerlocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/model_availableservicealias.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/model_availableservicealias.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/model_availableservicealias.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/model_availableservicealias.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/version.go index 4ee314520ba2..264112b04253 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/version.go @@ -3,8 +3,8 @@ package availableservicealiases // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/availableservicealiases/2023-11-01" + return "hashicorp/go-azure-sdk/availableservicealiases/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/README.md new file mode 100644 index 000000000000..b36c2aecafb1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/README.md @@ -0,0 +1,146 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls` Documentation + +The `azurefirewalls` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" +``` + + +### Client Initialization + +```go +client := azurefirewalls.NewAzureFirewallsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `AzureFirewallsClient.AzureFirewallsListLearnedPrefixes` + +```go +ctx := context.TODO() +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") + +if err := client.AzureFirewallsListLearnedPrefixesThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `AzureFirewallsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") + +payload := azurefirewalls.AzureFirewall{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `AzureFirewallsClient.Delete` + +```go +ctx := context.TODO() +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `AzureFirewallsClient.Get` + +```go +ctx := context.TODO() +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AzureFirewallsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AzureFirewallsClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AzureFirewallsClient.PacketCapture` + +```go +ctx := context.TODO() +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") + +payload := azurefirewalls.FirewallPacketCaptureParameters{ + // ... +} + + +if err := client.PacketCaptureThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `AzureFirewallsClient.UpdateTags` + +```go +ctx := context.TODO() +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") + +payload := azurefirewalls.TagsObject{ + // ... +} + + +if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/client.go new file mode 100644 index 000000000000..02df961b70b6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/client.go @@ -0,0 +1,26 @@ +package azurefirewalls + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallsClient struct { + Client *resourcemanager.Client +} + +func NewAzureFirewallsClientWithBaseURI(sdkApi sdkEnv.Api) (*AzureFirewallsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "azurefirewalls", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating AzureFirewallsClient: %+v", err) + } + + return &AzureFirewallsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/constants.go new file mode 100644 index 000000000000..d7a3af8fb71f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/constants.go @@ -0,0 +1,412 @@ +package azurefirewalls + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallApplicationRuleProtocolType string + +const ( + AzureFirewallApplicationRuleProtocolTypeHTTP AzureFirewallApplicationRuleProtocolType = "Http" + AzureFirewallApplicationRuleProtocolTypeHTTPS AzureFirewallApplicationRuleProtocolType = "Https" + AzureFirewallApplicationRuleProtocolTypeMssql AzureFirewallApplicationRuleProtocolType = "Mssql" +) + +func PossibleValuesForAzureFirewallApplicationRuleProtocolType() []string { + return []string{ + string(AzureFirewallApplicationRuleProtocolTypeHTTP), + string(AzureFirewallApplicationRuleProtocolTypeHTTPS), + string(AzureFirewallApplicationRuleProtocolTypeMssql), + } +} + +func (s *AzureFirewallApplicationRuleProtocolType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAzureFirewallApplicationRuleProtocolType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAzureFirewallApplicationRuleProtocolType(input string) (*AzureFirewallApplicationRuleProtocolType, error) { + vals := map[string]AzureFirewallApplicationRuleProtocolType{ + "http": AzureFirewallApplicationRuleProtocolTypeHTTP, + "https": AzureFirewallApplicationRuleProtocolTypeHTTPS, + "mssql": AzureFirewallApplicationRuleProtocolTypeMssql, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureFirewallApplicationRuleProtocolType(input) + return &out, nil +} + +type AzureFirewallNatRCActionType string + +const ( + AzureFirewallNatRCActionTypeDnat AzureFirewallNatRCActionType = "Dnat" + AzureFirewallNatRCActionTypeSnat AzureFirewallNatRCActionType = "Snat" +) + +func PossibleValuesForAzureFirewallNatRCActionType() []string { + return []string{ + string(AzureFirewallNatRCActionTypeDnat), + string(AzureFirewallNatRCActionTypeSnat), + } +} + +func (s *AzureFirewallNatRCActionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAzureFirewallNatRCActionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAzureFirewallNatRCActionType(input string) (*AzureFirewallNatRCActionType, error) { + vals := map[string]AzureFirewallNatRCActionType{ + "dnat": AzureFirewallNatRCActionTypeDnat, + "snat": AzureFirewallNatRCActionTypeSnat, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureFirewallNatRCActionType(input) + return &out, nil +} + +type AzureFirewallNetworkRuleProtocol string + +const ( + AzureFirewallNetworkRuleProtocolAny AzureFirewallNetworkRuleProtocol = "Any" + AzureFirewallNetworkRuleProtocolICMP AzureFirewallNetworkRuleProtocol = "ICMP" + AzureFirewallNetworkRuleProtocolTCP AzureFirewallNetworkRuleProtocol = "TCP" + AzureFirewallNetworkRuleProtocolUDP AzureFirewallNetworkRuleProtocol = "UDP" +) + +func PossibleValuesForAzureFirewallNetworkRuleProtocol() []string { + return []string{ + string(AzureFirewallNetworkRuleProtocolAny), + string(AzureFirewallNetworkRuleProtocolICMP), + string(AzureFirewallNetworkRuleProtocolTCP), + string(AzureFirewallNetworkRuleProtocolUDP), + } +} + +func (s *AzureFirewallNetworkRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAzureFirewallNetworkRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAzureFirewallNetworkRuleProtocol(input string) (*AzureFirewallNetworkRuleProtocol, error) { + vals := map[string]AzureFirewallNetworkRuleProtocol{ + "any": AzureFirewallNetworkRuleProtocolAny, + "icmp": AzureFirewallNetworkRuleProtocolICMP, + "tcp": AzureFirewallNetworkRuleProtocolTCP, + "udp": AzureFirewallNetworkRuleProtocolUDP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureFirewallNetworkRuleProtocol(input) + return &out, nil +} + +type AzureFirewallPacketCaptureFlagsType string + +const ( + AzureFirewallPacketCaptureFlagsTypeAck AzureFirewallPacketCaptureFlagsType = "ack" + AzureFirewallPacketCaptureFlagsTypeFin AzureFirewallPacketCaptureFlagsType = "fin" + AzureFirewallPacketCaptureFlagsTypePush AzureFirewallPacketCaptureFlagsType = "push" + AzureFirewallPacketCaptureFlagsTypeRst AzureFirewallPacketCaptureFlagsType = "rst" + AzureFirewallPacketCaptureFlagsTypeSyn AzureFirewallPacketCaptureFlagsType = "syn" + AzureFirewallPacketCaptureFlagsTypeUrg AzureFirewallPacketCaptureFlagsType = "urg" +) + +func PossibleValuesForAzureFirewallPacketCaptureFlagsType() []string { + return []string{ + string(AzureFirewallPacketCaptureFlagsTypeAck), + string(AzureFirewallPacketCaptureFlagsTypeFin), + string(AzureFirewallPacketCaptureFlagsTypePush), + string(AzureFirewallPacketCaptureFlagsTypeRst), + string(AzureFirewallPacketCaptureFlagsTypeSyn), + string(AzureFirewallPacketCaptureFlagsTypeUrg), + } +} + +func (s *AzureFirewallPacketCaptureFlagsType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAzureFirewallPacketCaptureFlagsType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAzureFirewallPacketCaptureFlagsType(input string) (*AzureFirewallPacketCaptureFlagsType, error) { + vals := map[string]AzureFirewallPacketCaptureFlagsType{ + "ack": AzureFirewallPacketCaptureFlagsTypeAck, + "fin": AzureFirewallPacketCaptureFlagsTypeFin, + "push": AzureFirewallPacketCaptureFlagsTypePush, + "rst": AzureFirewallPacketCaptureFlagsTypeRst, + "syn": AzureFirewallPacketCaptureFlagsTypeSyn, + "urg": AzureFirewallPacketCaptureFlagsTypeUrg, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureFirewallPacketCaptureFlagsType(input) + return &out, nil +} + +type AzureFirewallRCActionType string + +const ( + AzureFirewallRCActionTypeAllow AzureFirewallRCActionType = "Allow" + AzureFirewallRCActionTypeDeny AzureFirewallRCActionType = "Deny" +) + +func PossibleValuesForAzureFirewallRCActionType() []string { + return []string{ + string(AzureFirewallRCActionTypeAllow), + string(AzureFirewallRCActionTypeDeny), + } +} + +func (s *AzureFirewallRCActionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAzureFirewallRCActionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAzureFirewallRCActionType(input string) (*AzureFirewallRCActionType, error) { + vals := map[string]AzureFirewallRCActionType{ + "allow": AzureFirewallRCActionTypeAllow, + "deny": AzureFirewallRCActionTypeDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureFirewallRCActionType(input) + return &out, nil +} + +type AzureFirewallSkuName string + +const ( + AzureFirewallSkuNameAZFWHub AzureFirewallSkuName = "AZFW_Hub" + AzureFirewallSkuNameAZFWVNet AzureFirewallSkuName = "AZFW_VNet" +) + +func PossibleValuesForAzureFirewallSkuName() []string { + return []string{ + string(AzureFirewallSkuNameAZFWHub), + string(AzureFirewallSkuNameAZFWVNet), + } +} + +func (s *AzureFirewallSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAzureFirewallSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAzureFirewallSkuName(input string) (*AzureFirewallSkuName, error) { + vals := map[string]AzureFirewallSkuName{ + "azfw_hub": AzureFirewallSkuNameAZFWHub, + "azfw_vnet": AzureFirewallSkuNameAZFWVNet, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureFirewallSkuName(input) + return &out, nil +} + +type AzureFirewallSkuTier string + +const ( + AzureFirewallSkuTierBasic AzureFirewallSkuTier = "Basic" + AzureFirewallSkuTierPremium AzureFirewallSkuTier = "Premium" + AzureFirewallSkuTierStandard AzureFirewallSkuTier = "Standard" +) + +func PossibleValuesForAzureFirewallSkuTier() []string { + return []string{ + string(AzureFirewallSkuTierBasic), + string(AzureFirewallSkuTierPremium), + string(AzureFirewallSkuTierStandard), + } +} + +func (s *AzureFirewallSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAzureFirewallSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAzureFirewallSkuTier(input string) (*AzureFirewallSkuTier, error) { + vals := map[string]AzureFirewallSkuTier{ + "basic": AzureFirewallSkuTierBasic, + "premium": AzureFirewallSkuTierPremium, + "standard": AzureFirewallSkuTierStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureFirewallSkuTier(input) + return &out, nil +} + +type AzureFirewallThreatIntelMode string + +const ( + AzureFirewallThreatIntelModeAlert AzureFirewallThreatIntelMode = "Alert" + AzureFirewallThreatIntelModeDeny AzureFirewallThreatIntelMode = "Deny" + AzureFirewallThreatIntelModeOff AzureFirewallThreatIntelMode = "Off" +) + +func PossibleValuesForAzureFirewallThreatIntelMode() []string { + return []string{ + string(AzureFirewallThreatIntelModeAlert), + string(AzureFirewallThreatIntelModeDeny), + string(AzureFirewallThreatIntelModeOff), + } +} + +func (s *AzureFirewallThreatIntelMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAzureFirewallThreatIntelMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAzureFirewallThreatIntelMode(input string) (*AzureFirewallThreatIntelMode, error) { + vals := map[string]AzureFirewallThreatIntelMode{ + "alert": AzureFirewallThreatIntelModeAlert, + "deny": AzureFirewallThreatIntelModeDeny, + "off": AzureFirewallThreatIntelModeOff, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureFirewallThreatIntelMode(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/id_azurefirewall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/id_azurefirewall.go new file mode 100644 index 000000000000..5c55ccb6a6a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/id_azurefirewall.go @@ -0,0 +1,130 @@ +package azurefirewalls + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&AzureFirewallId{}) +} + +var _ resourceids.ResourceId = &AzureFirewallId{} + +// AzureFirewallId is a struct representing the Resource ID for a Azure Firewall +type AzureFirewallId struct { + SubscriptionId string + ResourceGroupName string + AzureFirewallName string +} + +// NewAzureFirewallID returns a new AzureFirewallId struct +func NewAzureFirewallID(subscriptionId string, resourceGroupName string, azureFirewallName string) AzureFirewallId { + return AzureFirewallId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + AzureFirewallName: azureFirewallName, + } +} + +// ParseAzureFirewallID parses 'input' into a AzureFirewallId +func ParseAzureFirewallID(input string) (*AzureFirewallId, error) { + parser := resourceids.NewParserFromResourceIdType(&AzureFirewallId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := AzureFirewallId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseAzureFirewallIDInsensitively parses 'input' case-insensitively into a AzureFirewallId +// note: this method should only be used for API response data and not user input +func ParseAzureFirewallIDInsensitively(input string) (*AzureFirewallId, error) { + parser := resourceids.NewParserFromResourceIdType(&AzureFirewallId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := AzureFirewallId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *AzureFirewallId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.AzureFirewallName, ok = input.Parsed["azureFirewallName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "azureFirewallName", input) + } + + return nil +} + +// ValidateAzureFirewallID checks that 'input' can be parsed as a Azure Firewall ID +func ValidateAzureFirewallID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseAzureFirewallID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Azure Firewall ID +func (id AzureFirewallId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/azureFirewalls/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.AzureFirewallName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Azure Firewall ID +func (id AzureFirewallId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticAzureFirewalls", "azureFirewalls", "azureFirewalls"), + resourceids.UserSpecifiedSegment("azureFirewallName", "azureFirewallName"), + } +} + +// String returns a human-readable description of this Azure Firewall ID +func (id AzureFirewallId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Azure Firewall Name: %q", id.AzureFirewallName), + } + return fmt.Sprintf("Azure Firewall (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_azurefirewallslistlearnedprefixes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_azurefirewallslistlearnedprefixes.go new file mode 100644 index 000000000000..79c6c0ccfd69 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_azurefirewallslistlearnedprefixes.go @@ -0,0 +1,71 @@ +package azurefirewalls + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallsListLearnedPrefixesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *IPPrefixesList +} + +// AzureFirewallsListLearnedPrefixes ... +func (c AzureFirewallsClient) AzureFirewallsListLearnedPrefixes(ctx context.Context, id AzureFirewallId) (result AzureFirewallsListLearnedPrefixesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/learnedIPPrefixes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// AzureFirewallsListLearnedPrefixesThenPoll performs AzureFirewallsListLearnedPrefixes then polls until it's completed +func (c AzureFirewallsClient) AzureFirewallsListLearnedPrefixesThenPoll(ctx context.Context, id AzureFirewallId) error { + result, err := c.AzureFirewallsListLearnedPrefixes(ctx, id) + if err != nil { + return fmt.Errorf("performing AzureFirewallsListLearnedPrefixes: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after AzureFirewallsListLearnedPrefixes: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_createorupdate.go new file mode 100644 index 000000000000..fdd7520026c8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_createorupdate.go @@ -0,0 +1,75 @@ +package azurefirewalls + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *AzureFirewall +} + +// CreateOrUpdate ... +func (c AzureFirewallsClient) CreateOrUpdate(ctx context.Context, id AzureFirewallId, input AzureFirewall) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c AzureFirewallsClient) CreateOrUpdateThenPoll(ctx context.Context, id AzureFirewallId, input AzureFirewall) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_delete.go new file mode 100644 index 000000000000..04fddc417236 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_delete.go @@ -0,0 +1,71 @@ +package azurefirewalls + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c AzureFirewallsClient) Delete(ctx context.Context, id AzureFirewallId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c AzureFirewallsClient) DeleteThenPoll(ctx context.Context, id AzureFirewallId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_get.go new file mode 100644 index 000000000000..e98027949215 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_get.go @@ -0,0 +1,53 @@ +package azurefirewalls + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *AzureFirewall +} + +// Get ... +func (c AzureFirewallsClient) Get(ctx context.Context, id AzureFirewallId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model AzureFirewall + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_list.go new file mode 100644 index 000000000000..305a4b553ef1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_list.go @@ -0,0 +1,106 @@ +package azurefirewalls + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]AzureFirewall +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []AzureFirewall +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c AzureFirewallsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/azureFirewalls", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]AzureFirewall `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c AzureFirewallsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, AzureFirewallOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AzureFirewallsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate AzureFirewallOperationPredicate) (result ListCompleteResult, err error) { + items := make([]AzureFirewall, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_listall.go new file mode 100644 index 000000000000..be602f8bbd50 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_listall.go @@ -0,0 +1,106 @@ +package azurefirewalls + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]AzureFirewall +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []AzureFirewall +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c AzureFirewallsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/azureFirewalls", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]AzureFirewall `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c AzureFirewallsClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, AzureFirewallOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AzureFirewallsClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate AzureFirewallOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]AzureFirewall, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_packetcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_packetcapture.go new file mode 100644 index 000000000000..a2b211da6c7f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_packetcapture.go @@ -0,0 +1,73 @@ +package azurefirewalls + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PacketCaptureOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// PacketCapture ... +func (c AzureFirewallsClient) PacketCapture(ctx context.Context, id AzureFirewallId, input FirewallPacketCaptureParameters) (result PacketCaptureOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/packetCapture", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// PacketCaptureThenPoll performs PacketCapture then polls until it's completed +func (c AzureFirewallsClient) PacketCaptureThenPoll(ctx context.Context, id AzureFirewallId, input FirewallPacketCaptureParameters) error { + result, err := c.PacketCapture(ctx, id, input) + if err != nil { + return fmt.Errorf("performing PacketCapture: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after PacketCapture: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_updatetags.go new file mode 100644 index 000000000000..1d404977af9b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_updatetags.go @@ -0,0 +1,75 @@ +package azurefirewalls + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *AzureFirewall +} + +// UpdateTags ... +func (c AzureFirewallsClient) UpdateTags(ctx context.Context, id AzureFirewallId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateTagsThenPoll performs UpdateTags then polls until it's completed +func (c AzureFirewallsClient) UpdateTagsThenPoll(ctx context.Context, id AzureFirewallId, input TagsObject) error { + result, err := c.UpdateTags(ctx, id, input) + if err != nil { + return fmt.Errorf("performing UpdateTags: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after UpdateTags: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewall.go new file mode 100644 index 000000000000..da4d4ccf5f75 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewall.go @@ -0,0 +1,19 @@ +package azurefirewalls + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewall struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *AzureFirewallPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrule.go new file mode 100644 index 000000000000..c74f6235d090 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrule.go @@ -0,0 +1,14 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallApplicationRule struct { + Description *string `json:"description,omitempty"` + FqdnTags *[]string `json:"fqdnTags,omitempty"` + Name *string `json:"name,omitempty"` + Protocols *[]AzureFirewallApplicationRuleProtocol `json:"protocols,omitempty"` + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` + TargetFqdns *[]string `json:"targetFqdns,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrulecollection.go new file mode 100644 index 000000000000..0307e6e7b332 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrulecollection.go @@ -0,0 +1,11 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallApplicationRuleCollection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *AzureFirewallApplicationRuleCollectionPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrulecollectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrulecollectionpropertiesformat.go new file mode 100644 index 000000000000..bd5d09f330dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrulecollectionpropertiesformat.go @@ -0,0 +1,11 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallApplicationRuleCollectionPropertiesFormat struct { + Action *AzureFirewallRCAction `json:"action,omitempty"` + Priority *int64 `json:"priority,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Rules *[]AzureFirewallApplicationRule `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationruleprotocol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationruleprotocol.go new file mode 100644 index 000000000000..8ea63b2ef924 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationruleprotocol.go @@ -0,0 +1,9 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallApplicationRuleProtocol struct { + Port *int64 `json:"port,omitempty"` + ProtocolType *AzureFirewallApplicationRuleProtocolType `json:"protocolType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallautoscaleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallautoscaleconfiguration.go new file mode 100644 index 000000000000..39e71317305d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallautoscaleconfiguration.go @@ -0,0 +1,9 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallAutoscaleConfiguration struct { + MaxCapacity *int64 `json:"maxCapacity,omitempty"` + MinCapacity *int64 `json:"minCapacity,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipconfiguration.go new file mode 100644 index 000000000000..3456ba0b1ad9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipconfiguration.go @@ -0,0 +1,12 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *AzureFirewallIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..cca790693378 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipconfigurationpropertiesformat.go @@ -0,0 +1,11 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallIPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipgroups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipgroups.go new file mode 100644 index 000000000000..e26c8540a653 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipgroups.go @@ -0,0 +1,9 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallIPGroups struct { + ChangeNumber *string `json:"changeNumber,omitempty"` + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrcaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrcaction.go new file mode 100644 index 000000000000..9c9250aef391 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrcaction.go @@ -0,0 +1,8 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallNatRCAction struct { + Type *AzureFirewallNatRCActionType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrule.go new file mode 100644 index 000000000000..70c0d009eabb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrule.go @@ -0,0 +1,17 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallNatRule struct { + Description *string `json:"description,omitempty"` + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + Name *string `json:"name,omitempty"` + Protocols *[]AzureFirewallNetworkRuleProtocol `json:"protocols,omitempty"` + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` + TranslatedAddress *string `json:"translatedAddress,omitempty"` + TranslatedFqdn *string `json:"translatedFqdn,omitempty"` + TranslatedPort *string `json:"translatedPort,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrulecollection.go new file mode 100644 index 000000000000..d06cf19e3596 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrulecollection.go @@ -0,0 +1,11 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallNatRuleCollection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *AzureFirewallNatRuleCollectionProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrulecollectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrulecollectionproperties.go new file mode 100644 index 000000000000..774ac6902bc1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrulecollectionproperties.go @@ -0,0 +1,11 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallNatRuleCollectionProperties struct { + Action *AzureFirewallNatRCAction `json:"action,omitempty"` + Priority *int64 `json:"priority,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Rules *[]AzureFirewallNatRule `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrule.go new file mode 100644 index 000000000000..6833c1f75097 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrule.go @@ -0,0 +1,16 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallNetworkRule struct { + Description *string `json:"description,omitempty"` + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + DestinationFqdns *[]string `json:"destinationFqdns,omitempty"` + DestinationIPGroups *[]string `json:"destinationIpGroups,omitempty"` + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + Name *string `json:"name,omitempty"` + Protocols *[]AzureFirewallNetworkRuleProtocol `json:"protocols,omitempty"` + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrulecollection.go new file mode 100644 index 000000000000..ea5f2ba0d2b1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrulecollection.go @@ -0,0 +1,11 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallNetworkRuleCollection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *AzureFirewallNetworkRuleCollectionPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrulecollectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrulecollectionpropertiesformat.go new file mode 100644 index 000000000000..be71e0633705 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrulecollectionpropertiesformat.go @@ -0,0 +1,11 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallNetworkRuleCollectionPropertiesFormat struct { + Action *AzureFirewallRCAction `json:"action,omitempty"` + Priority *int64 `json:"priority,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Rules *[]AzureFirewallNetworkRule `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpacketcaptureflags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpacketcaptureflags.go new file mode 100644 index 000000000000..edcc08e5590b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpacketcaptureflags.go @@ -0,0 +1,8 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallPacketCaptureFlags struct { + Type *AzureFirewallPacketCaptureFlagsType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpacketcapturerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpacketcapturerule.go new file mode 100644 index 000000000000..4d9921e32435 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpacketcapturerule.go @@ -0,0 +1,10 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallPacketCaptureRule struct { + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + Destinations *[]string `json:"destinations,omitempty"` + Sources *[]string `json:"sources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpropertiesformat.go new file mode 100644 index 000000000000..61ffc25c5854 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpropertiesformat.go @@ -0,0 +1,21 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallPropertiesFormat struct { + AdditionalProperties *map[string]string `json:"additionalProperties,omitempty"` + ApplicationRuleCollections *[]AzureFirewallApplicationRuleCollection `json:"applicationRuleCollections,omitempty"` + AutoscaleConfiguration *AzureFirewallAutoscaleConfiguration `json:"autoscaleConfiguration,omitempty"` + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` + HubIPAddresses *HubIPAddresses `json:"hubIPAddresses,omitempty"` + IPConfigurations *[]AzureFirewallIPConfiguration `json:"ipConfigurations,omitempty"` + IPGroups *[]AzureFirewallIPGroups `json:"ipGroups,omitempty"` + ManagementIPConfiguration *AzureFirewallIPConfiguration `json:"managementIpConfiguration,omitempty"` + NatRuleCollections *[]AzureFirewallNatRuleCollection `json:"natRuleCollections,omitempty"` + NetworkRuleCollections *[]AzureFirewallNetworkRuleCollection `json:"networkRuleCollections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Sku *AzureFirewallSku `json:"sku,omitempty"` + ThreatIntelMode *AzureFirewallThreatIntelMode `json:"threatIntelMode,omitempty"` + VirtualHub *SubResource `json:"virtualHub,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpublicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpublicipaddress.go new file mode 100644 index 000000000000..c5dff4f3fffe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpublicipaddress.go @@ -0,0 +1,8 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallPublicIPAddress struct { + Address *string `json:"address,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallrcaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallrcaction.go new file mode 100644 index 000000000000..752c166b62bc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallrcaction.go @@ -0,0 +1,8 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallRCAction struct { + Type *AzureFirewallRCActionType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallsku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallsku.go new file mode 100644 index 000000000000..46f81c15dbcf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallsku.go @@ -0,0 +1,9 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallSku struct { + Name *AzureFirewallSkuName `json:"name,omitempty"` + Tier *AzureFirewallSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_firewallpacketcaptureparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_firewallpacketcaptureparameters.go new file mode 100644 index 000000000000..0fab56fc1d54 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_firewallpacketcaptureparameters.go @@ -0,0 +1,14 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPacketCaptureParameters struct { + DurationInSeconds *int64 `json:"durationInSeconds,omitempty"` + FileName *string `json:"fileName,omitempty"` + Filters *[]AzureFirewallPacketCaptureRule `json:"filters,omitempty"` + Flags *[]AzureFirewallPacketCaptureFlags `json:"flags,omitempty"` + NumberOfPacketsToCapture *int64 `json:"numberOfPacketsToCapture,omitempty"` + Protocol *AzureFirewallNetworkRuleProtocol `json:"protocol,omitempty"` + SasURL *string `json:"sasUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_hubipaddresses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_hubipaddresses.go new file mode 100644 index 000000000000..2fa8e41de6b8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_hubipaddresses.go @@ -0,0 +1,9 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubIPAddresses struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PublicIPs *HubPublicIPAddresses `json:"publicIPs,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_hubpublicipaddresses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_hubpublicipaddresses.go new file mode 100644 index 000000000000..48ee31328462 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_hubpublicipaddresses.go @@ -0,0 +1,9 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubPublicIPAddresses struct { + Addresses *[]AzureFirewallPublicIPAddress `json:"addresses,omitempty"` + Count *int64 `json:"count,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_ipprefixeslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_ipprefixeslist.go new file mode 100644 index 000000000000..3d2ea0d9a9e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_ipprefixeslist.go @@ -0,0 +1,8 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPPrefixesList struct { + IPPrefixes *[]string `json:"ipPrefixes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_subresource.go new file mode 100644 index 000000000000..3a39f2458c4f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_subresource.go @@ -0,0 +1,8 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_tagsobject.go new file mode 100644 index 000000000000..3b70ce55bcdc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_tagsobject.go @@ -0,0 +1,8 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/predicates.go new file mode 100644 index 000000000000..68ca8da5623b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/predicates.go @@ -0,0 +1,37 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p AzureFirewallOperationPredicate) Matches(input AzureFirewall) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/version.go new file mode 100644 index 000000000000..68d67e3990b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/version.go @@ -0,0 +1,10 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/azurefirewalls/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/README.md similarity index 98% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/README.md index 7e49393f26a5..82b0359a400a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts` Documentation -The `bastionhosts` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `bastionhosts` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/constants.go similarity index 97% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/constants.go index 0b0ffa8a83a0..3822668195b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/constants.go @@ -55,6 +55,7 @@ type BastionHostSkuName string const ( BastionHostSkuNameBasic BastionHostSkuName = "Basic" BastionHostSkuNameDeveloper BastionHostSkuName = "Developer" + BastionHostSkuNamePremium BastionHostSkuName = "Premium" BastionHostSkuNameStandard BastionHostSkuName = "Standard" ) @@ -62,6 +63,7 @@ func PossibleValuesForBastionHostSkuName() []string { return []string{ string(BastionHostSkuNameBasic), string(BastionHostSkuNameDeveloper), + string(BastionHostSkuNamePremium), string(BastionHostSkuNameStandard), } } @@ -83,6 +85,7 @@ func parseBastionHostSkuName(input string) (*BastionHostSkuName, error) { vals := map[string]BastionHostSkuName{ "basic": BastionHostSkuNameBasic, "developer": BastionHostSkuNameDeveloper, + "premium": BastionHostSkuNamePremium, "standard": BastionHostSkuNameStandard, } if v, ok := vals[strings.ToLower(input)]; ok { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/id_bastionhost.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/id_bastionhost.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/id_bastionhost.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/id_bastionhost.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_deletebastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_deletebastionshareablelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_deletebastionshareablelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_deletebastionshareablelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_deletebastionshareablelinkbytoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_deletebastionshareablelinkbytoken.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_deletebastionshareablelinkbytoken.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_deletebastionshareablelinkbytoken.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_disconnectactivesessions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_disconnectactivesessions.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_disconnectactivesessions.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_disconnectactivesessions.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_getactivesessions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_getactivesessions.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_getactivesessions.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_getactivesessions.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_getbastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_getbastionshareablelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_getbastionshareablelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_getbastionshareablelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_putbastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_putbastionshareablelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_putbastionshareablelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_putbastionshareablelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionactivesession.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionactivesession.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionactivesession.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionactivesession.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhost.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhost.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhost.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhost.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostpropertiesformat.go new file mode 100644 index 000000000000..d45d86671abc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostpropertiesformat.go @@ -0,0 +1,20 @@ +package bastionhosts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BastionHostPropertiesFormat struct { + DisableCopyPaste *bool `json:"disableCopyPaste,omitempty"` + DnsName *string `json:"dnsName,omitempty"` + EnableFileCopy *bool `json:"enableFileCopy,omitempty"` + EnableIPConnect *bool `json:"enableIpConnect,omitempty"` + EnableKerberos *bool `json:"enableKerberos,omitempty"` + EnableSessionRecording *bool `json:"enableSessionRecording,omitempty"` + EnableShareableLink *bool `json:"enableShareableLink,omitempty"` + EnableTunneling *bool `json:"enableTunneling,omitempty"` + IPConfigurations *[]BastionHostIPConfiguration `json:"ipConfigurations,omitempty"` + NetworkAcls *BastionHostPropertiesFormatNetworkAcls `json:"networkAcls,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ScaleUnits *int64 `json:"scaleUnits,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostpropertiesformatnetworkacls.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostpropertiesformatnetworkacls.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostpropertiesformatnetworkacls.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostpropertiesformatnetworkacls.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionsessionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionsessionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionsessionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionsessionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionshareablelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionshareablelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionshareablelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionshareablelinklistrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionshareablelinklistrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionshareablelinklistrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionshareablelinklistrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionshareablelinktokenlistrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionshareablelinktokenlistrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionshareablelinktokenlistrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionshareablelinktokenlistrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_iprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_iprule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_iprule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_iprule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_resource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_resource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_resource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_resource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_sessionids.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_sessionids.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_sessionids.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_sessionids.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_sku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_sku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/version.go index 9ba19b0d0041..5edb9502aedc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/version.go @@ -3,8 +3,8 @@ package bastionhosts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/bastionhosts/2023-11-01" + return "hashicorp/go-azure-sdk/bastionhosts/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/README.md index 362f51616cff..ff990e0d05c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink` Documentation -The `bastionshareablelink` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `bastionshareablelink` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/id_bastionhost.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/id_bastionhost.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/id_bastionhost.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/id_bastionhost.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/method_deletebastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/method_deletebastionshareablelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/method_deletebastionshareablelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/method_deletebastionshareablelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/method_deletebastionshareablelinkbytoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/method_deletebastionshareablelinkbytoken.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/method_deletebastionshareablelinkbytoken.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/method_deletebastionshareablelinkbytoken.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/method_getbastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/method_getbastionshareablelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/method_getbastionshareablelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/method_getbastionshareablelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/method_putbastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/method_putbastionshareablelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/method_putbastionshareablelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/method_putbastionshareablelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/model_bastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/model_bastionshareablelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/model_bastionshareablelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/model_bastionshareablelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/model_bastionshareablelinklistrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/model_bastionshareablelinklistrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/model_bastionshareablelinklistrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/model_bastionshareablelinklistrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/model_bastionshareablelinktokenlistrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/model_bastionshareablelinktokenlistrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/model_bastionshareablelinktokenlistrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/model_bastionshareablelinktokenlistrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/model_resource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/model_resource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/model_resource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/model_resource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/version.go index 85195401518e..1d77708d69c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/version.go @@ -3,8 +3,8 @@ package bastionshareablelink // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/bastionshareablelink/2023-11-01" + return "hashicorp/go-azure-sdk/bastionshareablelink/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/README.md similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/README.md index 19cf1d6b7ccb..64c572d8fc0f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities` Documentation -The `bgpservicecommunities` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `bgpservicecommunities` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/model_bgpcommunity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/model_bgpcommunity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/model_bgpcommunity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/model_bgpcommunity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/model_bgpservicecommunity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/model_bgpservicecommunity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/model_bgpservicecommunity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/model_bgpservicecommunity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/model_bgpservicecommunitypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/model_bgpservicecommunitypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/model_bgpservicecommunitypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/model_bgpservicecommunitypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/version.go index 90d5d499d605..7d854388c0bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/version.go @@ -3,8 +3,8 @@ package bgpservicecommunities // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/bgpservicecommunities/2023-11-01" + return "hashicorp/go-azure-sdk/bgpservicecommunities/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/README.md similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/README.md index 2cdf19f22f6f..4bbd3969d501 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities` Documentation -The `checkdnsavailabilities` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `checkdnsavailabilities` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/method_checkdnsnameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/method_checkdnsnameavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/method_checkdnsnameavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/method_checkdnsnameavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/model_dnsnameavailabilityresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/model_dnsnameavailabilityresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/model_dnsnameavailabilityresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/model_dnsnameavailabilityresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/version.go index 901e04955d14..502c3605e20e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/version.go @@ -3,8 +3,8 @@ package checkdnsavailabilities // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/checkdnsavailabilities/2023-11-01" + return "hashicorp/go-azure-sdk/checkdnsavailabilities/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/client.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/client.go index 75219ca65e18..b460cfde3de2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/client.go @@ -1,4 +1,4 @@ -package v2023_11_01 +package v2024_03_01 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. @@ -6,112 +6,118 @@ package v2023_11_01 import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories" "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" ) @@ -176,6 +182,7 @@ type Client struct { NetworkManagerConnections *networkmanagerconnections.NetworkManagerConnectionsClient NetworkManagerEffectiveConnectivityConfiguration *networkmanagereffectiveconnectivityconfiguration.NetworkManagerEffectiveConnectivityConfigurationClient NetworkManagerEffectiveSecurityAdminRules *networkmanagereffectivesecurityadminrules.NetworkManagerEffectiveSecurityAdminRulesClient + NetworkManagerRoutingConfigurations *networkmanagerroutingconfigurations.NetworkManagerRoutingConfigurationsClient NetworkManagers *networkmanagers.NetworkManagersClient NetworkProfiles *networkprofiles.NetworkProfilesClient NetworkSecurityGroups *networksecuritygroups.NetworkSecurityGroupsClient @@ -193,10 +200,15 @@ type Client struct { RouteFilters *routefilters.RouteFiltersClient RouteTables *routetables.RouteTablesClient Routes *routes.RoutesClient + RoutingRuleCollections *routingrulecollections.RoutingRuleCollectionsClient + RoutingRules *routingrules.RoutingRulesClient ScopeConnections *scopeconnections.ScopeConnectionsClient SecurityAdminConfigurations *securityadminconfigurations.SecurityAdminConfigurationsClient SecurityPartnerProviders *securitypartnerproviders.SecurityPartnerProvidersClient SecurityRules *securityrules.SecurityRulesClient + SecurityUserConfigurations *securityuserconfigurations.SecurityUserConfigurationsClient + SecurityUserRuleCollections *securityuserrulecollections.SecurityUserRuleCollectionsClient + SecurityUserRules *securityuserrules.SecurityUserRulesClient ServiceEndpointPolicies *serviceendpointpolicies.ServiceEndpointPoliciesClient ServiceEndpointPolicyDefinitions *serviceendpointpolicydefinitions.ServiceEndpointPolicyDefinitionsClient ServiceTags *servicetags.ServiceTagsClient @@ -580,6 +592,12 @@ func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanag } configureFunc(networkManagerEffectiveSecurityAdminRulesClient.Client) + networkManagerRoutingConfigurationsClient, err := networkmanagerroutingconfigurations.NewNetworkManagerRoutingConfigurationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NetworkManagerRoutingConfigurations client: %+v", err) + } + configureFunc(networkManagerRoutingConfigurationsClient.Client) + networkManagersClient, err := networkmanagers.NewNetworkManagersClientWithBaseURI(sdkApi) if err != nil { return nil, fmt.Errorf("building NetworkManagers client: %+v", err) @@ -682,6 +700,18 @@ func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanag } configureFunc(routesClient.Client) + routingRuleCollectionsClient, err := routingrulecollections.NewRoutingRuleCollectionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building RoutingRuleCollections client: %+v", err) + } + configureFunc(routingRuleCollectionsClient.Client) + + routingRulesClient, err := routingrules.NewRoutingRulesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building RoutingRules client: %+v", err) + } + configureFunc(routingRulesClient.Client) + scopeConnectionsClient, err := scopeconnections.NewScopeConnectionsClientWithBaseURI(sdkApi) if err != nil { return nil, fmt.Errorf("building ScopeConnections client: %+v", err) @@ -706,6 +736,24 @@ func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanag } configureFunc(securityRulesClient.Client) + securityUserConfigurationsClient, err := securityuserconfigurations.NewSecurityUserConfigurationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building SecurityUserConfigurations client: %+v", err) + } + configureFunc(securityUserConfigurationsClient.Client) + + securityUserRuleCollectionsClient, err := securityuserrulecollections.NewSecurityUserRuleCollectionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building SecurityUserRuleCollections client: %+v", err) + } + configureFunc(securityUserRuleCollectionsClient.Client) + + securityUserRulesClient, err := securityuserrules.NewSecurityUserRulesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building SecurityUserRules client: %+v", err) + } + configureFunc(securityUserRulesClient.Client) + serviceEndpointPoliciesClient, err := serviceendpointpolicies.NewServiceEndpointPoliciesClientWithBaseURI(sdkApi) if err != nil { return nil, fmt.Errorf("building ServiceEndpointPolicies client: %+v", err) @@ -922,6 +970,7 @@ func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanag NetworkManagerConnections: networkManagerConnectionsClient, NetworkManagerEffectiveConnectivityConfiguration: networkManagerEffectiveConnectivityConfigurationClient, NetworkManagerEffectiveSecurityAdminRules: networkManagerEffectiveSecurityAdminRulesClient, + NetworkManagerRoutingConfigurations: networkManagerRoutingConfigurationsClient, NetworkManagers: networkManagersClient, NetworkProfiles: networkProfilesClient, NetworkSecurityGroups: networkSecurityGroupsClient, @@ -939,10 +988,15 @@ func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanag RouteFilters: routeFiltersClient, RouteTables: routeTablesClient, Routes: routesClient, + RoutingRuleCollections: routingRuleCollectionsClient, + RoutingRules: routingRulesClient, ScopeConnections: scopeConnectionsClient, SecurityAdminConfigurations: securityAdminConfigurationsClient, SecurityPartnerProviders: securityPartnerProvidersClient, SecurityRules: securityRulesClient, + SecurityUserConfigurations: securityUserConfigurationsClient, + SecurityUserRuleCollections: securityUserRuleCollectionsClient, + SecurityUserRules: securityUserRulesClient, ServiceEndpointPolicies: serviceEndpointPoliciesClient, ServiceEndpointPolicyDefinitions: serviceEndpointPolicyDefinitionsClient, ServiceTags: serviceTagsClient, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/README.md index 0f3e04b6a43f..ffc80033950a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses` Documentation -The `cloudservicepublicipaddresses` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `cloudservicepublicipaddresses` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/id_providercloudservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/id_providercloudservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/id_providercloudservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/id_providercloudservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlog.go new file mode 100644 index 000000000000..49c418d2b9e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlog.go @@ -0,0 +1,19 @@ +package cloudservicepublicipaddresses + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlogpropertiesformat.go similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlogpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlogpropertiesformat.go index 81d0d4ee738d..c8b2d0843ff4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlogpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlogpropertiesformat.go @@ -5,6 +5,7 @@ package cloudservicepublicipaddresses type FlowLogPropertiesFormat struct { Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` Format *FlowLogFormatParameters `json:"format,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceproperties.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceproperties.go index fea2fefdf6da..04a0f8149a75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceproperties.go @@ -6,6 +6,7 @@ package cloudservicepublicipaddresses type PrivateLinkServiceProperties struct { Alias *string `json:"alias,omitempty"` AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` Fqdns *[]string `json:"fqdns,omitempty"` IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpropertiesformat.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpropertiesformat.go index 63759ece07dd..1e4f0c0bb525 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpropertiesformat.go @@ -5,6 +5,7 @@ package cloudservicepublicipaddresses type ServiceEndpointPropertiesFormat struct { Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Service *string `json:"service,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/version.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/version.go index affd2c94cc8a..4caf11a3aebd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/version.go @@ -3,8 +3,8 @@ package cloudservicepublicipaddresses // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/cloudservicepublicipaddresses/2023-11-01" + return "hashicorp/go-azure-sdk/cloudservicepublicipaddresses/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/README.md new file mode 100644 index 000000000000..61464234c0a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/README.md @@ -0,0 +1,138 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors` Documentation + +The `connectionmonitors` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors" +``` + + +### Client Initialization + +```go +client := connectionmonitors.NewConnectionMonitorsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ConnectionMonitorsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") + +payload := connectionmonitors.ConnectionMonitor{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload, connectionmonitors.DefaultCreateOrUpdateOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `ConnectionMonitorsClient.Delete` + +```go +ctx := context.TODO() +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ConnectionMonitorsClient.Get` + +```go +ctx := context.TODO() +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ConnectionMonitorsClient.List` + +```go +ctx := context.TODO() +id := connectionmonitors.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +read, err := client.List(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ConnectionMonitorsClient.Query` + +```go +ctx := context.TODO() +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") + +if err := client.QueryThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ConnectionMonitorsClient.Start` + +```go +ctx := context.TODO() +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") + +if err := client.StartThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ConnectionMonitorsClient.Stop` + +```go +ctx := context.TODO() +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") + +if err := client.StopThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ConnectionMonitorsClient.UpdateTags` + +```go +ctx := context.TODO() +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") + +payload := connectionmonitors.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/client.go new file mode 100644 index 000000000000..c23a27cd53b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/client.go @@ -0,0 +1,26 @@ +package connectionmonitors + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorsClient struct { + Client *resourcemanager.Client +} + +func NewConnectionMonitorsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConnectionMonitorsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "connectionmonitors", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ConnectionMonitorsClient: %+v", err) + } + + return &ConnectionMonitorsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/constants.go new file mode 100644 index 000000000000..ca32d5169c7f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/constants.go @@ -0,0 +1,773 @@ +package connectionmonitors + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorEndpointFilterItemType string + +const ( + ConnectionMonitorEndpointFilterItemTypeAgentAddress ConnectionMonitorEndpointFilterItemType = "AgentAddress" +) + +func PossibleValuesForConnectionMonitorEndpointFilterItemType() []string { + return []string{ + string(ConnectionMonitorEndpointFilterItemTypeAgentAddress), + } +} + +func (s *ConnectionMonitorEndpointFilterItemType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseConnectionMonitorEndpointFilterItemType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseConnectionMonitorEndpointFilterItemType(input string) (*ConnectionMonitorEndpointFilterItemType, error) { + vals := map[string]ConnectionMonitorEndpointFilterItemType{ + "agentaddress": ConnectionMonitorEndpointFilterItemTypeAgentAddress, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ConnectionMonitorEndpointFilterItemType(input) + return &out, nil +} + +type ConnectionMonitorEndpointFilterType string + +const ( + ConnectionMonitorEndpointFilterTypeInclude ConnectionMonitorEndpointFilterType = "Include" +) + +func PossibleValuesForConnectionMonitorEndpointFilterType() []string { + return []string{ + string(ConnectionMonitorEndpointFilterTypeInclude), + } +} + +func (s *ConnectionMonitorEndpointFilterType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseConnectionMonitorEndpointFilterType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseConnectionMonitorEndpointFilterType(input string) (*ConnectionMonitorEndpointFilterType, error) { + vals := map[string]ConnectionMonitorEndpointFilterType{ + "include": ConnectionMonitorEndpointFilterTypeInclude, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ConnectionMonitorEndpointFilterType(input) + return &out, nil +} + +type ConnectionMonitorSourceStatus string + +const ( + ConnectionMonitorSourceStatusActive ConnectionMonitorSourceStatus = "Active" + ConnectionMonitorSourceStatusInactive ConnectionMonitorSourceStatus = "Inactive" + ConnectionMonitorSourceStatusUnknown ConnectionMonitorSourceStatus = "Unknown" +) + +func PossibleValuesForConnectionMonitorSourceStatus() []string { + return []string{ + string(ConnectionMonitorSourceStatusActive), + string(ConnectionMonitorSourceStatusInactive), + string(ConnectionMonitorSourceStatusUnknown), + } +} + +func (s *ConnectionMonitorSourceStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseConnectionMonitorSourceStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseConnectionMonitorSourceStatus(input string) (*ConnectionMonitorSourceStatus, error) { + vals := map[string]ConnectionMonitorSourceStatus{ + "active": ConnectionMonitorSourceStatusActive, + "inactive": ConnectionMonitorSourceStatusInactive, + "unknown": ConnectionMonitorSourceStatusUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ConnectionMonitorSourceStatus(input) + return &out, nil +} + +type ConnectionMonitorTestConfigurationProtocol string + +const ( + ConnectionMonitorTestConfigurationProtocolHTTP ConnectionMonitorTestConfigurationProtocol = "Http" + ConnectionMonitorTestConfigurationProtocolIcmp ConnectionMonitorTestConfigurationProtocol = "Icmp" + ConnectionMonitorTestConfigurationProtocolTcp ConnectionMonitorTestConfigurationProtocol = "Tcp" +) + +func PossibleValuesForConnectionMonitorTestConfigurationProtocol() []string { + return []string{ + string(ConnectionMonitorTestConfigurationProtocolHTTP), + string(ConnectionMonitorTestConfigurationProtocolIcmp), + string(ConnectionMonitorTestConfigurationProtocolTcp), + } +} + +func (s *ConnectionMonitorTestConfigurationProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseConnectionMonitorTestConfigurationProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseConnectionMonitorTestConfigurationProtocol(input string) (*ConnectionMonitorTestConfigurationProtocol, error) { + vals := map[string]ConnectionMonitorTestConfigurationProtocol{ + "http": ConnectionMonitorTestConfigurationProtocolHTTP, + "icmp": ConnectionMonitorTestConfigurationProtocolIcmp, + "tcp": ConnectionMonitorTestConfigurationProtocolTcp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ConnectionMonitorTestConfigurationProtocol(input) + return &out, nil +} + +type ConnectionMonitorType string + +const ( + ConnectionMonitorTypeMultiEndpoint ConnectionMonitorType = "MultiEndpoint" + ConnectionMonitorTypeSingleSourceDestination ConnectionMonitorType = "SingleSourceDestination" +) + +func PossibleValuesForConnectionMonitorType() []string { + return []string{ + string(ConnectionMonitorTypeMultiEndpoint), + string(ConnectionMonitorTypeSingleSourceDestination), + } +} + +func (s *ConnectionMonitorType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseConnectionMonitorType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseConnectionMonitorType(input string) (*ConnectionMonitorType, error) { + vals := map[string]ConnectionMonitorType{ + "multiendpoint": ConnectionMonitorTypeMultiEndpoint, + "singlesourcedestination": ConnectionMonitorTypeSingleSourceDestination, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ConnectionMonitorType(input) + return &out, nil +} + +type ConnectionState string + +const ( + ConnectionStateReachable ConnectionState = "Reachable" + ConnectionStateUnknown ConnectionState = "Unknown" + ConnectionStateUnreachable ConnectionState = "Unreachable" +) + +func PossibleValuesForConnectionState() []string { + return []string{ + string(ConnectionStateReachable), + string(ConnectionStateUnknown), + string(ConnectionStateUnreachable), + } +} + +func (s *ConnectionState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseConnectionState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseConnectionState(input string) (*ConnectionState, error) { + vals := map[string]ConnectionState{ + "reachable": ConnectionStateReachable, + "unknown": ConnectionStateUnknown, + "unreachable": ConnectionStateUnreachable, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ConnectionState(input) + return &out, nil +} + +type CoverageLevel string + +const ( + CoverageLevelAboveAverage CoverageLevel = "AboveAverage" + CoverageLevelAverage CoverageLevel = "Average" + CoverageLevelBelowAverage CoverageLevel = "BelowAverage" + CoverageLevelDefault CoverageLevel = "Default" + CoverageLevelFull CoverageLevel = "Full" + CoverageLevelLow CoverageLevel = "Low" +) + +func PossibleValuesForCoverageLevel() []string { + return []string{ + string(CoverageLevelAboveAverage), + string(CoverageLevelAverage), + string(CoverageLevelBelowAverage), + string(CoverageLevelDefault), + string(CoverageLevelFull), + string(CoverageLevelLow), + } +} + +func (s *CoverageLevel) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCoverageLevel(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCoverageLevel(input string) (*CoverageLevel, error) { + vals := map[string]CoverageLevel{ + "aboveaverage": CoverageLevelAboveAverage, + "average": CoverageLevelAverage, + "belowaverage": CoverageLevelBelowAverage, + "default": CoverageLevelDefault, + "full": CoverageLevelFull, + "low": CoverageLevelLow, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CoverageLevel(input) + return &out, nil +} + +type DestinationPortBehavior string + +const ( + DestinationPortBehaviorListenIfAvailable DestinationPortBehavior = "ListenIfAvailable" + DestinationPortBehaviorNone DestinationPortBehavior = "None" +) + +func PossibleValuesForDestinationPortBehavior() []string { + return []string{ + string(DestinationPortBehaviorListenIfAvailable), + string(DestinationPortBehaviorNone), + } +} + +func (s *DestinationPortBehavior) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDestinationPortBehavior(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDestinationPortBehavior(input string) (*DestinationPortBehavior, error) { + vals := map[string]DestinationPortBehavior{ + "listenifavailable": DestinationPortBehaviorListenIfAvailable, + "none": DestinationPortBehaviorNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DestinationPortBehavior(input) + return &out, nil +} + +type EndpointType string + +const ( + EndpointTypeAzureArcNetwork EndpointType = "AzureArcNetwork" + EndpointTypeAzureArcVM EndpointType = "AzureArcVM" + EndpointTypeAzureSubnet EndpointType = "AzureSubnet" + EndpointTypeAzureVM EndpointType = "AzureVM" + EndpointTypeAzureVMSS EndpointType = "AzureVMSS" + EndpointTypeAzureVNet EndpointType = "AzureVNet" + EndpointTypeExternalAddress EndpointType = "ExternalAddress" + EndpointTypeMMAWorkspaceMachine EndpointType = "MMAWorkspaceMachine" + EndpointTypeMMAWorkspaceNetwork EndpointType = "MMAWorkspaceNetwork" +) + +func PossibleValuesForEndpointType() []string { + return []string{ + string(EndpointTypeAzureArcNetwork), + string(EndpointTypeAzureArcVM), + string(EndpointTypeAzureSubnet), + string(EndpointTypeAzureVM), + string(EndpointTypeAzureVMSS), + string(EndpointTypeAzureVNet), + string(EndpointTypeExternalAddress), + string(EndpointTypeMMAWorkspaceMachine), + string(EndpointTypeMMAWorkspaceNetwork), + } +} + +func (s *EndpointType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEndpointType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEndpointType(input string) (*EndpointType, error) { + vals := map[string]EndpointType{ + "azurearcnetwork": EndpointTypeAzureArcNetwork, + "azurearcvm": EndpointTypeAzureArcVM, + "azuresubnet": EndpointTypeAzureSubnet, + "azurevm": EndpointTypeAzureVM, + "azurevmss": EndpointTypeAzureVMSS, + "azurevnet": EndpointTypeAzureVNet, + "externaladdress": EndpointTypeExternalAddress, + "mmaworkspacemachine": EndpointTypeMMAWorkspaceMachine, + "mmaworkspacenetwork": EndpointTypeMMAWorkspaceNetwork, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EndpointType(input) + return &out, nil +} + +type EvaluationState string + +const ( + EvaluationStateCompleted EvaluationState = "Completed" + EvaluationStateInProgress EvaluationState = "InProgress" + EvaluationStateNotStarted EvaluationState = "NotStarted" +) + +func PossibleValuesForEvaluationState() []string { + return []string{ + string(EvaluationStateCompleted), + string(EvaluationStateInProgress), + string(EvaluationStateNotStarted), + } +} + +func (s *EvaluationState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEvaluationState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEvaluationState(input string) (*EvaluationState, error) { + vals := map[string]EvaluationState{ + "completed": EvaluationStateCompleted, + "inprogress": EvaluationStateInProgress, + "notstarted": EvaluationStateNotStarted, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EvaluationState(input) + return &out, nil +} + +type HTTPConfigurationMethod string + +const ( + HTTPConfigurationMethodGet HTTPConfigurationMethod = "Get" + HTTPConfigurationMethodPost HTTPConfigurationMethod = "Post" +) + +func PossibleValuesForHTTPConfigurationMethod() []string { + return []string{ + string(HTTPConfigurationMethodGet), + string(HTTPConfigurationMethodPost), + } +} + +func (s *HTTPConfigurationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseHTTPConfigurationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseHTTPConfigurationMethod(input string) (*HTTPConfigurationMethod, error) { + vals := map[string]HTTPConfigurationMethod{ + "get": HTTPConfigurationMethodGet, + "post": HTTPConfigurationMethodPost, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := HTTPConfigurationMethod(input) + return &out, nil +} + +type IssueType string + +const ( + IssueTypeAgentStopped IssueType = "AgentStopped" + IssueTypeDnsResolution IssueType = "DnsResolution" + IssueTypeGuestFirewall IssueType = "GuestFirewall" + IssueTypeNetworkSecurityRule IssueType = "NetworkSecurityRule" + IssueTypePlatform IssueType = "Platform" + IssueTypePortThrottled IssueType = "PortThrottled" + IssueTypeSocketBind IssueType = "SocketBind" + IssueTypeUnknown IssueType = "Unknown" + IssueTypeUserDefinedRoute IssueType = "UserDefinedRoute" +) + +func PossibleValuesForIssueType() []string { + return []string{ + string(IssueTypeAgentStopped), + string(IssueTypeDnsResolution), + string(IssueTypeGuestFirewall), + string(IssueTypeNetworkSecurityRule), + string(IssueTypePlatform), + string(IssueTypePortThrottled), + string(IssueTypeSocketBind), + string(IssueTypeUnknown), + string(IssueTypeUserDefinedRoute), + } +} + +func (s *IssueType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIssueType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIssueType(input string) (*IssueType, error) { + vals := map[string]IssueType{ + "agentstopped": IssueTypeAgentStopped, + "dnsresolution": IssueTypeDnsResolution, + "guestfirewall": IssueTypeGuestFirewall, + "networksecurityrule": IssueTypeNetworkSecurityRule, + "platform": IssueTypePlatform, + "portthrottled": IssueTypePortThrottled, + "socketbind": IssueTypeSocketBind, + "unknown": IssueTypeUnknown, + "userdefinedroute": IssueTypeUserDefinedRoute, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IssueType(input) + return &out, nil +} + +type Origin string + +const ( + OriginInbound Origin = "Inbound" + OriginLocal Origin = "Local" + OriginOutbound Origin = "Outbound" +) + +func PossibleValuesForOrigin() []string { + return []string{ + string(OriginInbound), + string(OriginLocal), + string(OriginOutbound), + } +} + +func (s *Origin) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseOrigin(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseOrigin(input string) (*Origin, error) { + vals := map[string]Origin{ + "inbound": OriginInbound, + "local": OriginLocal, + "outbound": OriginOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Origin(input) + return &out, nil +} + +type OutputType string + +const ( + OutputTypeWorkspace OutputType = "Workspace" +) + +func PossibleValuesForOutputType() []string { + return []string{ + string(OutputTypeWorkspace), + } +} + +func (s *OutputType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseOutputType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseOutputType(input string) (*OutputType, error) { + vals := map[string]OutputType{ + "workspace": OutputTypeWorkspace, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := OutputType(input) + return &out, nil +} + +type PreferredIPVersion string + +const ( + PreferredIPVersionIPvFour PreferredIPVersion = "IPv4" + PreferredIPVersionIPvSix PreferredIPVersion = "IPv6" +) + +func PossibleValuesForPreferredIPVersion() []string { + return []string{ + string(PreferredIPVersionIPvFour), + string(PreferredIPVersionIPvSix), + } +} + +func (s *PreferredIPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePreferredIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePreferredIPVersion(input string) (*PreferredIPVersion, error) { + vals := map[string]PreferredIPVersion{ + "ipv4": PreferredIPVersionIPvFour, + "ipv6": PreferredIPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PreferredIPVersion(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type Severity string + +const ( + SeverityError Severity = "Error" + SeverityWarning Severity = "Warning" +) + +func PossibleValuesForSeverity() []string { + return []string{ + string(SeverityError), + string(SeverityWarning), + } +} + +func (s *Severity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSeverity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSeverity(input string) (*Severity, error) { + vals := map[string]Severity{ + "error": SeverityError, + "warning": SeverityWarning, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Severity(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/id_connectionmonitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/id_connectionmonitor.go new file mode 100644 index 000000000000..556a942bd1ac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/id_connectionmonitor.go @@ -0,0 +1,139 @@ +package connectionmonitors + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ConnectionMonitorId{}) +} + +var _ resourceids.ResourceId = &ConnectionMonitorId{} + +// ConnectionMonitorId is a struct representing the Resource ID for a Connection Monitor +type ConnectionMonitorId struct { + SubscriptionId string + ResourceGroupName string + NetworkWatcherName string + ConnectionMonitorName string +} + +// NewConnectionMonitorID returns a new ConnectionMonitorId struct +func NewConnectionMonitorID(subscriptionId string, resourceGroupName string, networkWatcherName string, connectionMonitorName string) ConnectionMonitorId { + return ConnectionMonitorId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkWatcherName: networkWatcherName, + ConnectionMonitorName: connectionMonitorName, + } +} + +// ParseConnectionMonitorID parses 'input' into a ConnectionMonitorId +func ParseConnectionMonitorID(input string) (*ConnectionMonitorId, error) { + parser := resourceids.NewParserFromResourceIdType(&ConnectionMonitorId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConnectionMonitorId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseConnectionMonitorIDInsensitively parses 'input' case-insensitively into a ConnectionMonitorId +// note: this method should only be used for API response data and not user input +func ParseConnectionMonitorIDInsensitively(input string) (*ConnectionMonitorId, error) { + parser := resourceids.NewParserFromResourceIdType(&ConnectionMonitorId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConnectionMonitorId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ConnectionMonitorId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkWatcherName, ok = input.Parsed["networkWatcherName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkWatcherName", input) + } + + if id.ConnectionMonitorName, ok = input.Parsed["connectionMonitorName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "connectionMonitorName", input) + } + + return nil +} + +// ValidateConnectionMonitorID checks that 'input' can be parsed as a Connection Monitor ID +func ValidateConnectionMonitorID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseConnectionMonitorID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Connection Monitor ID +func (id ConnectionMonitorId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkWatchers/%s/connectionMonitors/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkWatcherName, id.ConnectionMonitorName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Connection Monitor ID +func (id ConnectionMonitorId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), + resourceids.StaticSegment("staticConnectionMonitors", "connectionMonitors", "connectionMonitors"), + resourceids.UserSpecifiedSegment("connectionMonitorName", "connectionMonitorName"), + } +} + +// String returns a human-readable description of this Connection Monitor ID +func (id ConnectionMonitorId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Watcher Name: %q", id.NetworkWatcherName), + fmt.Sprintf("Connection Monitor Name: %q", id.ConnectionMonitorName), + } + return fmt.Sprintf("Connection Monitor (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/id_networkwatcher.go new file mode 100644 index 000000000000..4b6c56cb216b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/id_networkwatcher.go @@ -0,0 +1,130 @@ +package connectionmonitors + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkWatcherId{}) +} + +var _ resourceids.ResourceId = &NetworkWatcherId{} + +// NetworkWatcherId is a struct representing the Resource ID for a Network Watcher +type NetworkWatcherId struct { + SubscriptionId string + ResourceGroupName string + NetworkWatcherName string +} + +// NewNetworkWatcherID returns a new NetworkWatcherId struct +func NewNetworkWatcherID(subscriptionId string, resourceGroupName string, networkWatcherName string) NetworkWatcherId { + return NetworkWatcherId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkWatcherName: networkWatcherName, + } +} + +// ParseNetworkWatcherID parses 'input' into a NetworkWatcherId +func ParseNetworkWatcherID(input string) (*NetworkWatcherId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkWatcherId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkWatcherId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkWatcherIDInsensitively parses 'input' case-insensitively into a NetworkWatcherId +// note: this method should only be used for API response data and not user input +func ParseNetworkWatcherIDInsensitively(input string) (*NetworkWatcherId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkWatcherId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkWatcherId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkWatcherId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkWatcherName, ok = input.Parsed["networkWatcherName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkWatcherName", input) + } + + return nil +} + +// ValidateNetworkWatcherID checks that 'input' can be parsed as a Network Watcher ID +func ValidateNetworkWatcherID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkWatcherID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Watcher ID +func (id NetworkWatcherId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkWatchers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkWatcherName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Watcher ID +func (id NetworkWatcherId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), + } +} + +// String returns a human-readable description of this Network Watcher ID +func (id NetworkWatcherId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Watcher Name: %q", id.NetworkWatcherName), + } + return fmt.Sprintf("Network Watcher (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_createorupdate.go new file mode 100644 index 000000000000..069036d65fef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_createorupdate.go @@ -0,0 +1,104 @@ +package connectionmonitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionMonitorResult +} + +type CreateOrUpdateOperationOptions struct { + Migrate *string +} + +func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions { + return CreateOrUpdateOperationOptions{} +} + +func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Migrate != nil { + out.Append("migrate", fmt.Sprintf("%v", *o.Migrate)) + } + return &out +} + +// CreateOrUpdate ... +func (c ConnectionMonitorsClient) CreateOrUpdate(ctx context.Context, id ConnectionMonitorId, input ConnectionMonitor, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ConnectionMonitorsClient) CreateOrUpdateThenPoll(ctx context.Context, id ConnectionMonitorId, input ConnectionMonitor, options CreateOrUpdateOperationOptions) error { + result, err := c.CreateOrUpdate(ctx, id, input, options) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_delete.go new file mode 100644 index 000000000000..a0d6aebb3f1a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_delete.go @@ -0,0 +1,70 @@ +package connectionmonitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ConnectionMonitorsClient) Delete(ctx context.Context, id ConnectionMonitorId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ConnectionMonitorsClient) DeleteThenPoll(ctx context.Context, id ConnectionMonitorId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_get.go new file mode 100644 index 000000000000..8087a322df34 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_get.go @@ -0,0 +1,53 @@ +package connectionmonitors + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionMonitorResult +} + +// Get ... +func (c ConnectionMonitorsClient) Get(ctx context.Context, id ConnectionMonitorId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ConnectionMonitorResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_list.go new file mode 100644 index 000000000000..46eea3af26b7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_list.go @@ -0,0 +1,54 @@ +package connectionmonitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionMonitorListResult +} + +// List ... +func (c ConnectionMonitorsClient) List(ctx context.Context, id NetworkWatcherId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/connectionMonitors", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ConnectionMonitorListResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_query.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_query.go new file mode 100644 index 000000000000..ee985b116895 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_query.go @@ -0,0 +1,71 @@ +package connectionmonitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type QueryOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionMonitorQueryResult +} + +// Query ... +func (c ConnectionMonitorsClient) Query(ctx context.Context, id ConnectionMonitorId) (result QueryOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/query", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// QueryThenPoll performs Query then polls until it's completed +func (c ConnectionMonitorsClient) QueryThenPoll(ctx context.Context, id ConnectionMonitorId) error { + result, err := c.Query(ctx, id) + if err != nil { + return fmt.Errorf("performing Query: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Query: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_start.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_start.go new file mode 100644 index 000000000000..f5f3ef3ba4ee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_start.go @@ -0,0 +1,70 @@ +package connectionmonitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Start ... +func (c ConnectionMonitorsClient) Start(ctx context.Context, id ConnectionMonitorId) (result StartOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/start", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StartThenPoll performs Start then polls until it's completed +func (c ConnectionMonitorsClient) StartThenPoll(ctx context.Context, id ConnectionMonitorId) error { + result, err := c.Start(ctx, id) + if err != nil { + return fmt.Errorf("performing Start: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Start: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_stop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_stop.go new file mode 100644 index 000000000000..44a5d3c56a74 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_stop.go @@ -0,0 +1,70 @@ +package connectionmonitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Stop ... +func (c ConnectionMonitorsClient) Stop(ctx context.Context, id ConnectionMonitorId) (result StopOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stop", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StopThenPoll performs Stop then polls until it's completed +func (c ConnectionMonitorsClient) StopThenPoll(ctx context.Context, id ConnectionMonitorId) error { + result, err := c.Stop(ctx, id) + if err != nil { + return fmt.Errorf("performing Stop: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Stop: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_updatetags.go new file mode 100644 index 000000000000..e6e1f8be8d12 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_updatetags.go @@ -0,0 +1,57 @@ +package connectionmonitors + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionMonitorResult +} + +// UpdateTags ... +func (c ConnectionMonitorsClient) UpdateTags(ctx context.Context, id ConnectionMonitorId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ConnectionMonitorResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitor.go new file mode 100644 index 000000000000..0257ef7bed91 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitor.go @@ -0,0 +1,10 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitor struct { + Location *string `json:"location,omitempty"` + Properties ConnectionMonitorParameters `json:"properties"` + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitordestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitordestination.go new file mode 100644 index 000000000000..2c1eaeadd690 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitordestination.go @@ -0,0 +1,10 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorDestination struct { + Address *string `json:"address,omitempty"` + Port *int64 `json:"port,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpoint.go new file mode 100644 index 000000000000..b93feeafd754 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpoint.go @@ -0,0 +1,16 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorEndpoint struct { + Address *string `json:"address,omitempty"` + CoverageLevel *CoverageLevel `json:"coverageLevel,omitempty"` + Filter *ConnectionMonitorEndpointFilter `json:"filter,omitempty"` + LocationDetails *ConnectionMonitorEndpointLocationDetails `json:"locationDetails,omitempty"` + Name string `json:"name"` + ResourceId *string `json:"resourceId,omitempty"` + Scope *ConnectionMonitorEndpointScope `json:"scope,omitempty"` + SubscriptionId *string `json:"subscriptionId,omitempty"` + Type *EndpointType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointfilter.go new file mode 100644 index 000000000000..f861681a10c3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointfilter.go @@ -0,0 +1,9 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorEndpointFilter struct { + Items *[]ConnectionMonitorEndpointFilterItem `json:"items,omitempty"` + Type *ConnectionMonitorEndpointFilterType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointfilteritem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointfilteritem.go new file mode 100644 index 000000000000..49a3320062dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointfilteritem.go @@ -0,0 +1,9 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorEndpointFilterItem struct { + Address *string `json:"address,omitempty"` + Type *ConnectionMonitorEndpointFilterItemType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointlocationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointlocationdetails.go new file mode 100644 index 000000000000..5e8925459d5d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointlocationdetails.go @@ -0,0 +1,8 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorEndpointLocationDetails struct { + Region *string `json:"region,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointscope.go new file mode 100644 index 000000000000..36bb68efcaab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointscope.go @@ -0,0 +1,9 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorEndpointScope struct { + Exclude *[]ConnectionMonitorEndpointScopeItem `json:"exclude,omitempty"` + Include *[]ConnectionMonitorEndpointScopeItem `json:"include,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointscopeitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointscopeitem.go new file mode 100644 index 000000000000..e73b5e20b3b1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointscopeitem.go @@ -0,0 +1,8 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorEndpointScopeItem struct { + Address *string `json:"address,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorhttpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorhttpconfiguration.go new file mode 100644 index 000000000000..51af2309e946 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorhttpconfiguration.go @@ -0,0 +1,13 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorHTTPConfiguration struct { + Method *HTTPConfigurationMethod `json:"method,omitempty"` + Path *string `json:"path,omitempty"` + Port *int64 `json:"port,omitempty"` + PreferHTTPS *bool `json:"preferHTTPS,omitempty"` + RequestHeaders *[]HTTPHeader `json:"requestHeaders,omitempty"` + ValidStatusCodeRanges *[]string `json:"validStatusCodeRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitoricmpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitoricmpconfiguration.go new file mode 100644 index 000000000000..6468613d1af0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitoricmpconfiguration.go @@ -0,0 +1,8 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorIcmpConfiguration struct { + DisableTraceRoute *bool `json:"disableTraceRoute,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorlistresult.go new file mode 100644 index 000000000000..2e3014360ae7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorlistresult.go @@ -0,0 +1,8 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorListResult struct { + Value *[]ConnectionMonitorResult `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitoroutput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitoroutput.go new file mode 100644 index 000000000000..fcacc064d794 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitoroutput.go @@ -0,0 +1,9 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorOutput struct { + Type *OutputType `json:"type,omitempty"` + WorkspaceSettings *ConnectionMonitorWorkspaceSettings `json:"workspaceSettings,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorparameters.go new file mode 100644 index 000000000000..d529e518683a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorparameters.go @@ -0,0 +1,16 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorParameters struct { + AutoStart *bool `json:"autoStart,omitempty"` + Destination *ConnectionMonitorDestination `json:"destination,omitempty"` + Endpoints *[]ConnectionMonitorEndpoint `json:"endpoints,omitempty"` + MonitoringIntervalInSeconds *int64 `json:"monitoringIntervalInSeconds,omitempty"` + Notes *string `json:"notes,omitempty"` + Outputs *[]ConnectionMonitorOutput `json:"outputs,omitempty"` + Source *ConnectionMonitorSource `json:"source,omitempty"` + TestConfigurations *[]ConnectionMonitorTestConfiguration `json:"testConfigurations,omitempty"` + TestGroups *[]ConnectionMonitorTestGroup `json:"testGroups,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorqueryresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorqueryresult.go new file mode 100644 index 000000000000..455f34530d53 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorqueryresult.go @@ -0,0 +1,9 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorQueryResult struct { + SourceStatus *ConnectionMonitorSourceStatus `json:"sourceStatus,omitempty"` + States *[]ConnectionStateSnapshot `json:"states,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorresult.go new file mode 100644 index 000000000000..439794014f7a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorresult.go @@ -0,0 +1,14 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorResult struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ConnectionMonitorResultProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorresultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorresultproperties.go new file mode 100644 index 000000000000..0299f7f69a7b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorresultproperties.go @@ -0,0 +1,38 @@ +package connectionmonitors + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorResultProperties struct { + AutoStart *bool `json:"autoStart,omitempty"` + ConnectionMonitorType *ConnectionMonitorType `json:"connectionMonitorType,omitempty"` + Destination *ConnectionMonitorDestination `json:"destination,omitempty"` + Endpoints *[]ConnectionMonitorEndpoint `json:"endpoints,omitempty"` + MonitoringIntervalInSeconds *int64 `json:"monitoringIntervalInSeconds,omitempty"` + MonitoringStatus *string `json:"monitoringStatus,omitempty"` + Notes *string `json:"notes,omitempty"` + Outputs *[]ConnectionMonitorOutput `json:"outputs,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Source *ConnectionMonitorSource `json:"source,omitempty"` + StartTime *string `json:"startTime,omitempty"` + TestConfigurations *[]ConnectionMonitorTestConfiguration `json:"testConfigurations,omitempty"` + TestGroups *[]ConnectionMonitorTestGroup `json:"testGroups,omitempty"` +} + +func (o *ConnectionMonitorResultProperties) GetStartTimeAsTime() (*time.Time, error) { + if o.StartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *ConnectionMonitorResultProperties) SetStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorsource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorsource.go new file mode 100644 index 000000000000..39fa1ef2bdca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorsource.go @@ -0,0 +1,9 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorSource struct { + Port *int64 `json:"port,omitempty"` + ResourceId string `json:"resourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorsuccessthreshold.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorsuccessthreshold.go new file mode 100644 index 000000000000..9f6ca6fac8bc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorsuccessthreshold.go @@ -0,0 +1,9 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorSuccessThreshold struct { + ChecksFailedPercent *int64 `json:"checksFailedPercent,omitempty"` + RoundTripTimeMs *float64 `json:"roundTripTimeMs,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortcpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortcpconfiguration.go new file mode 100644 index 000000000000..99fdbf40239d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortcpconfiguration.go @@ -0,0 +1,10 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorTcpConfiguration struct { + DestinationPortBehavior *DestinationPortBehavior `json:"destinationPortBehavior,omitempty"` + DisableTraceRoute *bool `json:"disableTraceRoute,omitempty"` + Port *int64 `json:"port,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortestconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortestconfiguration.go new file mode 100644 index 000000000000..c4aa04feaba5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortestconfiguration.go @@ -0,0 +1,15 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorTestConfiguration struct { + HTTPConfiguration *ConnectionMonitorHTTPConfiguration `json:"httpConfiguration,omitempty"` + IcmpConfiguration *ConnectionMonitorIcmpConfiguration `json:"icmpConfiguration,omitempty"` + Name string `json:"name"` + PreferredIPVersion *PreferredIPVersion `json:"preferredIPVersion,omitempty"` + Protocol ConnectionMonitorTestConfigurationProtocol `json:"protocol"` + SuccessThreshold *ConnectionMonitorSuccessThreshold `json:"successThreshold,omitempty"` + TcpConfiguration *ConnectionMonitorTcpConfiguration `json:"tcpConfiguration,omitempty"` + TestFrequencySec *int64 `json:"testFrequencySec,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortestgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortestgroup.go new file mode 100644 index 000000000000..6eaa922f55a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortestgroup.go @@ -0,0 +1,12 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorTestGroup struct { + Destinations []string `json:"destinations"` + Disable *bool `json:"disable,omitempty"` + Name string `json:"name"` + Sources []string `json:"sources"` + TestConfigurations []string `json:"testConfigurations"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorworkspacesettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorworkspacesettings.go new file mode 100644 index 000000000000..ae23c31662f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorworkspacesettings.go @@ -0,0 +1,8 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionMonitorWorkspaceSettings struct { + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionstatesnapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionstatesnapshot.go new file mode 100644 index 000000000000..060c3bece81d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionstatesnapshot.go @@ -0,0 +1,47 @@ +package connectionmonitors + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionStateSnapshot struct { + AvgLatencyInMs *int64 `json:"avgLatencyInMs,omitempty"` + ConnectionState *ConnectionState `json:"connectionState,omitempty"` + EndTime *string `json:"endTime,omitempty"` + EvaluationState *EvaluationState `json:"evaluationState,omitempty"` + Hops *[]ConnectivityHop `json:"hops,omitempty"` + MaxLatencyInMs *int64 `json:"maxLatencyInMs,omitempty"` + MinLatencyInMs *int64 `json:"minLatencyInMs,omitempty"` + ProbesFailed *int64 `json:"probesFailed,omitempty"` + ProbesSent *int64 `json:"probesSent,omitempty"` + StartTime *string `json:"startTime,omitempty"` +} + +func (o *ConnectionStateSnapshot) GetEndTimeAsTime() (*time.Time, error) { + if o.EndTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EndTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *ConnectionStateSnapshot) SetEndTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EndTime = &formatted +} + +func (o *ConnectionStateSnapshot) GetStartTimeAsTime() (*time.Time, error) { + if o.StartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *ConnectionStateSnapshot) SetStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectivityhop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectivityhop.go new file mode 100644 index 000000000000..b93b627ac70d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectivityhop.go @@ -0,0 +1,16 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectivityHop struct { + Address *string `json:"address,omitempty"` + Id *string `json:"id,omitempty"` + Issues *[]ConnectivityIssue `json:"issues,omitempty"` + Links *[]HopLink `json:"links,omitempty"` + NextHopIds *[]string `json:"nextHopIds,omitempty"` + PreviousHopIds *[]string `json:"previousHopIds,omitempty"` + PreviousLinks *[]HopLink `json:"previousLinks,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectivityissue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectivityissue.go new file mode 100644 index 000000000000..ff7c6cdaf114 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectivityissue.go @@ -0,0 +1,11 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectivityIssue struct { + Context *[]map[string]string `json:"context,omitempty"` + Origin *Origin `json:"origin,omitempty"` + Severity *Severity `json:"severity,omitempty"` + Type *IssueType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_hoplink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_hoplink.go new file mode 100644 index 000000000000..c2b18cd5be1f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_hoplink.go @@ -0,0 +1,13 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HopLink struct { + Context *map[string]string `json:"context,omitempty"` + Issues *[]ConnectivityIssue `json:"issues,omitempty"` + LinkType *string `json:"linkType,omitempty"` + NextHopId *string `json:"nextHopId,omitempty"` + Properties *HopLinkProperties `json:"properties,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_hoplinkproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_hoplinkproperties.go new file mode 100644 index 000000000000..d38f1875957a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_hoplinkproperties.go @@ -0,0 +1,10 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HopLinkProperties struct { + RoundTripTimeAvg *int64 `json:"roundTripTimeAvg,omitempty"` + RoundTripTimeMax *int64 `json:"roundTripTimeMax,omitempty"` + RoundTripTimeMin *int64 `json:"roundTripTimeMin,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_httpheader.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_httpheader.go new file mode 100644 index 000000000000..7cae34688aa6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_httpheader.go @@ -0,0 +1,9 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HTTPHeader struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_tagsobject.go new file mode 100644 index 000000000000..d9e7e6413ff8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_tagsobject.go @@ -0,0 +1,8 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/version.go new file mode 100644 index 000000000000..9187d7178967 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/version.go @@ -0,0 +1,10 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/connectionmonitors/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/README.md new file mode 100644 index 000000000000..9618b373458c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations` Documentation + +The `connectivityconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations" +``` + + +### Client Initialization + +```go +client := connectivityconfigurations.NewConnectivityConfigurationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ConnectivityConfigurationsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "connectivityConfigurationName") + +payload := connectivityconfigurations.ConnectivityConfiguration{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ConnectivityConfigurationsClient.Delete` + +```go +ctx := context.TODO() +id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "connectivityConfigurationName") + +if err := client.DeleteThenPoll(ctx, id, connectivityconfigurations.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `ConnectivityConfigurationsClient.Get` + +```go +ctx := context.TODO() +id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "connectivityConfigurationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ConnectivityConfigurationsClient.List` + +```go +ctx := context.TODO() +id := connectivityconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +// alternatively `client.List(ctx, id, connectivityconfigurations.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, connectivityconfigurations.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/client.go new file mode 100644 index 000000000000..8d9088537705 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/client.go @@ -0,0 +1,26 @@ +package connectivityconfigurations + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectivityConfigurationsClient struct { + Client *resourcemanager.Client +} + +func NewConnectivityConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConnectivityConfigurationsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "connectivityconfigurations", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ConnectivityConfigurationsClient: %+v", err) + } + + return &ConnectivityConfigurationsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/constants.go similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/constants.go index ce9e85b744a9..e96424413527 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/constants.go @@ -1,4 +1,4 @@ -package networkmanageractiveconnectivityconfigurations +package connectivityconfigurations import ( "encoding/json" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/id_connectivityconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/id_connectivityconfiguration.go new file mode 100644 index 000000000000..d062db15f4f9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/id_connectivityconfiguration.go @@ -0,0 +1,139 @@ +package connectivityconfigurations + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ConnectivityConfigurationId{}) +} + +var _ resourceids.ResourceId = &ConnectivityConfigurationId{} + +// ConnectivityConfigurationId is a struct representing the Resource ID for a Connectivity Configuration +type ConnectivityConfigurationId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + ConnectivityConfigurationName string +} + +// NewConnectivityConfigurationID returns a new ConnectivityConfigurationId struct +func NewConnectivityConfigurationID(subscriptionId string, resourceGroupName string, networkManagerName string, connectivityConfigurationName string) ConnectivityConfigurationId { + return ConnectivityConfigurationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + ConnectivityConfigurationName: connectivityConfigurationName, + } +} + +// ParseConnectivityConfigurationID parses 'input' into a ConnectivityConfigurationId +func ParseConnectivityConfigurationID(input string) (*ConnectivityConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&ConnectivityConfigurationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConnectivityConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseConnectivityConfigurationIDInsensitively parses 'input' case-insensitively into a ConnectivityConfigurationId +// note: this method should only be used for API response data and not user input +func ParseConnectivityConfigurationIDInsensitively(input string) (*ConnectivityConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&ConnectivityConfigurationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConnectivityConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ConnectivityConfigurationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.ConnectivityConfigurationName, ok = input.Parsed["connectivityConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "connectivityConfigurationName", input) + } + + return nil +} + +// ValidateConnectivityConfigurationID checks that 'input' can be parsed as a Connectivity Configuration ID +func ValidateConnectivityConfigurationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseConnectivityConfigurationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Connectivity Configuration ID +func (id ConnectivityConfigurationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/connectivityConfigurations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.ConnectivityConfigurationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Connectivity Configuration ID +func (id ConnectivityConfigurationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticConnectivityConfigurations", "connectivityConfigurations", "connectivityConfigurations"), + resourceids.UserSpecifiedSegment("connectivityConfigurationName", "connectivityConfigurationName"), + } +} + +// String returns a human-readable description of this Connectivity Configuration ID +func (id ConnectivityConfigurationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Connectivity Configuration Name: %q", id.ConnectivityConfigurationName), + } + return fmt.Sprintf("Connectivity Configuration (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/id_networkmanager.go new file mode 100644 index 000000000000..2c2e4adba2f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/id_networkmanager.go @@ -0,0 +1,130 @@ +package connectivityconfigurations + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkManagerId{}) +} + +var _ resourceids.ResourceId = &NetworkManagerId{} + +// NetworkManagerId is a struct representing the Resource ID for a Network Manager +type NetworkManagerId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string +} + +// NewNetworkManagerID returns a new NetworkManagerId struct +func NewNetworkManagerID(subscriptionId string, resourceGroupName string, networkManagerName string) NetworkManagerId { + return NetworkManagerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + } +} + +// ParseNetworkManagerID parses 'input' into a NetworkManagerId +func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkManagerIDInsensitively parses 'input' case-insensitively into a NetworkManagerId +// note: this method should only be used for API response data and not user input +func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkManagerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + return nil +} + +// ValidateNetworkManagerID checks that 'input' can be parsed as a Network Manager ID +func ValidateNetworkManagerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkManagerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Manager ID +func (id NetworkManagerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Manager ID +func (id NetworkManagerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + } +} + +// String returns a human-readable description of this Network Manager ID +func (id NetworkManagerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + } + return fmt.Sprintf("Network Manager (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_createorupdate.go new file mode 100644 index 000000000000..e8278cdba638 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_createorupdate.go @@ -0,0 +1,58 @@ +package connectivityconfigurations + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ConnectivityConfiguration +} + +// CreateOrUpdate ... +func (c ConnectivityConfigurationsClient) CreateOrUpdate(ctx context.Context, id ConnectivityConfigurationId, input ConnectivityConfiguration) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ConnectivityConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_delete.go new file mode 100644 index 000000000000..a1c5884b210a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_delete.go @@ -0,0 +1,100 @@ +package connectivityconfigurations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c ConnectivityConfigurationsClient) Delete(ctx context.Context, id ConnectivityConfigurationId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ConnectivityConfigurationsClient) DeleteThenPoll(ctx context.Context, id ConnectivityConfigurationId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_get.go new file mode 100644 index 000000000000..3471bd0faf14 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_get.go @@ -0,0 +1,53 @@ +package connectivityconfigurations + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ConnectivityConfiguration +} + +// Get ... +func (c ConnectivityConfigurationsClient) Get(ctx context.Context, id ConnectivityConfigurationId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ConnectivityConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_list.go new file mode 100644 index 000000000000..6663f9e80ae2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_list.go @@ -0,0 +1,134 @@ +package connectivityconfigurations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ConnectivityConfiguration +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ConnectivityConfiguration +} + +type ListOperationOptions struct { + Top *int64 +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ConnectivityConfigurationsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/connectivityConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ConnectivityConfiguration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ConnectivityConfigurationsClient) ListComplete(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, ConnectivityConfigurationOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ConnectivityConfigurationsClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkManagerId, options ListOperationOptions, predicate ConnectivityConfigurationOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ConnectivityConfiguration, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivityconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivityconfiguration.go new file mode 100644 index 000000000000..7c6238540d10 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivityconfiguration.go @@ -0,0 +1,17 @@ +package connectivityconfigurations + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectivityConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ConnectivityConfigurationProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivityconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivityconfigurationproperties.go new file mode 100644 index 000000000000..643d3c116ab4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivityconfigurationproperties.go @@ -0,0 +1,15 @@ +package connectivityconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectivityConfigurationProperties struct { + AppliesToGroups []ConnectivityGroupItem `json:"appliesToGroups"` + ConnectivityTopology ConnectivityTopology `json:"connectivityTopology"` + DeleteExistingPeering *DeleteExistingPeering `json:"deleteExistingPeering,omitempty"` + Description *string `json:"description,omitempty"` + Hubs *[]Hub `json:"hubs,omitempty"` + IsGlobal *IsGlobal `json:"isGlobal,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivitygroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivitygroupitem.go new file mode 100644 index 000000000000..0ac02d12f1a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivitygroupitem.go @@ -0,0 +1,11 @@ +package connectivityconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectivityGroupItem struct { + GroupConnectivity GroupConnectivity `json:"groupConnectivity"` + IsGlobal *IsGlobal `json:"isGlobal,omitempty"` + NetworkGroupId string `json:"networkGroupId"` + UseHubGateway *UseHubGateway `json:"useHubGateway,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_hub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_hub.go new file mode 100644 index 000000000000..5e43da03fdd6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_hub.go @@ -0,0 +1,9 @@ +package connectivityconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Hub struct { + ResourceId *string `json:"resourceId,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/predicates.go new file mode 100644 index 000000000000..ecab73247f2c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/predicates.go @@ -0,0 +1,32 @@ +package connectivityconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectivityConfigurationOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p ConnectivityConfigurationOperationPredicate) Matches(input ConnectivityConfiguration) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/version.go new file mode 100644 index 000000000000..37f9d754fae4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/version.go @@ -0,0 +1,10 @@ +package connectivityconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/connectivityconfigurations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/README.md new file mode 100644 index 000000000000..eef95f2721d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes` Documentation + +The `customipprefixes` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes" +``` + + +### Client Initialization + +```go +client := customipprefixes.NewCustomIPPrefixesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `CustomIPPrefixesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixName") + +payload := customipprefixes.CustomIPPrefix{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `CustomIPPrefixesClient.Delete` + +```go +ctx := context.TODO() +id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `CustomIPPrefixesClient.Get` + +```go +ctx := context.TODO() +id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixName") + +read, err := client.Get(ctx, id, customipprefixes.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CustomIPPrefixesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CustomIPPrefixesClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CustomIPPrefixesClient.UpdateTags` + +```go +ctx := context.TODO() +id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixName") + +payload := customipprefixes.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/client.go new file mode 100644 index 000000000000..2b241f7b0e76 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/client.go @@ -0,0 +1,26 @@ +package customipprefixes + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomIPPrefixesClient struct { + Client *resourcemanager.Client +} + +func NewCustomIPPrefixesClientWithBaseURI(sdkApi sdkEnv.Api) (*CustomIPPrefixesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "customipprefixes", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating CustomIPPrefixesClient: %+v", err) + } + + return &CustomIPPrefixesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/constants.go new file mode 100644 index 000000000000..2c9a9f7c2e25 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/constants.go @@ -0,0 +1,222 @@ +package customipprefixes + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CommissionedState string + +const ( + CommissionedStateCommissioned CommissionedState = "Commissioned" + CommissionedStateCommissionedNoInternetAdvertise CommissionedState = "CommissionedNoInternetAdvertise" + CommissionedStateCommissioning CommissionedState = "Commissioning" + CommissionedStateDecommissioning CommissionedState = "Decommissioning" + CommissionedStateDeprovisioned CommissionedState = "Deprovisioned" + CommissionedStateDeprovisioning CommissionedState = "Deprovisioning" + CommissionedStateProvisioned CommissionedState = "Provisioned" + CommissionedStateProvisioning CommissionedState = "Provisioning" +) + +func PossibleValuesForCommissionedState() []string { + return []string{ + string(CommissionedStateCommissioned), + string(CommissionedStateCommissionedNoInternetAdvertise), + string(CommissionedStateCommissioning), + string(CommissionedStateDecommissioning), + string(CommissionedStateDeprovisioned), + string(CommissionedStateDeprovisioning), + string(CommissionedStateProvisioned), + string(CommissionedStateProvisioning), + } +} + +func (s *CommissionedState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCommissionedState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCommissionedState(input string) (*CommissionedState, error) { + vals := map[string]CommissionedState{ + "commissioned": CommissionedStateCommissioned, + "commissionednointernetadvertise": CommissionedStateCommissionedNoInternetAdvertise, + "commissioning": CommissionedStateCommissioning, + "decommissioning": CommissionedStateDecommissioning, + "deprovisioned": CommissionedStateDeprovisioned, + "deprovisioning": CommissionedStateDeprovisioning, + "provisioned": CommissionedStateProvisioned, + "provisioning": CommissionedStateProvisioning, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CommissionedState(input) + return &out, nil +} + +type CustomIPPrefixType string + +const ( + CustomIPPrefixTypeChild CustomIPPrefixType = "Child" + CustomIPPrefixTypeParent CustomIPPrefixType = "Parent" + CustomIPPrefixTypeSingular CustomIPPrefixType = "Singular" +) + +func PossibleValuesForCustomIPPrefixType() []string { + return []string{ + string(CustomIPPrefixTypeChild), + string(CustomIPPrefixTypeParent), + string(CustomIPPrefixTypeSingular), + } +} + +func (s *CustomIPPrefixType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCustomIPPrefixType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCustomIPPrefixType(input string) (*CustomIPPrefixType, error) { + vals := map[string]CustomIPPrefixType{ + "child": CustomIPPrefixTypeChild, + "parent": CustomIPPrefixTypeParent, + "singular": CustomIPPrefixTypeSingular, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CustomIPPrefixType(input) + return &out, nil +} + +type Geo string + +const ( + GeoAFRI Geo = "AFRI" + GeoAPAC Geo = "APAC" + GeoAQ Geo = "AQ" + GeoEURO Geo = "EURO" + GeoGLOBAL Geo = "GLOBAL" + GeoLATAM Geo = "LATAM" + GeoME Geo = "ME" + GeoNAM Geo = "NAM" + GeoOCEANIA Geo = "OCEANIA" +) + +func PossibleValuesForGeo() []string { + return []string{ + string(GeoAFRI), + string(GeoAPAC), + string(GeoAQ), + string(GeoEURO), + string(GeoGLOBAL), + string(GeoLATAM), + string(GeoME), + string(GeoNAM), + string(GeoOCEANIA), + } +} + +func (s *Geo) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGeo(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGeo(input string) (*Geo, error) { + vals := map[string]Geo{ + "afri": GeoAFRI, + "apac": GeoAPAC, + "aq": GeoAQ, + "euro": GeoEURO, + "global": GeoGLOBAL, + "latam": GeoLATAM, + "me": GeoME, + "nam": GeoNAM, + "oceania": GeoOCEANIA, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Geo(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/id_customipprefix.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/id_customipprefix.go new file mode 100644 index 000000000000..bca852430032 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/id_customipprefix.go @@ -0,0 +1,130 @@ +package customipprefixes + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&CustomIPPrefixId{}) +} + +var _ resourceids.ResourceId = &CustomIPPrefixId{} + +// CustomIPPrefixId is a struct representing the Resource ID for a Custom I P Prefix +type CustomIPPrefixId struct { + SubscriptionId string + ResourceGroupName string + CustomIPPrefixName string +} + +// NewCustomIPPrefixID returns a new CustomIPPrefixId struct +func NewCustomIPPrefixID(subscriptionId string, resourceGroupName string, customIPPrefixName string) CustomIPPrefixId { + return CustomIPPrefixId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + CustomIPPrefixName: customIPPrefixName, + } +} + +// ParseCustomIPPrefixID parses 'input' into a CustomIPPrefixId +func ParseCustomIPPrefixID(input string) (*CustomIPPrefixId, error) { + parser := resourceids.NewParserFromResourceIdType(&CustomIPPrefixId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := CustomIPPrefixId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseCustomIPPrefixIDInsensitively parses 'input' case-insensitively into a CustomIPPrefixId +// note: this method should only be used for API response data and not user input +func ParseCustomIPPrefixIDInsensitively(input string) (*CustomIPPrefixId, error) { + parser := resourceids.NewParserFromResourceIdType(&CustomIPPrefixId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := CustomIPPrefixId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *CustomIPPrefixId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.CustomIPPrefixName, ok = input.Parsed["customIPPrefixName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "customIPPrefixName", input) + } + + return nil +} + +// ValidateCustomIPPrefixID checks that 'input' can be parsed as a Custom I P Prefix ID +func ValidateCustomIPPrefixID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseCustomIPPrefixID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Custom I P Prefix ID +func (id CustomIPPrefixId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/customIPPrefixes/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.CustomIPPrefixName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Custom I P Prefix ID +func (id CustomIPPrefixId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticCustomIPPrefixes", "customIPPrefixes", "customIPPrefixes"), + resourceids.UserSpecifiedSegment("customIPPrefixName", "customIPPrefixName"), + } +} + +// String returns a human-readable description of this Custom I P Prefix ID +func (id CustomIPPrefixId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Custom I P Prefix Name: %q", id.CustomIPPrefixName), + } + return fmt.Sprintf("Custom I P Prefix (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_createorupdate.go new file mode 100644 index 000000000000..88925ffb667a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_createorupdate.go @@ -0,0 +1,75 @@ +package customipprefixes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *CustomIPPrefix +} + +// CreateOrUpdate ... +func (c CustomIPPrefixesClient) CreateOrUpdate(ctx context.Context, id CustomIPPrefixId, input CustomIPPrefix) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c CustomIPPrefixesClient) CreateOrUpdateThenPoll(ctx context.Context, id CustomIPPrefixId, input CustomIPPrefix) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_delete.go new file mode 100644 index 000000000000..2233d70928d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_delete.go @@ -0,0 +1,71 @@ +package customipprefixes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c CustomIPPrefixesClient) Delete(ctx context.Context, id CustomIPPrefixId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c CustomIPPrefixesClient) DeleteThenPoll(ctx context.Context, id CustomIPPrefixId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_get.go new file mode 100644 index 000000000000..61164d79480e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_get.go @@ -0,0 +1,83 @@ +package customipprefixes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CustomIPPrefix +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c CustomIPPrefixesClient) Get(ctx context.Context, id CustomIPPrefixId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model CustomIPPrefix + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_list.go new file mode 100644 index 000000000000..34b4f325ee94 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_list.go @@ -0,0 +1,106 @@ +package customipprefixes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]CustomIPPrefix +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []CustomIPPrefix +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c CustomIPPrefixesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/customIPPrefixes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]CustomIPPrefix `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c CustomIPPrefixesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, CustomIPPrefixOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c CustomIPPrefixesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate CustomIPPrefixOperationPredicate) (result ListCompleteResult, err error) { + items := make([]CustomIPPrefix, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_listall.go new file mode 100644 index 000000000000..82eb645deab0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_listall.go @@ -0,0 +1,106 @@ +package customipprefixes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]CustomIPPrefix +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []CustomIPPrefix +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c CustomIPPrefixesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/customIPPrefixes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]CustomIPPrefix `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c CustomIPPrefixesClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, CustomIPPrefixOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c CustomIPPrefixesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate CustomIPPrefixOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]CustomIPPrefix, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_updatetags.go new file mode 100644 index 000000000000..2962a005ed86 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_updatetags.go @@ -0,0 +1,57 @@ +package customipprefixes + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CustomIPPrefix +} + +// UpdateTags ... +func (c CustomIPPrefixesClient) UpdateTags(ctx context.Context, id CustomIPPrefixId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model CustomIPPrefix + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_customipprefix.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_customipprefix.go new file mode 100644 index 000000000000..fc3d26ef7a4c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_customipprefix.go @@ -0,0 +1,21 @@ +package customipprefixes + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomIPPrefix struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *CustomIPPrefixPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_customipprefixpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_customipprefixpropertiesformat.go new file mode 100644 index 000000000000..f26a83b6b834 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_customipprefixpropertiesformat.go @@ -0,0 +1,22 @@ +package customipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomIPPrefixPropertiesFormat struct { + Asn *string `json:"asn,omitempty"` + AuthorizationMessage *string `json:"authorizationMessage,omitempty"` + ChildCustomIPPrefixes *[]SubResource `json:"childCustomIpPrefixes,omitempty"` + Cidr *string `json:"cidr,omitempty"` + CommissionedState *CommissionedState `json:"commissionedState,omitempty"` + CustomIPPrefixParent *SubResource `json:"customIpPrefixParent,omitempty"` + ExpressRouteAdvertise *bool `json:"expressRouteAdvertise,omitempty"` + FailedReason *string `json:"failedReason,omitempty"` + Geo *Geo `json:"geo,omitempty"` + NoInternetAdvertise *bool `json:"noInternetAdvertise,omitempty"` + PrefixType *CustomIPPrefixType `json:"prefixType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SignedMessage *string `json:"signedMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_subresource.go new file mode 100644 index 000000000000..2428ad08fc07 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_subresource.go @@ -0,0 +1,8 @@ +package customipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_tagsobject.go new file mode 100644 index 000000000000..f1f3aea2b6e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_tagsobject.go @@ -0,0 +1,8 @@ +package customipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/predicates.go new file mode 100644 index 000000000000..288f9cfa0428 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/predicates.go @@ -0,0 +1,37 @@ +package customipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomIPPrefixOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p CustomIPPrefixOperationPredicate) Matches(input CustomIPPrefix) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/version.go new file mode 100644 index 000000000000..aa6b2ccad1f5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/version.go @@ -0,0 +1,10 @@ +package customipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/customipprefixes/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/README.md index 7ce7de395e08..9b93d014bc62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies` Documentation -The `ddoscustompolicies` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `ddoscustompolicies` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/id_ddoscustompolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/id_ddoscustompolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/id_ddoscustompolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/id_ddoscustompolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/model_ddoscustompolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/model_ddoscustompolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/model_ddoscustompolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/model_ddoscustompolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/model_ddoscustompolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/model_ddoscustompolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/model_ddoscustompolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/model_ddoscustompolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/version.go index 706cecc08dfb..bb632dbc27ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/version.go @@ -3,8 +3,8 @@ package ddoscustompolicies // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/ddoscustompolicies/2023-11-01" + return "hashicorp/go-azure-sdk/ddoscustompolicies/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/README.md new file mode 100644 index 000000000000..28e27914bbc0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans` Documentation + +The `ddosprotectionplans` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans" +``` + + +### Client Initialization + +```go +client := ddosprotectionplans.NewDdosProtectionPlansClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `DdosProtectionPlansClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") + +payload := ddosprotectionplans.DdosProtectionPlan{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `DdosProtectionPlansClient.Delete` + +```go +ctx := context.TODO() +id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `DdosProtectionPlansClient.Get` + +```go +ctx := context.TODO() +id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DdosProtectionPlansClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `DdosProtectionPlansClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `DdosProtectionPlansClient.UpdateTags` + +```go +ctx := context.TODO() +id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") + +payload := ddosprotectionplans.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/client.go new file mode 100644 index 000000000000..e117bf49a8f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/client.go @@ -0,0 +1,26 @@ +package ddosprotectionplans + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosProtectionPlansClient struct { + Client *resourcemanager.Client +} + +func NewDdosProtectionPlansClientWithBaseURI(sdkApi sdkEnv.Api) (*DdosProtectionPlansClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "ddosprotectionplans", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating DdosProtectionPlansClient: %+v", err) + } + + return &DdosProtectionPlansClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/constants.go new file mode 100644 index 000000000000..ec2a63ded59f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/constants.go @@ -0,0 +1,57 @@ +package ddosprotectionplans + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/id_ddosprotectionplan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/id_ddosprotectionplan.go new file mode 100644 index 000000000000..b886f8a4b1fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/id_ddosprotectionplan.go @@ -0,0 +1,130 @@ +package ddosprotectionplans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&DdosProtectionPlanId{}) +} + +var _ resourceids.ResourceId = &DdosProtectionPlanId{} + +// DdosProtectionPlanId is a struct representing the Resource ID for a Ddos Protection Plan +type DdosProtectionPlanId struct { + SubscriptionId string + ResourceGroupName string + DdosProtectionPlanName string +} + +// NewDdosProtectionPlanID returns a new DdosProtectionPlanId struct +func NewDdosProtectionPlanID(subscriptionId string, resourceGroupName string, ddosProtectionPlanName string) DdosProtectionPlanId { + return DdosProtectionPlanId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + DdosProtectionPlanName: ddosProtectionPlanName, + } +} + +// ParseDdosProtectionPlanID parses 'input' into a DdosProtectionPlanId +func ParseDdosProtectionPlanID(input string) (*DdosProtectionPlanId, error) { + parser := resourceids.NewParserFromResourceIdType(&DdosProtectionPlanId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := DdosProtectionPlanId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseDdosProtectionPlanIDInsensitively parses 'input' case-insensitively into a DdosProtectionPlanId +// note: this method should only be used for API response data and not user input +func ParseDdosProtectionPlanIDInsensitively(input string) (*DdosProtectionPlanId, error) { + parser := resourceids.NewParserFromResourceIdType(&DdosProtectionPlanId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := DdosProtectionPlanId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *DdosProtectionPlanId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.DdosProtectionPlanName, ok = input.Parsed["ddosProtectionPlanName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ddosProtectionPlanName", input) + } + + return nil +} + +// ValidateDdosProtectionPlanID checks that 'input' can be parsed as a Ddos Protection Plan ID +func ValidateDdosProtectionPlanID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseDdosProtectionPlanID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Ddos Protection Plan ID +func (id DdosProtectionPlanId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/ddosProtectionPlans/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.DdosProtectionPlanName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Ddos Protection Plan ID +func (id DdosProtectionPlanId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticDdosProtectionPlans", "ddosProtectionPlans", "ddosProtectionPlans"), + resourceids.UserSpecifiedSegment("ddosProtectionPlanName", "ddosProtectionPlanName"), + } +} + +// String returns a human-readable description of this Ddos Protection Plan ID +func (id DdosProtectionPlanId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Ddos Protection Plan Name: %q", id.DdosProtectionPlanName), + } + return fmt.Sprintf("Ddos Protection Plan (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_createorupdate.go new file mode 100644 index 000000000000..4cd5100b0408 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_createorupdate.go @@ -0,0 +1,75 @@ +package ddosprotectionplans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *DdosProtectionPlan +} + +// CreateOrUpdate ... +func (c DdosProtectionPlansClient) CreateOrUpdate(ctx context.Context, id DdosProtectionPlanId, input DdosProtectionPlan) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c DdosProtectionPlansClient) CreateOrUpdateThenPoll(ctx context.Context, id DdosProtectionPlanId, input DdosProtectionPlan) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_delete.go new file mode 100644 index 000000000000..43d058cf8b84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_delete.go @@ -0,0 +1,71 @@ +package ddosprotectionplans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c DdosProtectionPlansClient) Delete(ctx context.Context, id DdosProtectionPlanId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c DdosProtectionPlansClient) DeleteThenPoll(ctx context.Context, id DdosProtectionPlanId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_get.go new file mode 100644 index 000000000000..7a92875442ee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_get.go @@ -0,0 +1,53 @@ +package ddosprotectionplans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *DdosProtectionPlan +} + +// Get ... +func (c DdosProtectionPlansClient) Get(ctx context.Context, id DdosProtectionPlanId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model DdosProtectionPlan + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_list.go new file mode 100644 index 000000000000..3862b1500450 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_list.go @@ -0,0 +1,106 @@ +package ddosprotectionplans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]DdosProtectionPlan +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []DdosProtectionPlan +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c DdosProtectionPlansClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/ddosProtectionPlans", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]DdosProtectionPlan `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c DdosProtectionPlansClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, DdosProtectionPlanOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c DdosProtectionPlansClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate DdosProtectionPlanOperationPredicate) (result ListCompleteResult, err error) { + items := make([]DdosProtectionPlan, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_listbyresourcegroup.go new file mode 100644 index 000000000000..0f9eecd1db7e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_listbyresourcegroup.go @@ -0,0 +1,106 @@ +package ddosprotectionplans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]DdosProtectionPlan +} + +type ListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []DdosProtectionPlan +} + +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByResourceGroup ... +func (c DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/ddosProtectionPlans", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]DdosProtectionPlan `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByResourceGroupComplete retrieves all the results into a single object +func (c DdosProtectionPlansClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, DdosProtectionPlanOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c DdosProtectionPlansClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate DdosProtectionPlanOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]DdosProtectionPlan, 0) + + resp, err := c.ListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_updatetags.go new file mode 100644 index 000000000000..a5b91c81b71e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_updatetags.go @@ -0,0 +1,57 @@ +package ddosprotectionplans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *DdosProtectionPlan +} + +// UpdateTags ... +func (c DdosProtectionPlansClient) UpdateTags(ctx context.Context, id DdosProtectionPlanId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model DdosProtectionPlan + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_ddosprotectionplan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_ddosprotectionplan.go new file mode 100644 index 000000000000..3313192e51bd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_ddosprotectionplan.go @@ -0,0 +1,14 @@ +package ddosprotectionplans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosProtectionPlan struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *DdosProtectionPlanPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_ddosprotectionplanpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_ddosprotectionplanpropertiesformat.go new file mode 100644 index 000000000000..b1f0f51665dc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_ddosprotectionplanpropertiesformat.go @@ -0,0 +1,11 @@ +package ddosprotectionplans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosProtectionPlanPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIPAddresses,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_subresource.go new file mode 100644 index 000000000000..066803386d80 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_subresource.go @@ -0,0 +1,8 @@ +package ddosprotectionplans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_tagsobject.go new file mode 100644 index 000000000000..99bf4d851b59 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_tagsobject.go @@ -0,0 +1,8 @@ +package ddosprotectionplans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/predicates.go new file mode 100644 index 000000000000..6ad9bbf53742 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/predicates.go @@ -0,0 +1,37 @@ +package ddosprotectionplans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosProtectionPlanOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p DdosProtectionPlanOperationPredicate) Matches(input DdosProtectionPlan) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/version.go new file mode 100644 index 000000000000..e88360e45199 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/version.go @@ -0,0 +1,10 @@ +package ddosprotectionplans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/ddosprotectionplans/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/README.md similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/README.md index 6006c196528d..ef3b05484153 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration` Documentation -The `dscpconfiguration` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `dscpconfiguration` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/id_dscpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/id_dscpconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/id_dscpconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/id_dscpconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_dscpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_dscpconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_dscpconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_dscpconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_dscpconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_dscpconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_dscpconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_dscpconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlog.go new file mode 100644 index 000000000000..bf6d87804608 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlog.go @@ -0,0 +1,19 @@ +package dscpconfiguration + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlogpropertiesformat.go similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_flowlogpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlogpropertiesformat.go index 71ebfa45fde7..11e34ba75a8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_flowlogpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlogpropertiesformat.go @@ -5,6 +5,7 @@ package dscpconfiguration type FlowLogPropertiesFormat struct { Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` Format *FlowLogFormatParameters `json:"format,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceproperties.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceproperties.go index 1852ce3fa31d..414f505d677c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceproperties.go @@ -6,6 +6,7 @@ package dscpconfiguration type PrivateLinkServiceProperties struct { Alias *string `json:"alias,omitempty"` AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` Fqdns *[]string `json:"fqdns,omitempty"` IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_qosdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_qosdefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_qosdefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_qosdefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_qosiprange.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_qosiprange.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_qosiprange.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_qosiprange.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_qosportrange.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_qosportrange.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_qosportrange.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_qosportrange.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpropertiesformat.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpropertiesformat.go index 638a6d73f522..aa82fc5a9eb1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpropertiesformat.go @@ -5,6 +5,7 @@ package dscpconfiguration type ServiceEndpointPropertiesFormat struct { Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Service *string `json:"service,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/version.go index 64f1b8056fdc..25e93e8703ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/version.go @@ -3,8 +3,8 @@ package dscpconfiguration // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/dscpconfiguration/2023-11-01" + return "hashicorp/go-azure-sdk/dscpconfiguration/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/README.md similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/README.md index d8dd7bd8d7c5..0edc6e72a11c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations` Documentation -The `dscpconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `dscpconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/method_dscpconfigurationlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/method_dscpconfigurationlist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/method_dscpconfigurationlist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/method_dscpconfigurationlist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/method_dscpconfigurationlistall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/method_dscpconfigurationlistall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/method_dscpconfigurationlistall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/method_dscpconfigurationlistall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_dscpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_dscpconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_dscpconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_dscpconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_dscpconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_dscpconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_dscpconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_dscpconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlog.go new file mode 100644 index 000000000000..c4fcf026e8ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlog.go @@ -0,0 +1,19 @@ +package dscpconfigurations + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlogpropertiesformat.go similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_flowlogpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlogpropertiesformat.go index 70fecb2d8522..52821e95a743 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_flowlogpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlogpropertiesformat.go @@ -5,6 +5,7 @@ package dscpconfigurations type FlowLogPropertiesFormat struct { Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` Format *FlowLogFormatParameters `json:"format,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceproperties.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceproperties.go index 0054e8840ee7..97d69c9c1978 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceproperties.go @@ -6,6 +6,7 @@ package dscpconfigurations type PrivateLinkServiceProperties struct { Alias *string `json:"alias,omitempty"` AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` Fqdns *[]string `json:"fqdns,omitempty"` IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_qosdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_qosdefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_qosdefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_qosdefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_qosiprange.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_qosiprange.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_qosiprange.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_qosiprange.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_qosportrange.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_qosportrange.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_qosportrange.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_qosportrange.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpropertiesformat.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpropertiesformat.go index a134bda64bd6..b8e43ff379c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpropertiesformat.go @@ -5,6 +5,7 @@ package dscpconfigurations type ServiceEndpointPropertiesFormat struct { Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Service *string `json:"service,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/version.go index 291ded8f891a..0fd265ed561d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/version.go @@ -3,8 +3,8 @@ package dscpconfigurations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/dscpconfigurations/2023-11-01" + return "hashicorp/go-azure-sdk/dscpconfigurations/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/README.md similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/README.md index f2d59a07105a..c3b9dbf7d44f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices` Documentation -The `endpointservices` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `endpointservices` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/method_availableendpointserviceslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/method_availableendpointserviceslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/method_availableendpointserviceslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/method_availableendpointserviceslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/model_endpointserviceresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/model_endpointserviceresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/model_endpointserviceresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/model_endpointserviceresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/version.go index 590185eb2a4c..29392808d57e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/version.go @@ -3,8 +3,8 @@ package endpointservices // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/endpointservices/2023-11-01" + return "hashicorp/go-azure-sdk/endpointservices/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/README.md similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/README.md index 472ca59abc53..a6f98d383ea8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable` Documentation -The `expressroutecircuitarptable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `expressroutecircuitarptable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/id_arptable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/id_arptable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/id_arptable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/id_arptable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/model_expressroutecircuitarptable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/model_expressroutecircuitarptable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/model_expressroutecircuitarptable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/model_expressroutecircuitarptable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/version.go index 560b7f653555..3647d6c33251 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/version.go @@ -3,8 +3,8 @@ package expressroutecircuitarptable // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecircuitarptable/2023-11-01" + return "hashicorp/go-azure-sdk/expressroutecircuitarptable/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/README.md new file mode 100644 index 000000000000..f286292f2980 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations` Documentation + +The `expressroutecircuitauthorizations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations" +``` + + +### Client Initialization + +```go +client := expressroutecircuitauthorizations.NewExpressRouteCircuitAuthorizationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCircuitAuthorizationsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "authorizationName") + +payload := expressroutecircuitauthorizations.ExpressRouteCircuitAuthorization{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCircuitAuthorizationsClient.Delete` + +```go +ctx := context.TODO() +id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "authorizationName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCircuitAuthorizationsClient.Get` + +```go +ctx := context.TODO() +id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "authorizationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteCircuitAuthorizationsClient.List` + +```go +ctx := context.TODO() +id := expressroutecircuitauthorizations.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/client.go new file mode 100644 index 000000000000..2d3988ae8a8c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/client.go @@ -0,0 +1,26 @@ +package expressroutecircuitauthorizations + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitAuthorizationsClient struct { + Client *resourcemanager.Client +} + +func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCircuitAuthorizationsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "expressroutecircuitauthorizations", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ExpressRouteCircuitAuthorizationsClient: %+v", err) + } + + return &ExpressRouteCircuitAuthorizationsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/constants.go new file mode 100644 index 000000000000..052d235a64f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/constants.go @@ -0,0 +1,98 @@ +package expressroutecircuitauthorizations + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AuthorizationUseStatus string + +const ( + AuthorizationUseStatusAvailable AuthorizationUseStatus = "Available" + AuthorizationUseStatusInUse AuthorizationUseStatus = "InUse" +) + +func PossibleValuesForAuthorizationUseStatus() []string { + return []string{ + string(AuthorizationUseStatusAvailable), + string(AuthorizationUseStatusInUse), + } +} + +func (s *AuthorizationUseStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAuthorizationUseStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAuthorizationUseStatus(input string) (*AuthorizationUseStatus, error) { + vals := map[string]AuthorizationUseStatus{ + "available": AuthorizationUseStatusAvailable, + "inuse": AuthorizationUseStatusInUse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AuthorizationUseStatus(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/id_authorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/id_authorization.go new file mode 100644 index 000000000000..9da101d4a627 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/id_authorization.go @@ -0,0 +1,139 @@ +package expressroutecircuitauthorizations + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&AuthorizationId{}) +} + +var _ resourceids.ResourceId = &AuthorizationId{} + +// AuthorizationId is a struct representing the Resource ID for a Authorization +type AuthorizationId struct { + SubscriptionId string + ResourceGroupName string + ExpressRouteCircuitName string + AuthorizationName string +} + +// NewAuthorizationID returns a new AuthorizationId struct +func NewAuthorizationID(subscriptionId string, resourceGroupName string, expressRouteCircuitName string, authorizationName string) AuthorizationId { + return AuthorizationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ExpressRouteCircuitName: expressRouteCircuitName, + AuthorizationName: authorizationName, + } +} + +// ParseAuthorizationID parses 'input' into a AuthorizationId +func ParseAuthorizationID(input string) (*AuthorizationId, error) { + parser := resourceids.NewParserFromResourceIdType(&AuthorizationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := AuthorizationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseAuthorizationIDInsensitively parses 'input' case-insensitively into a AuthorizationId +// note: this method should only be used for API response data and not user input +func ParseAuthorizationIDInsensitively(input string) (*AuthorizationId, error) { + parser := resourceids.NewParserFromResourceIdType(&AuthorizationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := AuthorizationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *AuthorizationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ExpressRouteCircuitName, ok = input.Parsed["expressRouteCircuitName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteCircuitName", input) + } + + if id.AuthorizationName, ok = input.Parsed["authorizationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "authorizationName", input) + } + + return nil +} + +// ValidateAuthorizationID checks that 'input' can be parsed as a Authorization ID +func ValidateAuthorizationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseAuthorizationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Authorization ID +func (id AuthorizationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRouteCircuits/%s/authorizations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRouteCircuitName, id.AuthorizationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Authorization ID +func (id AuthorizationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), + resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitName"), + resourceids.StaticSegment("staticAuthorizations", "authorizations", "authorizations"), + resourceids.UserSpecifiedSegment("authorizationName", "authorizationName"), + } +} + +// String returns a human-readable description of this Authorization ID +func (id AuthorizationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Express Route Circuit Name: %q", id.ExpressRouteCircuitName), + fmt.Sprintf("Authorization Name: %q", id.AuthorizationName), + } + return fmt.Sprintf("Authorization (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/id_expressroutecircuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/id_expressroutecircuit.go new file mode 100644 index 000000000000..210f0ae6366a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/id_expressroutecircuit.go @@ -0,0 +1,130 @@ +package expressroutecircuitauthorizations + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ExpressRouteCircuitId{}) +} + +var _ resourceids.ResourceId = &ExpressRouteCircuitId{} + +// ExpressRouteCircuitId is a struct representing the Resource ID for a Express Route Circuit +type ExpressRouteCircuitId struct { + SubscriptionId string + ResourceGroupName string + ExpressRouteCircuitName string +} + +// NewExpressRouteCircuitID returns a new ExpressRouteCircuitId struct +func NewExpressRouteCircuitID(subscriptionId string, resourceGroupName string, expressRouteCircuitName string) ExpressRouteCircuitId { + return ExpressRouteCircuitId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ExpressRouteCircuitName: expressRouteCircuitName, + } +} + +// ParseExpressRouteCircuitID parses 'input' into a ExpressRouteCircuitId +func ParseExpressRouteCircuitID(input string) (*ExpressRouteCircuitId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRouteCircuitId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRouteCircuitId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseExpressRouteCircuitIDInsensitively parses 'input' case-insensitively into a ExpressRouteCircuitId +// note: this method should only be used for API response data and not user input +func ParseExpressRouteCircuitIDInsensitively(input string) (*ExpressRouteCircuitId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRouteCircuitId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRouteCircuitId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ExpressRouteCircuitId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ExpressRouteCircuitName, ok = input.Parsed["expressRouteCircuitName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteCircuitName", input) + } + + return nil +} + +// ValidateExpressRouteCircuitID checks that 'input' can be parsed as a Express Route Circuit ID +func ValidateExpressRouteCircuitID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseExpressRouteCircuitID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Express Route Circuit ID +func (id ExpressRouteCircuitId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRouteCircuits/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRouteCircuitName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Express Route Circuit ID +func (id ExpressRouteCircuitId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), + resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitName"), + } +} + +// String returns a human-readable description of this Express Route Circuit ID +func (id ExpressRouteCircuitId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Express Route Circuit Name: %q", id.ExpressRouteCircuitName), + } + return fmt.Sprintf("Express Route Circuit (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_createorupdate.go new file mode 100644 index 000000000000..5fe3d7093203 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_createorupdate.go @@ -0,0 +1,75 @@ +package expressroutecircuitauthorizations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteCircuitAuthorization +} + +// CreateOrUpdate ... +func (c ExpressRouteCircuitAuthorizationsClient) CreateOrUpdate(ctx context.Context, id AuthorizationId, input ExpressRouteCircuitAuthorization) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ExpressRouteCircuitAuthorizationsClient) CreateOrUpdateThenPoll(ctx context.Context, id AuthorizationId, input ExpressRouteCircuitAuthorization) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_delete.go new file mode 100644 index 000000000000..b2c01bb7f11f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_delete.go @@ -0,0 +1,71 @@ +package expressroutecircuitauthorizations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ExpressRouteCircuitAuthorizationsClient) Delete(ctx context.Context, id AuthorizationId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ExpressRouteCircuitAuthorizationsClient) DeleteThenPoll(ctx context.Context, id AuthorizationId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_get.go new file mode 100644 index 000000000000..823c3b06cfc4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_get.go @@ -0,0 +1,53 @@ +package expressroutecircuitauthorizations + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteCircuitAuthorization +} + +// Get ... +func (c ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, id AuthorizationId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRouteCircuitAuthorization + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_list.go new file mode 100644 index 000000000000..b726cae911d8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_list.go @@ -0,0 +1,105 @@ +package expressroutecircuitauthorizations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ExpressRouteCircuitAuthorization +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRouteCircuitAuthorization +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, id ExpressRouteCircuitId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/authorizations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ExpressRouteCircuitAuthorization `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ExpressRouteCircuitAuthorizationsClient) ListComplete(ctx context.Context, id ExpressRouteCircuitId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, ExpressRouteCircuitAuthorizationOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ExpressRouteCircuitAuthorizationsClient) ListCompleteMatchingPredicate(ctx context.Context, id ExpressRouteCircuitId, predicate ExpressRouteCircuitAuthorizationOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ExpressRouteCircuitAuthorization, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/model_authorizationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/model_authorizationpropertiesformat.go new file mode 100644 index 000000000000..0aa969a9e6f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/model_authorizationpropertiesformat.go @@ -0,0 +1,11 @@ +package expressroutecircuitauthorizations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AuthorizationPropertiesFormat struct { + AuthorizationKey *string `json:"authorizationKey,omitempty"` + AuthorizationUseStatus *AuthorizationUseStatus `json:"authorizationUseStatus,omitempty"` + ConnectionResourceUri *string `json:"connectionResourceUri,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/model_expressroutecircuitauthorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/model_expressroutecircuitauthorization.go new file mode 100644 index 000000000000..b4b084362fcc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/model_expressroutecircuitauthorization.go @@ -0,0 +1,12 @@ +package expressroutecircuitauthorizations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitAuthorization struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *AuthorizationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/predicates.go new file mode 100644 index 000000000000..3533e80a13ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/predicates.go @@ -0,0 +1,32 @@ +package expressroutecircuitauthorizations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitAuthorizationOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p ExpressRouteCircuitAuthorizationOperationPredicate) Matches(input ExpressRouteCircuitAuthorization) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/version.go new file mode 100644 index 000000000000..748256948c87 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/version.go @@ -0,0 +1,10 @@ +package expressroutecircuitauthorizations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecircuitauthorizations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/README.md new file mode 100644 index 000000000000..e3363bcae8a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/README.md @@ -0,0 +1,83 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections` Documentation + +The `expressroutecircuitconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections" +``` + + +### Client Initialization + +```go +client := expressroutecircuitconnections.NewExpressRouteCircuitConnectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCircuitConnectionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "connectionName") + +payload := expressroutecircuitconnections.ExpressRouteCircuitConnection{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCircuitConnectionsClient.Delete` + +```go +ctx := context.TODO() +id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "connectionName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCircuitConnectionsClient.Get` + +```go +ctx := context.TODO() +id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "connectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteCircuitConnectionsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/client.go new file mode 100644 index 000000000000..6ce57a4cb92c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/client.go @@ -0,0 +1,26 @@ +package expressroutecircuitconnections + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitConnectionsClient struct { + Client *resourcemanager.Client +} + +func NewExpressRouteCircuitConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCircuitConnectionsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "expressroutecircuitconnections", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ExpressRouteCircuitConnectionsClient: %+v", err) + } + + return &ExpressRouteCircuitConnectionsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/constants.go new file mode 100644 index 000000000000..8bfeb3344f9b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/constants.go @@ -0,0 +1,101 @@ +package expressroutecircuitconnections + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CircuitConnectionStatus string + +const ( + CircuitConnectionStatusConnected CircuitConnectionStatus = "Connected" + CircuitConnectionStatusConnecting CircuitConnectionStatus = "Connecting" + CircuitConnectionStatusDisconnected CircuitConnectionStatus = "Disconnected" +) + +func PossibleValuesForCircuitConnectionStatus() []string { + return []string{ + string(CircuitConnectionStatusConnected), + string(CircuitConnectionStatusConnecting), + string(CircuitConnectionStatusDisconnected), + } +} + +func (s *CircuitConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCircuitConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCircuitConnectionStatus(input string) (*CircuitConnectionStatus, error) { + vals := map[string]CircuitConnectionStatus{ + "connected": CircuitConnectionStatusConnected, + "connecting": CircuitConnectionStatusConnecting, + "disconnected": CircuitConnectionStatusDisconnected, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CircuitConnectionStatus(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/id_peeringconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/id_peeringconnection.go new file mode 100644 index 000000000000..07c1226d2002 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/id_peeringconnection.go @@ -0,0 +1,148 @@ +package expressroutecircuitconnections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&PeeringConnectionId{}) +} + +var _ resourceids.ResourceId = &PeeringConnectionId{} + +// PeeringConnectionId is a struct representing the Resource ID for a Peering Connection +type PeeringConnectionId struct { + SubscriptionId string + ResourceGroupName string + ExpressRouteCircuitName string + PeeringName string + ConnectionName string +} + +// NewPeeringConnectionID returns a new PeeringConnectionId struct +func NewPeeringConnectionID(subscriptionId string, resourceGroupName string, expressRouteCircuitName string, peeringName string, connectionName string) PeeringConnectionId { + return PeeringConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ExpressRouteCircuitName: expressRouteCircuitName, + PeeringName: peeringName, + ConnectionName: connectionName, + } +} + +// ParsePeeringConnectionID parses 'input' into a PeeringConnectionId +func ParsePeeringConnectionID(input string) (*PeeringConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&PeeringConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PeeringConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParsePeeringConnectionIDInsensitively parses 'input' case-insensitively into a PeeringConnectionId +// note: this method should only be used for API response data and not user input +func ParsePeeringConnectionIDInsensitively(input string) (*PeeringConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&PeeringConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PeeringConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *PeeringConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ExpressRouteCircuitName, ok = input.Parsed["expressRouteCircuitName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteCircuitName", input) + } + + if id.PeeringName, ok = input.Parsed["peeringName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "peeringName", input) + } + + if id.ConnectionName, ok = input.Parsed["connectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "connectionName", input) + } + + return nil +} + +// ValidatePeeringConnectionID checks that 'input' can be parsed as a Peering Connection ID +func ValidatePeeringConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParsePeeringConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Peering Connection ID +func (id PeeringConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRouteCircuits/%s/peerings/%s/connections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRouteCircuitName, id.PeeringName, id.ConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Peering Connection ID +func (id PeeringConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), + resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitName"), + resourceids.StaticSegment("staticPeerings", "peerings", "peerings"), + resourceids.UserSpecifiedSegment("peeringName", "peeringName"), + resourceids.StaticSegment("staticConnections", "connections", "connections"), + resourceids.UserSpecifiedSegment("connectionName", "connectionName"), + } +} + +// String returns a human-readable description of this Peering Connection ID +func (id PeeringConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Express Route Circuit Name: %q", id.ExpressRouteCircuitName), + fmt.Sprintf("Peering Name: %q", id.PeeringName), + fmt.Sprintf("Connection Name: %q", id.ConnectionName), + } + return fmt.Sprintf("Peering Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_createorupdate.go new file mode 100644 index 000000000000..25bb50bd1b32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_createorupdate.go @@ -0,0 +1,75 @@ +package expressroutecircuitconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteCircuitConnection +} + +// CreateOrUpdate ... +func (c ExpressRouteCircuitConnectionsClient) CreateOrUpdate(ctx context.Context, id PeeringConnectionId, input ExpressRouteCircuitConnection) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ExpressRouteCircuitConnectionsClient) CreateOrUpdateThenPoll(ctx context.Context, id PeeringConnectionId, input ExpressRouteCircuitConnection) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_delete.go new file mode 100644 index 000000000000..1d813338ead8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_delete.go @@ -0,0 +1,71 @@ +package expressroutecircuitconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ExpressRouteCircuitConnectionsClient) Delete(ctx context.Context, id PeeringConnectionId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ExpressRouteCircuitConnectionsClient) DeleteThenPoll(ctx context.Context, id PeeringConnectionId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_get.go new file mode 100644 index 000000000000..ca510dffdd4d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_get.go @@ -0,0 +1,53 @@ +package expressroutecircuitconnections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteCircuitConnection +} + +// Get ... +func (c ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, id PeeringConnectionId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRouteCircuitConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_list.go new file mode 100644 index 000000000000..bacd8586f75c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_list.go @@ -0,0 +1,106 @@ +package expressroutecircuitconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ExpressRouteCircuitConnection +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRouteCircuitConnection +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ExpressRouteCircuitConnectionsClient) List(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/connections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ExpressRouteCircuitConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ExpressRouteCircuitConnectionsClient) ListComplete(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, ExpressRouteCircuitConnectionOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ExpressRouteCircuitConnectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId, predicate ExpressRouteCircuitConnectionOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ExpressRouteCircuitConnection, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_expressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_expressroutecircuitconnection.go new file mode 100644 index 000000000000..689bf9a8e12e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_expressroutecircuitconnection.go @@ -0,0 +1,12 @@ +package expressroutecircuitconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_expressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_expressroutecircuitconnectionpropertiesformat.go new file mode 100644 index 000000000000..a1bf981acf31 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_expressroutecircuitconnectionpropertiesformat.go @@ -0,0 +1,14 @@ +package expressroutecircuitconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitConnectionPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AuthorizationKey *string `json:"authorizationKey,omitempty"` + CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` + ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` + IPv6CircuitConnectionConfig *IPv6CircuitConnectionConfig `json:"ipv6CircuitConnectionConfig,omitempty"` + PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_ipv6circuitconnectionconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_ipv6circuitconnectionconfig.go new file mode 100644 index 000000000000..580b8a8dcd7b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_ipv6circuitconnectionconfig.go @@ -0,0 +1,9 @@ +package expressroutecircuitconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPv6CircuitConnectionConfig struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_subresource.go new file mode 100644 index 000000000000..d6673ed96dc6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_subresource.go @@ -0,0 +1,8 @@ +package expressroutecircuitconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/predicates.go new file mode 100644 index 000000000000..6c65b4df05d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/predicates.go @@ -0,0 +1,32 @@ +package expressroutecircuitconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitConnectionOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p ExpressRouteCircuitConnectionOperationPredicate) Matches(input ExpressRouteCircuitConnection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/version.go new file mode 100644 index 000000000000..d7398ff61441 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/version.go @@ -0,0 +1,10 @@ +package expressroutecircuitconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecircuitconnections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/README.md new file mode 100644 index 000000000000..3fda229eedea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/README.md @@ -0,0 +1,83 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings` Documentation + +The `expressroutecircuitpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings" +``` + + +### Client Initialization + +```go +client := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCircuitPeeringsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") + +payload := expressroutecircuitpeerings.ExpressRouteCircuitPeering{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCircuitPeeringsClient.Delete` + +```go +ctx := context.TODO() +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCircuitPeeringsClient.Get` + +```go +ctx := context.TODO() +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteCircuitPeeringsClient.List` + +```go +ctx := context.TODO() +id := expressroutecircuitpeerings.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/client.go new file mode 100644 index 000000000000..ce7c06a4f7b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/client.go @@ -0,0 +1,26 @@ +package expressroutecircuitpeerings + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeeringsClient struct { + Client *resourcemanager.Client +} + +func NewExpressRouteCircuitPeeringsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCircuitPeeringsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "expressroutecircuitpeerings", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ExpressRouteCircuitPeeringsClient: %+v", err) + } + + return &ExpressRouteCircuitPeeringsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/constants.go new file mode 100644 index 000000000000..98d21da2c703 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/constants.go @@ -0,0 +1,274 @@ +package expressroutecircuitpeerings + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CircuitConnectionStatus string + +const ( + CircuitConnectionStatusConnected CircuitConnectionStatus = "Connected" + CircuitConnectionStatusConnecting CircuitConnectionStatus = "Connecting" + CircuitConnectionStatusDisconnected CircuitConnectionStatus = "Disconnected" +) + +func PossibleValuesForCircuitConnectionStatus() []string { + return []string{ + string(CircuitConnectionStatusConnected), + string(CircuitConnectionStatusConnecting), + string(CircuitConnectionStatusDisconnected), + } +} + +func (s *CircuitConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCircuitConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCircuitConnectionStatus(input string) (*CircuitConnectionStatus, error) { + vals := map[string]CircuitConnectionStatus{ + "connected": CircuitConnectionStatusConnected, + "connecting": CircuitConnectionStatusConnecting, + "disconnected": CircuitConnectionStatusDisconnected, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CircuitConnectionStatus(input) + return &out, nil +} + +type ExpressRouteCircuitPeeringAdvertisedPublicPrefixState string + +const ( + ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configured" + ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configuring" + ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "NotConfigured" + ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "ValidationNeeded" +) + +func PossibleValuesForExpressRouteCircuitPeeringAdvertisedPublicPrefixState() []string { + return []string{ + string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured), + string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring), + string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured), + string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded), + } +} + +func (s *ExpressRouteCircuitPeeringAdvertisedPublicPrefixState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteCircuitPeeringAdvertisedPublicPrefixState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteCircuitPeeringAdvertisedPublicPrefixState(input string) (*ExpressRouteCircuitPeeringAdvertisedPublicPrefixState, error) { + vals := map[string]ExpressRouteCircuitPeeringAdvertisedPublicPrefixState{ + "configured": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured, + "configuring": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring, + "notconfigured": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured, + "validationneeded": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteCircuitPeeringAdvertisedPublicPrefixState(input) + return &out, nil +} + +type ExpressRouteCircuitPeeringState string + +const ( + ExpressRouteCircuitPeeringStateDisabled ExpressRouteCircuitPeeringState = "Disabled" + ExpressRouteCircuitPeeringStateEnabled ExpressRouteCircuitPeeringState = "Enabled" +) + +func PossibleValuesForExpressRouteCircuitPeeringState() []string { + return []string{ + string(ExpressRouteCircuitPeeringStateDisabled), + string(ExpressRouteCircuitPeeringStateEnabled), + } +} + +func (s *ExpressRouteCircuitPeeringState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteCircuitPeeringState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteCircuitPeeringState(input string) (*ExpressRouteCircuitPeeringState, error) { + vals := map[string]ExpressRouteCircuitPeeringState{ + "disabled": ExpressRouteCircuitPeeringStateDisabled, + "enabled": ExpressRouteCircuitPeeringStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteCircuitPeeringState(input) + return &out, nil +} + +type ExpressRoutePeeringState string + +const ( + ExpressRoutePeeringStateDisabled ExpressRoutePeeringState = "Disabled" + ExpressRoutePeeringStateEnabled ExpressRoutePeeringState = "Enabled" +) + +func PossibleValuesForExpressRoutePeeringState() []string { + return []string{ + string(ExpressRoutePeeringStateDisabled), + string(ExpressRoutePeeringStateEnabled), + } +} + +func (s *ExpressRoutePeeringState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRoutePeeringState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRoutePeeringState(input string) (*ExpressRoutePeeringState, error) { + vals := map[string]ExpressRoutePeeringState{ + "disabled": ExpressRoutePeeringStateDisabled, + "enabled": ExpressRoutePeeringStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRoutePeeringState(input) + return &out, nil +} + +type ExpressRoutePeeringType string + +const ( + ExpressRoutePeeringTypeAzurePrivatePeering ExpressRoutePeeringType = "AzurePrivatePeering" + ExpressRoutePeeringTypeAzurePublicPeering ExpressRoutePeeringType = "AzurePublicPeering" + ExpressRoutePeeringTypeMicrosoftPeering ExpressRoutePeeringType = "MicrosoftPeering" +) + +func PossibleValuesForExpressRoutePeeringType() []string { + return []string{ + string(ExpressRoutePeeringTypeAzurePrivatePeering), + string(ExpressRoutePeeringTypeAzurePublicPeering), + string(ExpressRoutePeeringTypeMicrosoftPeering), + } +} + +func (s *ExpressRoutePeeringType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRoutePeeringType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRoutePeeringType(input string) (*ExpressRoutePeeringType, error) { + vals := map[string]ExpressRoutePeeringType{ + "azureprivatepeering": ExpressRoutePeeringTypeAzurePrivatePeering, + "azurepublicpeering": ExpressRoutePeeringTypeAzurePublicPeering, + "microsoftpeering": ExpressRoutePeeringTypeMicrosoftPeering, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRoutePeeringType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/id_expressroutecircuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/id_expressroutecircuit.go new file mode 100644 index 000000000000..02a14699ffa4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/id_expressroutecircuit.go @@ -0,0 +1,130 @@ +package expressroutecircuitpeerings + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ExpressRouteCircuitId{}) +} + +var _ resourceids.ResourceId = &ExpressRouteCircuitId{} + +// ExpressRouteCircuitId is a struct representing the Resource ID for a Express Route Circuit +type ExpressRouteCircuitId struct { + SubscriptionId string + ResourceGroupName string + ExpressRouteCircuitName string +} + +// NewExpressRouteCircuitID returns a new ExpressRouteCircuitId struct +func NewExpressRouteCircuitID(subscriptionId string, resourceGroupName string, expressRouteCircuitName string) ExpressRouteCircuitId { + return ExpressRouteCircuitId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ExpressRouteCircuitName: expressRouteCircuitName, + } +} + +// ParseExpressRouteCircuitID parses 'input' into a ExpressRouteCircuitId +func ParseExpressRouteCircuitID(input string) (*ExpressRouteCircuitId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRouteCircuitId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRouteCircuitId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseExpressRouteCircuitIDInsensitively parses 'input' case-insensitively into a ExpressRouteCircuitId +// note: this method should only be used for API response data and not user input +func ParseExpressRouteCircuitIDInsensitively(input string) (*ExpressRouteCircuitId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRouteCircuitId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRouteCircuitId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ExpressRouteCircuitId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ExpressRouteCircuitName, ok = input.Parsed["expressRouteCircuitName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteCircuitName", input) + } + + return nil +} + +// ValidateExpressRouteCircuitID checks that 'input' can be parsed as a Express Route Circuit ID +func ValidateExpressRouteCircuitID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseExpressRouteCircuitID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Express Route Circuit ID +func (id ExpressRouteCircuitId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRouteCircuits/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRouteCircuitName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Express Route Circuit ID +func (id ExpressRouteCircuitId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), + resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitName"), + } +} + +// String returns a human-readable description of this Express Route Circuit ID +func (id ExpressRouteCircuitId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Express Route Circuit Name: %q", id.ExpressRouteCircuitName), + } + return fmt.Sprintf("Express Route Circuit (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_createorupdate.go new file mode 100644 index 000000000000..a90568705823 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_createorupdate.go @@ -0,0 +1,76 @@ +package expressroutecircuitpeerings + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteCircuitPeering +} + +// CreateOrUpdate ... +func (c ExpressRouteCircuitPeeringsClient) CreateOrUpdate(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId, input ExpressRouteCircuitPeering) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ExpressRouteCircuitPeeringsClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId, input ExpressRouteCircuitPeering) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_delete.go new file mode 100644 index 000000000000..241c45fa4146 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_delete.go @@ -0,0 +1,72 @@ +package expressroutecircuitpeerings + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ExpressRouteCircuitPeeringsClient) Delete(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ExpressRouteCircuitPeeringsClient) DeleteThenPoll(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_get.go new file mode 100644 index 000000000000..217363c38a10 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_get.go @@ -0,0 +1,54 @@ +package expressroutecircuitpeerings + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteCircuitPeering +} + +// Get ... +func (c ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRouteCircuitPeering + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_list.go new file mode 100644 index 000000000000..ec6d45b259f7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_list.go @@ -0,0 +1,105 @@ +package expressroutecircuitpeerings + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ExpressRouteCircuitPeering +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRouteCircuitPeering +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ExpressRouteCircuitPeeringsClient) List(ctx context.Context, id ExpressRouteCircuitId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/peerings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ExpressRouteCircuitPeering `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ExpressRouteCircuitPeeringsClient) ListComplete(ctx context.Context, id ExpressRouteCircuitId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, ExpressRouteCircuitPeeringOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ExpressRouteCircuitPeeringsClient) ListCompleteMatchingPredicate(ctx context.Context, id ExpressRouteCircuitId, predicate ExpressRouteCircuitPeeringOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ExpressRouteCircuitPeering, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitconnection.go new file mode 100644 index 000000000000..f0bf62174ce7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitconnection.go @@ -0,0 +1,12 @@ +package expressroutecircuitpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitconnectionpropertiesformat.go new file mode 100644 index 000000000000..f89ab3b51e44 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitconnectionpropertiesformat.go @@ -0,0 +1,14 @@ +package expressroutecircuitpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitConnectionPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AuthorizationKey *string `json:"authorizationKey,omitempty"` + CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` + ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` + IPv6CircuitConnectionConfig *IPv6CircuitConnectionConfig `json:"ipv6CircuitConnectionConfig,omitempty"` + PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeering.go new file mode 100644 index 000000000000..5e47a7f02660 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeering.go @@ -0,0 +1,12 @@ +package expressroutecircuitpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeering struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRouteCircuitPeeringPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringconfig.go new file mode 100644 index 000000000000..67b575213fe6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringconfig.go @@ -0,0 +1,13 @@ +package expressroutecircuitpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeeringConfig struct { + AdvertisedCommunities *[]string `json:"advertisedCommunities,omitempty"` + AdvertisedPublicPrefixes *[]string `json:"advertisedPublicPrefixes,omitempty"` + AdvertisedPublicPrefixesState *ExpressRouteCircuitPeeringAdvertisedPublicPrefixState `json:"advertisedPublicPrefixesState,omitempty"` + CustomerASN *int64 `json:"customerASN,omitempty"` + LegacyMode *int64 `json:"legacyMode,omitempty"` + RoutingRegistryName *string `json:"routingRegistryName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringpropertiesformat.go new file mode 100644 index 000000000000..a54ef389df44 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringpropertiesformat.go @@ -0,0 +1,27 @@ +package expressroutecircuitpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeeringPropertiesFormat struct { + AzureASN *int64 `json:"azureASN,omitempty"` + Connections *[]ExpressRouteCircuitConnection `json:"connections,omitempty"` + ExpressRouteConnection *ExpressRouteConnectionId `json:"expressRouteConnection,omitempty"` + GatewayManagerEtag *string `json:"gatewayManagerEtag,omitempty"` + IPv6PeeringConfig *IPv6ExpressRouteCircuitPeeringConfig `json:"ipv6PeeringConfig,omitempty"` + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` + PeerASN *int64 `json:"peerASN,omitempty"` + PeeredConnections *[]PeerExpressRouteCircuitConnection `json:"peeredConnections,omitempty"` + PeeringType *ExpressRoutePeeringType `json:"peeringType,omitempty"` + PrimaryAzurePort *string `json:"primaryAzurePort,omitempty"` + PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RouteFilter *SubResource `json:"routeFilter,omitempty"` + SecondaryAzurePort *string `json:"secondaryAzurePort,omitempty"` + SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` + SharedKey *string `json:"sharedKey,omitempty"` + State *ExpressRoutePeeringState `json:"state,omitempty"` + Stats *ExpressRouteCircuitStats `json:"stats,omitempty"` + VlanId *int64 `json:"vlanId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitstats.go new file mode 100644 index 000000000000..8239e6299db0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitstats.go @@ -0,0 +1,11 @@ +package expressroutecircuitpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitStats struct { + PrimarybytesIn *int64 `json:"primarybytesIn,omitempty"` + PrimarybytesOut *int64 `json:"primarybytesOut,omitempty"` + SecondarybytesIn *int64 `json:"secondarybytesIn,omitempty"` + SecondarybytesOut *int64 `json:"secondarybytesOut,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressrouteconnectionid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressrouteconnectionid.go new file mode 100644 index 000000000000..f06a355d7fa6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressrouteconnectionid.go @@ -0,0 +1,8 @@ +package expressroutecircuitpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteConnectionId struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_ipv6circuitconnectionconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_ipv6circuitconnectionconfig.go new file mode 100644 index 000000000000..ae00db3c45c6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_ipv6circuitconnectionconfig.go @@ -0,0 +1,9 @@ +package expressroutecircuitpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPv6CircuitConnectionConfig struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_ipv6expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_ipv6expressroutecircuitpeeringconfig.go new file mode 100644 index 000000000000..93ee020eec61 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_ipv6expressroutecircuitpeeringconfig.go @@ -0,0 +1,12 @@ +package expressroutecircuitpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPv6ExpressRouteCircuitPeeringConfig struct { + MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` + PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` + RouteFilter *SubResource `json:"routeFilter,omitempty"` + SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` + State *ExpressRouteCircuitPeeringState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnection.go new file mode 100644 index 000000000000..bc9218f9280b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnection.go @@ -0,0 +1,12 @@ +package expressroutecircuitpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PeerExpressRouteCircuitConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PeerExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnectionpropertiesformat.go new file mode 100644 index 000000000000..72eba9f327f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnectionpropertiesformat.go @@ -0,0 +1,14 @@ +package expressroutecircuitpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PeerExpressRouteCircuitConnectionPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AuthResourceGuid *string `json:"authResourceGuid,omitempty"` + CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` + ConnectionName *string `json:"connectionName,omitempty"` + ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` + PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_subresource.go new file mode 100644 index 000000000000..3143d87b0ee3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_subresource.go @@ -0,0 +1,8 @@ +package expressroutecircuitpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/predicates.go new file mode 100644 index 000000000000..1e725c4e63a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/predicates.go @@ -0,0 +1,32 @@ +package expressroutecircuitpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeeringOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p ExpressRouteCircuitPeeringOperationPredicate) Matches(input ExpressRouteCircuitPeering) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/version.go new file mode 100644 index 000000000000..56541480c6bc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/version.go @@ -0,0 +1,10 @@ +package expressroutecircuitpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecircuitpeerings/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/README.md similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/README.md index c5c56807c037..af9de3000824 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable` Documentation -The `expressroutecircuitroutestable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `expressroutecircuitroutestable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/id_peeringroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/id_peeringroutetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/id_peeringroutetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/id_peeringroutetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/model_expressroutecircuitroutestable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/model_expressroutecircuitroutestable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/model_expressroutecircuitroutestable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/model_expressroutecircuitroutestable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/version.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/version.go index 6b442c304e96..afe2578084a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/version.go @@ -3,8 +3,8 @@ package expressroutecircuitroutestable // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecircuitroutestable/2023-11-01" + return "hashicorp/go-azure-sdk/expressroutecircuitroutestable/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/README.md similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/README.md index 0f9b0429ceaf..f753d6c848ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary` Documentation -The `expressroutecircuitroutestablesummary` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `expressroutecircuitroutestablesummary` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/id_routetablessummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/id_routetablessummary.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/id_routetablessummary.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/id_routetablessummary.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/model_expressroutecircuitroutestablesummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/model_expressroutecircuitroutestablesummary.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/model_expressroutecircuitroutestablesummary.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/model_expressroutecircuitroutestablesummary.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/version.go similarity index 83% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/version.go index 5d76832ab827..764aa6d0a348 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/version.go @@ -3,8 +3,8 @@ package expressroutecircuitroutestablesummary // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecircuitroutestablesummary/2023-11-01" + return "hashicorp/go-azure-sdk/expressroutecircuitroutestablesummary/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/README.md new file mode 100644 index 000000000000..ab5105831778 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits` Documentation + +The `expressroutecircuits` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits" +``` + + +### Client Initialization + +```go +client := expressroutecircuits.NewExpressRouteCircuitsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCircuitsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := expressroutecircuits.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") + +payload := expressroutecircuits.ExpressRouteCircuit{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCircuitsClient.Delete` + +```go +ctx := context.TODO() +id := expressroutecircuits.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCircuitsClient.Get` + +```go +ctx := context.TODO() +id := expressroutecircuits.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteCircuitsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ExpressRouteCircuitsClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ExpressRouteCircuitsClient.UpdateTags` + +```go +ctx := context.TODO() +id := expressroutecircuits.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") + +payload := expressroutecircuits.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/client.go new file mode 100644 index 000000000000..e618de828285 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/client.go @@ -0,0 +1,26 @@ +package expressroutecircuits + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitsClient struct { + Client *resourcemanager.Client +} + +func NewExpressRouteCircuitsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCircuitsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "expressroutecircuits", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ExpressRouteCircuitsClient: %+v", err) + } + + return &ExpressRouteCircuitsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/constants.go new file mode 100644 index 000000000000..017902fa091e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/constants.go @@ -0,0 +1,450 @@ +package expressroutecircuits + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AuthorizationUseStatus string + +const ( + AuthorizationUseStatusAvailable AuthorizationUseStatus = "Available" + AuthorizationUseStatusInUse AuthorizationUseStatus = "InUse" +) + +func PossibleValuesForAuthorizationUseStatus() []string { + return []string{ + string(AuthorizationUseStatusAvailable), + string(AuthorizationUseStatusInUse), + } +} + +func (s *AuthorizationUseStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAuthorizationUseStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAuthorizationUseStatus(input string) (*AuthorizationUseStatus, error) { + vals := map[string]AuthorizationUseStatus{ + "available": AuthorizationUseStatusAvailable, + "inuse": AuthorizationUseStatusInUse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AuthorizationUseStatus(input) + return &out, nil +} + +type CircuitConnectionStatus string + +const ( + CircuitConnectionStatusConnected CircuitConnectionStatus = "Connected" + CircuitConnectionStatusConnecting CircuitConnectionStatus = "Connecting" + CircuitConnectionStatusDisconnected CircuitConnectionStatus = "Disconnected" +) + +func PossibleValuesForCircuitConnectionStatus() []string { + return []string{ + string(CircuitConnectionStatusConnected), + string(CircuitConnectionStatusConnecting), + string(CircuitConnectionStatusDisconnected), + } +} + +func (s *CircuitConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCircuitConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCircuitConnectionStatus(input string) (*CircuitConnectionStatus, error) { + vals := map[string]CircuitConnectionStatus{ + "connected": CircuitConnectionStatusConnected, + "connecting": CircuitConnectionStatusConnecting, + "disconnected": CircuitConnectionStatusDisconnected, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CircuitConnectionStatus(input) + return &out, nil +} + +type ExpressRouteCircuitPeeringAdvertisedPublicPrefixState string + +const ( + ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configured" + ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configuring" + ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "NotConfigured" + ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "ValidationNeeded" +) + +func PossibleValuesForExpressRouteCircuitPeeringAdvertisedPublicPrefixState() []string { + return []string{ + string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured), + string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring), + string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured), + string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded), + } +} + +func (s *ExpressRouteCircuitPeeringAdvertisedPublicPrefixState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteCircuitPeeringAdvertisedPublicPrefixState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteCircuitPeeringAdvertisedPublicPrefixState(input string) (*ExpressRouteCircuitPeeringAdvertisedPublicPrefixState, error) { + vals := map[string]ExpressRouteCircuitPeeringAdvertisedPublicPrefixState{ + "configured": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured, + "configuring": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring, + "notconfigured": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured, + "validationneeded": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteCircuitPeeringAdvertisedPublicPrefixState(input) + return &out, nil +} + +type ExpressRouteCircuitPeeringState string + +const ( + ExpressRouteCircuitPeeringStateDisabled ExpressRouteCircuitPeeringState = "Disabled" + ExpressRouteCircuitPeeringStateEnabled ExpressRouteCircuitPeeringState = "Enabled" +) + +func PossibleValuesForExpressRouteCircuitPeeringState() []string { + return []string{ + string(ExpressRouteCircuitPeeringStateDisabled), + string(ExpressRouteCircuitPeeringStateEnabled), + } +} + +func (s *ExpressRouteCircuitPeeringState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteCircuitPeeringState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteCircuitPeeringState(input string) (*ExpressRouteCircuitPeeringState, error) { + vals := map[string]ExpressRouteCircuitPeeringState{ + "disabled": ExpressRouteCircuitPeeringStateDisabled, + "enabled": ExpressRouteCircuitPeeringStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteCircuitPeeringState(input) + return &out, nil +} + +type ExpressRouteCircuitSkuFamily string + +const ( + ExpressRouteCircuitSkuFamilyMeteredData ExpressRouteCircuitSkuFamily = "MeteredData" + ExpressRouteCircuitSkuFamilyUnlimitedData ExpressRouteCircuitSkuFamily = "UnlimitedData" +) + +func PossibleValuesForExpressRouteCircuitSkuFamily() []string { + return []string{ + string(ExpressRouteCircuitSkuFamilyMeteredData), + string(ExpressRouteCircuitSkuFamilyUnlimitedData), + } +} + +func (s *ExpressRouteCircuitSkuFamily) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteCircuitSkuFamily(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteCircuitSkuFamily(input string) (*ExpressRouteCircuitSkuFamily, error) { + vals := map[string]ExpressRouteCircuitSkuFamily{ + "metereddata": ExpressRouteCircuitSkuFamilyMeteredData, + "unlimiteddata": ExpressRouteCircuitSkuFamilyUnlimitedData, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteCircuitSkuFamily(input) + return &out, nil +} + +type ExpressRouteCircuitSkuTier string + +const ( + ExpressRouteCircuitSkuTierBasic ExpressRouteCircuitSkuTier = "Basic" + ExpressRouteCircuitSkuTierLocal ExpressRouteCircuitSkuTier = "Local" + ExpressRouteCircuitSkuTierPremium ExpressRouteCircuitSkuTier = "Premium" + ExpressRouteCircuitSkuTierStandard ExpressRouteCircuitSkuTier = "Standard" +) + +func PossibleValuesForExpressRouteCircuitSkuTier() []string { + return []string{ + string(ExpressRouteCircuitSkuTierBasic), + string(ExpressRouteCircuitSkuTierLocal), + string(ExpressRouteCircuitSkuTierPremium), + string(ExpressRouteCircuitSkuTierStandard), + } +} + +func (s *ExpressRouteCircuitSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteCircuitSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteCircuitSkuTier(input string) (*ExpressRouteCircuitSkuTier, error) { + vals := map[string]ExpressRouteCircuitSkuTier{ + "basic": ExpressRouteCircuitSkuTierBasic, + "local": ExpressRouteCircuitSkuTierLocal, + "premium": ExpressRouteCircuitSkuTierPremium, + "standard": ExpressRouteCircuitSkuTierStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteCircuitSkuTier(input) + return &out, nil +} + +type ExpressRoutePeeringState string + +const ( + ExpressRoutePeeringStateDisabled ExpressRoutePeeringState = "Disabled" + ExpressRoutePeeringStateEnabled ExpressRoutePeeringState = "Enabled" +) + +func PossibleValuesForExpressRoutePeeringState() []string { + return []string{ + string(ExpressRoutePeeringStateDisabled), + string(ExpressRoutePeeringStateEnabled), + } +} + +func (s *ExpressRoutePeeringState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRoutePeeringState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRoutePeeringState(input string) (*ExpressRoutePeeringState, error) { + vals := map[string]ExpressRoutePeeringState{ + "disabled": ExpressRoutePeeringStateDisabled, + "enabled": ExpressRoutePeeringStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRoutePeeringState(input) + return &out, nil +} + +type ExpressRoutePeeringType string + +const ( + ExpressRoutePeeringTypeAzurePrivatePeering ExpressRoutePeeringType = "AzurePrivatePeering" + ExpressRoutePeeringTypeAzurePublicPeering ExpressRoutePeeringType = "AzurePublicPeering" + ExpressRoutePeeringTypeMicrosoftPeering ExpressRoutePeeringType = "MicrosoftPeering" +) + +func PossibleValuesForExpressRoutePeeringType() []string { + return []string{ + string(ExpressRoutePeeringTypeAzurePrivatePeering), + string(ExpressRoutePeeringTypeAzurePublicPeering), + string(ExpressRoutePeeringTypeMicrosoftPeering), + } +} + +func (s *ExpressRoutePeeringType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRoutePeeringType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRoutePeeringType(input string) (*ExpressRoutePeeringType, error) { + vals := map[string]ExpressRoutePeeringType{ + "azureprivatepeering": ExpressRoutePeeringTypeAzurePrivatePeering, + "azurepublicpeering": ExpressRoutePeeringTypeAzurePublicPeering, + "microsoftpeering": ExpressRoutePeeringTypeMicrosoftPeering, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRoutePeeringType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type ServiceProviderProvisioningState string + +const ( + ServiceProviderProvisioningStateDeprovisioning ServiceProviderProvisioningState = "Deprovisioning" + ServiceProviderProvisioningStateNotProvisioned ServiceProviderProvisioningState = "NotProvisioned" + ServiceProviderProvisioningStateProvisioned ServiceProviderProvisioningState = "Provisioned" + ServiceProviderProvisioningStateProvisioning ServiceProviderProvisioningState = "Provisioning" +) + +func PossibleValuesForServiceProviderProvisioningState() []string { + return []string{ + string(ServiceProviderProvisioningStateDeprovisioning), + string(ServiceProviderProvisioningStateNotProvisioned), + string(ServiceProviderProvisioningStateProvisioned), + string(ServiceProviderProvisioningStateProvisioning), + } +} + +func (s *ServiceProviderProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseServiceProviderProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseServiceProviderProvisioningState(input string) (*ServiceProviderProvisioningState, error) { + vals := map[string]ServiceProviderProvisioningState{ + "deprovisioning": ServiceProviderProvisioningStateDeprovisioning, + "notprovisioned": ServiceProviderProvisioningStateNotProvisioned, + "provisioned": ServiceProviderProvisioningStateProvisioned, + "provisioning": ServiceProviderProvisioningStateProvisioning, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ServiceProviderProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/id_expressroutecircuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/id_expressroutecircuit.go new file mode 100644 index 000000000000..7c3ebaafe981 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/id_expressroutecircuit.go @@ -0,0 +1,130 @@ +package expressroutecircuits + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ExpressRouteCircuitId{}) +} + +var _ resourceids.ResourceId = &ExpressRouteCircuitId{} + +// ExpressRouteCircuitId is a struct representing the Resource ID for a Express Route Circuit +type ExpressRouteCircuitId struct { + SubscriptionId string + ResourceGroupName string + ExpressRouteCircuitName string +} + +// NewExpressRouteCircuitID returns a new ExpressRouteCircuitId struct +func NewExpressRouteCircuitID(subscriptionId string, resourceGroupName string, expressRouteCircuitName string) ExpressRouteCircuitId { + return ExpressRouteCircuitId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ExpressRouteCircuitName: expressRouteCircuitName, + } +} + +// ParseExpressRouteCircuitID parses 'input' into a ExpressRouteCircuitId +func ParseExpressRouteCircuitID(input string) (*ExpressRouteCircuitId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRouteCircuitId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRouteCircuitId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseExpressRouteCircuitIDInsensitively parses 'input' case-insensitively into a ExpressRouteCircuitId +// note: this method should only be used for API response data and not user input +func ParseExpressRouteCircuitIDInsensitively(input string) (*ExpressRouteCircuitId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRouteCircuitId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRouteCircuitId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ExpressRouteCircuitId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ExpressRouteCircuitName, ok = input.Parsed["expressRouteCircuitName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteCircuitName", input) + } + + return nil +} + +// ValidateExpressRouteCircuitID checks that 'input' can be parsed as a Express Route Circuit ID +func ValidateExpressRouteCircuitID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseExpressRouteCircuitID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Express Route Circuit ID +func (id ExpressRouteCircuitId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRouteCircuits/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRouteCircuitName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Express Route Circuit ID +func (id ExpressRouteCircuitId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), + resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitName"), + } +} + +// String returns a human-readable description of this Express Route Circuit ID +func (id ExpressRouteCircuitId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Express Route Circuit Name: %q", id.ExpressRouteCircuitName), + } + return fmt.Sprintf("Express Route Circuit (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_createorupdate.go new file mode 100644 index 000000000000..399156eb14e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_createorupdate.go @@ -0,0 +1,75 @@ +package expressroutecircuits + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteCircuit +} + +// CreateOrUpdate ... +func (c ExpressRouteCircuitsClient) CreateOrUpdate(ctx context.Context, id ExpressRouteCircuitId, input ExpressRouteCircuit) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ExpressRouteCircuitsClient) CreateOrUpdateThenPoll(ctx context.Context, id ExpressRouteCircuitId, input ExpressRouteCircuit) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_delete.go new file mode 100644 index 000000000000..91f8aa53bedf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_delete.go @@ -0,0 +1,71 @@ +package expressroutecircuits + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ExpressRouteCircuitsClient) Delete(ctx context.Context, id ExpressRouteCircuitId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ExpressRouteCircuitsClient) DeleteThenPoll(ctx context.Context, id ExpressRouteCircuitId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_get.go new file mode 100644 index 000000000000..f44a9d7ab3de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_get.go @@ -0,0 +1,53 @@ +package expressroutecircuits + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteCircuit +} + +// Get ... +func (c ExpressRouteCircuitsClient) Get(ctx context.Context, id ExpressRouteCircuitId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRouteCircuit + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_list.go similarity index 69% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_list.go index dc5aa7af448e..dae4c03fa041 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_list.go @@ -1,4 +1,4 @@ -package expressroutecrossconnections +package expressroutecircuits import ( "context" @@ -16,12 +16,12 @@ import ( type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *[]ExpressRouteCrossConnection + Model *[]ExpressRouteCircuit } type ListCompleteResult struct { LatestHttpResponse *http.Response - Items []ExpressRouteCrossConnection + Items []ExpressRouteCircuit } type ListCustomPager struct { @@ -37,7 +37,7 @@ func (p *ListCustomPager) NextPageLink() *odata.Link { } // List ... -func (c ExpressRouteCrossConnectionsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { +func (c ExpressRouteCircuitsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -45,7 +45,7 @@ func (c ExpressRouteCrossConnectionsClient) List(ctx context.Context, id commoni }, HttpMethod: http.MethodGet, Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCrossConnections", id.ID()), + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCircuits", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) @@ -64,7 +64,7 @@ func (c ExpressRouteCrossConnectionsClient) List(ctx context.Context, id commoni } var values struct { - Values *[]ExpressRouteCrossConnection `json:"value"` + Values *[]ExpressRouteCircuit `json:"value"` } if err = resp.Unmarshal(&values); err != nil { return @@ -76,13 +76,13 @@ func (c ExpressRouteCrossConnectionsClient) List(ctx context.Context, id commoni } // ListComplete retrieves all the results into a single object -func (c ExpressRouteCrossConnectionsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, ExpressRouteCrossConnectionOperationPredicate{}) +func (c ExpressRouteCircuitsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, ExpressRouteCircuitOperationPredicate{}) } // ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ExpressRouteCrossConnectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ExpressRouteCrossConnectionOperationPredicate) (result ListCompleteResult, err error) { - items := make([]ExpressRouteCrossConnection, 0) +func (c ExpressRouteCircuitsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ExpressRouteCircuitOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ExpressRouteCircuit, 0) resp, err := c.List(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_listall.go new file mode 100644 index 000000000000..815e72b26ce2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_listall.go @@ -0,0 +1,106 @@ +package expressroutecircuits + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ExpressRouteCircuit +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRouteCircuit +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c ExpressRouteCircuitsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCircuits", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ExpressRouteCircuit `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c ExpressRouteCircuitsClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, ExpressRouteCircuitOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ExpressRouteCircuitsClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ExpressRouteCircuitOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]ExpressRouteCircuit, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_updatetags.go new file mode 100644 index 000000000000..2188a40d7836 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_updatetags.go @@ -0,0 +1,57 @@ +package expressroutecircuits + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteCircuit +} + +// UpdateTags ... +func (c ExpressRouteCircuitsClient) UpdateTags(ctx context.Context, id ExpressRouteCircuitId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRouteCircuit + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_authorizationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_authorizationpropertiesformat.go new file mode 100644 index 000000000000..65f50c0d6592 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_authorizationpropertiesformat.go @@ -0,0 +1,11 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AuthorizationPropertiesFormat struct { + AuthorizationKey *string `json:"authorizationKey,omitempty"` + AuthorizationUseStatus *AuthorizationUseStatus `json:"authorizationUseStatus,omitempty"` + ConnectionResourceUri *string `json:"connectionResourceUri,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuit.go new file mode 100644 index 000000000000..a74493fcec8e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuit.go @@ -0,0 +1,15 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuit struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRouteCircuitPropertiesFormat `json:"properties,omitempty"` + Sku *ExpressRouteCircuitSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitauthorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitauthorization.go new file mode 100644 index 000000000000..2942811a91cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitauthorization.go @@ -0,0 +1,12 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitAuthorization struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *AuthorizationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitconnection.go new file mode 100644 index 000000000000..901ef5037240 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitconnection.go @@ -0,0 +1,12 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitconnectionpropertiesformat.go new file mode 100644 index 000000000000..897f772964a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitconnectionpropertiesformat.go @@ -0,0 +1,14 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitConnectionPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AuthorizationKey *string `json:"authorizationKey,omitempty"` + CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` + ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` + IPv6CircuitConnectionConfig *IPv6CircuitConnectionConfig `json:"ipv6CircuitConnectionConfig,omitempty"` + PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeering.go new file mode 100644 index 000000000000..d74311904828 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeering.go @@ -0,0 +1,12 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeering struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRouteCircuitPeeringPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeeringconfig.go new file mode 100644 index 000000000000..836b1d5e963c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeeringconfig.go @@ -0,0 +1,13 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeeringConfig struct { + AdvertisedCommunities *[]string `json:"advertisedCommunities,omitempty"` + AdvertisedPublicPrefixes *[]string `json:"advertisedPublicPrefixes,omitempty"` + AdvertisedPublicPrefixesState *ExpressRouteCircuitPeeringAdvertisedPublicPrefixState `json:"advertisedPublicPrefixesState,omitempty"` + CustomerASN *int64 `json:"customerASN,omitempty"` + LegacyMode *int64 `json:"legacyMode,omitempty"` + RoutingRegistryName *string `json:"routingRegistryName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeeringpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeeringpropertiesformat.go new file mode 100644 index 000000000000..87a88e75638e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeeringpropertiesformat.go @@ -0,0 +1,27 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeeringPropertiesFormat struct { + AzureASN *int64 `json:"azureASN,omitempty"` + Connections *[]ExpressRouteCircuitConnection `json:"connections,omitempty"` + ExpressRouteConnection *ExpressRouteConnectionId `json:"expressRouteConnection,omitempty"` + GatewayManagerEtag *string `json:"gatewayManagerEtag,omitempty"` + IPv6PeeringConfig *IPv6ExpressRouteCircuitPeeringConfig `json:"ipv6PeeringConfig,omitempty"` + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` + PeerASN *int64 `json:"peerASN,omitempty"` + PeeredConnections *[]PeerExpressRouteCircuitConnection `json:"peeredConnections,omitempty"` + PeeringType *ExpressRoutePeeringType `json:"peeringType,omitempty"` + PrimaryAzurePort *string `json:"primaryAzurePort,omitempty"` + PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RouteFilter *SubResource `json:"routeFilter,omitempty"` + SecondaryAzurePort *string `json:"secondaryAzurePort,omitempty"` + SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` + SharedKey *string `json:"sharedKey,omitempty"` + State *ExpressRoutePeeringState `json:"state,omitempty"` + Stats *ExpressRouteCircuitStats `json:"stats,omitempty"` + VlanId *int64 `json:"vlanId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpropertiesformat.go new file mode 100644 index 000000000000..250eb3de7241 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpropertiesformat.go @@ -0,0 +1,24 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPropertiesFormat struct { + AllowClassicOperations *bool `json:"allowClassicOperations,omitempty"` + AuthorizationKey *string `json:"authorizationKey,omitempty"` + AuthorizationStatus *string `json:"authorizationStatus,omitempty"` + Authorizations *[]ExpressRouteCircuitAuthorization `json:"authorizations,omitempty"` + BandwidthInGbps *float64 `json:"bandwidthInGbps,omitempty"` + CircuitProvisioningState *string `json:"circuitProvisioningState,omitempty"` + EnableDirectPortRateLimit *bool `json:"enableDirectPortRateLimit,omitempty"` + ExpressRoutePort *SubResource `json:"expressRoutePort,omitempty"` + GatewayManagerEtag *string `json:"gatewayManagerEtag,omitempty"` + GlobalReachEnabled *bool `json:"globalReachEnabled,omitempty"` + Peerings *[]ExpressRouteCircuitPeering `json:"peerings,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceKey *string `json:"serviceKey,omitempty"` + ServiceProviderNotes *string `json:"serviceProviderNotes,omitempty"` + ServiceProviderProperties *ExpressRouteCircuitServiceProviderProperties `json:"serviceProviderProperties,omitempty"` + ServiceProviderProvisioningState *ServiceProviderProvisioningState `json:"serviceProviderProvisioningState,omitempty"` + Stag *int64 `json:"stag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitserviceproviderproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitserviceproviderproperties.go new file mode 100644 index 000000000000..432cdaf5a4ab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitserviceproviderproperties.go @@ -0,0 +1,10 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitServiceProviderProperties struct { + BandwidthInMbps *int64 `json:"bandwidthInMbps,omitempty"` + PeeringLocation *string `json:"peeringLocation,omitempty"` + ServiceProviderName *string `json:"serviceProviderName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitsku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitsku.go new file mode 100644 index 000000000000..186629b51a6b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitsku.go @@ -0,0 +1,10 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitSku struct { + Family *ExpressRouteCircuitSkuFamily `json:"family,omitempty"` + Name *string `json:"name,omitempty"` + Tier *ExpressRouteCircuitSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitstats.go new file mode 100644 index 000000000000..ca8cd2c52bc2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitstats.go @@ -0,0 +1,11 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitStats struct { + PrimarybytesIn *int64 `json:"primarybytesIn,omitempty"` + PrimarybytesOut *int64 `json:"primarybytesOut,omitempty"` + SecondarybytesIn *int64 `json:"secondarybytesIn,omitempty"` + SecondarybytesOut *int64 `json:"secondarybytesOut,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressrouteconnectionid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressrouteconnectionid.go new file mode 100644 index 000000000000..70b79aa3ec71 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressrouteconnectionid.go @@ -0,0 +1,8 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteConnectionId struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_ipv6circuitconnectionconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_ipv6circuitconnectionconfig.go new file mode 100644 index 000000000000..49a421772739 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_ipv6circuitconnectionconfig.go @@ -0,0 +1,9 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPv6CircuitConnectionConfig struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_ipv6expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_ipv6expressroutecircuitpeeringconfig.go new file mode 100644 index 000000000000..02e4a94b3169 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_ipv6expressroutecircuitpeeringconfig.go @@ -0,0 +1,12 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPv6ExpressRouteCircuitPeeringConfig struct { + MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` + PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` + RouteFilter *SubResource `json:"routeFilter,omitempty"` + SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` + State *ExpressRouteCircuitPeeringState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_peerexpressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_peerexpressroutecircuitconnection.go new file mode 100644 index 000000000000..e52a6b6f8c35 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_peerexpressroutecircuitconnection.go @@ -0,0 +1,12 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PeerExpressRouteCircuitConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PeerExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_peerexpressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_peerexpressroutecircuitconnectionpropertiesformat.go new file mode 100644 index 000000000000..804baee319a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_peerexpressroutecircuitconnectionpropertiesformat.go @@ -0,0 +1,14 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PeerExpressRouteCircuitConnectionPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AuthResourceGuid *string `json:"authResourceGuid,omitempty"` + CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` + ConnectionName *string `json:"connectionName,omitempty"` + ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` + PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_subresource.go new file mode 100644 index 000000000000..daf852a98a9b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_subresource.go @@ -0,0 +1,8 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_tagsobject.go new file mode 100644 index 000000000000..585eaaba376d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_tagsobject.go @@ -0,0 +1,8 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/predicates.go new file mode 100644 index 000000000000..3fdbc040dbfd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/predicates.go @@ -0,0 +1,37 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p ExpressRouteCircuitOperationPredicate) Matches(input ExpressRouteCircuit) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/version.go new file mode 100644 index 000000000000..d748540dd530 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/version.go @@ -0,0 +1,10 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecircuits/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/README.md similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/README.md index ef073b6c2d33..632ec319993e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats` Documentation -The `expressroutecircuitstats` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `expressroutecircuitstats` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/id_expressroutecircuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/id_expressroutecircuit.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/id_expressroutecircuit.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/id_expressroutecircuit.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/method_expressroutecircuitsgetpeeringstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/method_expressroutecircuitsgetpeeringstats.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/method_expressroutecircuitsgetpeeringstats.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/method_expressroutecircuitsgetpeeringstats.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/method_expressroutecircuitsgetstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/method_expressroutecircuitsgetstats.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/method_expressroutecircuitsgetstats.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/method_expressroutecircuitsgetstats.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/model_expressroutecircuitstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/model_expressroutecircuitstats.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/model_expressroutecircuitstats.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/model_expressroutecircuitstats.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/version.go index cf7a49d347a2..c61aaaccc93b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/version.go @@ -3,8 +3,8 @@ package expressroutecircuitstats // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecircuitstats/2023-11-01" + return "hashicorp/go-azure-sdk/expressroutecircuitstats/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/README.md new file mode 100644 index 000000000000..71b5c305d5c4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/README.md @@ -0,0 +1,81 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections` Documentation + +The `expressrouteconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections" +``` + + +### Client Initialization + +```go +client := expressrouteconnections.NewExpressRouteConnectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteConnectionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName", "expressRouteConnectionName") + +payload := expressrouteconnections.ExpressRouteConnection{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteConnectionsClient.Delete` + +```go +ctx := context.TODO() +id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName", "expressRouteConnectionName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteConnectionsClient.Get` + +```go +ctx := context.TODO() +id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName", "expressRouteConnectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteConnectionsClient.List` + +```go +ctx := context.TODO() +id := expressrouteconnections.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") + +read, err := client.List(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/client.go new file mode 100644 index 000000000000..379d1d228801 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/client.go @@ -0,0 +1,26 @@ +package expressrouteconnections + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteConnectionsClient struct { + Client *resourcemanager.Client +} + +func NewExpressRouteConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteConnectionsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "expressrouteconnections", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ExpressRouteConnectionsClient: %+v", err) + } + + return &ExpressRouteConnectionsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/constants.go new file mode 100644 index 000000000000..571bcb03c1e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/constants.go @@ -0,0 +1,98 @@ +package expressrouteconnections + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type VnetLocalRouteOverrideCriteria string + +const ( + VnetLocalRouteOverrideCriteriaContains VnetLocalRouteOverrideCriteria = "Contains" + VnetLocalRouteOverrideCriteriaEqual VnetLocalRouteOverrideCriteria = "Equal" +) + +func PossibleValuesForVnetLocalRouteOverrideCriteria() []string { + return []string{ + string(VnetLocalRouteOverrideCriteriaContains), + string(VnetLocalRouteOverrideCriteriaEqual), + } +} + +func (s *VnetLocalRouteOverrideCriteria) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVnetLocalRouteOverrideCriteria(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVnetLocalRouteOverrideCriteria(input string) (*VnetLocalRouteOverrideCriteria, error) { + vals := map[string]VnetLocalRouteOverrideCriteria{ + "contains": VnetLocalRouteOverrideCriteriaContains, + "equal": VnetLocalRouteOverrideCriteriaEqual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VnetLocalRouteOverrideCriteria(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/id_expressrouteconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/id_expressrouteconnection.go new file mode 100644 index 000000000000..2cf6021fe08c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/id_expressrouteconnection.go @@ -0,0 +1,139 @@ +package expressrouteconnections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ExpressRouteConnectionId{}) +} + +var _ resourceids.ResourceId = &ExpressRouteConnectionId{} + +// ExpressRouteConnectionId is a struct representing the Resource ID for a Express Route Connection +type ExpressRouteConnectionId struct { + SubscriptionId string + ResourceGroupName string + ExpressRouteGatewayName string + ExpressRouteConnectionName string +} + +// NewExpressRouteConnectionID returns a new ExpressRouteConnectionId struct +func NewExpressRouteConnectionID(subscriptionId string, resourceGroupName string, expressRouteGatewayName string, expressRouteConnectionName string) ExpressRouteConnectionId { + return ExpressRouteConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ExpressRouteGatewayName: expressRouteGatewayName, + ExpressRouteConnectionName: expressRouteConnectionName, + } +} + +// ParseExpressRouteConnectionID parses 'input' into a ExpressRouteConnectionId +func ParseExpressRouteConnectionID(input string) (*ExpressRouteConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRouteConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRouteConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseExpressRouteConnectionIDInsensitively parses 'input' case-insensitively into a ExpressRouteConnectionId +// note: this method should only be used for API response data and not user input +func ParseExpressRouteConnectionIDInsensitively(input string) (*ExpressRouteConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRouteConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRouteConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ExpressRouteConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ExpressRouteGatewayName, ok = input.Parsed["expressRouteGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteGatewayName", input) + } + + if id.ExpressRouteConnectionName, ok = input.Parsed["expressRouteConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteConnectionName", input) + } + + return nil +} + +// ValidateExpressRouteConnectionID checks that 'input' can be parsed as a Express Route Connection ID +func ValidateExpressRouteConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseExpressRouteConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Express Route Connection ID +func (id ExpressRouteConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRouteGateways/%s/expressRouteConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRouteGatewayName, id.ExpressRouteConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Express Route Connection ID +func (id ExpressRouteConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticExpressRouteGateways", "expressRouteGateways", "expressRouteGateways"), + resourceids.UserSpecifiedSegment("expressRouteGatewayName", "expressRouteGatewayName"), + resourceids.StaticSegment("staticExpressRouteConnections", "expressRouteConnections", "expressRouteConnections"), + resourceids.UserSpecifiedSegment("expressRouteConnectionName", "expressRouteConnectionName"), + } +} + +// String returns a human-readable description of this Express Route Connection ID +func (id ExpressRouteConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Express Route Gateway Name: %q", id.ExpressRouteGatewayName), + fmt.Sprintf("Express Route Connection Name: %q", id.ExpressRouteConnectionName), + } + return fmt.Sprintf("Express Route Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/id_expressroutegateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/id_expressroutegateway.go new file mode 100644 index 000000000000..cad59206c916 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/id_expressroutegateway.go @@ -0,0 +1,130 @@ +package expressrouteconnections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ExpressRouteGatewayId{}) +} + +var _ resourceids.ResourceId = &ExpressRouteGatewayId{} + +// ExpressRouteGatewayId is a struct representing the Resource ID for a Express Route Gateway +type ExpressRouteGatewayId struct { + SubscriptionId string + ResourceGroupName string + ExpressRouteGatewayName string +} + +// NewExpressRouteGatewayID returns a new ExpressRouteGatewayId struct +func NewExpressRouteGatewayID(subscriptionId string, resourceGroupName string, expressRouteGatewayName string) ExpressRouteGatewayId { + return ExpressRouteGatewayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ExpressRouteGatewayName: expressRouteGatewayName, + } +} + +// ParseExpressRouteGatewayID parses 'input' into a ExpressRouteGatewayId +func ParseExpressRouteGatewayID(input string) (*ExpressRouteGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRouteGatewayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRouteGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseExpressRouteGatewayIDInsensitively parses 'input' case-insensitively into a ExpressRouteGatewayId +// note: this method should only be used for API response data and not user input +func ParseExpressRouteGatewayIDInsensitively(input string) (*ExpressRouteGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRouteGatewayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRouteGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ExpressRouteGatewayId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ExpressRouteGatewayName, ok = input.Parsed["expressRouteGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteGatewayName", input) + } + + return nil +} + +// ValidateExpressRouteGatewayID checks that 'input' can be parsed as a Express Route Gateway ID +func ValidateExpressRouteGatewayID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseExpressRouteGatewayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Express Route Gateway ID +func (id ExpressRouteGatewayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRouteGateways/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRouteGatewayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Express Route Gateway ID +func (id ExpressRouteGatewayId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticExpressRouteGateways", "expressRouteGateways", "expressRouteGateways"), + resourceids.UserSpecifiedSegment("expressRouteGatewayName", "expressRouteGatewayName"), + } +} + +// String returns a human-readable description of this Express Route Gateway ID +func (id ExpressRouteGatewayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Express Route Gateway Name: %q", id.ExpressRouteGatewayName), + } + return fmt.Sprintf("Express Route Gateway (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_createorupdate.go new file mode 100644 index 000000000000..37e7c0ceddbf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_createorupdate.go @@ -0,0 +1,75 @@ +package expressrouteconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteConnection +} + +// CreateOrUpdate ... +func (c ExpressRouteConnectionsClient) CreateOrUpdate(ctx context.Context, id ExpressRouteConnectionId, input ExpressRouteConnection) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ExpressRouteConnectionsClient) CreateOrUpdateThenPoll(ctx context.Context, id ExpressRouteConnectionId, input ExpressRouteConnection) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_delete.go new file mode 100644 index 000000000000..8f3816bde329 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_delete.go @@ -0,0 +1,71 @@ +package expressrouteconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ExpressRouteConnectionsClient) Delete(ctx context.Context, id ExpressRouteConnectionId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ExpressRouteConnectionsClient) DeleteThenPoll(ctx context.Context, id ExpressRouteConnectionId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_get.go new file mode 100644 index 000000000000..0116eaca5cf7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_get.go @@ -0,0 +1,53 @@ +package expressrouteconnections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteConnection +} + +// Get ... +func (c ExpressRouteConnectionsClient) Get(ctx context.Context, id ExpressRouteConnectionId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRouteConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_list.go new file mode 100644 index 000000000000..d6233e938c49 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_list.go @@ -0,0 +1,54 @@ +package expressrouteconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteConnectionList +} + +// List ... +func (c ExpressRouteConnectionsClient) List(ctx context.Context, id ExpressRouteGatewayId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/expressRouteConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRouteConnectionList + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressroutecircuitpeeringid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressroutecircuitpeeringid.go new file mode 100644 index 000000000000..3a30ff411e81 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressroutecircuitpeeringid.go @@ -0,0 +1,8 @@ +package expressrouteconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeeringId struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnection.go new file mode 100644 index 000000000000..1e31fa6c8603 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnection.go @@ -0,0 +1,10 @@ +package expressrouteconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteConnection struct { + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Properties *ExpressRouteConnectionProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnectionlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnectionlist.go new file mode 100644 index 000000000000..a16565b3cd51 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnectionlist.go @@ -0,0 +1,8 @@ +package expressrouteconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteConnectionList struct { + Value *[]ExpressRouteConnection `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnectionproperties.go new file mode 100644 index 000000000000..2e9dddfbc1a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnectionproperties.go @@ -0,0 +1,15 @@ +package expressrouteconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteConnectionProperties struct { + AuthorizationKey *string `json:"authorizationKey,omitempty"` + EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` + EnablePrivateLinkFastPath *bool `json:"enablePrivateLinkFastPath,omitempty"` + ExpressRouteCircuitPeering ExpressRouteCircuitPeeringId `json:"expressRouteCircuitPeering"` + ExpressRouteGatewayBypass *bool `json:"expressRouteGatewayBypass,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` + RoutingWeight *int64 `json:"routingWeight,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_propagatedroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_propagatedroutetable.go new file mode 100644 index 000000000000..7279e13359ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_propagatedroutetable.go @@ -0,0 +1,9 @@ +package expressrouteconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PropagatedRouteTable struct { + Ids *[]SubResource `json:"ids,omitempty"` + Labels *[]string `json:"labels,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_routingconfiguration.go new file mode 100644 index 000000000000..4e1904d9c6e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_routingconfiguration.go @@ -0,0 +1,12 @@ +package expressrouteconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingConfiguration struct { + AssociatedRouteTable *SubResource `json:"associatedRouteTable,omitempty"` + InboundRouteMap *SubResource `json:"inboundRouteMap,omitempty"` + OutboundRouteMap *SubResource `json:"outboundRouteMap,omitempty"` + PropagatedRouteTables *PropagatedRouteTable `json:"propagatedRouteTables,omitempty"` + VnetRoutes *VnetRoute `json:"vnetRoutes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_staticroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_staticroute.go new file mode 100644 index 000000000000..c1e414bbe16f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_staticroute.go @@ -0,0 +1,10 @@ +package expressrouteconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StaticRoute struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + Name *string `json:"name,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_staticroutesconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_staticroutesconfig.go new file mode 100644 index 000000000000..9ee286419ac8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_staticroutesconfig.go @@ -0,0 +1,9 @@ +package expressrouteconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StaticRoutesConfig struct { + PropagateStaticRoutes *bool `json:"propagateStaticRoutes,omitempty"` + VnetLocalRouteOverrideCriteria *VnetLocalRouteOverrideCriteria `json:"vnetLocalRouteOverrideCriteria,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_subresource.go new file mode 100644 index 000000000000..5a5f53696f80 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_subresource.go @@ -0,0 +1,8 @@ +package expressrouteconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_vnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_vnetroute.go new file mode 100644 index 000000000000..9e296eed5de6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_vnetroute.go @@ -0,0 +1,10 @@ +package expressrouteconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetRoute struct { + BgpConnections *[]SubResource `json:"bgpConnections,omitempty"` + StaticRoutes *[]StaticRoute `json:"staticRoutes,omitempty"` + StaticRoutesConfig *StaticRoutesConfig `json:"staticRoutesConfig,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/version.go new file mode 100644 index 000000000000..c5408dcd445e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/version.go @@ -0,0 +1,10 @@ +package expressrouteconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressrouteconnections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/README.md similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/README.md index 5c5ac716f041..6b80c80004da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable` Documentation -The `expressroutecrossconnectionarptable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `expressroutecrossconnectionarptable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/id_peeringarptable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/id_peeringarptable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/id_peeringarptable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/id_peeringarptable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/model_expressroutecircuitarptable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/model_expressroutecircuitarptable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/model_expressroutecircuitarptable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/model_expressroutecircuitarptable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/version.go similarity index 84% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/version.go index 901342a916ca..1124562b1f3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/version.go @@ -3,8 +3,8 @@ package expressroutecrossconnectionarptable // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecrossconnectionarptable/2023-11-01" + return "hashicorp/go-azure-sdk/expressroutecrossconnectionarptable/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/README.md index 1aa20c96e1f2..03c43a6d8573 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings` Documentation -The `expressroutecrossconnectionpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `expressroutecrossconnectionpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/id_expressroutecrossconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/id_expressroutecrossconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/id_expressroutecrossconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/id_expressroutecrossconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/id_peering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/id_peering.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/id_peering.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/id_peering.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_expressroutecircuitpeeringconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_expressroutecircuitpeeringconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_expressroutecircuitpeeringconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeering.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeering.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeering.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeeringproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeeringproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeeringproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeeringproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_ipv6expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_ipv6expressroutecircuitpeeringconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_ipv6expressroutecircuitpeeringconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_ipv6expressroutecircuitpeeringconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/version.go similarity index 84% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/version.go index 36b0b29e07c4..5cf17d0403a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/version.go @@ -3,8 +3,8 @@ package expressroutecrossconnectionpeerings // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecrossconnectionpeerings/2023-11-01" + return "hashicorp/go-azure-sdk/expressroutecrossconnectionpeerings/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/README.md similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/README.md index ec4ead84ac6e..5491faf19def 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable` Documentation -The `expressroutecrossconnectionroutetable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `expressroutecrossconnectionroutetable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/id_expressroutecrossconnectionpeeringroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/id_expressroutecrossconnectionpeeringroutetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/id_expressroutecrossconnectionpeeringroutetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/id_expressroutecrossconnectionpeeringroutetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/model_expressroutecircuitroutestable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/model_expressroutecircuitroutestable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/model_expressroutecircuitroutestable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/model_expressroutecircuitroutestable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/version.go similarity index 83% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/version.go index fc08bb11bbb9..cb9ac7e4925e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/version.go @@ -3,8 +3,8 @@ package expressroutecrossconnectionroutetable // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecrossconnectionroutetable/2023-11-01" + return "hashicorp/go-azure-sdk/expressroutecrossconnectionroutetable/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/README.md similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/README.md index 50f45e5b3322..feb742e6b91f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary` Documentation -The `expressroutecrossconnectionroutetablesummary` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `expressroutecrossconnectionroutetablesummary` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/id_peeringroutetablessummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/id_peeringroutetablessummary.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/id_peeringroutetablessummary.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/id_peeringroutetablessummary.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/model_expressroutecrossconnectionroutestablesummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/model_expressroutecrossconnectionroutestablesummary.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/model_expressroutecrossconnectionroutestablesummary.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/model_expressroutecrossconnectionroutestablesummary.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/version.go similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/version.go index d57384ba64d8..5942cb502bf0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/version.go @@ -3,8 +3,8 @@ package expressroutecrossconnectionroutetablesummary // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecrossconnectionroutetablesummary/2023-11-01" + return "hashicorp/go-azure-sdk/expressroutecrossconnectionroutetablesummary/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/README.md similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/README.md index 3d5e128b46ba..018ffd2a4ec0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections` Documentation -The `expressroutecrossconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `expressroutecrossconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections" ``` @@ -60,8 +60,8 @@ if model := read.Model; model != nil { ctx := context.TODO() id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) +// alternatively `client.List(ctx, id, expressroutecrossconnections.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, expressroutecrossconnections.DefaultListOperationOptions()) if err != nil { // handle the error } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/id_expressroutecrossconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/id_expressroutecrossconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/id_expressroutecrossconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/id_expressroutecrossconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_list.go new file mode 100644 index 000000000000..402193d84191 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_list.go @@ -0,0 +1,135 @@ +package expressroutecrossconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ExpressRouteCrossConnection +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRouteCrossConnection +} + +type ListOperationOptions struct { + Filter *string +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ExpressRouteCrossConnectionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCrossConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ExpressRouteCrossConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ExpressRouteCrossConnectionsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, ExpressRouteCrossConnectionOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ExpressRouteCrossConnectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, predicate ExpressRouteCrossConnectionOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ExpressRouteCrossConnection, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecircuitpeeringconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecircuitpeeringconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecircuitpeeringconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecircuitreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecircuitreference.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecircuitreference.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecircuitreference.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecrossconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecrossconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecrossconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecrossconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecrossconnectionpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecrossconnectionpeering.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecrossconnectionpeering.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecrossconnectionpeering.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecrossconnectionpeeringproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecrossconnectionpeeringproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecrossconnectionpeeringproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecrossconnectionpeeringproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecrossconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecrossconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecrossconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecrossconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_ipv6expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_ipv6expressroutecircuitpeeringconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_ipv6expressroutecircuitpeeringconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_ipv6expressroutecircuitpeeringconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/version.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/version.go index 0dea6676bacf..02849b0d0d12 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/version.go @@ -3,8 +3,8 @@ package expressroutecrossconnections // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecrossconnections/2023-11-01" + return "hashicorp/go-azure-sdk/expressroutecrossconnections/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/README.md new file mode 100644 index 000000000000..88682d308c96 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/README.md @@ -0,0 +1,115 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways` Documentation + +The `expressroutegateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways" +``` + + +### Client Initialization + +```go +client := expressroutegateways.NewExpressRouteGatewaysClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteGatewaysClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := expressroutegateways.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") + +payload := expressroutegateways.ExpressRouteGateway{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteGatewaysClient.Delete` + +```go +ctx := context.TODO() +id := expressroutegateways.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteGatewaysClient.Get` + +```go +ctx := context.TODO() +id := expressroutegateways.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteGatewaysClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +read, err := client.ListByResourceGroup(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteGatewaysClient.ListBySubscription` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.ListBySubscription(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteGatewaysClient.UpdateTags` + +```go +ctx := context.TODO() +id := expressroutegateways.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") + +payload := expressroutegateways.TagsObject{ + // ... +} + + +if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/client.go new file mode 100644 index 000000000000..292ef72ff7b3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/client.go @@ -0,0 +1,26 @@ +package expressroutegateways + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteGatewaysClient struct { + Client *resourcemanager.Client +} + +func NewExpressRouteGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteGatewaysClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "expressroutegateways", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ExpressRouteGatewaysClient: %+v", err) + } + + return &ExpressRouteGatewaysClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/constants.go new file mode 100644 index 000000000000..ce8f5d5f24a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/constants.go @@ -0,0 +1,98 @@ +package expressroutegateways + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type VnetLocalRouteOverrideCriteria string + +const ( + VnetLocalRouteOverrideCriteriaContains VnetLocalRouteOverrideCriteria = "Contains" + VnetLocalRouteOverrideCriteriaEqual VnetLocalRouteOverrideCriteria = "Equal" +) + +func PossibleValuesForVnetLocalRouteOverrideCriteria() []string { + return []string{ + string(VnetLocalRouteOverrideCriteriaContains), + string(VnetLocalRouteOverrideCriteriaEqual), + } +} + +func (s *VnetLocalRouteOverrideCriteria) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVnetLocalRouteOverrideCriteria(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVnetLocalRouteOverrideCriteria(input string) (*VnetLocalRouteOverrideCriteria, error) { + vals := map[string]VnetLocalRouteOverrideCriteria{ + "contains": VnetLocalRouteOverrideCriteriaContains, + "equal": VnetLocalRouteOverrideCriteriaEqual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VnetLocalRouteOverrideCriteria(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/id_expressroutegateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/id_expressroutegateway.go new file mode 100644 index 000000000000..924fe72c4ec5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/id_expressroutegateway.go @@ -0,0 +1,130 @@ +package expressroutegateways + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ExpressRouteGatewayId{}) +} + +var _ resourceids.ResourceId = &ExpressRouteGatewayId{} + +// ExpressRouteGatewayId is a struct representing the Resource ID for a Express Route Gateway +type ExpressRouteGatewayId struct { + SubscriptionId string + ResourceGroupName string + ExpressRouteGatewayName string +} + +// NewExpressRouteGatewayID returns a new ExpressRouteGatewayId struct +func NewExpressRouteGatewayID(subscriptionId string, resourceGroupName string, expressRouteGatewayName string) ExpressRouteGatewayId { + return ExpressRouteGatewayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ExpressRouteGatewayName: expressRouteGatewayName, + } +} + +// ParseExpressRouteGatewayID parses 'input' into a ExpressRouteGatewayId +func ParseExpressRouteGatewayID(input string) (*ExpressRouteGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRouteGatewayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRouteGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseExpressRouteGatewayIDInsensitively parses 'input' case-insensitively into a ExpressRouteGatewayId +// note: this method should only be used for API response data and not user input +func ParseExpressRouteGatewayIDInsensitively(input string) (*ExpressRouteGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRouteGatewayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRouteGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ExpressRouteGatewayId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ExpressRouteGatewayName, ok = input.Parsed["expressRouteGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteGatewayName", input) + } + + return nil +} + +// ValidateExpressRouteGatewayID checks that 'input' can be parsed as a Express Route Gateway ID +func ValidateExpressRouteGatewayID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseExpressRouteGatewayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Express Route Gateway ID +func (id ExpressRouteGatewayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRouteGateways/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRouteGatewayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Express Route Gateway ID +func (id ExpressRouteGatewayId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticExpressRouteGateways", "expressRouteGateways", "expressRouteGateways"), + resourceids.UserSpecifiedSegment("expressRouteGatewayName", "expressRouteGatewayName"), + } +} + +// String returns a human-readable description of this Express Route Gateway ID +func (id ExpressRouteGatewayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Express Route Gateway Name: %q", id.ExpressRouteGatewayName), + } + return fmt.Sprintf("Express Route Gateway (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_createorupdate.go new file mode 100644 index 000000000000..b02bd6b5ebb4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_createorupdate.go @@ -0,0 +1,75 @@ +package expressroutegateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteGateway +} + +// CreateOrUpdate ... +func (c ExpressRouteGatewaysClient) CreateOrUpdate(ctx context.Context, id ExpressRouteGatewayId, input ExpressRouteGateway) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ExpressRouteGatewaysClient) CreateOrUpdateThenPoll(ctx context.Context, id ExpressRouteGatewayId, input ExpressRouteGateway) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_delete.go new file mode 100644 index 000000000000..200f12cef030 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_delete.go @@ -0,0 +1,71 @@ +package expressroutegateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ExpressRouteGatewaysClient) Delete(ctx context.Context, id ExpressRouteGatewayId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ExpressRouteGatewaysClient) DeleteThenPoll(ctx context.Context, id ExpressRouteGatewayId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_get.go new file mode 100644 index 000000000000..3fe9ab488d07 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_get.go @@ -0,0 +1,53 @@ +package expressroutegateways + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteGateway +} + +// Get ... +func (c ExpressRouteGatewaysClient) Get(ctx context.Context, id ExpressRouteGatewayId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRouteGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_listbyresourcegroup.go new file mode 100644 index 000000000000..f76de802a392 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_listbyresourcegroup.go @@ -0,0 +1,55 @@ +package expressroutegateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteGatewayList +} + +// ListByResourceGroup ... +func (c ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRouteGatewayList + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_listbysubscription.go new file mode 100644 index 000000000000..840cb62145e4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_listbysubscription.go @@ -0,0 +1,55 @@ +package expressroutegateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBySubscriptionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteGatewayList +} + +// ListBySubscription ... +func (c ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRouteGatewayList + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_updatetags.go new file mode 100644 index 000000000000..26c61ce6010d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_updatetags.go @@ -0,0 +1,75 @@ +package expressroutegateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteGateway +} + +// UpdateTags ... +func (c ExpressRouteGatewaysClient) UpdateTags(ctx context.Context, id ExpressRouteGatewayId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateTagsThenPoll performs UpdateTags then polls until it's completed +func (c ExpressRouteGatewaysClient) UpdateTagsThenPoll(ctx context.Context, id ExpressRouteGatewayId, input TagsObject) error { + result, err := c.UpdateTags(ctx, id, input) + if err != nil { + return fmt.Errorf("performing UpdateTags: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after UpdateTags: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutecircuitpeeringid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutecircuitpeeringid.go new file mode 100644 index 000000000000..832d97a11749 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutecircuitpeeringid.go @@ -0,0 +1,8 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeeringId struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressrouteconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressrouteconnection.go new file mode 100644 index 000000000000..99219dd6cfd1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressrouteconnection.go @@ -0,0 +1,10 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteConnection struct { + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Properties *ExpressRouteConnectionProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressrouteconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressrouteconnectionproperties.go new file mode 100644 index 000000000000..931b412129f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressrouteconnectionproperties.go @@ -0,0 +1,15 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteConnectionProperties struct { + AuthorizationKey *string `json:"authorizationKey,omitempty"` + EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` + EnablePrivateLinkFastPath *bool `json:"enablePrivateLinkFastPath,omitempty"` + ExpressRouteCircuitPeering ExpressRouteCircuitPeeringId `json:"expressRouteCircuitPeering"` + ExpressRouteGatewayBypass *bool `json:"expressRouteGatewayBypass,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` + RoutingWeight *int64 `json:"routingWeight,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegateway.go new file mode 100644 index 000000000000..5505ff540a82 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegateway.go @@ -0,0 +1,14 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRouteGatewayProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaylist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaylist.go new file mode 100644 index 000000000000..516674243801 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaylist.go @@ -0,0 +1,8 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteGatewayList struct { + Value *[]ExpressRouteGateway `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewayproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewayproperties.go new file mode 100644 index 000000000000..4860e7d555a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewayproperties.go @@ -0,0 +1,12 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteGatewayProperties struct { + AllowNonVirtualWanTraffic *bool `json:"allowNonVirtualWanTraffic,omitempty"` + AutoScaleConfiguration *ExpressRouteGatewayPropertiesAutoScaleConfiguration `json:"autoScaleConfiguration,omitempty"` + ExpressRouteConnections *[]ExpressRouteConnection `json:"expressRouteConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualHub VirtualHubId `json:"virtualHub"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaypropertiesautoscaleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaypropertiesautoscaleconfiguration.go new file mode 100644 index 000000000000..60677f25d4cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaypropertiesautoscaleconfiguration.go @@ -0,0 +1,8 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteGatewayPropertiesAutoScaleConfiguration struct { + Bounds *ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds `json:"bounds,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaypropertiesautoscaleconfigurationbounds.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaypropertiesautoscaleconfigurationbounds.go new file mode 100644 index 000000000000..65a1ccb474b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaypropertiesautoscaleconfigurationbounds.go @@ -0,0 +1,9 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds struct { + Max *int64 `json:"max,omitempty"` + Min *int64 `json:"min,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_propagatedroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_propagatedroutetable.go new file mode 100644 index 000000000000..93c6f306054e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_propagatedroutetable.go @@ -0,0 +1,9 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PropagatedRouteTable struct { + Ids *[]SubResource `json:"ids,omitempty"` + Labels *[]string `json:"labels,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_routingconfiguration.go new file mode 100644 index 000000000000..670d99078812 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_routingconfiguration.go @@ -0,0 +1,12 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingConfiguration struct { + AssociatedRouteTable *SubResource `json:"associatedRouteTable,omitempty"` + InboundRouteMap *SubResource `json:"inboundRouteMap,omitempty"` + OutboundRouteMap *SubResource `json:"outboundRouteMap,omitempty"` + PropagatedRouteTables *PropagatedRouteTable `json:"propagatedRouteTables,omitempty"` + VnetRoutes *VnetRoute `json:"vnetRoutes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_staticroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_staticroute.go new file mode 100644 index 000000000000..29422baf7435 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_staticroute.go @@ -0,0 +1,10 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StaticRoute struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + Name *string `json:"name,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_staticroutesconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_staticroutesconfig.go new file mode 100644 index 000000000000..d570d0ec17a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_staticroutesconfig.go @@ -0,0 +1,9 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StaticRoutesConfig struct { + PropagateStaticRoutes *bool `json:"propagateStaticRoutes,omitempty"` + VnetLocalRouteOverrideCriteria *VnetLocalRouteOverrideCriteria `json:"vnetLocalRouteOverrideCriteria,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_subresource.go new file mode 100644 index 000000000000..f86e34933406 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_subresource.go @@ -0,0 +1,8 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_tagsobject.go new file mode 100644 index 000000000000..706aff41cd44 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_tagsobject.go @@ -0,0 +1,8 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_virtualhubid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_virtualhubid.go new file mode 100644 index 000000000000..41cb5ff6fd15 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_virtualhubid.go @@ -0,0 +1,8 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubId struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_vnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_vnetroute.go new file mode 100644 index 000000000000..c9586e946c6f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_vnetroute.go @@ -0,0 +1,10 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetRoute struct { + BgpConnections *[]SubResource `json:"bgpConnections,omitempty"` + StaticRoutes *[]StaticRoute `json:"staticRoutes,omitempty"` + StaticRoutesConfig *StaticRoutesConfig `json:"staticRoutesConfig,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/version.go new file mode 100644 index 000000000000..2d8109907418 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/version.go @@ -0,0 +1,10 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutegateways/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/README.md similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/README.md index 481eba0d555a..4ce5788a98cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks` Documentation -The `expressroutelinks` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `expressroutelinks` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/id_expressrouteport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/id_expressrouteport.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/id_expressrouteport.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/id_expressrouteport.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/id_link.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/id_link.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/id_link.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/id_link.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/model_expressroutelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/model_expressroutelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/model_expressroutelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/model_expressroutelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/model_expressroutelinkmacsecconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/model_expressroutelinkmacsecconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/model_expressroutelinkmacsecconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/model_expressroutelinkmacsecconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/model_expressroutelinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/model_expressroutelinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/model_expressroutelinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/model_expressroutelinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/version.go index 68fe0163e3ec..b7aadc75493f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/version.go @@ -3,8 +3,8 @@ package expressroutelinks // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutelinks/2023-11-01" + return "hashicorp/go-azure-sdk/expressroutelinks/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/README.md new file mode 100644 index 000000000000..b649564d072f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations` Documentation + +The `expressrouteportauthorizations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations" +``` + + +### Client Initialization + +```go +client := expressrouteportauthorizations.NewExpressRoutePortAuthorizationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRoutePortAuthorizationsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "authorizationName") + +payload := expressrouteportauthorizations.ExpressRoutePortAuthorization{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRoutePortAuthorizationsClient.Delete` + +```go +ctx := context.TODO() +id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "authorizationName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRoutePortAuthorizationsClient.Get` + +```go +ctx := context.TODO() +id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "authorizationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRoutePortAuthorizationsClient.List` + +```go +ctx := context.TODO() +id := expressrouteportauthorizations.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/client.go new file mode 100644 index 000000000000..3405a1acb863 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/client.go @@ -0,0 +1,26 @@ +package expressrouteportauthorizations + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRoutePortAuthorizationsClient struct { + Client *resourcemanager.Client +} + +func NewExpressRoutePortAuthorizationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRoutePortAuthorizationsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "expressrouteportauthorizations", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ExpressRoutePortAuthorizationsClient: %+v", err) + } + + return &ExpressRoutePortAuthorizationsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/constants.go new file mode 100644 index 000000000000..3fbd20f1075d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/constants.go @@ -0,0 +1,98 @@ +package expressrouteportauthorizations + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRoutePortAuthorizationUseStatus string + +const ( + ExpressRoutePortAuthorizationUseStatusAvailable ExpressRoutePortAuthorizationUseStatus = "Available" + ExpressRoutePortAuthorizationUseStatusInUse ExpressRoutePortAuthorizationUseStatus = "InUse" +) + +func PossibleValuesForExpressRoutePortAuthorizationUseStatus() []string { + return []string{ + string(ExpressRoutePortAuthorizationUseStatusAvailable), + string(ExpressRoutePortAuthorizationUseStatusInUse), + } +} + +func (s *ExpressRoutePortAuthorizationUseStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRoutePortAuthorizationUseStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRoutePortAuthorizationUseStatus(input string) (*ExpressRoutePortAuthorizationUseStatus, error) { + vals := map[string]ExpressRoutePortAuthorizationUseStatus{ + "available": ExpressRoutePortAuthorizationUseStatusAvailable, + "inuse": ExpressRoutePortAuthorizationUseStatusInUse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRoutePortAuthorizationUseStatus(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/id_expressrouteport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/id_expressrouteport.go new file mode 100644 index 000000000000..b9d13e5b8432 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/id_expressrouteport.go @@ -0,0 +1,130 @@ +package expressrouteportauthorizations + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ExpressRoutePortId{}) +} + +var _ resourceids.ResourceId = &ExpressRoutePortId{} + +// ExpressRoutePortId is a struct representing the Resource ID for a Express Route Port +type ExpressRoutePortId struct { + SubscriptionId string + ResourceGroupName string + ExpressRoutePortName string +} + +// NewExpressRoutePortID returns a new ExpressRoutePortId struct +func NewExpressRoutePortID(subscriptionId string, resourceGroupName string, expressRoutePortName string) ExpressRoutePortId { + return ExpressRoutePortId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ExpressRoutePortName: expressRoutePortName, + } +} + +// ParseExpressRoutePortID parses 'input' into a ExpressRoutePortId +func ParseExpressRoutePortID(input string) (*ExpressRoutePortId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRoutePortId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRoutePortId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseExpressRoutePortIDInsensitively parses 'input' case-insensitively into a ExpressRoutePortId +// note: this method should only be used for API response data and not user input +func ParseExpressRoutePortIDInsensitively(input string) (*ExpressRoutePortId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRoutePortId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRoutePortId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ExpressRoutePortId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ExpressRoutePortName, ok = input.Parsed["expressRoutePortName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "expressRoutePortName", input) + } + + return nil +} + +// ValidateExpressRoutePortID checks that 'input' can be parsed as a Express Route Port ID +func ValidateExpressRoutePortID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseExpressRoutePortID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Express Route Port ID +func (id ExpressRoutePortId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRoutePorts/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRoutePortName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Express Route Port ID +func (id ExpressRoutePortId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticExpressRoutePorts", "expressRoutePorts", "expressRoutePorts"), + resourceids.UserSpecifiedSegment("expressRoutePortName", "expressRoutePortName"), + } +} + +// String returns a human-readable description of this Express Route Port ID +func (id ExpressRoutePortId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Express Route Port Name: %q", id.ExpressRoutePortName), + } + return fmt.Sprintf("Express Route Port (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/id_expressrouteportauthorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/id_expressrouteportauthorization.go new file mode 100644 index 000000000000..f0a6e19528d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/id_expressrouteportauthorization.go @@ -0,0 +1,139 @@ +package expressrouteportauthorizations + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ExpressRoutePortAuthorizationId{}) +} + +var _ resourceids.ResourceId = &ExpressRoutePortAuthorizationId{} + +// ExpressRoutePortAuthorizationId is a struct representing the Resource ID for a Express Route Port Authorization +type ExpressRoutePortAuthorizationId struct { + SubscriptionId string + ResourceGroupName string + ExpressRoutePortName string + AuthorizationName string +} + +// NewExpressRoutePortAuthorizationID returns a new ExpressRoutePortAuthorizationId struct +func NewExpressRoutePortAuthorizationID(subscriptionId string, resourceGroupName string, expressRoutePortName string, authorizationName string) ExpressRoutePortAuthorizationId { + return ExpressRoutePortAuthorizationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ExpressRoutePortName: expressRoutePortName, + AuthorizationName: authorizationName, + } +} + +// ParseExpressRoutePortAuthorizationID parses 'input' into a ExpressRoutePortAuthorizationId +func ParseExpressRoutePortAuthorizationID(input string) (*ExpressRoutePortAuthorizationId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRoutePortAuthorizationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRoutePortAuthorizationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseExpressRoutePortAuthorizationIDInsensitively parses 'input' case-insensitively into a ExpressRoutePortAuthorizationId +// note: this method should only be used for API response data and not user input +func ParseExpressRoutePortAuthorizationIDInsensitively(input string) (*ExpressRoutePortAuthorizationId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRoutePortAuthorizationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRoutePortAuthorizationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ExpressRoutePortAuthorizationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ExpressRoutePortName, ok = input.Parsed["expressRoutePortName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "expressRoutePortName", input) + } + + if id.AuthorizationName, ok = input.Parsed["authorizationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "authorizationName", input) + } + + return nil +} + +// ValidateExpressRoutePortAuthorizationID checks that 'input' can be parsed as a Express Route Port Authorization ID +func ValidateExpressRoutePortAuthorizationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseExpressRoutePortAuthorizationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Express Route Port Authorization ID +func (id ExpressRoutePortAuthorizationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRoutePorts/%s/authorizations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRoutePortName, id.AuthorizationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Express Route Port Authorization ID +func (id ExpressRoutePortAuthorizationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticExpressRoutePorts", "expressRoutePorts", "expressRoutePorts"), + resourceids.UserSpecifiedSegment("expressRoutePortName", "expressRoutePortName"), + resourceids.StaticSegment("staticAuthorizations", "authorizations", "authorizations"), + resourceids.UserSpecifiedSegment("authorizationName", "authorizationName"), + } +} + +// String returns a human-readable description of this Express Route Port Authorization ID +func (id ExpressRoutePortAuthorizationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Express Route Port Name: %q", id.ExpressRoutePortName), + fmt.Sprintf("Authorization Name: %q", id.AuthorizationName), + } + return fmt.Sprintf("Express Route Port Authorization (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_createorupdate.go new file mode 100644 index 000000000000..9e08a949ed3c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_createorupdate.go @@ -0,0 +1,75 @@ +package expressrouteportauthorizations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRoutePortAuthorization +} + +// CreateOrUpdate ... +func (c ExpressRoutePortAuthorizationsClient) CreateOrUpdate(ctx context.Context, id ExpressRoutePortAuthorizationId, input ExpressRoutePortAuthorization) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ExpressRoutePortAuthorizationsClient) CreateOrUpdateThenPoll(ctx context.Context, id ExpressRoutePortAuthorizationId, input ExpressRoutePortAuthorization) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_delete.go new file mode 100644 index 000000000000..8940670b6150 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_delete.go @@ -0,0 +1,71 @@ +package expressrouteportauthorizations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ExpressRoutePortAuthorizationsClient) Delete(ctx context.Context, id ExpressRoutePortAuthorizationId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ExpressRoutePortAuthorizationsClient) DeleteThenPoll(ctx context.Context, id ExpressRoutePortAuthorizationId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_get.go new file mode 100644 index 000000000000..c8df23b8dfde --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_get.go @@ -0,0 +1,53 @@ +package expressrouteportauthorizations + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRoutePortAuthorization +} + +// Get ... +func (c ExpressRoutePortAuthorizationsClient) Get(ctx context.Context, id ExpressRoutePortAuthorizationId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRoutePortAuthorization + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_list.go new file mode 100644 index 000000000000..66e64adc644e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_list.go @@ -0,0 +1,105 @@ +package expressrouteportauthorizations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ExpressRoutePortAuthorization +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRoutePortAuthorization +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ExpressRoutePortAuthorizationsClient) List(ctx context.Context, id ExpressRoutePortId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/authorizations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ExpressRoutePortAuthorization `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ExpressRoutePortAuthorizationsClient) ListComplete(ctx context.Context, id ExpressRoutePortId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, ExpressRoutePortAuthorizationOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ExpressRoutePortAuthorizationsClient) ListCompleteMatchingPredicate(ctx context.Context, id ExpressRoutePortId, predicate ExpressRoutePortAuthorizationOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ExpressRoutePortAuthorization, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/model_expressrouteportauthorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/model_expressrouteportauthorization.go new file mode 100644 index 000000000000..aee29af0a991 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/model_expressrouteportauthorization.go @@ -0,0 +1,12 @@ +package expressrouteportauthorizations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRoutePortAuthorization struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRoutePortAuthorizationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/model_expressrouteportauthorizationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/model_expressrouteportauthorizationpropertiesformat.go new file mode 100644 index 000000000000..9370c4f6323a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/model_expressrouteportauthorizationpropertiesformat.go @@ -0,0 +1,11 @@ +package expressrouteportauthorizations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRoutePortAuthorizationPropertiesFormat struct { + AuthorizationKey *string `json:"authorizationKey,omitempty"` + AuthorizationUseStatus *ExpressRoutePortAuthorizationUseStatus `json:"authorizationUseStatus,omitempty"` + CircuitResourceUri *string `json:"circuitResourceUri,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/predicates.go new file mode 100644 index 000000000000..d12fc29e52a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/predicates.go @@ -0,0 +1,32 @@ +package expressrouteportauthorizations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRoutePortAuthorizationOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p ExpressRoutePortAuthorizationOperationPredicate) Matches(input ExpressRoutePortAuthorization) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/version.go new file mode 100644 index 000000000000..c6b2fdfa51b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/version.go @@ -0,0 +1,10 @@ +package expressrouteportauthorizations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressrouteportauthorizations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/README.md new file mode 100644 index 000000000000..b91bc3697047 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/README.md @@ -0,0 +1,142 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports` Documentation + +The `expressrouteports` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports" +``` + + +### Client Initialization + +```go +client := expressrouteports.NewExpressRoutePortsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRoutePortsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") + +payload := expressrouteports.ExpressRoutePort{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRoutePortsClient.Delete` + +```go +ctx := context.TODO() +id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRoutePortsClient.GenerateLOA` + +```go +ctx := context.TODO() +id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") + +payload := expressrouteports.GenerateExpressRoutePortsLOARequest{ + // ... +} + + +read, err := client.GenerateLOA(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRoutePortsClient.Get` + +```go +ctx := context.TODO() +id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRoutePortsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ExpressRoutePortsClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ExpressRoutePortsClient.UpdateTags` + +```go +ctx := context.TODO() +id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") + +payload := expressrouteports.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/client.go new file mode 100644 index 000000000000..82e57d5b54f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/client.go @@ -0,0 +1,26 @@ +package expressrouteports + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRoutePortsClient struct { + Client *resourcemanager.Client +} + +func NewExpressRoutePortsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRoutePortsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "expressrouteports", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ExpressRoutePortsClient: %+v", err) + } + + return &ExpressRoutePortsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/constants.go new file mode 100644 index 000000000000..0c08bc2c72fa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/constants.go @@ -0,0 +1,309 @@ +package expressrouteports + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteLinkAdminState string + +const ( + ExpressRouteLinkAdminStateDisabled ExpressRouteLinkAdminState = "Disabled" + ExpressRouteLinkAdminStateEnabled ExpressRouteLinkAdminState = "Enabled" +) + +func PossibleValuesForExpressRouteLinkAdminState() []string { + return []string{ + string(ExpressRouteLinkAdminStateDisabled), + string(ExpressRouteLinkAdminStateEnabled), + } +} + +func (s *ExpressRouteLinkAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteLinkAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteLinkAdminState(input string) (*ExpressRouteLinkAdminState, error) { + vals := map[string]ExpressRouteLinkAdminState{ + "disabled": ExpressRouteLinkAdminStateDisabled, + "enabled": ExpressRouteLinkAdminStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteLinkAdminState(input) + return &out, nil +} + +type ExpressRouteLinkConnectorType string + +const ( + ExpressRouteLinkConnectorTypeLC ExpressRouteLinkConnectorType = "LC" + ExpressRouteLinkConnectorTypeSC ExpressRouteLinkConnectorType = "SC" +) + +func PossibleValuesForExpressRouteLinkConnectorType() []string { + return []string{ + string(ExpressRouteLinkConnectorTypeLC), + string(ExpressRouteLinkConnectorTypeSC), + } +} + +func (s *ExpressRouteLinkConnectorType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteLinkConnectorType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteLinkConnectorType(input string) (*ExpressRouteLinkConnectorType, error) { + vals := map[string]ExpressRouteLinkConnectorType{ + "lc": ExpressRouteLinkConnectorTypeLC, + "sc": ExpressRouteLinkConnectorTypeSC, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteLinkConnectorType(input) + return &out, nil +} + +type ExpressRouteLinkMacSecCipher string + +const ( + ExpressRouteLinkMacSecCipherGcmAesOneTwoEight ExpressRouteLinkMacSecCipher = "GcmAes128" + ExpressRouteLinkMacSecCipherGcmAesTwoFiveSix ExpressRouteLinkMacSecCipher = "GcmAes256" + ExpressRouteLinkMacSecCipherGcmAesXpnOneTwoEight ExpressRouteLinkMacSecCipher = "GcmAesXpn128" + ExpressRouteLinkMacSecCipherGcmAesXpnTwoFiveSix ExpressRouteLinkMacSecCipher = "GcmAesXpn256" +) + +func PossibleValuesForExpressRouteLinkMacSecCipher() []string { + return []string{ + string(ExpressRouteLinkMacSecCipherGcmAesOneTwoEight), + string(ExpressRouteLinkMacSecCipherGcmAesTwoFiveSix), + string(ExpressRouteLinkMacSecCipherGcmAesXpnOneTwoEight), + string(ExpressRouteLinkMacSecCipherGcmAesXpnTwoFiveSix), + } +} + +func (s *ExpressRouteLinkMacSecCipher) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteLinkMacSecCipher(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteLinkMacSecCipher(input string) (*ExpressRouteLinkMacSecCipher, error) { + vals := map[string]ExpressRouteLinkMacSecCipher{ + "gcmaes128": ExpressRouteLinkMacSecCipherGcmAesOneTwoEight, + "gcmaes256": ExpressRouteLinkMacSecCipherGcmAesTwoFiveSix, + "gcmaesxpn128": ExpressRouteLinkMacSecCipherGcmAesXpnOneTwoEight, + "gcmaesxpn256": ExpressRouteLinkMacSecCipherGcmAesXpnTwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteLinkMacSecCipher(input) + return &out, nil +} + +type ExpressRouteLinkMacSecSciState string + +const ( + ExpressRouteLinkMacSecSciStateDisabled ExpressRouteLinkMacSecSciState = "Disabled" + ExpressRouteLinkMacSecSciStateEnabled ExpressRouteLinkMacSecSciState = "Enabled" +) + +func PossibleValuesForExpressRouteLinkMacSecSciState() []string { + return []string{ + string(ExpressRouteLinkMacSecSciStateDisabled), + string(ExpressRouteLinkMacSecSciStateEnabled), + } +} + +func (s *ExpressRouteLinkMacSecSciState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteLinkMacSecSciState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteLinkMacSecSciState(input string) (*ExpressRouteLinkMacSecSciState, error) { + vals := map[string]ExpressRouteLinkMacSecSciState{ + "disabled": ExpressRouteLinkMacSecSciStateDisabled, + "enabled": ExpressRouteLinkMacSecSciStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteLinkMacSecSciState(input) + return &out, nil +} + +type ExpressRoutePortsBillingType string + +const ( + ExpressRoutePortsBillingTypeMeteredData ExpressRoutePortsBillingType = "MeteredData" + ExpressRoutePortsBillingTypeUnlimitedData ExpressRoutePortsBillingType = "UnlimitedData" +) + +func PossibleValuesForExpressRoutePortsBillingType() []string { + return []string{ + string(ExpressRoutePortsBillingTypeMeteredData), + string(ExpressRoutePortsBillingTypeUnlimitedData), + } +} + +func (s *ExpressRoutePortsBillingType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRoutePortsBillingType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRoutePortsBillingType(input string) (*ExpressRoutePortsBillingType, error) { + vals := map[string]ExpressRoutePortsBillingType{ + "metereddata": ExpressRoutePortsBillingTypeMeteredData, + "unlimiteddata": ExpressRoutePortsBillingTypeUnlimitedData, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRoutePortsBillingType(input) + return &out, nil +} + +type ExpressRoutePortsEncapsulation string + +const ( + ExpressRoutePortsEncapsulationDotOneQ ExpressRoutePortsEncapsulation = "Dot1Q" + ExpressRoutePortsEncapsulationQinQ ExpressRoutePortsEncapsulation = "QinQ" +) + +func PossibleValuesForExpressRoutePortsEncapsulation() []string { + return []string{ + string(ExpressRoutePortsEncapsulationDotOneQ), + string(ExpressRoutePortsEncapsulationQinQ), + } +} + +func (s *ExpressRoutePortsEncapsulation) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRoutePortsEncapsulation(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRoutePortsEncapsulation(input string) (*ExpressRoutePortsEncapsulation, error) { + vals := map[string]ExpressRoutePortsEncapsulation{ + "dot1q": ExpressRoutePortsEncapsulationDotOneQ, + "qinq": ExpressRoutePortsEncapsulationQinQ, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRoutePortsEncapsulation(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/id_expressrouteport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/id_expressrouteport.go new file mode 100644 index 000000000000..17c2ee16ba03 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/id_expressrouteport.go @@ -0,0 +1,130 @@ +package expressrouteports + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ExpressRoutePortId{}) +} + +var _ resourceids.ResourceId = &ExpressRoutePortId{} + +// ExpressRoutePortId is a struct representing the Resource ID for a Express Route Port +type ExpressRoutePortId struct { + SubscriptionId string + ResourceGroupName string + ExpressRoutePortName string +} + +// NewExpressRoutePortID returns a new ExpressRoutePortId struct +func NewExpressRoutePortID(subscriptionId string, resourceGroupName string, expressRoutePortName string) ExpressRoutePortId { + return ExpressRoutePortId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ExpressRoutePortName: expressRoutePortName, + } +} + +// ParseExpressRoutePortID parses 'input' into a ExpressRoutePortId +func ParseExpressRoutePortID(input string) (*ExpressRoutePortId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRoutePortId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRoutePortId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseExpressRoutePortIDInsensitively parses 'input' case-insensitively into a ExpressRoutePortId +// note: this method should only be used for API response data and not user input +func ParseExpressRoutePortIDInsensitively(input string) (*ExpressRoutePortId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRoutePortId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRoutePortId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ExpressRoutePortId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ExpressRoutePortName, ok = input.Parsed["expressRoutePortName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "expressRoutePortName", input) + } + + return nil +} + +// ValidateExpressRoutePortID checks that 'input' can be parsed as a Express Route Port ID +func ValidateExpressRoutePortID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseExpressRoutePortID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Express Route Port ID +func (id ExpressRoutePortId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRoutePorts/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRoutePortName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Express Route Port ID +func (id ExpressRoutePortId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticExpressRoutePorts", "expressRoutePorts", "expressRoutePorts"), + resourceids.UserSpecifiedSegment("expressRoutePortName", "expressRoutePortName"), + } +} + +// String returns a human-readable description of this Express Route Port ID +func (id ExpressRoutePortId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Express Route Port Name: %q", id.ExpressRoutePortName), + } + return fmt.Sprintf("Express Route Port (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_createorupdate.go new file mode 100644 index 000000000000..34782a4d4f38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_createorupdate.go @@ -0,0 +1,75 @@ +package expressrouteports + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRoutePort +} + +// CreateOrUpdate ... +func (c ExpressRoutePortsClient) CreateOrUpdate(ctx context.Context, id ExpressRoutePortId, input ExpressRoutePort) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ExpressRoutePortsClient) CreateOrUpdateThenPoll(ctx context.Context, id ExpressRoutePortId, input ExpressRoutePort) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_delete.go new file mode 100644 index 000000000000..899e7de35bdf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_delete.go @@ -0,0 +1,71 @@ +package expressrouteports + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ExpressRoutePortsClient) Delete(ctx context.Context, id ExpressRoutePortId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ExpressRoutePortsClient) DeleteThenPoll(ctx context.Context, id ExpressRoutePortId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_generateloa.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_generateloa.go new file mode 100644 index 000000000000..d5725e743a69 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_generateloa.go @@ -0,0 +1,58 @@ +package expressrouteports + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GenerateLOAOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *GenerateExpressRoutePortsLOAResult +} + +// GenerateLOA ... +func (c ExpressRoutePortsClient) GenerateLOA(ctx context.Context, id ExpressRoutePortId, input GenerateExpressRoutePortsLOARequest) (result GenerateLOAOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/generateLoa", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model GenerateExpressRoutePortsLOAResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_get.go new file mode 100644 index 000000000000..dda9cada8505 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_get.go @@ -0,0 +1,53 @@ +package expressrouteports + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRoutePort +} + +// Get ... +func (c ExpressRoutePortsClient) Get(ctx context.Context, id ExpressRoutePortId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRoutePort + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_list.go new file mode 100644 index 000000000000..6ad9fc7015f2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_list.go @@ -0,0 +1,106 @@ +package expressrouteports + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ExpressRoutePort +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRoutePort +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ExpressRoutePortsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRoutePorts", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ExpressRoutePort `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ExpressRoutePortsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, ExpressRoutePortOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ExpressRoutePortsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ExpressRoutePortOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ExpressRoutePort, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_listbyresourcegroup.go new file mode 100644 index 000000000000..ff3df3bfadac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_listbyresourcegroup.go @@ -0,0 +1,106 @@ +package expressrouteports + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ExpressRoutePort +} + +type ListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRoutePort +} + +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByResourceGroup ... +func (c ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRoutePorts", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ExpressRoutePort `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByResourceGroupComplete retrieves all the results into a single object +func (c ExpressRoutePortsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, ExpressRoutePortOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ExpressRoutePortsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ExpressRoutePortOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]ExpressRoutePort, 0) + + resp, err := c.ListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_updatetags.go new file mode 100644 index 000000000000..7ce98b9327bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_updatetags.go @@ -0,0 +1,57 @@ +package expressrouteports + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRoutePort +} + +// UpdateTags ... +func (c ExpressRoutePortsClient) UpdateTags(ctx context.Context, id ExpressRoutePortId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRoutePort + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelink.go new file mode 100644 index 000000000000..60ed59156adc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelink.go @@ -0,0 +1,11 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRouteLinkPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelinkmacsecconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelinkmacsecconfig.go new file mode 100644 index 000000000000..f41c94b34012 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelinkmacsecconfig.go @@ -0,0 +1,11 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteLinkMacSecConfig struct { + CakSecretIdentifier *string `json:"cakSecretIdentifier,omitempty"` + Cipher *ExpressRouteLinkMacSecCipher `json:"cipher,omitempty"` + CknSecretIdentifier *string `json:"cknSecretIdentifier,omitempty"` + SciState *ExpressRouteLinkMacSecSciState `json:"sciState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelinkpropertiesformat.go new file mode 100644 index 000000000000..a9fd2f6e03d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelinkpropertiesformat.go @@ -0,0 +1,16 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteLinkPropertiesFormat struct { + AdminState *ExpressRouteLinkAdminState `json:"adminState,omitempty"` + ColoLocation *string `json:"coloLocation,omitempty"` + ConnectorType *ExpressRouteLinkConnectorType `json:"connectorType,omitempty"` + InterfaceName *string `json:"interfaceName,omitempty"` + MacSecConfig *ExpressRouteLinkMacSecConfig `json:"macSecConfig,omitempty"` + PatchPanelId *string `json:"patchPanelId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RackId *string `json:"rackId,omitempty"` + RouterName *string `json:"routerName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressrouteport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressrouteport.go new file mode 100644 index 000000000000..4e2aa94784f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressrouteport.go @@ -0,0 +1,19 @@ +package expressrouteports + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRoutePort struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRoutePortPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressrouteportpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressrouteportpropertiesformat.go new file mode 100644 index 000000000000..897d5ea08dea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressrouteportpropertiesformat.go @@ -0,0 +1,19 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRoutePortPropertiesFormat struct { + AllocationDate *string `json:"allocationDate,omitempty"` + BandwidthInGbps *int64 `json:"bandwidthInGbps,omitempty"` + BillingType *ExpressRoutePortsBillingType `json:"billingType,omitempty"` + Circuits *[]SubResource `json:"circuits,omitempty"` + Encapsulation *ExpressRoutePortsEncapsulation `json:"encapsulation,omitempty"` + EtherType *string `json:"etherType,omitempty"` + Links *[]ExpressRouteLink `json:"links,omitempty"` + Mtu *string `json:"mtu,omitempty"` + PeeringLocation *string `json:"peeringLocation,omitempty"` + ProvisionedBandwidthInGbps *float64 `json:"provisionedBandwidthInGbps,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_generateexpressrouteportsloarequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_generateexpressrouteportsloarequest.go new file mode 100644 index 000000000000..d588660f834e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_generateexpressrouteportsloarequest.go @@ -0,0 +1,8 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GenerateExpressRoutePortsLOARequest struct { + CustomerName string `json:"customerName"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_generateexpressrouteportsloaresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_generateexpressrouteportsloaresult.go new file mode 100644 index 000000000000..54defeace0f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_generateexpressrouteportsloaresult.go @@ -0,0 +1,8 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GenerateExpressRoutePortsLOAResult struct { + EncodedContent *string `json:"encodedContent,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_subresource.go new file mode 100644 index 000000000000..ef7329a3163e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_subresource.go @@ -0,0 +1,8 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_tagsobject.go new file mode 100644 index 000000000000..d0cb6f9d317f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_tagsobject.go @@ -0,0 +1,8 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/predicates.go new file mode 100644 index 000000000000..7339fac991bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/predicates.go @@ -0,0 +1,37 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRoutePortOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p ExpressRoutePortOperationPredicate) Matches(input ExpressRoutePort) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/version.go new file mode 100644 index 000000000000..841ca4ebd484 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/version.go @@ -0,0 +1,10 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressrouteports/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/README.md similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/README.md index e0c809ccc07f..8f2ba153b505 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations` Documentation -The `expressrouteportslocations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `expressrouteportslocations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/id_expressrouteportslocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/id_expressrouteportslocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/id_expressrouteportslocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/id_expressrouteportslocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/model_expressrouteportslocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/model_expressrouteportslocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/model_expressrouteportslocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/model_expressrouteportslocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/model_expressrouteportslocationbandwidths.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/model_expressrouteportslocationbandwidths.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/model_expressrouteportslocationbandwidths.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/model_expressrouteportslocationbandwidths.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/model_expressrouteportslocationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/model_expressrouteportslocationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/model_expressrouteportslocationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/model_expressrouteportslocationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/version.go index bc904c8fb8e0..cb780c42f406 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/version.go @@ -3,8 +3,8 @@ package expressrouteportslocations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/expressrouteportslocations/2023-11-01" + return "hashicorp/go-azure-sdk/expressrouteportslocations/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/README.md similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/README.md index ae8eb0787a28..52166f859790 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports` Documentation -The `expressrouteproviderports` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `expressrouteproviderports` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/id_expressrouteproviderport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/id_expressrouteproviderport.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/id_expressrouteproviderport.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/id_expressrouteproviderport.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/method_expressrouteproviderport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/method_expressrouteproviderport.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/method_expressrouteproviderport.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/method_expressrouteproviderport.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/method_locationlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/method_locationlist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/method_locationlist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/method_locationlist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/model_expressrouteproviderport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/model_expressrouteproviderport.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/model_expressrouteproviderport.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/model_expressrouteproviderport.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/model_expressrouteproviderportproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/model_expressrouteproviderportproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/model_expressrouteproviderportproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/model_expressrouteproviderportproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/version.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/version.go index 598703ffe4f4..4404de66dd8a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/version.go @@ -3,8 +3,8 @@ package expressrouteproviderports // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/expressrouteproviderports/2023-11-01" + return "hashicorp/go-azure-sdk/expressrouteproviderports/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/README.md similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/README.md index d5360cbd62d5..28f511f9297e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders` Documentation -The `expressrouteserviceproviders` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `expressrouteserviceproviders` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/model_expressrouteserviceprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/model_expressrouteserviceprovider.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/model_expressrouteserviceprovider.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/model_expressrouteserviceprovider.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/model_expressrouteserviceproviderbandwidthsoffered.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/model_expressrouteserviceproviderbandwidthsoffered.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/model_expressrouteserviceproviderbandwidthsoffered.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/model_expressrouteserviceproviderbandwidthsoffered.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/model_expressrouteserviceproviderpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/model_expressrouteserviceproviderpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/model_expressrouteserviceproviderpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/model_expressrouteserviceproviderpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/version.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/version.go index b4db33f2c73b..a9d597fb3aa9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/version.go @@ -3,8 +3,8 @@ package expressrouteserviceproviders // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/expressrouteserviceproviders/2023-11-01" + return "hashicorp/go-azure-sdk/expressrouteserviceproviders/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/README.md new file mode 100644 index 000000000000..6e48c056a6d0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/README.md @@ -0,0 +1,355 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies` Documentation + +The `firewallpolicies` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies" +``` + + +### Client Initialization + +```go +client := firewallpolicies.NewFirewallPoliciesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `FirewallPoliciesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +payload := firewallpolicies.FirewallPolicy{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `FirewallPoliciesClient.Delete` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyDeploymentsDeploy` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +if err := client.FirewallPolicyDeploymentsDeployThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyDraftsCreateOrUpdate` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +payload := firewallpolicies.FirewallPolicyDraft{ + // ... +} + + +read, err := client.FirewallPolicyDraftsCreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyDraftsDelete` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +read, err := client.FirewallPolicyDraftsDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyDraftsGet` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +read, err := client.FirewallPolicyDraftsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyIdpsSignaturesFilterValuesList` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +payload := firewallpolicies.SignatureOverridesFilterValuesQuery{ + // ... +} + + +read, err := client.FirewallPolicyIdpsSignaturesFilterValuesList(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyIdpsSignaturesList` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +payload := firewallpolicies.IDPSQueryObject{ + // ... +} + + +read, err := client.FirewallPolicyIdpsSignaturesList(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyIdpsSignaturesOverridesGet` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +read, err := client.FirewallPolicyIdpsSignaturesOverridesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyIdpsSignaturesOverridesList` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +read, err := client.FirewallPolicyIdpsSignaturesOverridesList(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyIdpsSignaturesOverridesPatch` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +payload := firewallpolicies.SignaturesOverrides{ + // ... +} + + +read, err := client.FirewallPolicyIdpsSignaturesOverridesPatch(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyIdpsSignaturesOverridesPut` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +payload := firewallpolicies.SignaturesOverrides{ + // ... +} + + +read, err := client.FirewallPolicyIdpsSignaturesOverridesPut(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdate` + +```go +ctx := context.TODO() +id := firewallpolicies.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") + +payload := firewallpolicies.FirewallPolicyRuleCollectionGroupDraft{ + // ... +} + + +read, err := client.FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyRuleCollectionGroupDraftsDelete` + +```go +ctx := context.TODO() +id := firewallpolicies.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") + +read, err := client.FirewallPolicyRuleCollectionGroupDraftsDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyRuleCollectionGroupDraftsGet` + +```go +ctx := context.TODO() +id := firewallpolicies.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") + +read, err := client.FirewallPolicyRuleCollectionGroupDraftsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.Get` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +read, err := client.Get(ctx, id, firewallpolicies.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `FirewallPoliciesClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `FirewallPoliciesClient.UpdateTags` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +payload := firewallpolicies.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/client.go new file mode 100644 index 000000000000..fba92b74070b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/client.go @@ -0,0 +1,26 @@ +package firewallpolicies + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPoliciesClient struct { + Client *resourcemanager.Client +} + +func NewFirewallPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallPoliciesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "firewallpolicies", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating FirewallPoliciesClient: %+v", err) + } + + return &FirewallPoliciesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/constants.go new file mode 100644 index 000000000000..1888a04c5a50 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/constants.go @@ -0,0 +1,669 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AutoLearnPrivateRangesMode string + +const ( + AutoLearnPrivateRangesModeDisabled AutoLearnPrivateRangesMode = "Disabled" + AutoLearnPrivateRangesModeEnabled AutoLearnPrivateRangesMode = "Enabled" +) + +func PossibleValuesForAutoLearnPrivateRangesMode() []string { + return []string{ + string(AutoLearnPrivateRangesModeDisabled), + string(AutoLearnPrivateRangesModeEnabled), + } +} + +func (s *AutoLearnPrivateRangesMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAutoLearnPrivateRangesMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAutoLearnPrivateRangesMode(input string) (*AutoLearnPrivateRangesMode, error) { + vals := map[string]AutoLearnPrivateRangesMode{ + "disabled": AutoLearnPrivateRangesModeDisabled, + "enabled": AutoLearnPrivateRangesModeEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AutoLearnPrivateRangesMode(input) + return &out, nil +} + +type AzureFirewallThreatIntelMode string + +const ( + AzureFirewallThreatIntelModeAlert AzureFirewallThreatIntelMode = "Alert" + AzureFirewallThreatIntelModeDeny AzureFirewallThreatIntelMode = "Deny" + AzureFirewallThreatIntelModeOff AzureFirewallThreatIntelMode = "Off" +) + +func PossibleValuesForAzureFirewallThreatIntelMode() []string { + return []string{ + string(AzureFirewallThreatIntelModeAlert), + string(AzureFirewallThreatIntelModeDeny), + string(AzureFirewallThreatIntelModeOff), + } +} + +func (s *AzureFirewallThreatIntelMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAzureFirewallThreatIntelMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAzureFirewallThreatIntelMode(input string) (*AzureFirewallThreatIntelMode, error) { + vals := map[string]AzureFirewallThreatIntelMode{ + "alert": AzureFirewallThreatIntelModeAlert, + "deny": AzureFirewallThreatIntelModeDeny, + "off": AzureFirewallThreatIntelModeOff, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureFirewallThreatIntelMode(input) + return &out, nil +} + +type FirewallPolicyFilterRuleCollectionActionType string + +const ( + FirewallPolicyFilterRuleCollectionActionTypeAllow FirewallPolicyFilterRuleCollectionActionType = "Allow" + FirewallPolicyFilterRuleCollectionActionTypeDeny FirewallPolicyFilterRuleCollectionActionType = "Deny" +) + +func PossibleValuesForFirewallPolicyFilterRuleCollectionActionType() []string { + return []string{ + string(FirewallPolicyFilterRuleCollectionActionTypeAllow), + string(FirewallPolicyFilterRuleCollectionActionTypeDeny), + } +} + +func (s *FirewallPolicyFilterRuleCollectionActionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyFilterRuleCollectionActionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyFilterRuleCollectionActionType(input string) (*FirewallPolicyFilterRuleCollectionActionType, error) { + vals := map[string]FirewallPolicyFilterRuleCollectionActionType{ + "allow": FirewallPolicyFilterRuleCollectionActionTypeAllow, + "deny": FirewallPolicyFilterRuleCollectionActionTypeDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyFilterRuleCollectionActionType(input) + return &out, nil +} + +type FirewallPolicyIDPSQuerySortOrder string + +const ( + FirewallPolicyIDPSQuerySortOrderAscending FirewallPolicyIDPSQuerySortOrder = "Ascending" + FirewallPolicyIDPSQuerySortOrderDescending FirewallPolicyIDPSQuerySortOrder = "Descending" +) + +func PossibleValuesForFirewallPolicyIDPSQuerySortOrder() []string { + return []string{ + string(FirewallPolicyIDPSQuerySortOrderAscending), + string(FirewallPolicyIDPSQuerySortOrderDescending), + } +} + +func (s *FirewallPolicyIDPSQuerySortOrder) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyIDPSQuerySortOrder(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyIDPSQuerySortOrder(input string) (*FirewallPolicyIDPSQuerySortOrder, error) { + vals := map[string]FirewallPolicyIDPSQuerySortOrder{ + "ascending": FirewallPolicyIDPSQuerySortOrderAscending, + "descending": FirewallPolicyIDPSQuerySortOrderDescending, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyIDPSQuerySortOrder(input) + return &out, nil +} + +type FirewallPolicyIDPSSignatureDirection int64 + +const ( + FirewallPolicyIDPSSignatureDirectionFour FirewallPolicyIDPSSignatureDirection = 4 + FirewallPolicyIDPSSignatureDirectionOne FirewallPolicyIDPSSignatureDirection = 1 + FirewallPolicyIDPSSignatureDirectionThree FirewallPolicyIDPSSignatureDirection = 3 + FirewallPolicyIDPSSignatureDirectionTwo FirewallPolicyIDPSSignatureDirection = 2 + FirewallPolicyIDPSSignatureDirectionZero FirewallPolicyIDPSSignatureDirection = 0 +) + +func PossibleValuesForFirewallPolicyIDPSSignatureDirection() []int64 { + return []int64{ + int64(FirewallPolicyIDPSSignatureDirectionFour), + int64(FirewallPolicyIDPSSignatureDirectionOne), + int64(FirewallPolicyIDPSSignatureDirectionThree), + int64(FirewallPolicyIDPSSignatureDirectionTwo), + int64(FirewallPolicyIDPSSignatureDirectionZero), + } +} + +type FirewallPolicyIDPSSignatureMode int64 + +const ( + FirewallPolicyIDPSSignatureModeOne FirewallPolicyIDPSSignatureMode = 1 + FirewallPolicyIDPSSignatureModeTwo FirewallPolicyIDPSSignatureMode = 2 + FirewallPolicyIDPSSignatureModeZero FirewallPolicyIDPSSignatureMode = 0 +) + +func PossibleValuesForFirewallPolicyIDPSSignatureMode() []int64 { + return []int64{ + int64(FirewallPolicyIDPSSignatureModeOne), + int64(FirewallPolicyIDPSSignatureModeTwo), + int64(FirewallPolicyIDPSSignatureModeZero), + } +} + +type FirewallPolicyIDPSSignatureSeverity int64 + +const ( + FirewallPolicyIDPSSignatureSeverityOne FirewallPolicyIDPSSignatureSeverity = 1 + FirewallPolicyIDPSSignatureSeverityThree FirewallPolicyIDPSSignatureSeverity = 3 + FirewallPolicyIDPSSignatureSeverityTwo FirewallPolicyIDPSSignatureSeverity = 2 +) + +func PossibleValuesForFirewallPolicyIDPSSignatureSeverity() []int64 { + return []int64{ + int64(FirewallPolicyIDPSSignatureSeverityOne), + int64(FirewallPolicyIDPSSignatureSeverityThree), + int64(FirewallPolicyIDPSSignatureSeverityTwo), + } +} + +type FirewallPolicyIntrusionDetectionProfileType string + +const ( + FirewallPolicyIntrusionDetectionProfileTypeAdvanced FirewallPolicyIntrusionDetectionProfileType = "Advanced" + FirewallPolicyIntrusionDetectionProfileTypeBasic FirewallPolicyIntrusionDetectionProfileType = "Basic" + FirewallPolicyIntrusionDetectionProfileTypeExtended FirewallPolicyIntrusionDetectionProfileType = "Extended" + FirewallPolicyIntrusionDetectionProfileTypeStandard FirewallPolicyIntrusionDetectionProfileType = "Standard" +) + +func PossibleValuesForFirewallPolicyIntrusionDetectionProfileType() []string { + return []string{ + string(FirewallPolicyIntrusionDetectionProfileTypeAdvanced), + string(FirewallPolicyIntrusionDetectionProfileTypeBasic), + string(FirewallPolicyIntrusionDetectionProfileTypeExtended), + string(FirewallPolicyIntrusionDetectionProfileTypeStandard), + } +} + +func (s *FirewallPolicyIntrusionDetectionProfileType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyIntrusionDetectionProfileType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyIntrusionDetectionProfileType(input string) (*FirewallPolicyIntrusionDetectionProfileType, error) { + vals := map[string]FirewallPolicyIntrusionDetectionProfileType{ + "advanced": FirewallPolicyIntrusionDetectionProfileTypeAdvanced, + "basic": FirewallPolicyIntrusionDetectionProfileTypeBasic, + "extended": FirewallPolicyIntrusionDetectionProfileTypeExtended, + "standard": FirewallPolicyIntrusionDetectionProfileTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyIntrusionDetectionProfileType(input) + return &out, nil +} + +type FirewallPolicyIntrusionDetectionProtocol string + +const ( + FirewallPolicyIntrusionDetectionProtocolANY FirewallPolicyIntrusionDetectionProtocol = "ANY" + FirewallPolicyIntrusionDetectionProtocolICMP FirewallPolicyIntrusionDetectionProtocol = "ICMP" + FirewallPolicyIntrusionDetectionProtocolTCP FirewallPolicyIntrusionDetectionProtocol = "TCP" + FirewallPolicyIntrusionDetectionProtocolUDP FirewallPolicyIntrusionDetectionProtocol = "UDP" +) + +func PossibleValuesForFirewallPolicyIntrusionDetectionProtocol() []string { + return []string{ + string(FirewallPolicyIntrusionDetectionProtocolANY), + string(FirewallPolicyIntrusionDetectionProtocolICMP), + string(FirewallPolicyIntrusionDetectionProtocolTCP), + string(FirewallPolicyIntrusionDetectionProtocolUDP), + } +} + +func (s *FirewallPolicyIntrusionDetectionProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyIntrusionDetectionProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyIntrusionDetectionProtocol(input string) (*FirewallPolicyIntrusionDetectionProtocol, error) { + vals := map[string]FirewallPolicyIntrusionDetectionProtocol{ + "any": FirewallPolicyIntrusionDetectionProtocolANY, + "icmp": FirewallPolicyIntrusionDetectionProtocolICMP, + "tcp": FirewallPolicyIntrusionDetectionProtocolTCP, + "udp": FirewallPolicyIntrusionDetectionProtocolUDP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyIntrusionDetectionProtocol(input) + return &out, nil +} + +type FirewallPolicyIntrusionDetectionStateType string + +const ( + FirewallPolicyIntrusionDetectionStateTypeAlert FirewallPolicyIntrusionDetectionStateType = "Alert" + FirewallPolicyIntrusionDetectionStateTypeDeny FirewallPolicyIntrusionDetectionStateType = "Deny" + FirewallPolicyIntrusionDetectionStateTypeOff FirewallPolicyIntrusionDetectionStateType = "Off" +) + +func PossibleValuesForFirewallPolicyIntrusionDetectionStateType() []string { + return []string{ + string(FirewallPolicyIntrusionDetectionStateTypeAlert), + string(FirewallPolicyIntrusionDetectionStateTypeDeny), + string(FirewallPolicyIntrusionDetectionStateTypeOff), + } +} + +func (s *FirewallPolicyIntrusionDetectionStateType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyIntrusionDetectionStateType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyIntrusionDetectionStateType(input string) (*FirewallPolicyIntrusionDetectionStateType, error) { + vals := map[string]FirewallPolicyIntrusionDetectionStateType{ + "alert": FirewallPolicyIntrusionDetectionStateTypeAlert, + "deny": FirewallPolicyIntrusionDetectionStateTypeDeny, + "off": FirewallPolicyIntrusionDetectionStateTypeOff, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyIntrusionDetectionStateType(input) + return &out, nil +} + +type FirewallPolicyNatRuleCollectionActionType string + +const ( + FirewallPolicyNatRuleCollectionActionTypeDNAT FirewallPolicyNatRuleCollectionActionType = "DNAT" +) + +func PossibleValuesForFirewallPolicyNatRuleCollectionActionType() []string { + return []string{ + string(FirewallPolicyNatRuleCollectionActionTypeDNAT), + } +} + +func (s *FirewallPolicyNatRuleCollectionActionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyNatRuleCollectionActionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyNatRuleCollectionActionType(input string) (*FirewallPolicyNatRuleCollectionActionType, error) { + vals := map[string]FirewallPolicyNatRuleCollectionActionType{ + "dnat": FirewallPolicyNatRuleCollectionActionTypeDNAT, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyNatRuleCollectionActionType(input) + return &out, nil +} + +type FirewallPolicyRuleApplicationProtocolType string + +const ( + FirewallPolicyRuleApplicationProtocolTypeHTTP FirewallPolicyRuleApplicationProtocolType = "Http" + FirewallPolicyRuleApplicationProtocolTypeHTTPS FirewallPolicyRuleApplicationProtocolType = "Https" +) + +func PossibleValuesForFirewallPolicyRuleApplicationProtocolType() []string { + return []string{ + string(FirewallPolicyRuleApplicationProtocolTypeHTTP), + string(FirewallPolicyRuleApplicationProtocolTypeHTTPS), + } +} + +func (s *FirewallPolicyRuleApplicationProtocolType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyRuleApplicationProtocolType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyRuleApplicationProtocolType(input string) (*FirewallPolicyRuleApplicationProtocolType, error) { + vals := map[string]FirewallPolicyRuleApplicationProtocolType{ + "http": FirewallPolicyRuleApplicationProtocolTypeHTTP, + "https": FirewallPolicyRuleApplicationProtocolTypeHTTPS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyRuleApplicationProtocolType(input) + return &out, nil +} + +type FirewallPolicyRuleCollectionType string + +const ( + FirewallPolicyRuleCollectionTypeFirewallPolicyFilterRuleCollection FirewallPolicyRuleCollectionType = "FirewallPolicyFilterRuleCollection" + FirewallPolicyRuleCollectionTypeFirewallPolicyNatRuleCollection FirewallPolicyRuleCollectionType = "FirewallPolicyNatRuleCollection" +) + +func PossibleValuesForFirewallPolicyRuleCollectionType() []string { + return []string{ + string(FirewallPolicyRuleCollectionTypeFirewallPolicyFilterRuleCollection), + string(FirewallPolicyRuleCollectionTypeFirewallPolicyNatRuleCollection), + } +} + +func (s *FirewallPolicyRuleCollectionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyRuleCollectionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyRuleCollectionType(input string) (*FirewallPolicyRuleCollectionType, error) { + vals := map[string]FirewallPolicyRuleCollectionType{ + "firewallpolicyfilterrulecollection": FirewallPolicyRuleCollectionTypeFirewallPolicyFilterRuleCollection, + "firewallpolicynatrulecollection": FirewallPolicyRuleCollectionTypeFirewallPolicyNatRuleCollection, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyRuleCollectionType(input) + return &out, nil +} + +type FirewallPolicyRuleNetworkProtocol string + +const ( + FirewallPolicyRuleNetworkProtocolAny FirewallPolicyRuleNetworkProtocol = "Any" + FirewallPolicyRuleNetworkProtocolICMP FirewallPolicyRuleNetworkProtocol = "ICMP" + FirewallPolicyRuleNetworkProtocolTCP FirewallPolicyRuleNetworkProtocol = "TCP" + FirewallPolicyRuleNetworkProtocolUDP FirewallPolicyRuleNetworkProtocol = "UDP" +) + +func PossibleValuesForFirewallPolicyRuleNetworkProtocol() []string { + return []string{ + string(FirewallPolicyRuleNetworkProtocolAny), + string(FirewallPolicyRuleNetworkProtocolICMP), + string(FirewallPolicyRuleNetworkProtocolTCP), + string(FirewallPolicyRuleNetworkProtocolUDP), + } +} + +func (s *FirewallPolicyRuleNetworkProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyRuleNetworkProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyRuleNetworkProtocol(input string) (*FirewallPolicyRuleNetworkProtocol, error) { + vals := map[string]FirewallPolicyRuleNetworkProtocol{ + "any": FirewallPolicyRuleNetworkProtocolAny, + "icmp": FirewallPolicyRuleNetworkProtocolICMP, + "tcp": FirewallPolicyRuleNetworkProtocolTCP, + "udp": FirewallPolicyRuleNetworkProtocolUDP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyRuleNetworkProtocol(input) + return &out, nil +} + +type FirewallPolicyRuleType string + +const ( + FirewallPolicyRuleTypeApplicationRule FirewallPolicyRuleType = "ApplicationRule" + FirewallPolicyRuleTypeNatRule FirewallPolicyRuleType = "NatRule" + FirewallPolicyRuleTypeNetworkRule FirewallPolicyRuleType = "NetworkRule" +) + +func PossibleValuesForFirewallPolicyRuleType() []string { + return []string{ + string(FirewallPolicyRuleTypeApplicationRule), + string(FirewallPolicyRuleTypeNatRule), + string(FirewallPolicyRuleTypeNetworkRule), + } +} + +func (s *FirewallPolicyRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyRuleType(input string) (*FirewallPolicyRuleType, error) { + vals := map[string]FirewallPolicyRuleType{ + "applicationrule": FirewallPolicyRuleTypeApplicationRule, + "natrule": FirewallPolicyRuleTypeNatRule, + "networkrule": FirewallPolicyRuleTypeNetworkRule, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyRuleType(input) + return &out, nil +} + +type FirewallPolicySkuTier string + +const ( + FirewallPolicySkuTierBasic FirewallPolicySkuTier = "Basic" + FirewallPolicySkuTierPremium FirewallPolicySkuTier = "Premium" + FirewallPolicySkuTierStandard FirewallPolicySkuTier = "Standard" +) + +func PossibleValuesForFirewallPolicySkuTier() []string { + return []string{ + string(FirewallPolicySkuTierBasic), + string(FirewallPolicySkuTierPremium), + string(FirewallPolicySkuTierStandard), + } +} + +func (s *FirewallPolicySkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicySkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicySkuTier(input string) (*FirewallPolicySkuTier, error) { + vals := map[string]FirewallPolicySkuTier{ + "basic": FirewallPolicySkuTierBasic, + "premium": FirewallPolicySkuTierPremium, + "standard": FirewallPolicySkuTierStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicySkuTier(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/id_firewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/id_firewallpolicy.go new file mode 100644 index 000000000000..fdb530b04703 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/id_firewallpolicy.go @@ -0,0 +1,130 @@ +package firewallpolicies + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&FirewallPolicyId{}) +} + +var _ resourceids.ResourceId = &FirewallPolicyId{} + +// FirewallPolicyId is a struct representing the Resource ID for a Firewall Policy +type FirewallPolicyId struct { + SubscriptionId string + ResourceGroupName string + FirewallPolicyName string +} + +// NewFirewallPolicyID returns a new FirewallPolicyId struct +func NewFirewallPolicyID(subscriptionId string, resourceGroupName string, firewallPolicyName string) FirewallPolicyId { + return FirewallPolicyId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + FirewallPolicyName: firewallPolicyName, + } +} + +// ParseFirewallPolicyID parses 'input' into a FirewallPolicyId +func ParseFirewallPolicyID(input string) (*FirewallPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&FirewallPolicyId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FirewallPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseFirewallPolicyIDInsensitively parses 'input' case-insensitively into a FirewallPolicyId +// note: this method should only be used for API response data and not user input +func ParseFirewallPolicyIDInsensitively(input string) (*FirewallPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&FirewallPolicyId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FirewallPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *FirewallPolicyId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.FirewallPolicyName, ok = input.Parsed["firewallPolicyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "firewallPolicyName", input) + } + + return nil +} + +// ValidateFirewallPolicyID checks that 'input' can be parsed as a Firewall Policy ID +func ValidateFirewallPolicyID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseFirewallPolicyID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Firewall Policy ID +func (id FirewallPolicyId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/firewallPolicies/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FirewallPolicyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Firewall Policy ID +func (id FirewallPolicyId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticFirewallPolicies", "firewallPolicies", "firewallPolicies"), + resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyName"), + } +} + +// String returns a human-readable description of this Firewall Policy ID +func (id FirewallPolicyId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Firewall Policy Name: %q", id.FirewallPolicyName), + } + return fmt.Sprintf("Firewall Policy (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/id_rulecollectiongroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/id_rulecollectiongroup.go new file mode 100644 index 000000000000..66f9d049a7c6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/id_rulecollectiongroup.go @@ -0,0 +1,139 @@ +package firewallpolicies + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RuleCollectionGroupId{}) +} + +var _ resourceids.ResourceId = &RuleCollectionGroupId{} + +// RuleCollectionGroupId is a struct representing the Resource ID for a Rule Collection Group +type RuleCollectionGroupId struct { + SubscriptionId string + ResourceGroupName string + FirewallPolicyName string + RuleCollectionGroupName string +} + +// NewRuleCollectionGroupID returns a new RuleCollectionGroupId struct +func NewRuleCollectionGroupID(subscriptionId string, resourceGroupName string, firewallPolicyName string, ruleCollectionGroupName string) RuleCollectionGroupId { + return RuleCollectionGroupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + FirewallPolicyName: firewallPolicyName, + RuleCollectionGroupName: ruleCollectionGroupName, + } +} + +// ParseRuleCollectionGroupID parses 'input' into a RuleCollectionGroupId +func ParseRuleCollectionGroupID(input string) (*RuleCollectionGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionGroupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRuleCollectionGroupIDInsensitively parses 'input' case-insensitively into a RuleCollectionGroupId +// note: this method should only be used for API response data and not user input +func ParseRuleCollectionGroupIDInsensitively(input string) (*RuleCollectionGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionGroupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RuleCollectionGroupId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.FirewallPolicyName, ok = input.Parsed["firewallPolicyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "firewallPolicyName", input) + } + + if id.RuleCollectionGroupName, ok = input.Parsed["ruleCollectionGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionGroupName", input) + } + + return nil +} + +// ValidateRuleCollectionGroupID checks that 'input' can be parsed as a Rule Collection Group ID +func ValidateRuleCollectionGroupID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRuleCollectionGroupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Rule Collection Group ID +func (id RuleCollectionGroupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/firewallPolicies/%s/ruleCollectionGroups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FirewallPolicyName, id.RuleCollectionGroupName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Rule Collection Group ID +func (id RuleCollectionGroupId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticFirewallPolicies", "firewallPolicies", "firewallPolicies"), + resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyName"), + resourceids.StaticSegment("staticRuleCollectionGroups", "ruleCollectionGroups", "ruleCollectionGroups"), + resourceids.UserSpecifiedSegment("ruleCollectionGroupName", "ruleCollectionGroupName"), + } +} + +// String returns a human-readable description of this Rule Collection Group ID +func (id RuleCollectionGroupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Firewall Policy Name: %q", id.FirewallPolicyName), + fmt.Sprintf("Rule Collection Group Name: %q", id.RuleCollectionGroupName), + } + return fmt.Sprintf("Rule Collection Group (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_createorupdate.go new file mode 100644 index 000000000000..0492bbef61e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_createorupdate.go @@ -0,0 +1,75 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *FirewallPolicy +} + +// CreateOrUpdate ... +func (c FirewallPoliciesClient) CreateOrUpdate(ctx context.Context, id FirewallPolicyId, input FirewallPolicy) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c FirewallPoliciesClient) CreateOrUpdateThenPoll(ctx context.Context, id FirewallPolicyId, input FirewallPolicy) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_delete.go new file mode 100644 index 000000000000..432932fda66b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_delete.go @@ -0,0 +1,71 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c FirewallPoliciesClient) Delete(ctx context.Context, id FirewallPolicyId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c FirewallPoliciesClient) DeleteThenPoll(ctx context.Context, id FirewallPolicyId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydeploymentsdeploy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydeploymentsdeploy.go new file mode 100644 index 000000000000..2b0ff5b7afeb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydeploymentsdeploy.go @@ -0,0 +1,69 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyDeploymentsDeployOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// FirewallPolicyDeploymentsDeploy ... +func (c FirewallPoliciesClient) FirewallPolicyDeploymentsDeploy(ctx context.Context, id FirewallPolicyId) (result FirewallPolicyDeploymentsDeployOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/deploy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// FirewallPolicyDeploymentsDeployThenPoll performs FirewallPolicyDeploymentsDeploy then polls until it's completed +func (c FirewallPoliciesClient) FirewallPolicyDeploymentsDeployThenPoll(ctx context.Context, id FirewallPolicyId) error { + result, err := c.FirewallPolicyDeploymentsDeploy(ctx, id) + if err != nil { + return fmt.Errorf("performing FirewallPolicyDeploymentsDeploy: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after FirewallPolicyDeploymentsDeploy: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftscreateorupdate.go new file mode 100644 index 000000000000..a355d78a7670 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftscreateorupdate.go @@ -0,0 +1,59 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyDraftsCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FirewallPolicyDraft +} + +// FirewallPolicyDraftsCreateOrUpdate ... +func (c FirewallPoliciesClient) FirewallPolicyDraftsCreateOrUpdate(ctx context.Context, id FirewallPolicyId, input FirewallPolicyDraft) (result FirewallPolicyDraftsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/firewallPolicyDrafts/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model FirewallPolicyDraft + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftsdelete.go new file mode 100644 index 000000000000..a0fd3352ff22 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftsdelete.go @@ -0,0 +1,48 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyDraftsDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// FirewallPolicyDraftsDelete ... +func (c FirewallPoliciesClient) FirewallPolicyDraftsDelete(ctx context.Context, id FirewallPolicyId) (result FirewallPolicyDraftsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: fmt.Sprintf("%s/firewallPolicyDrafts/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftsget.go new file mode 100644 index 000000000000..804027dd9523 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftsget.go @@ -0,0 +1,54 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyDraftsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FirewallPolicyDraft +} + +// FirewallPolicyDraftsGet ... +func (c FirewallPoliciesClient) FirewallPolicyDraftsGet(ctx context.Context, id FirewallPolicyId) (result FirewallPolicyDraftsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/firewallPolicyDrafts/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model FirewallPolicyDraft + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesfiltervalueslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesfiltervalueslist.go new file mode 100644 index 000000000000..afb4f37a3fa1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesfiltervalueslist.go @@ -0,0 +1,58 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIdpsSignaturesFilterValuesListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SignatureOverridesFilterValuesResponse +} + +// FirewallPolicyIdpsSignaturesFilterValuesList ... +func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesFilterValuesList(ctx context.Context, id FirewallPolicyId, input SignatureOverridesFilterValuesQuery) (result FirewallPolicyIdpsSignaturesFilterValuesListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listIdpsFilterOptions", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SignatureOverridesFilterValuesResponse + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignatureslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignatureslist.go new file mode 100644 index 000000000000..657d39e5a745 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignatureslist.go @@ -0,0 +1,58 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIdpsSignaturesListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *QueryResults +} + +// FirewallPolicyIdpsSignaturesList ... +func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesList(ctx context.Context, id FirewallPolicyId, input IDPSQueryObject) (result FirewallPolicyIdpsSignaturesListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listIdpsSignatures", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model QueryResults + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesget.go new file mode 100644 index 000000000000..4ff22b6ea426 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesget.go @@ -0,0 +1,54 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIdpsSignaturesOverridesGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SignaturesOverrides +} + +// FirewallPolicyIdpsSignaturesOverridesGet ... +func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesGet(ctx context.Context, id FirewallPolicyId) (result FirewallPolicyIdpsSignaturesOverridesGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/signatureOverrides/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SignaturesOverrides + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverrideslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverrideslist.go new file mode 100644 index 000000000000..253dc4d80739 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverrideslist.go @@ -0,0 +1,54 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIdpsSignaturesOverridesListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SignaturesOverridesList +} + +// FirewallPolicyIdpsSignaturesOverridesList ... +func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesList(ctx context.Context, id FirewallPolicyId) (result FirewallPolicyIdpsSignaturesOverridesListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/signatureOverrides", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SignaturesOverridesList + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridespatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridespatch.go new file mode 100644 index 000000000000..ebb6a03296b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridespatch.go @@ -0,0 +1,58 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIdpsSignaturesOverridesPatchOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SignaturesOverrides +} + +// FirewallPolicyIdpsSignaturesOverridesPatch ... +func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesPatch(ctx context.Context, id FirewallPolicyId, input SignaturesOverrides) (result FirewallPolicyIdpsSignaturesOverridesPatchOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: fmt.Sprintf("%s/signatureOverrides/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SignaturesOverrides + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesput.go new file mode 100644 index 000000000000..51a0cf8dcc59 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesput.go @@ -0,0 +1,58 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIdpsSignaturesOverridesPutOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SignaturesOverrides +} + +// FirewallPolicyIdpsSignaturesOverridesPut ... +func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesPut(ctx context.Context, id FirewallPolicyId, input SignaturesOverrides) (result FirewallPolicyIdpsSignaturesOverridesPutOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/signatureOverrides/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SignaturesOverrides + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftscreateorupdate.go new file mode 100644 index 000000000000..168eab6a2f23 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftscreateorupdate.go @@ -0,0 +1,59 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FirewallPolicyRuleCollectionGroupDraft +} + +// FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdate ... +func (c FirewallPoliciesClient) FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdate(ctx context.Context, id RuleCollectionGroupId, input FirewallPolicyRuleCollectionGroupDraft) (result FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/ruleCollectionGroupDrafts/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model FirewallPolicyRuleCollectionGroupDraft + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsdelete.go new file mode 100644 index 000000000000..da02af84b53d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsdelete.go @@ -0,0 +1,48 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollectionGroupDraftsDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// FirewallPolicyRuleCollectionGroupDraftsDelete ... +func (c FirewallPoliciesClient) FirewallPolicyRuleCollectionGroupDraftsDelete(ctx context.Context, id RuleCollectionGroupId) (result FirewallPolicyRuleCollectionGroupDraftsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: fmt.Sprintf("%s/ruleCollectionGroupDrafts/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsget.go new file mode 100644 index 000000000000..8d2027a6a40d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsget.go @@ -0,0 +1,54 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollectionGroupDraftsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FirewallPolicyRuleCollectionGroupDraft +} + +// FirewallPolicyRuleCollectionGroupDraftsGet ... +func (c FirewallPoliciesClient) FirewallPolicyRuleCollectionGroupDraftsGet(ctx context.Context, id RuleCollectionGroupId) (result FirewallPolicyRuleCollectionGroupDraftsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/ruleCollectionGroupDrafts/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model FirewallPolicyRuleCollectionGroupDraft + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_get.go new file mode 100644 index 000000000000..c57af3124f02 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_get.go @@ -0,0 +1,83 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FirewallPolicy +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c FirewallPoliciesClient) Get(ctx context.Context, id FirewallPolicyId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model FirewallPolicy + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_list.go new file mode 100644 index 000000000000..84096e094ce9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_list.go @@ -0,0 +1,106 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]FirewallPolicy +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []FirewallPolicy +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c FirewallPoliciesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/firewallPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]FirewallPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c FirewallPoliciesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, FirewallPolicyOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c FirewallPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate FirewallPolicyOperationPredicate) (result ListCompleteResult, err error) { + items := make([]FirewallPolicy, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_listall.go new file mode 100644 index 000000000000..8b1106b1f8b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_listall.go @@ -0,0 +1,106 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]FirewallPolicy +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []FirewallPolicy +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c FirewallPoliciesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/firewallPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]FirewallPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c FirewallPoliciesClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, FirewallPolicyOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c FirewallPoliciesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate FirewallPolicyOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]FirewallPolicy, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_updatetags.go new file mode 100644 index 000000000000..66cfb5cb6d4d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_updatetags.go @@ -0,0 +1,57 @@ +package firewallpolicies + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FirewallPolicy +} + +// UpdateTags ... +func (c FirewallPoliciesClient) UpdateTags(ctx context.Context, id FirewallPolicyId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model FirewallPolicy + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_applicationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_applicationrule.go new file mode 100644 index 000000000000..151ed288baea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_applicationrule.go @@ -0,0 +1,63 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ FirewallPolicyRule = ApplicationRule{} + +type ApplicationRule struct { + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + FqdnTags *[]string `json:"fqdnTags,omitempty"` + HTTPHeadersToInsert *[]FirewallPolicyHTTPHeaderToInsert `json:"httpHeadersToInsert,omitempty"` + Protocols *[]FirewallPolicyRuleApplicationProtocol `json:"protocols,omitempty"` + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` + TargetFqdns *[]string `json:"targetFqdns,omitempty"` + TargetURLs *[]string `json:"targetUrls,omitempty"` + TerminateTLS *bool `json:"terminateTLS,omitempty"` + WebCategories *[]string `json:"webCategories,omitempty"` + + // Fields inherited from FirewallPolicyRule + + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s ApplicationRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return BaseFirewallPolicyRuleImpl{ + Description: s.Description, + Name: s.Name, + RuleType: s.RuleType, + } +} + +var _ json.Marshaler = ApplicationRule{} + +func (s ApplicationRule) MarshalJSON() ([]byte, error) { + type wrapper ApplicationRule + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling ApplicationRule: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling ApplicationRule: %+v", err) + } + + decoded["ruleType"] = "ApplicationRule" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling ApplicationRule: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_dnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_dnssettings.go new file mode 100644 index 000000000000..6983f66f9dd9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_dnssettings.go @@ -0,0 +1,10 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DnsSettings struct { + EnableProxy *bool `json:"enableProxy,omitempty"` + RequireProxyForNetworkRules *bool `json:"requireProxyForNetworkRules,omitempty"` + Servers *[]string `json:"servers,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_explicitproxy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_explicitproxy.go new file mode 100644 index 000000000000..d8af7221ddfd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_explicitproxy.go @@ -0,0 +1,13 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExplicitProxy struct { + EnableExplicitProxy *bool `json:"enableExplicitProxy,omitempty"` + EnablePacFile *bool `json:"enablePacFile,omitempty"` + HTTPPort *int64 `json:"httpPort,omitempty"` + HTTPSPort *int64 `json:"httpsPort,omitempty"` + PacFile *string `json:"pacFile,omitempty"` + PacFilePort *int64 `json:"pacFilePort,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_filteritems.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_filteritems.go new file mode 100644 index 000000000000..943657d23f09 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_filteritems.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FilterItems struct { + Field *string `json:"field,omitempty"` + Values *[]string `json:"values,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicy.go new file mode 100644 index 000000000000..fb85165c9d9f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicy.go @@ -0,0 +1,19 @@ +package firewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FirewallPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicycertificateauthority.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicycertificateauthority.go new file mode 100644 index 000000000000..b1d1e5fcdd88 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicycertificateauthority.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyCertificateAuthority struct { + KeyVaultSecretId *string `json:"keyVaultSecretId,omitempty"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicydraft.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicydraft.go new file mode 100644 index 000000000000..1f156e948dd2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicydraft.go @@ -0,0 +1,13 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyDraft struct { + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FirewallPolicyDraftProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicydraftproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicydraftproperties.go new file mode 100644 index 000000000000..7303ad731f25 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicydraftproperties.go @@ -0,0 +1,16 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyDraftProperties struct { + BasePolicy *SubResource `json:"basePolicy,omitempty"` + DnsSettings *DnsSettings `json:"dnsSettings,omitempty"` + ExplicitProxy *ExplicitProxy `json:"explicitProxy,omitempty"` + Insights *FirewallPolicyInsights `json:"insights,omitempty"` + IntrusionDetection *FirewallPolicyIntrusionDetection `json:"intrusionDetection,omitempty"` + Snat *FirewallPolicySNAT `json:"snat,omitempty"` + Sql *FirewallPolicySQL `json:"sql,omitempty"` + ThreatIntelMode *AzureFirewallThreatIntelMode `json:"threatIntelMode,omitempty"` + ThreatIntelWhitelist *FirewallPolicyThreatIntelWhitelist `json:"threatIntelWhitelist,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyfilterrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyfilterrulecollection.go new file mode 100644 index 000000000000..1253bbae7421 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyfilterrulecollection.go @@ -0,0 +1,98 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ FirewallPolicyRuleCollection = FirewallPolicyFilterRuleCollection{} + +type FirewallPolicyFilterRuleCollection struct { + Action *FirewallPolicyFilterRuleCollectionAction `json:"action,omitempty"` + Rules *[]FirewallPolicyRule `json:"rules,omitempty"` + + // Fields inherited from FirewallPolicyRuleCollection + + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` +} + +func (s FirewallPolicyFilterRuleCollection) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return BaseFirewallPolicyRuleCollectionImpl{ + Name: s.Name, + Priority: s.Priority, + RuleCollectionType: s.RuleCollectionType, + } +} + +var _ json.Marshaler = FirewallPolicyFilterRuleCollection{} + +func (s FirewallPolicyFilterRuleCollection) MarshalJSON() ([]byte, error) { + type wrapper FirewallPolicyFilterRuleCollection + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling FirewallPolicyFilterRuleCollection: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling FirewallPolicyFilterRuleCollection: %+v", err) + } + + decoded["ruleCollectionType"] = "FirewallPolicyFilterRuleCollection" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling FirewallPolicyFilterRuleCollection: %+v", err) + } + + return encoded, nil +} + +var _ json.Unmarshaler = &FirewallPolicyFilterRuleCollection{} + +func (s *FirewallPolicyFilterRuleCollection) UnmarshalJSON(bytes []byte) error { + var decoded struct { + Action *FirewallPolicyFilterRuleCollectionAction `json:"action,omitempty"` + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.Action = decoded.Action + s.Name = decoded.Name + s.Priority = decoded.Priority + s.RuleCollectionType = decoded.RuleCollectionType + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling FirewallPolicyFilterRuleCollection into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["rules"]; ok { + var listTemp []json.RawMessage + if err := json.Unmarshal(v, &listTemp); err != nil { + return fmt.Errorf("unmarshaling Rules into list []json.RawMessage: %+v", err) + } + + output := make([]FirewallPolicyRule, 0) + for i, val := range listTemp { + impl, err := UnmarshalFirewallPolicyRuleImplementation(val) + if err != nil { + return fmt.Errorf("unmarshaling index %d field 'Rules' for 'FirewallPolicyFilterRuleCollection': %+v", i, err) + } + output = append(output, impl) + } + s.Rules = &output + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyfilterrulecollectionaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyfilterrulecollectionaction.go new file mode 100644 index 000000000000..fdd82344dc17 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyfilterrulecollectionaction.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyFilterRuleCollectionAction struct { + Type *FirewallPolicyFilterRuleCollectionActionType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyhttpheadertoinsert.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyhttpheadertoinsert.go new file mode 100644 index 000000000000..27586a9bc9d8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyhttpheadertoinsert.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyHTTPHeaderToInsert struct { + HeaderName *string `json:"headerName,omitempty"` + HeaderValue *string `json:"headerValue,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyinsights.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyinsights.go new file mode 100644 index 000000000000..5af7b2e446d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyinsights.go @@ -0,0 +1,10 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyInsights struct { + IsEnabled *bool `json:"isEnabled,omitempty"` + LogAnalyticsResources *FirewallPolicyLogAnalyticsResources `json:"logAnalyticsResources,omitempty"` + RetentionDays *int64 `json:"retentionDays,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetection.go new file mode 100644 index 000000000000..f51c93257c54 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetection.go @@ -0,0 +1,10 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIntrusionDetection struct { + Configuration *FirewallPolicyIntrusionDetectionConfiguration `json:"configuration,omitempty"` + Mode *FirewallPolicyIntrusionDetectionStateType `json:"mode,omitempty"` + Profile *FirewallPolicyIntrusionDetectionProfileType `json:"profile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionbypasstrafficspecifications.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionbypasstrafficspecifications.go new file mode 100644 index 000000000000..088a6c5515fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionbypasstrafficspecifications.go @@ -0,0 +1,15 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIntrusionDetectionBypassTrafficSpecifications struct { + Description *string `json:"description,omitempty"` + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + DestinationIPGroups *[]string `json:"destinationIpGroups,omitempty"` + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + Name *string `json:"name,omitempty"` + Protocol *FirewallPolicyIntrusionDetectionProtocol `json:"protocol,omitempty"` + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionconfiguration.go new file mode 100644 index 000000000000..dce919867c04 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionconfiguration.go @@ -0,0 +1,10 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIntrusionDetectionConfiguration struct { + BypassTrafficSettings *[]FirewallPolicyIntrusionDetectionBypassTrafficSpecifications `json:"bypassTrafficSettings,omitempty"` + PrivateRanges *[]string `json:"privateRanges,omitempty"` + SignatureOverrides *[]FirewallPolicyIntrusionDetectionSignatureSpecification `json:"signatureOverrides,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionsignaturespecification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionsignaturespecification.go new file mode 100644 index 000000000000..2bae7fe0f047 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionsignaturespecification.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIntrusionDetectionSignatureSpecification struct { + Id *string `json:"id,omitempty"` + Mode *FirewallPolicyIntrusionDetectionStateType `json:"mode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyloganalyticsresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyloganalyticsresources.go new file mode 100644 index 000000000000..4f1280d942bc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyloganalyticsresources.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyLogAnalyticsResources struct { + DefaultWorkspaceId *SubResource `json:"defaultWorkspaceId,omitempty"` + Workspaces *[]FirewallPolicyLogAnalyticsWorkspace `json:"workspaces,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyloganalyticsworkspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyloganalyticsworkspace.go new file mode 100644 index 000000000000..4cc72aa7cbbb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyloganalyticsworkspace.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyLogAnalyticsWorkspace struct { + Region *string `json:"region,omitempty"` + WorkspaceId *SubResource `json:"workspaceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicynatrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicynatrulecollection.go new file mode 100644 index 000000000000..8bb8e5f0f6a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicynatrulecollection.go @@ -0,0 +1,98 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ FirewallPolicyRuleCollection = FirewallPolicyNatRuleCollection{} + +type FirewallPolicyNatRuleCollection struct { + Action *FirewallPolicyNatRuleCollectionAction `json:"action,omitempty"` + Rules *[]FirewallPolicyRule `json:"rules,omitempty"` + + // Fields inherited from FirewallPolicyRuleCollection + + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` +} + +func (s FirewallPolicyNatRuleCollection) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return BaseFirewallPolicyRuleCollectionImpl{ + Name: s.Name, + Priority: s.Priority, + RuleCollectionType: s.RuleCollectionType, + } +} + +var _ json.Marshaler = FirewallPolicyNatRuleCollection{} + +func (s FirewallPolicyNatRuleCollection) MarshalJSON() ([]byte, error) { + type wrapper FirewallPolicyNatRuleCollection + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling FirewallPolicyNatRuleCollection: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling FirewallPolicyNatRuleCollection: %+v", err) + } + + decoded["ruleCollectionType"] = "FirewallPolicyNatRuleCollection" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling FirewallPolicyNatRuleCollection: %+v", err) + } + + return encoded, nil +} + +var _ json.Unmarshaler = &FirewallPolicyNatRuleCollection{} + +func (s *FirewallPolicyNatRuleCollection) UnmarshalJSON(bytes []byte) error { + var decoded struct { + Action *FirewallPolicyNatRuleCollectionAction `json:"action,omitempty"` + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.Action = decoded.Action + s.Name = decoded.Name + s.Priority = decoded.Priority + s.RuleCollectionType = decoded.RuleCollectionType + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling FirewallPolicyNatRuleCollection into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["rules"]; ok { + var listTemp []json.RawMessage + if err := json.Unmarshal(v, &listTemp); err != nil { + return fmt.Errorf("unmarshaling Rules into list []json.RawMessage: %+v", err) + } + + output := make([]FirewallPolicyRule, 0) + for i, val := range listTemp { + impl, err := UnmarshalFirewallPolicyRuleImplementation(val) + if err != nil { + return fmt.Errorf("unmarshaling index %d field 'Rules' for 'FirewallPolicyNatRuleCollection': %+v", i, err) + } + output = append(output, impl) + } + s.Rules = &output + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicynatrulecollectionaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicynatrulecollectionaction.go new file mode 100644 index 000000000000..4b895cf6198a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicynatrulecollectionaction.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyNatRuleCollectionAction struct { + Type *FirewallPolicyNatRuleCollectionActionType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicypropertiesformat.go new file mode 100644 index 000000000000..b439737323d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicypropertiesformat.go @@ -0,0 +1,23 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyPropertiesFormat struct { + BasePolicy *SubResource `json:"basePolicy,omitempty"` + ChildPolicies *[]SubResource `json:"childPolicies,omitempty"` + DnsSettings *DnsSettings `json:"dnsSettings,omitempty"` + ExplicitProxy *ExplicitProxy `json:"explicitProxy,omitempty"` + Firewalls *[]SubResource `json:"firewalls,omitempty"` + Insights *FirewallPolicyInsights `json:"insights,omitempty"` + IntrusionDetection *FirewallPolicyIntrusionDetection `json:"intrusionDetection,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RuleCollectionGroups *[]SubResource `json:"ruleCollectionGroups,omitempty"` + Size *string `json:"size,omitempty"` + Sku *FirewallPolicySku `json:"sku,omitempty"` + Snat *FirewallPolicySNAT `json:"snat,omitempty"` + Sql *FirewallPolicySQL `json:"sql,omitempty"` + ThreatIntelMode *AzureFirewallThreatIntelMode `json:"threatIntelMode,omitempty"` + ThreatIntelWhitelist *FirewallPolicyThreatIntelWhitelist `json:"threatIntelWhitelist,omitempty"` + TransportSecurity *FirewallPolicyTransportSecurity `json:"transportSecurity,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrule.go new file mode 100644 index 000000000000..08c058378ae5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrule.go @@ -0,0 +1,93 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRule interface { + FirewallPolicyRule() BaseFirewallPolicyRuleImpl +} + +var _ FirewallPolicyRule = BaseFirewallPolicyRuleImpl{} + +type BaseFirewallPolicyRuleImpl struct { + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s BaseFirewallPolicyRuleImpl) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return s +} + +var _ FirewallPolicyRule = RawFirewallPolicyRuleImpl{} + +// RawFirewallPolicyRuleImpl is returned when the Discriminated Value doesn't match any of the defined types +// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) +// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). +type RawFirewallPolicyRuleImpl struct { + firewallPolicyRule BaseFirewallPolicyRuleImpl + Type string + Values map[string]interface{} +} + +func (s RawFirewallPolicyRuleImpl) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return s.firewallPolicyRule +} + +func UnmarshalFirewallPolicyRuleImplementation(input []byte) (FirewallPolicyRule, error) { + if input == nil { + return nil, nil + } + + var temp map[string]interface{} + if err := json.Unmarshal(input, &temp); err != nil { + return nil, fmt.Errorf("unmarshaling FirewallPolicyRule into map[string]interface: %+v", err) + } + + var value string + if v, ok := temp["ruleType"]; ok { + value = fmt.Sprintf("%v", v) + } + + if strings.EqualFold(value, "ApplicationRule") { + var out ApplicationRule + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into ApplicationRule: %+v", err) + } + return out, nil + } + + if strings.EqualFold(value, "NatRule") { + var out NatRule + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into NatRule: %+v", err) + } + return out, nil + } + + if strings.EqualFold(value, "NetworkRule") { + var out NetworkRule + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into NetworkRule: %+v", err) + } + return out, nil + } + + var parent BaseFirewallPolicyRuleImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFirewallPolicyRuleImpl: %+v", err) + } + + return RawFirewallPolicyRuleImpl{ + firewallPolicyRule: parent, + Type: value, + Values: temp, + }, nil + +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyruleapplicationprotocol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyruleapplicationprotocol.go new file mode 100644 index 000000000000..4c9fdab828c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyruleapplicationprotocol.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleApplicationProtocol struct { + Port *int64 `json:"port,omitempty"` + ProtocolType *FirewallPolicyRuleApplicationProtocolType `json:"protocolType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollection.go new file mode 100644 index 000000000000..8e3be4c748e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollection.go @@ -0,0 +1,85 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollection interface { + FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl +} + +var _ FirewallPolicyRuleCollection = BaseFirewallPolicyRuleCollectionImpl{} + +type BaseFirewallPolicyRuleCollectionImpl struct { + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` +} + +func (s BaseFirewallPolicyRuleCollectionImpl) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return s +} + +var _ FirewallPolicyRuleCollection = RawFirewallPolicyRuleCollectionImpl{} + +// RawFirewallPolicyRuleCollectionImpl is returned when the Discriminated Value doesn't match any of the defined types +// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) +// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). +type RawFirewallPolicyRuleCollectionImpl struct { + firewallPolicyRuleCollection BaseFirewallPolicyRuleCollectionImpl + Type string + Values map[string]interface{} +} + +func (s RawFirewallPolicyRuleCollectionImpl) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return s.firewallPolicyRuleCollection +} + +func UnmarshalFirewallPolicyRuleCollectionImplementation(input []byte) (FirewallPolicyRuleCollection, error) { + if input == nil { + return nil, nil + } + + var temp map[string]interface{} + if err := json.Unmarshal(input, &temp); err != nil { + return nil, fmt.Errorf("unmarshaling FirewallPolicyRuleCollection into map[string]interface: %+v", err) + } + + var value string + if v, ok := temp["ruleCollectionType"]; ok { + value = fmt.Sprintf("%v", v) + } + + if strings.EqualFold(value, "FirewallPolicyFilterRuleCollection") { + var out FirewallPolicyFilterRuleCollection + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into FirewallPolicyFilterRuleCollection: %+v", err) + } + return out, nil + } + + if strings.EqualFold(value, "FirewallPolicyNatRuleCollection") { + var out FirewallPolicyNatRuleCollection + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into FirewallPolicyNatRuleCollection: %+v", err) + } + return out, nil + } + + var parent BaseFirewallPolicyRuleCollectionImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFirewallPolicyRuleCollectionImpl: %+v", err) + } + + return RawFirewallPolicyRuleCollectionImpl{ + firewallPolicyRuleCollection: parent, + Type: value, + Values: temp, + }, nil + +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraft.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraft.go new file mode 100644 index 000000000000..638137d0747c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraft.go @@ -0,0 +1,11 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollectionGroupDraft struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FirewallPolicyRuleCollectionGroupDraftProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraftproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraftproperties.go new file mode 100644 index 000000000000..a25c504563ed --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraftproperties.go @@ -0,0 +1,54 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollectionGroupDraftProperties struct { + Priority *int64 `json:"priority,omitempty"` + RuleCollections *[]FirewallPolicyRuleCollection `json:"ruleCollections,omitempty"` + Size *string `json:"size,omitempty"` +} + +var _ json.Unmarshaler = &FirewallPolicyRuleCollectionGroupDraftProperties{} + +func (s *FirewallPolicyRuleCollectionGroupDraftProperties) UnmarshalJSON(bytes []byte) error { + var decoded struct { + Priority *int64 `json:"priority,omitempty"` + Size *string `json:"size,omitempty"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.Priority = decoded.Priority + s.Size = decoded.Size + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling FirewallPolicyRuleCollectionGroupDraftProperties into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["ruleCollections"]; ok { + var listTemp []json.RawMessage + if err := json.Unmarshal(v, &listTemp); err != nil { + return fmt.Errorf("unmarshaling RuleCollections into list []json.RawMessage: %+v", err) + } + + output := make([]FirewallPolicyRuleCollection, 0) + for i, val := range listTemp { + impl, err := UnmarshalFirewallPolicyRuleCollectionImplementation(val) + if err != nil { + return fmt.Errorf("unmarshaling index %d field 'RuleCollections' for 'FirewallPolicyRuleCollectionGroupDraftProperties': %+v", i, err) + } + output = append(output, impl) + } + s.RuleCollections = &output + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysku.go new file mode 100644 index 000000000000..6c0cef082607 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysku.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicySku struct { + Tier *FirewallPolicySkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysnat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysnat.go new file mode 100644 index 000000000000..33dcf12744e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysnat.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicySNAT struct { + AutoLearnPrivateRanges *AutoLearnPrivateRangesMode `json:"autoLearnPrivateRanges,omitempty"` + PrivateRanges *[]string `json:"privateRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysql.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysql.go new file mode 100644 index 000000000000..32e50565577b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysql.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicySQL struct { + AllowSqlRedirect *bool `json:"allowSqlRedirect,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicythreatintelwhitelist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicythreatintelwhitelist.go new file mode 100644 index 000000000000..376fba1c2689 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicythreatintelwhitelist.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyThreatIntelWhitelist struct { + Fqdns *[]string `json:"fqdns,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicytransportsecurity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicytransportsecurity.go new file mode 100644 index 000000000000..9fdbf9b48772 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicytransportsecurity.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyTransportSecurity struct { + CertificateAuthority *FirewallPolicyCertificateAuthority `json:"certificateAuthority,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_idpsqueryobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_idpsqueryobject.go new file mode 100644 index 000000000000..3a1aca509b6c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_idpsqueryobject.go @@ -0,0 +1,12 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IDPSQueryObject struct { + Filters *[]FilterItems `json:"filters,omitempty"` + OrderBy *OrderBy `json:"orderBy,omitempty"` + ResultsPerPage *int64 `json:"resultsPerPage,omitempty"` + Search *string `json:"search,omitempty"` + Skip *int64 `json:"skip,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_natrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_natrule.go new file mode 100644 index 000000000000..29ada8c31d1f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_natrule.go @@ -0,0 +1,61 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ FirewallPolicyRule = NatRule{} + +type NatRule struct { + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + IPProtocols *[]FirewallPolicyRuleNetworkProtocol `json:"ipProtocols,omitempty"` + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` + TranslatedAddress *string `json:"translatedAddress,omitempty"` + TranslatedFqdn *string `json:"translatedFqdn,omitempty"` + TranslatedPort *string `json:"translatedPort,omitempty"` + + // Fields inherited from FirewallPolicyRule + + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s NatRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return BaseFirewallPolicyRuleImpl{ + Description: s.Description, + Name: s.Name, + RuleType: s.RuleType, + } +} + +var _ json.Marshaler = NatRule{} + +func (s NatRule) MarshalJSON() ([]byte, error) { + type wrapper NatRule + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling NatRule: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling NatRule: %+v", err) + } + + decoded["ruleType"] = "NatRule" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling NatRule: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_networkrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_networkrule.go new file mode 100644 index 000000000000..aa890c1a8bb9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_networkrule.go @@ -0,0 +1,60 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ FirewallPolicyRule = NetworkRule{} + +type NetworkRule struct { + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + DestinationFqdns *[]string `json:"destinationFqdns,omitempty"` + DestinationIPGroups *[]string `json:"destinationIpGroups,omitempty"` + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + IPProtocols *[]FirewallPolicyRuleNetworkProtocol `json:"ipProtocols,omitempty"` + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` + + // Fields inherited from FirewallPolicyRule + + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s NetworkRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return BaseFirewallPolicyRuleImpl{ + Description: s.Description, + Name: s.Name, + RuleType: s.RuleType, + } +} + +var _ json.Marshaler = NetworkRule{} + +func (s NetworkRule) MarshalJSON() ([]byte, error) { + type wrapper NetworkRule + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling NetworkRule: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling NetworkRule: %+v", err) + } + + decoded["ruleType"] = "NetworkRule" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling NetworkRule: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_orderby.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_orderby.go new file mode 100644 index 000000000000..db1d05e44782 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_orderby.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OrderBy struct { + Field *string `json:"field,omitempty"` + Order *FirewallPolicyIDPSQuerySortOrder `json:"order,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_queryresults.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_queryresults.go new file mode 100644 index 000000000000..4c0591a2f83c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_queryresults.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type QueryResults struct { + MatchingRecordsCount *int64 `json:"matchingRecordsCount,omitempty"` + Signatures *[]SingleQueryResult `json:"signatures,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signatureoverridesfiltervaluesquery.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signatureoverridesfiltervaluesquery.go new file mode 100644 index 000000000000..718d141e3c02 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signatureoverridesfiltervaluesquery.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SignatureOverridesFilterValuesQuery struct { + FilterName *string `json:"filterName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signatureoverridesfiltervaluesresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signatureoverridesfiltervaluesresponse.go new file mode 100644 index 000000000000..4b135d882ba2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signatureoverridesfiltervaluesresponse.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SignatureOverridesFilterValuesResponse struct { + FilterValues *[]string `json:"filterValues,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverrides.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverrides.go new file mode 100644 index 000000000000..2f1b84510c9d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverrides.go @@ -0,0 +1,11 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SignaturesOverrides struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SignaturesOverridesProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverrideslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverrideslist.go new file mode 100644 index 000000000000..d403a4eb5902 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverrideslist.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SignaturesOverridesList struct { + Value *[]SignaturesOverrides `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverridesproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverridesproperties.go new file mode 100644 index 000000000000..a93d8699c02a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverridesproperties.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SignaturesOverridesProperties struct { + Signatures *map[string]string `json:"signatures,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_singlequeryresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_singlequeryresult.go new file mode 100644 index 000000000000..cbf78585e564 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_singlequeryresult.go @@ -0,0 +1,18 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SingleQueryResult struct { + Description *string `json:"description,omitempty"` + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + Direction *FirewallPolicyIDPSSignatureDirection `json:"direction,omitempty"` + Group *string `json:"group,omitempty"` + InheritedFromParentPolicy *bool `json:"inheritedFromParentPolicy,omitempty"` + LastUpdated *string `json:"lastUpdated,omitempty"` + Mode *FirewallPolicyIDPSSignatureMode `json:"mode,omitempty"` + Protocol *string `json:"protocol,omitempty"` + Severity *FirewallPolicyIDPSSignatureSeverity `json:"severity,omitempty"` + SignatureId *int64 `json:"signatureId,omitempty"` + SourcePorts *[]string `json:"sourcePorts,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_subresource.go new file mode 100644 index 000000000000..abee9f81d035 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_subresource.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_tagsobject.go new file mode 100644 index 000000000000..22cc23110bee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_tagsobject.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/predicates.go new file mode 100644 index 000000000000..2640042ba7a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/predicates.go @@ -0,0 +1,37 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p FirewallPolicyOperationPredicate) Matches(input FirewallPolicy) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/version.go new file mode 100644 index 000000000000..a981fa9889ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/version.go @@ -0,0 +1,10 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/firewallpolicies/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/README.md new file mode 100644 index 000000000000..bdfaa7e0fef0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups` Documentation + +The `firewallpolicyrulecollectiongroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups" +``` + + +### Client Initialization + +```go +client := firewallpolicyrulecollectiongroups.NewFirewallPolicyRuleCollectionGroupsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `FirewallPolicyRuleCollectionGroupsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") + +payload := firewallpolicyrulecollectiongroups.FirewallPolicyRuleCollectionGroup{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `FirewallPolicyRuleCollectionGroupsClient.Delete` + +```go +ctx := context.TODO() +id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `FirewallPolicyRuleCollectionGroupsClient.Get` + +```go +ctx := context.TODO() +id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPolicyRuleCollectionGroupsClient.List` + +```go +ctx := context.TODO() +id := firewallpolicyrulecollectiongroups.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/client.go new file mode 100644 index 000000000000..2c48ff99f6d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/client.go @@ -0,0 +1,26 @@ +package firewallpolicyrulecollectiongroups + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollectionGroupsClient struct { + Client *resourcemanager.Client +} + +func NewFirewallPolicyRuleCollectionGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallPolicyRuleCollectionGroupsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "firewallpolicyrulecollectiongroups", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating FirewallPolicyRuleCollectionGroupsClient: %+v", err) + } + + return &FirewallPolicyRuleCollectionGroupsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/constants.go new file mode 100644 index 000000000000..73fd6902a8b9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/constants.go @@ -0,0 +1,309 @@ +package firewallpolicyrulecollectiongroups + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyFilterRuleCollectionActionType string + +const ( + FirewallPolicyFilterRuleCollectionActionTypeAllow FirewallPolicyFilterRuleCollectionActionType = "Allow" + FirewallPolicyFilterRuleCollectionActionTypeDeny FirewallPolicyFilterRuleCollectionActionType = "Deny" +) + +func PossibleValuesForFirewallPolicyFilterRuleCollectionActionType() []string { + return []string{ + string(FirewallPolicyFilterRuleCollectionActionTypeAllow), + string(FirewallPolicyFilterRuleCollectionActionTypeDeny), + } +} + +func (s *FirewallPolicyFilterRuleCollectionActionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyFilterRuleCollectionActionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyFilterRuleCollectionActionType(input string) (*FirewallPolicyFilterRuleCollectionActionType, error) { + vals := map[string]FirewallPolicyFilterRuleCollectionActionType{ + "allow": FirewallPolicyFilterRuleCollectionActionTypeAllow, + "deny": FirewallPolicyFilterRuleCollectionActionTypeDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyFilterRuleCollectionActionType(input) + return &out, nil +} + +type FirewallPolicyNatRuleCollectionActionType string + +const ( + FirewallPolicyNatRuleCollectionActionTypeDNAT FirewallPolicyNatRuleCollectionActionType = "DNAT" +) + +func PossibleValuesForFirewallPolicyNatRuleCollectionActionType() []string { + return []string{ + string(FirewallPolicyNatRuleCollectionActionTypeDNAT), + } +} + +func (s *FirewallPolicyNatRuleCollectionActionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyNatRuleCollectionActionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyNatRuleCollectionActionType(input string) (*FirewallPolicyNatRuleCollectionActionType, error) { + vals := map[string]FirewallPolicyNatRuleCollectionActionType{ + "dnat": FirewallPolicyNatRuleCollectionActionTypeDNAT, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyNatRuleCollectionActionType(input) + return &out, nil +} + +type FirewallPolicyRuleApplicationProtocolType string + +const ( + FirewallPolicyRuleApplicationProtocolTypeHTTP FirewallPolicyRuleApplicationProtocolType = "Http" + FirewallPolicyRuleApplicationProtocolTypeHTTPS FirewallPolicyRuleApplicationProtocolType = "Https" +) + +func PossibleValuesForFirewallPolicyRuleApplicationProtocolType() []string { + return []string{ + string(FirewallPolicyRuleApplicationProtocolTypeHTTP), + string(FirewallPolicyRuleApplicationProtocolTypeHTTPS), + } +} + +func (s *FirewallPolicyRuleApplicationProtocolType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyRuleApplicationProtocolType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyRuleApplicationProtocolType(input string) (*FirewallPolicyRuleApplicationProtocolType, error) { + vals := map[string]FirewallPolicyRuleApplicationProtocolType{ + "http": FirewallPolicyRuleApplicationProtocolTypeHTTP, + "https": FirewallPolicyRuleApplicationProtocolTypeHTTPS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyRuleApplicationProtocolType(input) + return &out, nil +} + +type FirewallPolicyRuleCollectionType string + +const ( + FirewallPolicyRuleCollectionTypeFirewallPolicyFilterRuleCollection FirewallPolicyRuleCollectionType = "FirewallPolicyFilterRuleCollection" + FirewallPolicyRuleCollectionTypeFirewallPolicyNatRuleCollection FirewallPolicyRuleCollectionType = "FirewallPolicyNatRuleCollection" +) + +func PossibleValuesForFirewallPolicyRuleCollectionType() []string { + return []string{ + string(FirewallPolicyRuleCollectionTypeFirewallPolicyFilterRuleCollection), + string(FirewallPolicyRuleCollectionTypeFirewallPolicyNatRuleCollection), + } +} + +func (s *FirewallPolicyRuleCollectionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyRuleCollectionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyRuleCollectionType(input string) (*FirewallPolicyRuleCollectionType, error) { + vals := map[string]FirewallPolicyRuleCollectionType{ + "firewallpolicyfilterrulecollection": FirewallPolicyRuleCollectionTypeFirewallPolicyFilterRuleCollection, + "firewallpolicynatrulecollection": FirewallPolicyRuleCollectionTypeFirewallPolicyNatRuleCollection, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyRuleCollectionType(input) + return &out, nil +} + +type FirewallPolicyRuleNetworkProtocol string + +const ( + FirewallPolicyRuleNetworkProtocolAny FirewallPolicyRuleNetworkProtocol = "Any" + FirewallPolicyRuleNetworkProtocolICMP FirewallPolicyRuleNetworkProtocol = "ICMP" + FirewallPolicyRuleNetworkProtocolTCP FirewallPolicyRuleNetworkProtocol = "TCP" + FirewallPolicyRuleNetworkProtocolUDP FirewallPolicyRuleNetworkProtocol = "UDP" +) + +func PossibleValuesForFirewallPolicyRuleNetworkProtocol() []string { + return []string{ + string(FirewallPolicyRuleNetworkProtocolAny), + string(FirewallPolicyRuleNetworkProtocolICMP), + string(FirewallPolicyRuleNetworkProtocolTCP), + string(FirewallPolicyRuleNetworkProtocolUDP), + } +} + +func (s *FirewallPolicyRuleNetworkProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyRuleNetworkProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyRuleNetworkProtocol(input string) (*FirewallPolicyRuleNetworkProtocol, error) { + vals := map[string]FirewallPolicyRuleNetworkProtocol{ + "any": FirewallPolicyRuleNetworkProtocolAny, + "icmp": FirewallPolicyRuleNetworkProtocolICMP, + "tcp": FirewallPolicyRuleNetworkProtocolTCP, + "udp": FirewallPolicyRuleNetworkProtocolUDP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyRuleNetworkProtocol(input) + return &out, nil +} + +type FirewallPolicyRuleType string + +const ( + FirewallPolicyRuleTypeApplicationRule FirewallPolicyRuleType = "ApplicationRule" + FirewallPolicyRuleTypeNatRule FirewallPolicyRuleType = "NatRule" + FirewallPolicyRuleTypeNetworkRule FirewallPolicyRuleType = "NetworkRule" +) + +func PossibleValuesForFirewallPolicyRuleType() []string { + return []string{ + string(FirewallPolicyRuleTypeApplicationRule), + string(FirewallPolicyRuleTypeNatRule), + string(FirewallPolicyRuleTypeNetworkRule), + } +} + +func (s *FirewallPolicyRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyRuleType(input string) (*FirewallPolicyRuleType, error) { + vals := map[string]FirewallPolicyRuleType{ + "applicationrule": FirewallPolicyRuleTypeApplicationRule, + "natrule": FirewallPolicyRuleTypeNatRule, + "networkrule": FirewallPolicyRuleTypeNetworkRule, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyRuleType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/id_firewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/id_firewallpolicy.go new file mode 100644 index 000000000000..fbd53108c846 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/id_firewallpolicy.go @@ -0,0 +1,130 @@ +package firewallpolicyrulecollectiongroups + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&FirewallPolicyId{}) +} + +var _ resourceids.ResourceId = &FirewallPolicyId{} + +// FirewallPolicyId is a struct representing the Resource ID for a Firewall Policy +type FirewallPolicyId struct { + SubscriptionId string + ResourceGroupName string + FirewallPolicyName string +} + +// NewFirewallPolicyID returns a new FirewallPolicyId struct +func NewFirewallPolicyID(subscriptionId string, resourceGroupName string, firewallPolicyName string) FirewallPolicyId { + return FirewallPolicyId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + FirewallPolicyName: firewallPolicyName, + } +} + +// ParseFirewallPolicyID parses 'input' into a FirewallPolicyId +func ParseFirewallPolicyID(input string) (*FirewallPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&FirewallPolicyId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FirewallPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseFirewallPolicyIDInsensitively parses 'input' case-insensitively into a FirewallPolicyId +// note: this method should only be used for API response data and not user input +func ParseFirewallPolicyIDInsensitively(input string) (*FirewallPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&FirewallPolicyId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FirewallPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *FirewallPolicyId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.FirewallPolicyName, ok = input.Parsed["firewallPolicyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "firewallPolicyName", input) + } + + return nil +} + +// ValidateFirewallPolicyID checks that 'input' can be parsed as a Firewall Policy ID +func ValidateFirewallPolicyID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseFirewallPolicyID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Firewall Policy ID +func (id FirewallPolicyId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/firewallPolicies/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FirewallPolicyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Firewall Policy ID +func (id FirewallPolicyId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticFirewallPolicies", "firewallPolicies", "firewallPolicies"), + resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyName"), + } +} + +// String returns a human-readable description of this Firewall Policy ID +func (id FirewallPolicyId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Firewall Policy Name: %q", id.FirewallPolicyName), + } + return fmt.Sprintf("Firewall Policy (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/id_rulecollectiongroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/id_rulecollectiongroup.go new file mode 100644 index 000000000000..6828a1a73813 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/id_rulecollectiongroup.go @@ -0,0 +1,139 @@ +package firewallpolicyrulecollectiongroups + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RuleCollectionGroupId{}) +} + +var _ resourceids.ResourceId = &RuleCollectionGroupId{} + +// RuleCollectionGroupId is a struct representing the Resource ID for a Rule Collection Group +type RuleCollectionGroupId struct { + SubscriptionId string + ResourceGroupName string + FirewallPolicyName string + RuleCollectionGroupName string +} + +// NewRuleCollectionGroupID returns a new RuleCollectionGroupId struct +func NewRuleCollectionGroupID(subscriptionId string, resourceGroupName string, firewallPolicyName string, ruleCollectionGroupName string) RuleCollectionGroupId { + return RuleCollectionGroupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + FirewallPolicyName: firewallPolicyName, + RuleCollectionGroupName: ruleCollectionGroupName, + } +} + +// ParseRuleCollectionGroupID parses 'input' into a RuleCollectionGroupId +func ParseRuleCollectionGroupID(input string) (*RuleCollectionGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionGroupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRuleCollectionGroupIDInsensitively parses 'input' case-insensitively into a RuleCollectionGroupId +// note: this method should only be used for API response data and not user input +func ParseRuleCollectionGroupIDInsensitively(input string) (*RuleCollectionGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionGroupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RuleCollectionGroupId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.FirewallPolicyName, ok = input.Parsed["firewallPolicyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "firewallPolicyName", input) + } + + if id.RuleCollectionGroupName, ok = input.Parsed["ruleCollectionGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionGroupName", input) + } + + return nil +} + +// ValidateRuleCollectionGroupID checks that 'input' can be parsed as a Rule Collection Group ID +func ValidateRuleCollectionGroupID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRuleCollectionGroupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Rule Collection Group ID +func (id RuleCollectionGroupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/firewallPolicies/%s/ruleCollectionGroups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FirewallPolicyName, id.RuleCollectionGroupName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Rule Collection Group ID +func (id RuleCollectionGroupId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticFirewallPolicies", "firewallPolicies", "firewallPolicies"), + resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyName"), + resourceids.StaticSegment("staticRuleCollectionGroups", "ruleCollectionGroups", "ruleCollectionGroups"), + resourceids.UserSpecifiedSegment("ruleCollectionGroupName", "ruleCollectionGroupName"), + } +} + +// String returns a human-readable description of this Rule Collection Group ID +func (id RuleCollectionGroupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Firewall Policy Name: %q", id.FirewallPolicyName), + fmt.Sprintf("Rule Collection Group Name: %q", id.RuleCollectionGroupName), + } + return fmt.Sprintf("Rule Collection Group (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_createorupdate.go new file mode 100644 index 000000000000..b067734262ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_createorupdate.go @@ -0,0 +1,75 @@ +package firewallpolicyrulecollectiongroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *FirewallPolicyRuleCollectionGroup +} + +// CreateOrUpdate ... +func (c FirewallPolicyRuleCollectionGroupsClient) CreateOrUpdate(ctx context.Context, id RuleCollectionGroupId, input FirewallPolicyRuleCollectionGroup) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c FirewallPolicyRuleCollectionGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id RuleCollectionGroupId, input FirewallPolicyRuleCollectionGroup) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_delete.go new file mode 100644 index 000000000000..159bb061b841 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_delete.go @@ -0,0 +1,71 @@ +package firewallpolicyrulecollectiongroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c FirewallPolicyRuleCollectionGroupsClient) Delete(ctx context.Context, id RuleCollectionGroupId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c FirewallPolicyRuleCollectionGroupsClient) DeleteThenPoll(ctx context.Context, id RuleCollectionGroupId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_get.go new file mode 100644 index 000000000000..2f494c219705 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_get.go @@ -0,0 +1,53 @@ +package firewallpolicyrulecollectiongroups + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FirewallPolicyRuleCollectionGroup +} + +// Get ... +func (c FirewallPolicyRuleCollectionGroupsClient) Get(ctx context.Context, id RuleCollectionGroupId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model FirewallPolicyRuleCollectionGroup + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_list.go new file mode 100644 index 000000000000..09dd83c8896c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_list.go @@ -0,0 +1,105 @@ +package firewallpolicyrulecollectiongroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]FirewallPolicyRuleCollectionGroup +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []FirewallPolicyRuleCollectionGroup +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c FirewallPolicyRuleCollectionGroupsClient) List(ctx context.Context, id FirewallPolicyId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/ruleCollectionGroups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]FirewallPolicyRuleCollectionGroup `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c FirewallPolicyRuleCollectionGroupsClient) ListComplete(ctx context.Context, id FirewallPolicyId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, FirewallPolicyRuleCollectionGroupOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c FirewallPolicyRuleCollectionGroupsClient) ListCompleteMatchingPredicate(ctx context.Context, id FirewallPolicyId, predicate FirewallPolicyRuleCollectionGroupOperationPredicate) (result ListCompleteResult, err error) { + items := make([]FirewallPolicyRuleCollectionGroup, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_applicationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_applicationrule.go new file mode 100644 index 000000000000..1684b7ab31bd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_applicationrule.go @@ -0,0 +1,63 @@ +package firewallpolicyrulecollectiongroups + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ FirewallPolicyRule = ApplicationRule{} + +type ApplicationRule struct { + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + FqdnTags *[]string `json:"fqdnTags,omitempty"` + HTTPHeadersToInsert *[]FirewallPolicyHTTPHeaderToInsert `json:"httpHeadersToInsert,omitempty"` + Protocols *[]FirewallPolicyRuleApplicationProtocol `json:"protocols,omitempty"` + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` + TargetFqdns *[]string `json:"targetFqdns,omitempty"` + TargetURLs *[]string `json:"targetUrls,omitempty"` + TerminateTLS *bool `json:"terminateTLS,omitempty"` + WebCategories *[]string `json:"webCategories,omitempty"` + + // Fields inherited from FirewallPolicyRule + + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s ApplicationRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return BaseFirewallPolicyRuleImpl{ + Description: s.Description, + Name: s.Name, + RuleType: s.RuleType, + } +} + +var _ json.Marshaler = ApplicationRule{} + +func (s ApplicationRule) MarshalJSON() ([]byte, error) { + type wrapper ApplicationRule + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling ApplicationRule: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling ApplicationRule: %+v", err) + } + + decoded["ruleType"] = "ApplicationRule" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling ApplicationRule: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollection.go new file mode 100644 index 000000000000..142e33508f8a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollection.go @@ -0,0 +1,98 @@ +package firewallpolicyrulecollectiongroups + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ FirewallPolicyRuleCollection = FirewallPolicyFilterRuleCollection{} + +type FirewallPolicyFilterRuleCollection struct { + Action *FirewallPolicyFilterRuleCollectionAction `json:"action,omitempty"` + Rules *[]FirewallPolicyRule `json:"rules,omitempty"` + + // Fields inherited from FirewallPolicyRuleCollection + + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` +} + +func (s FirewallPolicyFilterRuleCollection) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return BaseFirewallPolicyRuleCollectionImpl{ + Name: s.Name, + Priority: s.Priority, + RuleCollectionType: s.RuleCollectionType, + } +} + +var _ json.Marshaler = FirewallPolicyFilterRuleCollection{} + +func (s FirewallPolicyFilterRuleCollection) MarshalJSON() ([]byte, error) { + type wrapper FirewallPolicyFilterRuleCollection + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling FirewallPolicyFilterRuleCollection: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling FirewallPolicyFilterRuleCollection: %+v", err) + } + + decoded["ruleCollectionType"] = "FirewallPolicyFilterRuleCollection" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling FirewallPolicyFilterRuleCollection: %+v", err) + } + + return encoded, nil +} + +var _ json.Unmarshaler = &FirewallPolicyFilterRuleCollection{} + +func (s *FirewallPolicyFilterRuleCollection) UnmarshalJSON(bytes []byte) error { + var decoded struct { + Action *FirewallPolicyFilterRuleCollectionAction `json:"action,omitempty"` + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.Action = decoded.Action + s.Name = decoded.Name + s.Priority = decoded.Priority + s.RuleCollectionType = decoded.RuleCollectionType + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling FirewallPolicyFilterRuleCollection into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["rules"]; ok { + var listTemp []json.RawMessage + if err := json.Unmarshal(v, &listTemp); err != nil { + return fmt.Errorf("unmarshaling Rules into list []json.RawMessage: %+v", err) + } + + output := make([]FirewallPolicyRule, 0) + for i, val := range listTemp { + impl, err := UnmarshalFirewallPolicyRuleImplementation(val) + if err != nil { + return fmt.Errorf("unmarshaling index %d field 'Rules' for 'FirewallPolicyFilterRuleCollection': %+v", i, err) + } + output = append(output, impl) + } + s.Rules = &output + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollectionaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollectionaction.go new file mode 100644 index 000000000000..42d0cb7d1278 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollectionaction.go @@ -0,0 +1,8 @@ +package firewallpolicyrulecollectiongroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyFilterRuleCollectionAction struct { + Type *FirewallPolicyFilterRuleCollectionActionType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyhttpheadertoinsert.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyhttpheadertoinsert.go new file mode 100644 index 000000000000..f7dd43c60896 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyhttpheadertoinsert.go @@ -0,0 +1,9 @@ +package firewallpolicyrulecollectiongroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyHTTPHeaderToInsert struct { + HeaderName *string `json:"headerName,omitempty"` + HeaderValue *string `json:"headerValue,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollection.go new file mode 100644 index 000000000000..5e7e93c25d3b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollection.go @@ -0,0 +1,98 @@ +package firewallpolicyrulecollectiongroups + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ FirewallPolicyRuleCollection = FirewallPolicyNatRuleCollection{} + +type FirewallPolicyNatRuleCollection struct { + Action *FirewallPolicyNatRuleCollectionAction `json:"action,omitempty"` + Rules *[]FirewallPolicyRule `json:"rules,omitempty"` + + // Fields inherited from FirewallPolicyRuleCollection + + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` +} + +func (s FirewallPolicyNatRuleCollection) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return BaseFirewallPolicyRuleCollectionImpl{ + Name: s.Name, + Priority: s.Priority, + RuleCollectionType: s.RuleCollectionType, + } +} + +var _ json.Marshaler = FirewallPolicyNatRuleCollection{} + +func (s FirewallPolicyNatRuleCollection) MarshalJSON() ([]byte, error) { + type wrapper FirewallPolicyNatRuleCollection + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling FirewallPolicyNatRuleCollection: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling FirewallPolicyNatRuleCollection: %+v", err) + } + + decoded["ruleCollectionType"] = "FirewallPolicyNatRuleCollection" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling FirewallPolicyNatRuleCollection: %+v", err) + } + + return encoded, nil +} + +var _ json.Unmarshaler = &FirewallPolicyNatRuleCollection{} + +func (s *FirewallPolicyNatRuleCollection) UnmarshalJSON(bytes []byte) error { + var decoded struct { + Action *FirewallPolicyNatRuleCollectionAction `json:"action,omitempty"` + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.Action = decoded.Action + s.Name = decoded.Name + s.Priority = decoded.Priority + s.RuleCollectionType = decoded.RuleCollectionType + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling FirewallPolicyNatRuleCollection into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["rules"]; ok { + var listTemp []json.RawMessage + if err := json.Unmarshal(v, &listTemp); err != nil { + return fmt.Errorf("unmarshaling Rules into list []json.RawMessage: %+v", err) + } + + output := make([]FirewallPolicyRule, 0) + for i, val := range listTemp { + impl, err := UnmarshalFirewallPolicyRuleImplementation(val) + if err != nil { + return fmt.Errorf("unmarshaling index %d field 'Rules' for 'FirewallPolicyNatRuleCollection': %+v", i, err) + } + output = append(output, impl) + } + s.Rules = &output + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollectionaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollectionaction.go new file mode 100644 index 000000000000..0b31f5d8ffa1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollectionaction.go @@ -0,0 +1,8 @@ +package firewallpolicyrulecollectiongroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyNatRuleCollectionAction struct { + Type *FirewallPolicyNatRuleCollectionActionType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrule.go new file mode 100644 index 000000000000..01e93308b207 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrule.go @@ -0,0 +1,93 @@ +package firewallpolicyrulecollectiongroups + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRule interface { + FirewallPolicyRule() BaseFirewallPolicyRuleImpl +} + +var _ FirewallPolicyRule = BaseFirewallPolicyRuleImpl{} + +type BaseFirewallPolicyRuleImpl struct { + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s BaseFirewallPolicyRuleImpl) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return s +} + +var _ FirewallPolicyRule = RawFirewallPolicyRuleImpl{} + +// RawFirewallPolicyRuleImpl is returned when the Discriminated Value doesn't match any of the defined types +// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) +// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). +type RawFirewallPolicyRuleImpl struct { + firewallPolicyRule BaseFirewallPolicyRuleImpl + Type string + Values map[string]interface{} +} + +func (s RawFirewallPolicyRuleImpl) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return s.firewallPolicyRule +} + +func UnmarshalFirewallPolicyRuleImplementation(input []byte) (FirewallPolicyRule, error) { + if input == nil { + return nil, nil + } + + var temp map[string]interface{} + if err := json.Unmarshal(input, &temp); err != nil { + return nil, fmt.Errorf("unmarshaling FirewallPolicyRule into map[string]interface: %+v", err) + } + + var value string + if v, ok := temp["ruleType"]; ok { + value = fmt.Sprintf("%v", v) + } + + if strings.EqualFold(value, "ApplicationRule") { + var out ApplicationRule + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into ApplicationRule: %+v", err) + } + return out, nil + } + + if strings.EqualFold(value, "NatRule") { + var out NatRule + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into NatRule: %+v", err) + } + return out, nil + } + + if strings.EqualFold(value, "NetworkRule") { + var out NetworkRule + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into NetworkRule: %+v", err) + } + return out, nil + } + + var parent BaseFirewallPolicyRuleImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFirewallPolicyRuleImpl: %+v", err) + } + + return RawFirewallPolicyRuleImpl{ + firewallPolicyRule: parent, + Type: value, + Values: temp, + }, nil + +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyruleapplicationprotocol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyruleapplicationprotocol.go new file mode 100644 index 000000000000..cc2db178d08f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyruleapplicationprotocol.go @@ -0,0 +1,9 @@ +package firewallpolicyrulecollectiongroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleApplicationProtocol struct { + Port *int64 `json:"port,omitempty"` + ProtocolType *FirewallPolicyRuleApplicationProtocolType `json:"protocolType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollection.go new file mode 100644 index 000000000000..8f68d85c04f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollection.go @@ -0,0 +1,85 @@ +package firewallpolicyrulecollectiongroups + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollection interface { + FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl +} + +var _ FirewallPolicyRuleCollection = BaseFirewallPolicyRuleCollectionImpl{} + +type BaseFirewallPolicyRuleCollectionImpl struct { + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` +} + +func (s BaseFirewallPolicyRuleCollectionImpl) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return s +} + +var _ FirewallPolicyRuleCollection = RawFirewallPolicyRuleCollectionImpl{} + +// RawFirewallPolicyRuleCollectionImpl is returned when the Discriminated Value doesn't match any of the defined types +// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) +// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). +type RawFirewallPolicyRuleCollectionImpl struct { + firewallPolicyRuleCollection BaseFirewallPolicyRuleCollectionImpl + Type string + Values map[string]interface{} +} + +func (s RawFirewallPolicyRuleCollectionImpl) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return s.firewallPolicyRuleCollection +} + +func UnmarshalFirewallPolicyRuleCollectionImplementation(input []byte) (FirewallPolicyRuleCollection, error) { + if input == nil { + return nil, nil + } + + var temp map[string]interface{} + if err := json.Unmarshal(input, &temp); err != nil { + return nil, fmt.Errorf("unmarshaling FirewallPolicyRuleCollection into map[string]interface: %+v", err) + } + + var value string + if v, ok := temp["ruleCollectionType"]; ok { + value = fmt.Sprintf("%v", v) + } + + if strings.EqualFold(value, "FirewallPolicyFilterRuleCollection") { + var out FirewallPolicyFilterRuleCollection + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into FirewallPolicyFilterRuleCollection: %+v", err) + } + return out, nil + } + + if strings.EqualFold(value, "FirewallPolicyNatRuleCollection") { + var out FirewallPolicyNatRuleCollection + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into FirewallPolicyNatRuleCollection: %+v", err) + } + return out, nil + } + + var parent BaseFirewallPolicyRuleCollectionImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFirewallPolicyRuleCollectionImpl: %+v", err) + } + + return RawFirewallPolicyRuleCollectionImpl{ + firewallPolicyRuleCollection: parent, + Type: value, + Values: temp, + }, nil + +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroup.go new file mode 100644 index 000000000000..3cd2b9489056 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroup.go @@ -0,0 +1,12 @@ +package firewallpolicyrulecollectiongroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollectionGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FirewallPolicyRuleCollectionGroupProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroupproperties.go new file mode 100644 index 000000000000..ae95dcb3fd9a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroupproperties.go @@ -0,0 +1,57 @@ +package firewallpolicyrulecollectiongroups + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollectionGroupProperties struct { + Priority *int64 `json:"priority,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RuleCollections *[]FirewallPolicyRuleCollection `json:"ruleCollections,omitempty"` + Size *string `json:"size,omitempty"` +} + +var _ json.Unmarshaler = &FirewallPolicyRuleCollectionGroupProperties{} + +func (s *FirewallPolicyRuleCollectionGroupProperties) UnmarshalJSON(bytes []byte) error { + var decoded struct { + Priority *int64 `json:"priority,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Size *string `json:"size,omitempty"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.Priority = decoded.Priority + s.ProvisioningState = decoded.ProvisioningState + s.Size = decoded.Size + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling FirewallPolicyRuleCollectionGroupProperties into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["ruleCollections"]; ok { + var listTemp []json.RawMessage + if err := json.Unmarshal(v, &listTemp); err != nil { + return fmt.Errorf("unmarshaling RuleCollections into list []json.RawMessage: %+v", err) + } + + output := make([]FirewallPolicyRuleCollection, 0) + for i, val := range listTemp { + impl, err := UnmarshalFirewallPolicyRuleCollectionImplementation(val) + if err != nil { + return fmt.Errorf("unmarshaling index %d field 'RuleCollections' for 'FirewallPolicyRuleCollectionGroupProperties': %+v", i, err) + } + output = append(output, impl) + } + s.RuleCollections = &output + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_natrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_natrule.go new file mode 100644 index 000000000000..2e80421cd233 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_natrule.go @@ -0,0 +1,61 @@ +package firewallpolicyrulecollectiongroups + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ FirewallPolicyRule = NatRule{} + +type NatRule struct { + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + IPProtocols *[]FirewallPolicyRuleNetworkProtocol `json:"ipProtocols,omitempty"` + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` + TranslatedAddress *string `json:"translatedAddress,omitempty"` + TranslatedFqdn *string `json:"translatedFqdn,omitempty"` + TranslatedPort *string `json:"translatedPort,omitempty"` + + // Fields inherited from FirewallPolicyRule + + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s NatRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return BaseFirewallPolicyRuleImpl{ + Description: s.Description, + Name: s.Name, + RuleType: s.RuleType, + } +} + +var _ json.Marshaler = NatRule{} + +func (s NatRule) MarshalJSON() ([]byte, error) { + type wrapper NatRule + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling NatRule: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling NatRule: %+v", err) + } + + decoded["ruleType"] = "NatRule" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling NatRule: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_networkrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_networkrule.go new file mode 100644 index 000000000000..902314377596 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_networkrule.go @@ -0,0 +1,60 @@ +package firewallpolicyrulecollectiongroups + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ FirewallPolicyRule = NetworkRule{} + +type NetworkRule struct { + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + DestinationFqdns *[]string `json:"destinationFqdns,omitempty"` + DestinationIPGroups *[]string `json:"destinationIpGroups,omitempty"` + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + IPProtocols *[]FirewallPolicyRuleNetworkProtocol `json:"ipProtocols,omitempty"` + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` + + // Fields inherited from FirewallPolicyRule + + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s NetworkRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return BaseFirewallPolicyRuleImpl{ + Description: s.Description, + Name: s.Name, + RuleType: s.RuleType, + } +} + +var _ json.Marshaler = NetworkRule{} + +func (s NetworkRule) MarshalJSON() ([]byte, error) { + type wrapper NetworkRule + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling NetworkRule: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling NetworkRule: %+v", err) + } + + decoded["ruleType"] = "NetworkRule" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling NetworkRule: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/predicates.go new file mode 100644 index 000000000000..9762acada56f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/predicates.go @@ -0,0 +1,32 @@ +package firewallpolicyrulecollectiongroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollectionGroupOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p FirewallPolicyRuleCollectionGroupOperationPredicate) Matches(input FirewallPolicyRuleCollectionGroup) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/version.go new file mode 100644 index 000000000000..0a738d9bd069 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/version.go @@ -0,0 +1,10 @@ +package firewallpolicyrulecollectiongroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/firewallpolicyrulecollectiongroups/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/README.md new file mode 100644 index 000000000000..27db5be2d0c4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/README.md @@ -0,0 +1,103 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs` Documentation + +The `flowlogs` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs" +``` + + +### Client Initialization + +```go +client := flowlogs.NewFlowLogsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `FlowLogsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") + +payload := flowlogs.FlowLog{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `FlowLogsClient.Delete` + +```go +ctx := context.TODO() +id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `FlowLogsClient.Get` + +```go +ctx := context.TODO() +id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FlowLogsClient.List` + +```go +ctx := context.TODO() +id := flowlogs.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `FlowLogsClient.UpdateTags` + +```go +ctx := context.TODO() +id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") + +payload := flowlogs.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/client.go new file mode 100644 index 000000000000..6294aac57742 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/client.go @@ -0,0 +1,26 @@ +package flowlogs + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogsClient struct { + Client *resourcemanager.Client +} + +func NewFlowLogsClientWithBaseURI(sdkApi sdkEnv.Api) (*FlowLogsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "flowlogs", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating FlowLogsClient: %+v", err) + } + + return &FlowLogsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/constants.go new file mode 100644 index 000000000000..e5e97eea1091 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/constants.go @@ -0,0 +1,95 @@ +package flowlogs + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/id_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/id_flowlog.go new file mode 100644 index 000000000000..17a0f248d39b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/id_flowlog.go @@ -0,0 +1,139 @@ +package flowlogs + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&FlowLogId{}) +} + +var _ resourceids.ResourceId = &FlowLogId{} + +// FlowLogId is a struct representing the Resource ID for a Flow Log +type FlowLogId struct { + SubscriptionId string + ResourceGroupName string + NetworkWatcherName string + FlowLogName string +} + +// NewFlowLogID returns a new FlowLogId struct +func NewFlowLogID(subscriptionId string, resourceGroupName string, networkWatcherName string, flowLogName string) FlowLogId { + return FlowLogId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkWatcherName: networkWatcherName, + FlowLogName: flowLogName, + } +} + +// ParseFlowLogID parses 'input' into a FlowLogId +func ParseFlowLogID(input string) (*FlowLogId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlowLogId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlowLogId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseFlowLogIDInsensitively parses 'input' case-insensitively into a FlowLogId +// note: this method should only be used for API response data and not user input +func ParseFlowLogIDInsensitively(input string) (*FlowLogId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlowLogId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlowLogId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *FlowLogId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkWatcherName, ok = input.Parsed["networkWatcherName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkWatcherName", input) + } + + if id.FlowLogName, ok = input.Parsed["flowLogName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "flowLogName", input) + } + + return nil +} + +// ValidateFlowLogID checks that 'input' can be parsed as a Flow Log ID +func ValidateFlowLogID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseFlowLogID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Flow Log ID +func (id FlowLogId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkWatchers/%s/flowLogs/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkWatcherName, id.FlowLogName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Flow Log ID +func (id FlowLogId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), + resourceids.StaticSegment("staticFlowLogs", "flowLogs", "flowLogs"), + resourceids.UserSpecifiedSegment("flowLogName", "flowLogName"), + } +} + +// String returns a human-readable description of this Flow Log ID +func (id FlowLogId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Watcher Name: %q", id.NetworkWatcherName), + fmt.Sprintf("Flow Log Name: %q", id.FlowLogName), + } + return fmt.Sprintf("Flow Log (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/id_networkwatcher.go new file mode 100644 index 000000000000..2862a3cc6b0c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/id_networkwatcher.go @@ -0,0 +1,130 @@ +package flowlogs + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkWatcherId{}) +} + +var _ resourceids.ResourceId = &NetworkWatcherId{} + +// NetworkWatcherId is a struct representing the Resource ID for a Network Watcher +type NetworkWatcherId struct { + SubscriptionId string + ResourceGroupName string + NetworkWatcherName string +} + +// NewNetworkWatcherID returns a new NetworkWatcherId struct +func NewNetworkWatcherID(subscriptionId string, resourceGroupName string, networkWatcherName string) NetworkWatcherId { + return NetworkWatcherId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkWatcherName: networkWatcherName, + } +} + +// ParseNetworkWatcherID parses 'input' into a NetworkWatcherId +func ParseNetworkWatcherID(input string) (*NetworkWatcherId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkWatcherId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkWatcherId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkWatcherIDInsensitively parses 'input' case-insensitively into a NetworkWatcherId +// note: this method should only be used for API response data and not user input +func ParseNetworkWatcherIDInsensitively(input string) (*NetworkWatcherId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkWatcherId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkWatcherId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkWatcherId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkWatcherName, ok = input.Parsed["networkWatcherName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkWatcherName", input) + } + + return nil +} + +// ValidateNetworkWatcherID checks that 'input' can be parsed as a Network Watcher ID +func ValidateNetworkWatcherID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkWatcherID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Watcher ID +func (id NetworkWatcherId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkWatchers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkWatcherName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Watcher ID +func (id NetworkWatcherId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), + } +} + +// String returns a human-readable description of this Network Watcher ID +func (id NetworkWatcherId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Watcher Name: %q", id.NetworkWatcherName), + } + return fmt.Sprintf("Network Watcher (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_createorupdate.go new file mode 100644 index 000000000000..9469b674d325 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_createorupdate.go @@ -0,0 +1,75 @@ +package flowlogs + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *FlowLog +} + +// CreateOrUpdate ... +func (c FlowLogsClient) CreateOrUpdate(ctx context.Context, id FlowLogId, input FlowLog) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c FlowLogsClient) CreateOrUpdateThenPoll(ctx context.Context, id FlowLogId, input FlowLog) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_delete.go new file mode 100644 index 000000000000..1ff7776fa733 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_delete.go @@ -0,0 +1,70 @@ +package flowlogs + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c FlowLogsClient) Delete(ctx context.Context, id FlowLogId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c FlowLogsClient) DeleteThenPoll(ctx context.Context, id FlowLogId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_get.go new file mode 100644 index 000000000000..8677d6603547 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_get.go @@ -0,0 +1,53 @@ +package flowlogs + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FlowLog +} + +// Get ... +func (c FlowLogsClient) Get(ctx context.Context, id FlowLogId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model FlowLog + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_list.go new file mode 100644 index 000000000000..6652ea30f55b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_list.go @@ -0,0 +1,105 @@ +package flowlogs + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]FlowLog +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []FlowLog +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c FlowLogsClient) List(ctx context.Context, id NetworkWatcherId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/flowLogs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]FlowLog `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c FlowLogsClient) ListComplete(ctx context.Context, id NetworkWatcherId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, FlowLogOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c FlowLogsClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkWatcherId, predicate FlowLogOperationPredicate) (result ListCompleteResult, err error) { + items := make([]FlowLog, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_updatetags.go new file mode 100644 index 000000000000..1f7aec168713 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_updatetags.go @@ -0,0 +1,57 @@ +package flowlogs + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FlowLog +} + +// UpdateTags ... +func (c FlowLogsClient) UpdateTags(ctx context.Context, id FlowLogId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model FlowLog + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlog.go new file mode 100644 index 000000000000..b379e613ed9d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlog.go @@ -0,0 +1,19 @@ +package flowlogs + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlogformatparameters.go new file mode 100644 index 000000000000..16ca58e95a3f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package flowlogs + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..7ef17d630e6d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package flowlogs + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..37f07668beab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package flowlogs + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_tagsobject.go new file mode 100644 index 000000000000..c5cd354ef299 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_tagsobject.go @@ -0,0 +1,8 @@ +package flowlogs + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..5b935e5f27b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package flowlogs + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..d6d9faede4b7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package flowlogs + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/predicates.go new file mode 100644 index 000000000000..746df2611ccf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/predicates.go @@ -0,0 +1,37 @@ +package flowlogs + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p FlowLogOperationPredicate) Matches(input FlowLog) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/version.go new file mode 100644 index 000000000000..a6794f8d3689 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/version.go @@ -0,0 +1,10 @@ +package flowlogs + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/flowlogs/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/README.md similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/README.md index 0a0bdb4f5b0f..c38446a5d18c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations` Documentation -The `ipallocations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `ipallocations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/id_ipallocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/id_ipallocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/id_ipallocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/id_ipallocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/model_ipallocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/model_ipallocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/model_ipallocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/model_ipallocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/model_ipallocationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/model_ipallocationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/model_ipallocationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/model_ipallocationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/version.go index d25dcbc7ec55..755338a4bc52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/version.go @@ -3,8 +3,8 @@ package ipallocations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/ipallocations/2023-11-01" + return "hashicorp/go-azure-sdk/ipallocations/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/README.md new file mode 100644 index 000000000000..4cebe929e9a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups` Documentation + +The `ipgroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups" +``` + + +### Client Initialization + +```go +client := ipgroups.NewIPGroupsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `IPGroupsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupName") + +payload := ipgroups.IPGroup{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `IPGroupsClient.Delete` + +```go +ctx := context.TODO() +id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `IPGroupsClient.Get` + +```go +ctx := context.TODO() +id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupName") + +read, err := client.Get(ctx, id, ipgroups.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `IPGroupsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `IPGroupsClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `IPGroupsClient.UpdateGroups` + +```go +ctx := context.TODO() +id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupName") + +payload := ipgroups.TagsObject{ + // ... +} + + +read, err := client.UpdateGroups(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/client.go new file mode 100644 index 000000000000..2e7f5ae81168 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/client.go @@ -0,0 +1,26 @@ +package ipgroups + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPGroupsClient struct { + Client *resourcemanager.Client +} + +func NewIPGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*IPGroupsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "ipgroups", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating IPGroupsClient: %+v", err) + } + + return &IPGroupsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/constants.go new file mode 100644 index 000000000000..a50092f263a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/constants.go @@ -0,0 +1,57 @@ +package ipgroups + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/id_ipgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/id_ipgroup.go new file mode 100644 index 000000000000..441c7301b565 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/id_ipgroup.go @@ -0,0 +1,130 @@ +package ipgroups + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&IPGroupId{}) +} + +var _ resourceids.ResourceId = &IPGroupId{} + +// IPGroupId is a struct representing the Resource ID for a I P Group +type IPGroupId struct { + SubscriptionId string + ResourceGroupName string + IpGroupName string +} + +// NewIPGroupID returns a new IPGroupId struct +func NewIPGroupID(subscriptionId string, resourceGroupName string, ipGroupName string) IPGroupId { + return IPGroupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + IpGroupName: ipGroupName, + } +} + +// ParseIPGroupID parses 'input' into a IPGroupId +func ParseIPGroupID(input string) (*IPGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&IPGroupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := IPGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseIPGroupIDInsensitively parses 'input' case-insensitively into a IPGroupId +// note: this method should only be used for API response data and not user input +func ParseIPGroupIDInsensitively(input string) (*IPGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&IPGroupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := IPGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *IPGroupId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.IpGroupName, ok = input.Parsed["ipGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ipGroupName", input) + } + + return nil +} + +// ValidateIPGroupID checks that 'input' can be parsed as a I P Group ID +func ValidateIPGroupID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseIPGroupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted I P Group ID +func (id IPGroupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/ipGroups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.IpGroupName) +} + +// Segments returns a slice of Resource ID Segments which comprise this I P Group ID +func (id IPGroupId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticIpGroups", "ipGroups", "ipGroups"), + resourceids.UserSpecifiedSegment("ipGroupName", "ipGroupName"), + } +} + +// String returns a human-readable description of this I P Group ID +func (id IPGroupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Ip Group Name: %q", id.IpGroupName), + } + return fmt.Sprintf("I P Group (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_createorupdate.go new file mode 100644 index 000000000000..fe09b1c7bf6a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_createorupdate.go @@ -0,0 +1,75 @@ +package ipgroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *IPGroup +} + +// CreateOrUpdate ... +func (c IPGroupsClient) CreateOrUpdate(ctx context.Context, id IPGroupId, input IPGroup) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c IPGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id IPGroupId, input IPGroup) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_delete.go new file mode 100644 index 000000000000..1e1797dd8d33 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_delete.go @@ -0,0 +1,71 @@ +package ipgroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c IPGroupsClient) Delete(ctx context.Context, id IPGroupId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c IPGroupsClient) DeleteThenPoll(ctx context.Context, id IPGroupId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_get.go new file mode 100644 index 000000000000..8e06e373c584 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_get.go @@ -0,0 +1,83 @@ +package ipgroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *IPGroup +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c IPGroupsClient) Get(ctx context.Context, id IPGroupId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model IPGroup + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_list.go new file mode 100644 index 000000000000..76ec56d59900 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_list.go @@ -0,0 +1,106 @@ +package ipgroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]IPGroup +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []IPGroup +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c IPGroupsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipGroups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]IPGroup `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c IPGroupsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, IPGroupOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c IPGroupsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate IPGroupOperationPredicate) (result ListCompleteResult, err error) { + items := make([]IPGroup, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_listbyresourcegroup.go new file mode 100644 index 000000000000..16ea08e273bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_listbyresourcegroup.go @@ -0,0 +1,106 @@ +package ipgroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]IPGroup +} + +type ListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []IPGroup +} + +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByResourceGroup ... +func (c IPGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipGroups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]IPGroup `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByResourceGroupComplete retrieves all the results into a single object +func (c IPGroupsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, IPGroupOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c IPGroupsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate IPGroupOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]IPGroup, 0) + + resp, err := c.ListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_updategroups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_updategroups.go new file mode 100644 index 000000000000..bce76083d7a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_updategroups.go @@ -0,0 +1,57 @@ +package ipgroups + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateGroupsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *IPGroup +} + +// UpdateGroups ... +func (c IPGroupsClient) UpdateGroups(ctx context.Context, id IPGroupId, input TagsObject) (result UpdateGroupsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model IPGroup + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_ipgroup.go similarity index 83% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_flowlog.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_ipgroup.go index 90210c292609..7f586ce2b068 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_flowlog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_ipgroup.go @@ -1,14 +1,14 @@ -package loadbalancers +package ipgroups // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type FlowLog struct { +type IPGroup struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Properties *IPGroupPropertiesFormat `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_ipgrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_ipgrouppropertiesformat.go new file mode 100644 index 000000000000..866075a10384 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_ipgrouppropertiesformat.go @@ -0,0 +1,11 @@ +package ipgroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPGroupPropertiesFormat struct { + FirewallPolicies *[]SubResource `json:"firewallPolicies,omitempty"` + Firewalls *[]SubResource `json:"firewalls,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_subresource.go new file mode 100644 index 000000000000..5e6c0552f0cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_subresource.go @@ -0,0 +1,8 @@ +package ipgroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_tagsobject.go new file mode 100644 index 000000000000..df59e42aff45 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_tagsobject.go @@ -0,0 +1,8 @@ +package ipgroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/predicates.go new file mode 100644 index 000000000000..a64e98c22900 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/predicates.go @@ -0,0 +1,37 @@ +package ipgroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPGroupOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p IPGroupOperationPredicate) Matches(input IPGroup) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/version.go new file mode 100644 index 000000000000..b3059674ddc5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/version.go @@ -0,0 +1,10 @@ +package ipgroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/ipgroups/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/README.md similarity index 99% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/README.md index 2810b580a186..0fb85c891a53 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers` Documentation -The `loadbalancers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `loadbalancers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/constants.go similarity index 97% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/constants.go index edef2ce69233..de5c92d87bbd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/constants.go @@ -745,6 +745,47 @@ func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error return &out, nil } +type ProbeNoHealthyBackendsBehavior string + +const ( + ProbeNoHealthyBackendsBehaviorAllProbedDown ProbeNoHealthyBackendsBehavior = "AllProbedDown" + ProbeNoHealthyBackendsBehaviorAllProbedUp ProbeNoHealthyBackendsBehavior = "AllProbedUp" +) + +func PossibleValuesForProbeNoHealthyBackendsBehavior() []string { + return []string{ + string(ProbeNoHealthyBackendsBehaviorAllProbedDown), + string(ProbeNoHealthyBackendsBehaviorAllProbedUp), + } +} + +func (s *ProbeNoHealthyBackendsBehavior) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProbeNoHealthyBackendsBehavior(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProbeNoHealthyBackendsBehavior(input string) (*ProbeNoHealthyBackendsBehavior, error) { + vals := map[string]ProbeNoHealthyBackendsBehavior{ + "allprobeddown": ProbeNoHealthyBackendsBehaviorAllProbedDown, + "allprobedup": ProbeNoHealthyBackendsBehaviorAllProbedUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProbeNoHealthyBackendsBehavior(input) + return &out, nil +} + type ProbeProtocol string const ( diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_loadbalancer.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancer.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_loadbalancer.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancerbackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_loadbalancerbackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancerbackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_loadbalancerbackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_loadbalancingrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancingrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_loadbalancingrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_outboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_outboundrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_outboundrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_outboundrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_probe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_probe.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_probe.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_probe.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_providerloadbalancer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_providerloadbalancer.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_providerloadbalancer.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_providerloadbalancer.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_inboundnatrulescreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulescreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_inboundnatrulescreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_inboundnatrulesdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulesdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_inboundnatrulesdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_inboundnatrulesget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulesget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_inboundnatrulesget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatruleslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_inboundnatruleslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatruleslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_inboundnatruleslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_listall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_listall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_listall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_listinboundnatruleportmappings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_listinboundnatruleportmappings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_listinboundnatruleportmappings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_listinboundnatruleportmappings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerbackendaddresspoolscreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolscreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerbackendaddresspoolscreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerbackendaddresspoolsdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolsdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerbackendaddresspoolsdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerbackendaddresspoolsget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerbackendaddresspoolsget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerloadbalancingrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerloadbalancingrulesget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerloadbalancingrulesget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerloadbalancingrulesget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalanceroutboundrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalanceroutboundrulesget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalanceroutboundrulesget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalanceroutboundrulesget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalanceroutboundruleslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalanceroutboundruleslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalanceroutboundruleslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalanceroutboundruleslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerprobesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerprobesget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerprobesget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerprobesget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerprobeslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerprobeslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerprobeslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerprobeslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_migratetoipbased.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_migratetoipbased.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_migratetoipbased.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_migratetoipbased.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_swappublicipaddresses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_swappublicipaddresses.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_swappublicipaddresses.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_swappublicipaddresses.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_backendaddressinboundnatruleportmappings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_backendaddressinboundnatruleportmappings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_backendaddressinboundnatruleportmappings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_backendaddressinboundnatruleportmappings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlog.go new file mode 100644 index 000000000000..dff0db44f477 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlog.go @@ -0,0 +1,19 @@ +package loadbalancers + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlogpropertiesformat.go similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_flowlogpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlogpropertiesformat.go index 4c800ad5f684..93c3d7251164 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_flowlogpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlogpropertiesformat.go @@ -5,6 +5,7 @@ package loadbalancers type FlowLogPropertiesFormat struct { Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` Format *FlowLogFormatParameters `json:"format,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatpool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatpool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatpool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatpoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatpoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatpoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatpoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancer.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancer.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancer.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancerpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancerpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancerpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancerpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancersku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancersku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancersku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancersku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancervipswaprequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancervipswaprequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancervipswaprequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancervipswaprequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancervipswaprequestfrontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancervipswaprequestfrontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancervipswaprequestfrontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancervipswaprequestfrontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancervipswaprequestfrontendipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancervipswaprequestfrontendipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancervipswaprequestfrontendipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancervipswaprequestfrontendipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancingrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancingrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancingrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancingrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancingrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancingrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancingrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_migratedpools.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_migratedpools.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_migratedpools.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_migratedpools.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_migrateloadbalancertoipbasedrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_migrateloadbalancertoipbasedrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_migrateloadbalancertoipbasedrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_migrateloadbalancertoipbasedrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_outboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_outboundrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_outboundrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_outboundrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_outboundrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_outboundrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_outboundrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_outboundrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceproperties.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceproperties.go index f3e3d05de18a..177e188eb3e6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceproperties.go @@ -6,6 +6,7 @@ package loadbalancers type PrivateLinkServiceProperties struct { Alias *string `json:"alias,omitempty"` AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` Fqdns *[]string `json:"fqdns,omitempty"` IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_probe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_probe.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_probe.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_probe.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_probepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_probepropertiesformat.go new file mode 100644 index 000000000000..1ff1fd360c05 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_probepropertiesformat.go @@ -0,0 +1,16 @@ +package loadbalancers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProbePropertiesFormat struct { + IntervalInSeconds *int64 `json:"intervalInSeconds,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + NoHealthyBackendsBehavior *ProbeNoHealthyBackendsBehavior `json:"noHealthyBackendsBehavior,omitempty"` + NumberOfProbes *int64 `json:"numberOfProbes,omitempty"` + Port int64 `json:"port"` + ProbeThreshold *int64 `json:"probeThreshold,omitempty"` + Protocol ProbeProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestPath *string `json:"requestPath,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_queryinboundnatruleportmappingrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_queryinboundnatruleportmappingrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_queryinboundnatruleportmappingrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_queryinboundnatruleportmappingrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpropertiesformat.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpropertiesformat.go index 5610d7f722b9..f6f73f34673c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpropertiesformat.go @@ -5,6 +5,7 @@ package loadbalancers type ServiceEndpointPropertiesFormat struct { Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Service *string `json:"service,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/version.go index 52931b4a027e..ca9f366f656b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/version.go @@ -3,8 +3,8 @@ package loadbalancers // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/loadbalancers/2023-11-01" + return "hashicorp/go-azure-sdk/loadbalancers/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/README.md new file mode 100644 index 000000000000..49823e2fe310 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/README.md @@ -0,0 +1,104 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways` Documentation + +The `localnetworkgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways" +``` + + +### Client Initialization + +```go +client := localnetworkgateways.NewLocalNetworkGatewaysClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `LocalNetworkGatewaysClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := localnetworkgateways.NewLocalNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localNetworkGatewayName") + +payload := localnetworkgateways.LocalNetworkGateway{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `LocalNetworkGatewaysClient.Delete` + +```go +ctx := context.TODO() +id := localnetworkgateways.NewLocalNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localNetworkGatewayName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `LocalNetworkGatewaysClient.Get` + +```go +ctx := context.TODO() +id := localnetworkgateways.NewLocalNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localNetworkGatewayName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LocalNetworkGatewaysClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `LocalNetworkGatewaysClient.UpdateTags` + +```go +ctx := context.TODO() +id := localnetworkgateways.NewLocalNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localNetworkGatewayName") + +payload := localnetworkgateways.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/client.go new file mode 100644 index 000000000000..c821de0dcf3b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/client.go @@ -0,0 +1,26 @@ +package localnetworkgateways + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocalNetworkGatewaysClient struct { + Client *resourcemanager.Client +} + +func NewLocalNetworkGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*LocalNetworkGatewaysClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "localnetworkgateways", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating LocalNetworkGatewaysClient: %+v", err) + } + + return &LocalNetworkGatewaysClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/constants.go new file mode 100644 index 000000000000..f82efef3b1f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/constants.go @@ -0,0 +1,57 @@ +package localnetworkgateways + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/id_localnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/id_localnetworkgateway.go new file mode 100644 index 000000000000..1b8d0c5ae7aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/id_localnetworkgateway.go @@ -0,0 +1,130 @@ +package localnetworkgateways + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&LocalNetworkGatewayId{}) +} + +var _ resourceids.ResourceId = &LocalNetworkGatewayId{} + +// LocalNetworkGatewayId is a struct representing the Resource ID for a Local Network Gateway +type LocalNetworkGatewayId struct { + SubscriptionId string + ResourceGroupName string + LocalNetworkGatewayName string +} + +// NewLocalNetworkGatewayID returns a new LocalNetworkGatewayId struct +func NewLocalNetworkGatewayID(subscriptionId string, resourceGroupName string, localNetworkGatewayName string) LocalNetworkGatewayId { + return LocalNetworkGatewayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + LocalNetworkGatewayName: localNetworkGatewayName, + } +} + +// ParseLocalNetworkGatewayID parses 'input' into a LocalNetworkGatewayId +func ParseLocalNetworkGatewayID(input string) (*LocalNetworkGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocalNetworkGatewayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocalNetworkGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseLocalNetworkGatewayIDInsensitively parses 'input' case-insensitively into a LocalNetworkGatewayId +// note: this method should only be used for API response data and not user input +func ParseLocalNetworkGatewayIDInsensitively(input string) (*LocalNetworkGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocalNetworkGatewayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocalNetworkGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *LocalNetworkGatewayId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.LocalNetworkGatewayName, ok = input.Parsed["localNetworkGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "localNetworkGatewayName", input) + } + + return nil +} + +// ValidateLocalNetworkGatewayID checks that 'input' can be parsed as a Local Network Gateway ID +func ValidateLocalNetworkGatewayID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseLocalNetworkGatewayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Local Network Gateway ID +func (id LocalNetworkGatewayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/localNetworkGateways/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.LocalNetworkGatewayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Local Network Gateway ID +func (id LocalNetworkGatewayId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticLocalNetworkGateways", "localNetworkGateways", "localNetworkGateways"), + resourceids.UserSpecifiedSegment("localNetworkGatewayName", "localNetworkGatewayName"), + } +} + +// String returns a human-readable description of this Local Network Gateway ID +func (id LocalNetworkGatewayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Local Network Gateway Name: %q", id.LocalNetworkGatewayName), + } + return fmt.Sprintf("Local Network Gateway (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_createorupdate.go new file mode 100644 index 000000000000..1b41558abaaf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_createorupdate.go @@ -0,0 +1,75 @@ +package localnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *LocalNetworkGateway +} + +// CreateOrUpdate ... +func (c LocalNetworkGatewaysClient) CreateOrUpdate(ctx context.Context, id LocalNetworkGatewayId, input LocalNetworkGateway) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c LocalNetworkGatewaysClient) CreateOrUpdateThenPoll(ctx context.Context, id LocalNetworkGatewayId, input LocalNetworkGateway) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_delete.go new file mode 100644 index 000000000000..2b155d2b9e77 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_delete.go @@ -0,0 +1,71 @@ +package localnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c LocalNetworkGatewaysClient) Delete(ctx context.Context, id LocalNetworkGatewayId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c LocalNetworkGatewaysClient) DeleteThenPoll(ctx context.Context, id LocalNetworkGatewayId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_get.go new file mode 100644 index 000000000000..678e40b00646 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_get.go @@ -0,0 +1,53 @@ +package localnetworkgateways + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *LocalNetworkGateway +} + +// Get ... +func (c LocalNetworkGatewaysClient) Get(ctx context.Context, id LocalNetworkGatewayId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model LocalNetworkGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_list.go new file mode 100644 index 000000000000..528ccebe9557 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_list.go @@ -0,0 +1,106 @@ +package localnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]LocalNetworkGateway +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []LocalNetworkGateway +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c LocalNetworkGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/localNetworkGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]LocalNetworkGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c LocalNetworkGatewaysClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, LocalNetworkGatewayOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c LocalNetworkGatewaysClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate LocalNetworkGatewayOperationPredicate) (result ListCompleteResult, err error) { + items := make([]LocalNetworkGateway, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_updatetags.go new file mode 100644 index 000000000000..cacff76aaeba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_updatetags.go @@ -0,0 +1,57 @@ +package localnetworkgateways + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *LocalNetworkGateway +} + +// UpdateTags ... +func (c LocalNetworkGatewaysClient) UpdateTags(ctx context.Context, id LocalNetworkGatewayId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model LocalNetworkGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_addressspace.go new file mode 100644 index 000000000000..232140416bfa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_addressspace.go @@ -0,0 +1,8 @@ +package localnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressSpace struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_bgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_bgpsettings.go new file mode 100644 index 000000000000..9d3dfccb4b16 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_bgpsettings.go @@ -0,0 +1,11 @@ +package localnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BgpSettings struct { + Asn *int64 `json:"asn,omitempty"` + BgpPeeringAddress *string `json:"bgpPeeringAddress,omitempty"` + BgpPeeringAddresses *[]IPConfigurationBgpPeeringAddress `json:"bgpPeeringAddresses,omitempty"` + PeerWeight *int64 `json:"peerWeight,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_ipconfigurationbgppeeringaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_ipconfigurationbgppeeringaddress.go new file mode 100644 index 000000000000..4778a80b432b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_ipconfigurationbgppeeringaddress.go @@ -0,0 +1,11 @@ +package localnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationBgpPeeringAddress struct { + CustomBgpIPAddresses *[]string `json:"customBgpIpAddresses,omitempty"` + DefaultBgpIPAddresses *[]string `json:"defaultBgpIpAddresses,omitempty"` + IPconfigurationId *string `json:"ipconfigurationId,omitempty"` + TunnelIPAddresses *[]string `json:"tunnelIpAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_localnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_localnetworkgateway.go new file mode 100644 index 000000000000..684fe705afc2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_localnetworkgateway.go @@ -0,0 +1,14 @@ +package localnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocalNetworkGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties LocalNetworkGatewayPropertiesFormat `json:"properties"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_localnetworkgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_localnetworkgatewaypropertiesformat.go new file mode 100644 index 000000000000..fb7a91a8c718 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_localnetworkgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package localnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocalNetworkGatewayPropertiesFormat struct { + BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + GatewayIPAddress *string `json:"gatewayIpAddress,omitempty"` + LocalNetworkAddressSpace *AddressSpace `json:"localNetworkAddressSpace,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_tagsobject.go new file mode 100644 index 000000000000..214a0886d9b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_tagsobject.go @@ -0,0 +1,8 @@ +package localnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/predicates.go new file mode 100644 index 000000000000..d4e529f8a9c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/predicates.go @@ -0,0 +1,37 @@ +package localnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocalNetworkGatewayOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p LocalNetworkGatewayOperationPredicate) Matches(input LocalNetworkGateway) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/version.go new file mode 100644 index 000000000000..1df60b622e27 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/version.go @@ -0,0 +1,10 @@ +package localnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/localnetworkgateways/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/README.md new file mode 100644 index 000000000000..fabc87cdca76 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways` Documentation + +The `natgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" +``` + + +### Client Initialization + +```go +client := natgateways.NewNatGatewaysClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NatGatewaysClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") + +payload := natgateways.NatGateway{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NatGatewaysClient.Delete` + +```go +ctx := context.TODO() +id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NatGatewaysClient.Get` + +```go +ctx := context.TODO() +id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") + +read, err := client.Get(ctx, id, natgateways.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NatGatewaysClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NatGatewaysClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NatGatewaysClient.UpdateTags` + +```go +ctx := context.TODO() +id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") + +payload := natgateways.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/client.go new file mode 100644 index 000000000000..13334ca10a15 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/client.go @@ -0,0 +1,26 @@ +package natgateways + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaysClient struct { + Client *resourcemanager.Client +} + +func NewNatGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*NatGatewaysClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "natgateways", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating NatGatewaysClient: %+v", err) + } + + return &NatGatewaysClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/constants.go new file mode 100644 index 000000000000..db752936aa38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/constants.go @@ -0,0 +1,95 @@ +package natgateways + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/id_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/id_natgateway.go new file mode 100644 index 000000000000..f830790bd5d8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/id_natgateway.go @@ -0,0 +1,130 @@ +package natgateways + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NatGatewayId{}) +} + +var _ resourceids.ResourceId = &NatGatewayId{} + +// NatGatewayId is a struct representing the Resource ID for a Nat Gateway +type NatGatewayId struct { + SubscriptionId string + ResourceGroupName string + NatGatewayName string +} + +// NewNatGatewayID returns a new NatGatewayId struct +func NewNatGatewayID(subscriptionId string, resourceGroupName string, natGatewayName string) NatGatewayId { + return NatGatewayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NatGatewayName: natGatewayName, + } +} + +// ParseNatGatewayID parses 'input' into a NatGatewayId +func ParseNatGatewayID(input string) (*NatGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&NatGatewayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NatGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNatGatewayIDInsensitively parses 'input' case-insensitively into a NatGatewayId +// note: this method should only be used for API response data and not user input +func ParseNatGatewayIDInsensitively(input string) (*NatGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&NatGatewayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NatGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NatGatewayId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NatGatewayName, ok = input.Parsed["natGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "natGatewayName", input) + } + + return nil +} + +// ValidateNatGatewayID checks that 'input' can be parsed as a Nat Gateway ID +func ValidateNatGatewayID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNatGatewayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Nat Gateway ID +func (id NatGatewayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/natGateways/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NatGatewayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Nat Gateway ID +func (id NatGatewayId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNatGateways", "natGateways", "natGateways"), + resourceids.UserSpecifiedSegment("natGatewayName", "natGatewayName"), + } +} + +// String returns a human-readable description of this Nat Gateway ID +func (id NatGatewayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Nat Gateway Name: %q", id.NatGatewayName), + } + return fmt.Sprintf("Nat Gateway (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_createorupdate.go new file mode 100644 index 000000000000..34a53aff5ac4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_createorupdate.go @@ -0,0 +1,76 @@ +package natgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *NatGateway +} + +// CreateOrUpdate ... +func (c NatGatewaysClient) CreateOrUpdate(ctx context.Context, id NatGatewayId, input NatGateway) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c NatGatewaysClient) CreateOrUpdateThenPoll(ctx context.Context, id NatGatewayId, input NatGateway) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_delete.go new file mode 100644 index 000000000000..d03d142add6e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_delete.go @@ -0,0 +1,71 @@ +package natgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c NatGatewaysClient) Delete(ctx context.Context, id NatGatewayId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c NatGatewaysClient) DeleteThenPoll(ctx context.Context, id NatGatewayId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_get.go new file mode 100644 index 000000000000..3997df407c6c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_get.go @@ -0,0 +1,83 @@ +package natgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NatGateway +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c NatGatewaysClient) Get(ctx context.Context, id NatGatewayId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NatGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_list.go new file mode 100644 index 000000000000..cf6c19572e21 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_list.go @@ -0,0 +1,106 @@ +package natgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NatGateway +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NatGateway +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c NatGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/natGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NatGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c NatGatewaysClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, NatGatewayOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NatGatewaysClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate NatGatewayOperationPredicate) (result ListCompleteResult, err error) { + items := make([]NatGateway, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_listall.go new file mode 100644 index 000000000000..c417f6a9c198 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_listall.go @@ -0,0 +1,106 @@ +package natgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NatGateway +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []NatGateway +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c NatGatewaysClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/natGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NatGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c NatGatewaysClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, NatGatewayOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NatGatewaysClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate NatGatewayOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]NatGateway, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_updatetags.go new file mode 100644 index 000000000000..2480442d1cdc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_updatetags.go @@ -0,0 +1,57 @@ +package natgateways + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NatGateway +} + +// UpdateTags ... +func (c NatGatewaysClient) UpdateTags(ctx context.Context, id NatGatewayId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NatGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgateway.go new file mode 100644 index 000000000000..0aabf1ead87a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgateway.go @@ -0,0 +1,20 @@ +package natgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..7bfde80e4d90 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package natgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgatewaysku.go new file mode 100644 index 000000000000..962d747cc176 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package natgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_subresource.go new file mode 100644 index 000000000000..ea00694667d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_subresource.go @@ -0,0 +1,8 @@ +package natgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_tagsobject.go new file mode 100644 index 000000000000..c5e055c3a58e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_tagsobject.go @@ -0,0 +1,8 @@ +package natgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/predicates.go new file mode 100644 index 000000000000..c0e09cf2f077 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/predicates.go @@ -0,0 +1,37 @@ +package natgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p NatGatewayOperationPredicate) Matches(input NatGateway) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/version.go new file mode 100644 index 000000000000..6c1796fb413c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/version.go @@ -0,0 +1,10 @@ +package natgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/natgateways/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/README.md new file mode 100644 index 000000000000..ee63df441117 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups` Documentation + +The `networkgroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups" +``` + + +### Client Initialization + +```go +client := networkgroups.NewNetworkGroupsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkGroupsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") + +payload := networkgroups.NetworkGroup{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload, networkgroups.DefaultCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkGroupsClient.Delete` + +```go +ctx := context.TODO() +id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") + +if err := client.DeleteThenPoll(ctx, id, networkgroups.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkGroupsClient.Get` + +```go +ctx := context.TODO() +id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkGroupsClient.List` + +```go +ctx := context.TODO() +id := networkgroups.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +// alternatively `client.List(ctx, id, networkgroups.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, networkgroups.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/client.go new file mode 100644 index 000000000000..89171a64b6d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/client.go @@ -0,0 +1,26 @@ +package networkgroups + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkGroupsClient struct { + Client *resourcemanager.Client +} + +func NewNetworkGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkGroupsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "networkgroups", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating NetworkGroupsClient: %+v", err) + } + + return &NetworkGroupsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/constants.go new file mode 100644 index 000000000000..2418286fbc5f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/constants.go @@ -0,0 +1,98 @@ +package networkgroups + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GroupMemberType string + +const ( + GroupMemberTypeSubnet GroupMemberType = "Subnet" + GroupMemberTypeVirtualNetwork GroupMemberType = "VirtualNetwork" +) + +func PossibleValuesForGroupMemberType() []string { + return []string{ + string(GroupMemberTypeSubnet), + string(GroupMemberTypeVirtualNetwork), + } +} + +func (s *GroupMemberType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGroupMemberType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGroupMemberType(input string) (*GroupMemberType, error) { + vals := map[string]GroupMemberType{ + "subnet": GroupMemberTypeSubnet, + "virtualnetwork": GroupMemberTypeVirtualNetwork, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GroupMemberType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/id_networkgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/id_networkgroup.go new file mode 100644 index 000000000000..912a7fb25c3b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/id_networkgroup.go @@ -0,0 +1,139 @@ +package networkgroups + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkGroupId{}) +} + +var _ resourceids.ResourceId = &NetworkGroupId{} + +// NetworkGroupId is a struct representing the Resource ID for a Network Group +type NetworkGroupId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + NetworkGroupName string +} + +// NewNetworkGroupID returns a new NetworkGroupId struct +func NewNetworkGroupID(subscriptionId string, resourceGroupName string, networkManagerName string, networkGroupName string) NetworkGroupId { + return NetworkGroupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + NetworkGroupName: networkGroupName, + } +} + +// ParseNetworkGroupID parses 'input' into a NetworkGroupId +func ParseNetworkGroupID(input string) (*NetworkGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkGroupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkGroupIDInsensitively parses 'input' case-insensitively into a NetworkGroupId +// note: this method should only be used for API response data and not user input +func ParseNetworkGroupIDInsensitively(input string) (*NetworkGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkGroupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkGroupId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.NetworkGroupName, ok = input.Parsed["networkGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkGroupName", input) + } + + return nil +} + +// ValidateNetworkGroupID checks that 'input' can be parsed as a Network Group ID +func ValidateNetworkGroupID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkGroupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Group ID +func (id NetworkGroupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/networkGroups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.NetworkGroupName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Group ID +func (id NetworkGroupId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticNetworkGroups", "networkGroups", "networkGroups"), + resourceids.UserSpecifiedSegment("networkGroupName", "networkGroupName"), + } +} + +// String returns a human-readable description of this Network Group ID +func (id NetworkGroupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Network Group Name: %q", id.NetworkGroupName), + } + return fmt.Sprintf("Network Group (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/id_networkmanager.go new file mode 100644 index 000000000000..427d707220af --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/id_networkmanager.go @@ -0,0 +1,130 @@ +package networkgroups + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkManagerId{}) +} + +var _ resourceids.ResourceId = &NetworkManagerId{} + +// NetworkManagerId is a struct representing the Resource ID for a Network Manager +type NetworkManagerId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string +} + +// NewNetworkManagerID returns a new NetworkManagerId struct +func NewNetworkManagerID(subscriptionId string, resourceGroupName string, networkManagerName string) NetworkManagerId { + return NetworkManagerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + } +} + +// ParseNetworkManagerID parses 'input' into a NetworkManagerId +func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkManagerIDInsensitively parses 'input' case-insensitively into a NetworkManagerId +// note: this method should only be used for API response data and not user input +func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkManagerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + return nil +} + +// ValidateNetworkManagerID checks that 'input' can be parsed as a Network Manager ID +func ValidateNetworkManagerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkManagerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Manager ID +func (id NetworkManagerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Manager ID +func (id NetworkManagerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + } +} + +// String returns a human-readable description of this Network Manager ID +func (id NetworkManagerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + } + return fmt.Sprintf("Network Manager (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_createorupdate.go new file mode 100644 index 000000000000..89e0b5c2b0c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_createorupdate.go @@ -0,0 +1,88 @@ +package networkgroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkGroup +} + +type CreateOrUpdateOperationOptions struct { + IfMatch *string +} + +func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions { + return CreateOrUpdateOperationOptions{} +} + +func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.IfMatch != nil { + out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) + } + return &out +} + +func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// CreateOrUpdate ... +func (c NetworkGroupsClient) CreateOrUpdate(ctx context.Context, id NetworkGroupId, input NetworkGroup, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkGroup + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_delete.go new file mode 100644 index 000000000000..45f93907f238 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_delete.go @@ -0,0 +1,100 @@ +package networkgroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c NetworkGroupsClient) Delete(ctx context.Context, id NetworkGroupId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c NetworkGroupsClient) DeleteThenPoll(ctx context.Context, id NetworkGroupId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_get.go new file mode 100644 index 000000000000..503719a73d9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_get.go @@ -0,0 +1,53 @@ +package networkgroups + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkGroup +} + +// Get ... +func (c NetworkGroupsClient) Get(ctx context.Context, id NetworkGroupId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkGroup + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_list.go new file mode 100644 index 000000000000..360af82528fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_list.go @@ -0,0 +1,134 @@ +package networkgroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkGroup +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkGroup +} + +type ListOperationOptions struct { + Top *int64 +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c NetworkGroupsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/networkGroups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkGroup `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c NetworkGroupsClient) ListComplete(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, NetworkGroupOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkGroupsClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkManagerId, options ListOperationOptions, predicate NetworkGroupOperationPredicate) (result ListCompleteResult, err error) { + items := make([]NetworkGroup, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/model_networkgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/model_networkgroup.go new file mode 100644 index 000000000000..c35ded0ac80a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/model_networkgroup.go @@ -0,0 +1,17 @@ +package networkgroups + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkGroupProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/model_networkgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/model_networkgroupproperties.go new file mode 100644 index 000000000000..e964c5275117 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/model_networkgroupproperties.go @@ -0,0 +1,11 @@ +package networkgroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkGroupProperties struct { + Description *string `json:"description,omitempty"` + MemberType *GroupMemberType `json:"memberType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/predicates.go new file mode 100644 index 000000000000..621d0d7b40aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/predicates.go @@ -0,0 +1,32 @@ +package networkgroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkGroupOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p NetworkGroupOperationPredicate) Matches(input NetworkGroup) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/version.go new file mode 100644 index 000000000000..e4a848981bf7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/version.go @@ -0,0 +1,10 @@ +package networkgroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkgroups/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/README.md new file mode 100644 index 000000000000..91f00dd53780 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/README.md @@ -0,0 +1,400 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces` Documentation + +The `networkinterfaces` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" +``` + + +### Client Initialization + +```go +client := networkinterfaces.NewNetworkInterfacesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkInterfacesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +payload := networkinterfaces.NetworkInterface{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkInterfacesClient.Delete` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkInterfacesClient.Get` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +read, err := client.Get(ctx, id, networkinterfaces.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkInterfacesClient.GetCloudServiceNetworkInterface` + +```go +ctx := context.TODO() +id := networkinterfaces.NewRoleInstanceNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName", "networkInterfaceName") + +read, err := client.GetCloudServiceNetworkInterface(ctx, id, networkinterfaces.DefaultGetCloudServiceNetworkInterfaceOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkInterfacesClient.GetEffectiveRouteTable` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +// alternatively `client.GetEffectiveRouteTable(ctx, id)` can be used to do batched pagination +items, err := client.GetEffectiveRouteTableComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.GetVirtualMachineScaleSetIPConfiguration` + +```go +ctx := context.TODO() +id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName", "networkInterfaceName", "ipConfigurationName") + +read, err := client.GetVirtualMachineScaleSetIPConfiguration(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetIPConfigurationOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkInterfacesClient.GetVirtualMachineScaleSetNetworkInterface` + +```go +ctx := context.TODO() +id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName", "networkInterfaceName") + +read, err := client.GetVirtualMachineScaleSetNetworkInterface(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetNetworkInterfaceOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkInterfacesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.ListCloudServiceNetworkInterfaces` + +```go +ctx := context.TODO() +id := networkinterfaces.NewProviderCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName") + +// alternatively `client.ListCloudServiceNetworkInterfaces(ctx, id)` can be used to do batched pagination +items, err := client.ListCloudServiceNetworkInterfacesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.ListCloudServiceRoleInstanceNetworkInterfaces` + +```go +ctx := context.TODO() +id := networkinterfaces.NewRoleInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName") + +// alternatively `client.ListCloudServiceRoleInstanceNetworkInterfaces(ctx, id)` can be used to do batched pagination +items, err := client.ListCloudServiceRoleInstanceNetworkInterfacesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.ListEffectiveNetworkSecurityGroups` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +// alternatively `client.ListEffectiveNetworkSecurityGroups(ctx, id)` can be used to do batched pagination +items, err := client.ListEffectiveNetworkSecurityGroupsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.ListVirtualMachineScaleSetIPConfigurations` + +```go +ctx := context.TODO() +id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName", "networkInterfaceName") + +// alternatively `client.ListVirtualMachineScaleSetIPConfigurations(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions())` can be used to do batched pagination +items, err := client.ListVirtualMachineScaleSetIPConfigurationsComplete(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.ListVirtualMachineScaleSetNetworkInterfaces` + +```go +ctx := context.TODO() +id := networkinterfaces.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") + +// alternatively `client.ListVirtualMachineScaleSetNetworkInterfaces(ctx, id)` can be used to do batched pagination +items, err := client.ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.ListVirtualMachineScaleSetVMNetworkInterfaces` + +```go +ctx := context.TODO() +id := networkinterfaces.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName") + +// alternatively `client.ListVirtualMachineScaleSetVMNetworkInterfaces(ctx, id)` can be used to do batched pagination +items, err := client.ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.NetworkInterfaceIPConfigurationsGet` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "ipConfigurationName") + +read, err := client.NetworkInterfaceIPConfigurationsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkInterfacesClient.NetworkInterfaceIPConfigurationsList` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +// alternatively `client.NetworkInterfaceIPConfigurationsList(ctx, id)` can be used to do batched pagination +items, err := client.NetworkInterfaceIPConfigurationsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.NetworkInterfaceLoadBalancersList` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +// alternatively `client.NetworkInterfaceLoadBalancersList(ctx, id)` can be used to do batched pagination +items, err := client.NetworkInterfaceLoadBalancersListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.NetworkInterfaceTapConfigurationsCreateOrUpdate` + +```go +ctx := context.TODO() +id := networkinterfaces.NewTapConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "tapConfigurationName") + +payload := networkinterfaces.NetworkInterfaceTapConfiguration{ + // ... +} + + +if err := client.NetworkInterfaceTapConfigurationsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkInterfacesClient.NetworkInterfaceTapConfigurationsDelete` + +```go +ctx := context.TODO() +id := networkinterfaces.NewTapConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "tapConfigurationName") + +if err := client.NetworkInterfaceTapConfigurationsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkInterfacesClient.NetworkInterfaceTapConfigurationsGet` + +```go +ctx := context.TODO() +id := networkinterfaces.NewTapConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "tapConfigurationName") + +read, err := client.NetworkInterfaceTapConfigurationsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkInterfacesClient.NetworkInterfaceTapConfigurationsList` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +// alternatively `client.NetworkInterfaceTapConfigurationsList(ctx, id)` can be used to do batched pagination +items, err := client.NetworkInterfaceTapConfigurationsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.UpdateTags` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +payload := networkinterfaces.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/client.go new file mode 100644 index 000000000000..1edd1a6838a0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/client.go @@ -0,0 +1,26 @@ +package networkinterfaces + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacesClient struct { + Client *resourcemanager.Client +} + +func NewNetworkInterfacesClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkInterfacesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "networkinterfaces", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating NetworkInterfacesClient: %+v", err) + } + + return &NetworkInterfacesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/constants.go new file mode 100644 index 000000000000..cf88bae168b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/constants.go @@ -0,0 +1,1588 @@ +package networkinterfaces + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type EffectiveRouteSource string + +const ( + EffectiveRouteSourceDefault EffectiveRouteSource = "Default" + EffectiveRouteSourceUnknown EffectiveRouteSource = "Unknown" + EffectiveRouteSourceUser EffectiveRouteSource = "User" + EffectiveRouteSourceVirtualNetworkGateway EffectiveRouteSource = "VirtualNetworkGateway" +) + +func PossibleValuesForEffectiveRouteSource() []string { + return []string{ + string(EffectiveRouteSourceDefault), + string(EffectiveRouteSourceUnknown), + string(EffectiveRouteSourceUser), + string(EffectiveRouteSourceVirtualNetworkGateway), + } +} + +func (s *EffectiveRouteSource) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEffectiveRouteSource(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEffectiveRouteSource(input string) (*EffectiveRouteSource, error) { + vals := map[string]EffectiveRouteSource{ + "default": EffectiveRouteSourceDefault, + "unknown": EffectiveRouteSourceUnknown, + "user": EffectiveRouteSourceUser, + "virtualnetworkgateway": EffectiveRouteSourceVirtualNetworkGateway, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EffectiveRouteSource(input) + return &out, nil +} + +type EffectiveRouteState string + +const ( + EffectiveRouteStateActive EffectiveRouteState = "Active" + EffectiveRouteStateInvalid EffectiveRouteState = "Invalid" +) + +func PossibleValuesForEffectiveRouteState() []string { + return []string{ + string(EffectiveRouteStateActive), + string(EffectiveRouteStateInvalid), + } +} + +func (s *EffectiveRouteState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEffectiveRouteState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEffectiveRouteState(input string) (*EffectiveRouteState, error) { + vals := map[string]EffectiveRouteState{ + "active": EffectiveRouteStateActive, + "invalid": EffectiveRouteStateInvalid, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EffectiveRouteState(input) + return &out, nil +} + +type EffectiveSecurityRuleProtocol string + +const ( + EffectiveSecurityRuleProtocolAll EffectiveSecurityRuleProtocol = "All" + EffectiveSecurityRuleProtocolTcp EffectiveSecurityRuleProtocol = "Tcp" + EffectiveSecurityRuleProtocolUdp EffectiveSecurityRuleProtocol = "Udp" +) + +func PossibleValuesForEffectiveSecurityRuleProtocol() []string { + return []string{ + string(EffectiveSecurityRuleProtocolAll), + string(EffectiveSecurityRuleProtocolTcp), + string(EffectiveSecurityRuleProtocolUdp), + } +} + +func (s *EffectiveSecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEffectiveSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEffectiveSecurityRuleProtocol(input string) (*EffectiveSecurityRuleProtocol, error) { + vals := map[string]EffectiveSecurityRuleProtocol{ + "all": EffectiveSecurityRuleProtocolAll, + "tcp": EffectiveSecurityRuleProtocolTcp, + "udp": EffectiveSecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EffectiveSecurityRuleProtocol(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type LoadBalancerOutboundRuleProtocol string + +const ( + LoadBalancerOutboundRuleProtocolAll LoadBalancerOutboundRuleProtocol = "All" + LoadBalancerOutboundRuleProtocolTcp LoadBalancerOutboundRuleProtocol = "Tcp" + LoadBalancerOutboundRuleProtocolUdp LoadBalancerOutboundRuleProtocol = "Udp" +) + +func PossibleValuesForLoadBalancerOutboundRuleProtocol() []string { + return []string{ + string(LoadBalancerOutboundRuleProtocolAll), + string(LoadBalancerOutboundRuleProtocolTcp), + string(LoadBalancerOutboundRuleProtocolUdp), + } +} + +func (s *LoadBalancerOutboundRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerOutboundRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerOutboundRuleProtocol(input string) (*LoadBalancerOutboundRuleProtocol, error) { + vals := map[string]LoadBalancerOutboundRuleProtocol{ + "all": LoadBalancerOutboundRuleProtocolAll, + "tcp": LoadBalancerOutboundRuleProtocolTcp, + "udp": LoadBalancerOutboundRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerOutboundRuleProtocol(input) + return &out, nil +} + +type LoadBalancerSkuName string + +const ( + LoadBalancerSkuNameBasic LoadBalancerSkuName = "Basic" + LoadBalancerSkuNameGateway LoadBalancerSkuName = "Gateway" + LoadBalancerSkuNameStandard LoadBalancerSkuName = "Standard" +) + +func PossibleValuesForLoadBalancerSkuName() []string { + return []string{ + string(LoadBalancerSkuNameBasic), + string(LoadBalancerSkuNameGateway), + string(LoadBalancerSkuNameStandard), + } +} + +func (s *LoadBalancerSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerSkuName(input string) (*LoadBalancerSkuName, error) { + vals := map[string]LoadBalancerSkuName{ + "basic": LoadBalancerSkuNameBasic, + "gateway": LoadBalancerSkuNameGateway, + "standard": LoadBalancerSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerSkuName(input) + return &out, nil +} + +type LoadBalancerSkuTier string + +const ( + LoadBalancerSkuTierGlobal LoadBalancerSkuTier = "Global" + LoadBalancerSkuTierRegional LoadBalancerSkuTier = "Regional" +) + +func PossibleValuesForLoadBalancerSkuTier() []string { + return []string{ + string(LoadBalancerSkuTierGlobal), + string(LoadBalancerSkuTierRegional), + } +} + +func (s *LoadBalancerSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerSkuTier(input string) (*LoadBalancerSkuTier, error) { + vals := map[string]LoadBalancerSkuTier{ + "global": LoadBalancerSkuTierGlobal, + "regional": LoadBalancerSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerSkuTier(input) + return &out, nil +} + +type LoadDistribution string + +const ( + LoadDistributionDefault LoadDistribution = "Default" + LoadDistributionSourceIP LoadDistribution = "SourceIP" + LoadDistributionSourceIPProtocol LoadDistribution = "SourceIPProtocol" +) + +func PossibleValuesForLoadDistribution() []string { + return []string{ + string(LoadDistributionDefault), + string(LoadDistributionSourceIP), + string(LoadDistributionSourceIPProtocol), + } +} + +func (s *LoadDistribution) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadDistribution(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadDistribution(input string) (*LoadDistribution, error) { + vals := map[string]LoadDistribution{ + "default": LoadDistributionDefault, + "sourceip": LoadDistributionSourceIP, + "sourceipprotocol": LoadDistributionSourceIPProtocol, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadDistribution(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProbeNoHealthyBackendsBehavior string + +const ( + ProbeNoHealthyBackendsBehaviorAllProbedDown ProbeNoHealthyBackendsBehavior = "AllProbedDown" + ProbeNoHealthyBackendsBehaviorAllProbedUp ProbeNoHealthyBackendsBehavior = "AllProbedUp" +) + +func PossibleValuesForProbeNoHealthyBackendsBehavior() []string { + return []string{ + string(ProbeNoHealthyBackendsBehaviorAllProbedDown), + string(ProbeNoHealthyBackendsBehaviorAllProbedUp), + } +} + +func (s *ProbeNoHealthyBackendsBehavior) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProbeNoHealthyBackendsBehavior(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProbeNoHealthyBackendsBehavior(input string) (*ProbeNoHealthyBackendsBehavior, error) { + vals := map[string]ProbeNoHealthyBackendsBehavior{ + "allprobeddown": ProbeNoHealthyBackendsBehaviorAllProbedDown, + "allprobedup": ProbeNoHealthyBackendsBehaviorAllProbedUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProbeNoHealthyBackendsBehavior(input) + return &out, nil +} + +type ProbeProtocol string + +const ( + ProbeProtocolHTTP ProbeProtocol = "Http" + ProbeProtocolHTTPS ProbeProtocol = "Https" + ProbeProtocolTcp ProbeProtocol = "Tcp" +) + +func PossibleValuesForProbeProtocol() []string { + return []string{ + string(ProbeProtocolHTTP), + string(ProbeProtocolHTTPS), + string(ProbeProtocolTcp), + } +} + +func (s *ProbeProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProbeProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProbeProtocol(input string) (*ProbeProtocol, error) { + vals := map[string]ProbeProtocol{ + "http": ProbeProtocolHTTP, + "https": ProbeProtocolHTTPS, + "tcp": ProbeProtocolTcp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProbeProtocol(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_providercloudservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_providercloudservice.go new file mode 100644 index 000000000000..d749e9a64f37 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_providercloudservice.go @@ -0,0 +1,130 @@ +package networkinterfaces + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ProviderCloudServiceId{}) +} + +var _ resourceids.ResourceId = &ProviderCloudServiceId{} + +// ProviderCloudServiceId is a struct representing the Resource ID for a Provider Cloud Service +type ProviderCloudServiceId struct { + SubscriptionId string + ResourceGroupName string + CloudServiceName string +} + +// NewProviderCloudServiceID returns a new ProviderCloudServiceId struct +func NewProviderCloudServiceID(subscriptionId string, resourceGroupName string, cloudServiceName string) ProviderCloudServiceId { + return ProviderCloudServiceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + CloudServiceName: cloudServiceName, + } +} + +// ParseProviderCloudServiceID parses 'input' into a ProviderCloudServiceId +func ParseProviderCloudServiceID(input string) (*ProviderCloudServiceId, error) { + parser := resourceids.NewParserFromResourceIdType(&ProviderCloudServiceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ProviderCloudServiceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseProviderCloudServiceIDInsensitively parses 'input' case-insensitively into a ProviderCloudServiceId +// note: this method should only be used for API response data and not user input +func ParseProviderCloudServiceIDInsensitively(input string) (*ProviderCloudServiceId, error) { + parser := resourceids.NewParserFromResourceIdType(&ProviderCloudServiceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ProviderCloudServiceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ProviderCloudServiceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.CloudServiceName, ok = input.Parsed["cloudServiceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "cloudServiceName", input) + } + + return nil +} + +// ValidateProviderCloudServiceID checks that 'input' can be parsed as a Provider Cloud Service ID +func ValidateProviderCloudServiceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseProviderCloudServiceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Provider Cloud Service ID +func (id ProviderCloudServiceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/cloudServices/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.CloudServiceName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Provider Cloud Service ID +func (id ProviderCloudServiceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), + resourceids.StaticSegment("staticCloudServices", "cloudServices", "cloudServices"), + resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceName"), + } +} + +// String returns a human-readable description of this Provider Cloud Service ID +func (id ProviderCloudServiceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Cloud Service Name: %q", id.CloudServiceName), + } + return fmt.Sprintf("Provider Cloud Service (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_roleinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_roleinstance.go new file mode 100644 index 000000000000..49ded1dcadad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_roleinstance.go @@ -0,0 +1,139 @@ +package networkinterfaces + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RoleInstanceId{}) +} + +var _ resourceids.ResourceId = &RoleInstanceId{} + +// RoleInstanceId is a struct representing the Resource ID for a Role Instance +type RoleInstanceId struct { + SubscriptionId string + ResourceGroupName string + CloudServiceName string + RoleInstanceName string +} + +// NewRoleInstanceID returns a new RoleInstanceId struct +func NewRoleInstanceID(subscriptionId string, resourceGroupName string, cloudServiceName string, roleInstanceName string) RoleInstanceId { + return RoleInstanceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + CloudServiceName: cloudServiceName, + RoleInstanceName: roleInstanceName, + } +} + +// ParseRoleInstanceID parses 'input' into a RoleInstanceId +func ParseRoleInstanceID(input string) (*RoleInstanceId, error) { + parser := resourceids.NewParserFromResourceIdType(&RoleInstanceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RoleInstanceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRoleInstanceIDInsensitively parses 'input' case-insensitively into a RoleInstanceId +// note: this method should only be used for API response data and not user input +func ParseRoleInstanceIDInsensitively(input string) (*RoleInstanceId, error) { + parser := resourceids.NewParserFromResourceIdType(&RoleInstanceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RoleInstanceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RoleInstanceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.CloudServiceName, ok = input.Parsed["cloudServiceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "cloudServiceName", input) + } + + if id.RoleInstanceName, ok = input.Parsed["roleInstanceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "roleInstanceName", input) + } + + return nil +} + +// ValidateRoleInstanceID checks that 'input' can be parsed as a Role Instance ID +func ValidateRoleInstanceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRoleInstanceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Role Instance ID +func (id RoleInstanceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/cloudServices/%s/roleInstances/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.CloudServiceName, id.RoleInstanceName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Role Instance ID +func (id RoleInstanceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), + resourceids.StaticSegment("staticCloudServices", "cloudServices", "cloudServices"), + resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceName"), + resourceids.StaticSegment("staticRoleInstances", "roleInstances", "roleInstances"), + resourceids.UserSpecifiedSegment("roleInstanceName", "roleInstanceName"), + } +} + +// String returns a human-readable description of this Role Instance ID +func (id RoleInstanceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Cloud Service Name: %q", id.CloudServiceName), + fmt.Sprintf("Role Instance Name: %q", id.RoleInstanceName), + } + return fmt.Sprintf("Role Instance (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_roleinstancenetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_roleinstancenetworkinterface.go new file mode 100644 index 000000000000..a67d978ec638 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_roleinstancenetworkinterface.go @@ -0,0 +1,148 @@ +package networkinterfaces + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RoleInstanceNetworkInterfaceId{}) +} + +var _ resourceids.ResourceId = &RoleInstanceNetworkInterfaceId{} + +// RoleInstanceNetworkInterfaceId is a struct representing the Resource ID for a Role Instance Network Interface +type RoleInstanceNetworkInterfaceId struct { + SubscriptionId string + ResourceGroupName string + CloudServiceName string + RoleInstanceName string + NetworkInterfaceName string +} + +// NewRoleInstanceNetworkInterfaceID returns a new RoleInstanceNetworkInterfaceId struct +func NewRoleInstanceNetworkInterfaceID(subscriptionId string, resourceGroupName string, cloudServiceName string, roleInstanceName string, networkInterfaceName string) RoleInstanceNetworkInterfaceId { + return RoleInstanceNetworkInterfaceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + CloudServiceName: cloudServiceName, + RoleInstanceName: roleInstanceName, + NetworkInterfaceName: networkInterfaceName, + } +} + +// ParseRoleInstanceNetworkInterfaceID parses 'input' into a RoleInstanceNetworkInterfaceId +func ParseRoleInstanceNetworkInterfaceID(input string) (*RoleInstanceNetworkInterfaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&RoleInstanceNetworkInterfaceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RoleInstanceNetworkInterfaceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRoleInstanceNetworkInterfaceIDInsensitively parses 'input' case-insensitively into a RoleInstanceNetworkInterfaceId +// note: this method should only be used for API response data and not user input +func ParseRoleInstanceNetworkInterfaceIDInsensitively(input string) (*RoleInstanceNetworkInterfaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&RoleInstanceNetworkInterfaceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RoleInstanceNetworkInterfaceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RoleInstanceNetworkInterfaceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.CloudServiceName, ok = input.Parsed["cloudServiceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "cloudServiceName", input) + } + + if id.RoleInstanceName, ok = input.Parsed["roleInstanceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "roleInstanceName", input) + } + + if id.NetworkInterfaceName, ok = input.Parsed["networkInterfaceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkInterfaceName", input) + } + + return nil +} + +// ValidateRoleInstanceNetworkInterfaceID checks that 'input' can be parsed as a Role Instance Network Interface ID +func ValidateRoleInstanceNetworkInterfaceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRoleInstanceNetworkInterfaceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Role Instance Network Interface ID +func (id RoleInstanceNetworkInterfaceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/cloudServices/%s/roleInstances/%s/networkInterfaces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.CloudServiceName, id.RoleInstanceName, id.NetworkInterfaceName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Role Instance Network Interface ID +func (id RoleInstanceNetworkInterfaceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), + resourceids.StaticSegment("staticCloudServices", "cloudServices", "cloudServices"), + resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceName"), + resourceids.StaticSegment("staticRoleInstances", "roleInstances", "roleInstances"), + resourceids.UserSpecifiedSegment("roleInstanceName", "roleInstanceName"), + resourceids.StaticSegment("staticNetworkInterfaces", "networkInterfaces", "networkInterfaces"), + resourceids.UserSpecifiedSegment("networkInterfaceName", "networkInterfaceName"), + } +} + +// String returns a human-readable description of this Role Instance Network Interface ID +func (id RoleInstanceNetworkInterfaceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Cloud Service Name: %q", id.CloudServiceName), + fmt.Sprintf("Role Instance Name: %q", id.RoleInstanceName), + fmt.Sprintf("Network Interface Name: %q", id.NetworkInterfaceName), + } + return fmt.Sprintf("Role Instance Network Interface (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_tapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_tapconfiguration.go new file mode 100644 index 000000000000..b2916c52d2d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_tapconfiguration.go @@ -0,0 +1,139 @@ +package networkinterfaces + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&TapConfigurationId{}) +} + +var _ resourceids.ResourceId = &TapConfigurationId{} + +// TapConfigurationId is a struct representing the Resource ID for a Tap Configuration +type TapConfigurationId struct { + SubscriptionId string + ResourceGroupName string + NetworkInterfaceName string + TapConfigurationName string +} + +// NewTapConfigurationID returns a new TapConfigurationId struct +func NewTapConfigurationID(subscriptionId string, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) TapConfigurationId { + return TapConfigurationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkInterfaceName: networkInterfaceName, + TapConfigurationName: tapConfigurationName, + } +} + +// ParseTapConfigurationID parses 'input' into a TapConfigurationId +func ParseTapConfigurationID(input string) (*TapConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&TapConfigurationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := TapConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseTapConfigurationIDInsensitively parses 'input' case-insensitively into a TapConfigurationId +// note: this method should only be used for API response data and not user input +func ParseTapConfigurationIDInsensitively(input string) (*TapConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&TapConfigurationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := TapConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *TapConfigurationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkInterfaceName, ok = input.Parsed["networkInterfaceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkInterfaceName", input) + } + + if id.TapConfigurationName, ok = input.Parsed["tapConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "tapConfigurationName", input) + } + + return nil +} + +// ValidateTapConfigurationID checks that 'input' can be parsed as a Tap Configuration ID +func ValidateTapConfigurationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseTapConfigurationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Tap Configuration ID +func (id TapConfigurationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkInterfaces/%s/tapConfigurations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkInterfaceName, id.TapConfigurationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Tap Configuration ID +func (id TapConfigurationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkInterfaces", "networkInterfaces", "networkInterfaces"), + resourceids.UserSpecifiedSegment("networkInterfaceName", "networkInterfaceName"), + resourceids.StaticSegment("staticTapConfigurations", "tapConfigurations", "tapConfigurations"), + resourceids.UserSpecifiedSegment("tapConfigurationName", "tapConfigurationName"), + } +} + +// String returns a human-readable description of this Tap Configuration ID +func (id TapConfigurationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Interface Name: %q", id.NetworkInterfaceName), + fmt.Sprintf("Tap Configuration Name: %q", id.TapConfigurationName), + } + return fmt.Sprintf("Tap Configuration (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_virtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_virtualmachine.go new file mode 100644 index 000000000000..ad24ef16d810 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_virtualmachine.go @@ -0,0 +1,139 @@ +package networkinterfaces + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VirtualMachineId{}) +} + +var _ resourceids.ResourceId = &VirtualMachineId{} + +// VirtualMachineId is a struct representing the Resource ID for a Virtual Machine +type VirtualMachineId struct { + SubscriptionId string + ResourceGroupName string + VirtualMachineScaleSetName string + VirtualMachineName string +} + +// NewVirtualMachineID returns a new VirtualMachineId struct +func NewVirtualMachineID(subscriptionId string, resourceGroupName string, virtualMachineScaleSetName string, virtualMachineName string) VirtualMachineId { + return VirtualMachineId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualMachineScaleSetName: virtualMachineScaleSetName, + VirtualMachineName: virtualMachineName, + } +} + +// ParseVirtualMachineID parses 'input' into a VirtualMachineId +func ParseVirtualMachineID(input string) (*VirtualMachineId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualMachineId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualMachineId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVirtualMachineIDInsensitively parses 'input' case-insensitively into a VirtualMachineId +// note: this method should only be used for API response data and not user input +func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualMachineId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualMachineId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VirtualMachineId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualMachineScaleSetName, ok = input.Parsed["virtualMachineScaleSetName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualMachineScaleSetName", input) + } + + if id.VirtualMachineName, ok = input.Parsed["virtualMachineName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualMachineName", input) + } + + return nil +} + +// ValidateVirtualMachineID checks that 'input' can be parsed as a Virtual Machine ID +func ValidateVirtualMachineID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVirtualMachineID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Virtual Machine ID +func (id VirtualMachineId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/virtualMachineScaleSets/%s/virtualMachines/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualMachineScaleSetName, id.VirtualMachineName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Virtual Machine ID +func (id VirtualMachineId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), + resourceids.StaticSegment("staticVirtualMachineScaleSets", "virtualMachineScaleSets", "virtualMachineScaleSets"), + resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetName"), + resourceids.StaticSegment("staticVirtualMachines", "virtualMachines", "virtualMachines"), + resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineName"), + } +} + +// String returns a human-readable description of this Virtual Machine ID +func (id VirtualMachineId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Machine Scale Set Name: %q", id.VirtualMachineScaleSetName), + fmt.Sprintf("Virtual Machine Name: %q", id.VirtualMachineName), + } + return fmt.Sprintf("Virtual Machine (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_virtualmachinescaleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_virtualmachinescaleset.go new file mode 100644 index 000000000000..63abd7e5d6f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_virtualmachinescaleset.go @@ -0,0 +1,130 @@ +package networkinterfaces + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VirtualMachineScaleSetId{}) +} + +var _ resourceids.ResourceId = &VirtualMachineScaleSetId{} + +// VirtualMachineScaleSetId is a struct representing the Resource ID for a Virtual Machine Scale Set +type VirtualMachineScaleSetId struct { + SubscriptionId string + ResourceGroupName string + VirtualMachineScaleSetName string +} + +// NewVirtualMachineScaleSetID returns a new VirtualMachineScaleSetId struct +func NewVirtualMachineScaleSetID(subscriptionId string, resourceGroupName string, virtualMachineScaleSetName string) VirtualMachineScaleSetId { + return VirtualMachineScaleSetId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualMachineScaleSetName: virtualMachineScaleSetName, + } +} + +// ParseVirtualMachineScaleSetID parses 'input' into a VirtualMachineScaleSetId +func ParseVirtualMachineScaleSetID(input string) (*VirtualMachineScaleSetId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualMachineScaleSetId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualMachineScaleSetId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVirtualMachineScaleSetIDInsensitively parses 'input' case-insensitively into a VirtualMachineScaleSetId +// note: this method should only be used for API response data and not user input +func ParseVirtualMachineScaleSetIDInsensitively(input string) (*VirtualMachineScaleSetId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualMachineScaleSetId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualMachineScaleSetId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VirtualMachineScaleSetId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualMachineScaleSetName, ok = input.Parsed["virtualMachineScaleSetName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualMachineScaleSetName", input) + } + + return nil +} + +// ValidateVirtualMachineScaleSetID checks that 'input' can be parsed as a Virtual Machine Scale Set ID +func ValidateVirtualMachineScaleSetID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVirtualMachineScaleSetID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Virtual Machine Scale Set ID +func (id VirtualMachineScaleSetId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/virtualMachineScaleSets/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualMachineScaleSetName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Virtual Machine Scale Set ID +func (id VirtualMachineScaleSetId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), + resourceids.StaticSegment("staticVirtualMachineScaleSets", "virtualMachineScaleSets", "virtualMachineScaleSets"), + resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetName"), + } +} + +// String returns a human-readable description of this Virtual Machine Scale Set ID +func (id VirtualMachineScaleSetId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Machine Scale Set Name: %q", id.VirtualMachineScaleSetName), + } + return fmt.Sprintf("Virtual Machine Scale Set (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_createorupdate.go new file mode 100644 index 000000000000..5686c1db5f00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_createorupdate.go @@ -0,0 +1,76 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *NetworkInterface +} + +// CreateOrUpdate ... +func (c NetworkInterfacesClient) CreateOrUpdate(ctx context.Context, id commonids.NetworkInterfaceId, input NetworkInterface) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c NetworkInterfacesClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.NetworkInterfaceId, input NetworkInterface) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_delete.go new file mode 100644 index 000000000000..99f476e3fa99 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_delete.go @@ -0,0 +1,72 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c NetworkInterfacesClient) Delete(ctx context.Context, id commonids.NetworkInterfaceId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c NetworkInterfacesClient) DeleteThenPoll(ctx context.Context, id commonids.NetworkInterfaceId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_get.go new file mode 100644 index 000000000000..5a73b976c2c8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_get.go @@ -0,0 +1,84 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkInterface +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c NetworkInterfacesClient) Get(ctx context.Context, id commonids.NetworkInterfaceId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkInterface + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getcloudservicenetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getcloudservicenetworkinterface.go new file mode 100644 index 000000000000..be2ca6e2e399 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getcloudservicenetworkinterface.go @@ -0,0 +1,83 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetCloudServiceNetworkInterfaceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkInterface +} + +type GetCloudServiceNetworkInterfaceOperationOptions struct { + Expand *string +} + +func DefaultGetCloudServiceNetworkInterfaceOperationOptions() GetCloudServiceNetworkInterfaceOperationOptions { + return GetCloudServiceNetworkInterfaceOperationOptions{} +} + +func (o GetCloudServiceNetworkInterfaceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetCloudServiceNetworkInterfaceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetCloudServiceNetworkInterfaceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// GetCloudServiceNetworkInterface ... +func (c NetworkInterfacesClient) GetCloudServiceNetworkInterface(ctx context.Context, id RoleInstanceNetworkInterfaceId, options GetCloudServiceNetworkInterfaceOperationOptions) (result GetCloudServiceNetworkInterfaceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkInterface + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_geteffectiveroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_geteffectiveroutetable.go new file mode 100644 index 000000000000..34e568863a24 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_geteffectiveroutetable.go @@ -0,0 +1,90 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetEffectiveRouteTableOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *[]EffectiveRoute +} + +type GetEffectiveRouteTableCompleteResult struct { + LatestHttpResponse *http.Response + Items []EffectiveRoute +} + +type GetEffectiveRouteTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetEffectiveRouteTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// GetEffectiveRouteTable ... +func (c NetworkInterfacesClient) GetEffectiveRouteTable(ctx context.Context, id commonids.NetworkInterfaceId) (result GetEffectiveRouteTableOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Pager: &GetEffectiveRouteTableCustomPager{}, + Path: fmt.Sprintf("%s/effectiveRouteTable", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetEffectiveRouteTableThenPoll performs GetEffectiveRouteTable then polls until it's completed +func (c NetworkInterfacesClient) GetEffectiveRouteTableThenPoll(ctx context.Context, id commonids.NetworkInterfaceId) error { + result, err := c.GetEffectiveRouteTable(ctx, id) + if err != nil { + return fmt.Errorf("performing GetEffectiveRouteTable: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetEffectiveRouteTable: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go new file mode 100644 index 000000000000..88f82856ae85 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go @@ -0,0 +1,84 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetVirtualMachineScaleSetIPConfigurationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkInterfaceIPConfiguration +} + +type GetVirtualMachineScaleSetIPConfigurationOperationOptions struct { + Expand *string +} + +func DefaultGetVirtualMachineScaleSetIPConfigurationOperationOptions() GetVirtualMachineScaleSetIPConfigurationOperationOptions { + return GetVirtualMachineScaleSetIPConfigurationOperationOptions{} +} + +func (o GetVirtualMachineScaleSetIPConfigurationOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetVirtualMachineScaleSetIPConfigurationOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetVirtualMachineScaleSetIPConfigurationOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// GetVirtualMachineScaleSetIPConfiguration ... +func (c NetworkInterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, id commonids.VirtualMachineScaleSetIPConfigurationId, options GetVirtualMachineScaleSetIPConfigurationOperationOptions) (result GetVirtualMachineScaleSetIPConfigurationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkInterfaceIPConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go new file mode 100644 index 000000000000..4bad16270bad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go @@ -0,0 +1,84 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetVirtualMachineScaleSetNetworkInterfaceOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkInterface +} + +type GetVirtualMachineScaleSetNetworkInterfaceOperationOptions struct { + Expand *string +} + +func DefaultGetVirtualMachineScaleSetNetworkInterfaceOperationOptions() GetVirtualMachineScaleSetNetworkInterfaceOperationOptions { + return GetVirtualMachineScaleSetNetworkInterfaceOperationOptions{} +} + +func (o GetVirtualMachineScaleSetNetworkInterfaceOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetVirtualMachineScaleSetNetworkInterfaceOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetVirtualMachineScaleSetNetworkInterfaceOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// GetVirtualMachineScaleSetNetworkInterface ... +func (c NetworkInterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, id commonids.VirtualMachineScaleSetNetworkInterfaceId, options GetVirtualMachineScaleSetNetworkInterfaceOperationOptions) (result GetVirtualMachineScaleSetNetworkInterfaceOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkInterface + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_list.go new file mode 100644 index 000000000000..aba8bcae0a04 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_list.go @@ -0,0 +1,106 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkInterface +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkInterface +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c NetworkInterfacesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkInterfaces", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkInterface `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c NetworkInterfacesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, NetworkInterfaceOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkInterfacesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate NetworkInterfaceOperationPredicate) (result ListCompleteResult, err error) { + items := make([]NetworkInterface, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listall.go new file mode 100644 index 000000000000..aee96a1ced3d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listall.go @@ -0,0 +1,106 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkInterface +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkInterface +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c NetworkInterfacesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkInterfaces", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkInterface `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c NetworkInterfacesClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, NetworkInterfaceOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkInterfacesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate NetworkInterfaceOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]NetworkInterface, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go new file mode 100644 index 000000000000..7a16382102e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go @@ -0,0 +1,105 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListCloudServiceNetworkInterfacesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkInterface +} + +type ListCloudServiceNetworkInterfacesCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkInterface +} + +type ListCloudServiceNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCloudServiceNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListCloudServiceNetworkInterfaces ... +func (c NetworkInterfacesClient) ListCloudServiceNetworkInterfaces(ctx context.Context, id ProviderCloudServiceId) (result ListCloudServiceNetworkInterfacesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCloudServiceNetworkInterfacesCustomPager{}, + Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkInterface `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListCloudServiceNetworkInterfacesComplete retrieves all the results into a single object +func (c NetworkInterfacesClient) ListCloudServiceNetworkInterfacesComplete(ctx context.Context, id ProviderCloudServiceId) (ListCloudServiceNetworkInterfacesCompleteResult, error) { + return c.ListCloudServiceNetworkInterfacesCompleteMatchingPredicate(ctx, id, NetworkInterfaceOperationPredicate{}) +} + +// ListCloudServiceNetworkInterfacesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkInterfacesClient) ListCloudServiceNetworkInterfacesCompleteMatchingPredicate(ctx context.Context, id ProviderCloudServiceId, predicate NetworkInterfaceOperationPredicate) (result ListCloudServiceNetworkInterfacesCompleteResult, err error) { + items := make([]NetworkInterface, 0) + + resp, err := c.ListCloudServiceNetworkInterfaces(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCloudServiceNetworkInterfacesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go new file mode 100644 index 000000000000..f4ae2efc9872 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go @@ -0,0 +1,105 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListCloudServiceRoleInstanceNetworkInterfacesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkInterface +} + +type ListCloudServiceRoleInstanceNetworkInterfacesCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkInterface +} + +type ListCloudServiceRoleInstanceNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCloudServiceRoleInstanceNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListCloudServiceRoleInstanceNetworkInterfaces ... +func (c NetworkInterfacesClient) ListCloudServiceRoleInstanceNetworkInterfaces(ctx context.Context, id RoleInstanceId) (result ListCloudServiceRoleInstanceNetworkInterfacesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCloudServiceRoleInstanceNetworkInterfacesCustomPager{}, + Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkInterface `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListCloudServiceRoleInstanceNetworkInterfacesComplete retrieves all the results into a single object +func (c NetworkInterfacesClient) ListCloudServiceRoleInstanceNetworkInterfacesComplete(ctx context.Context, id RoleInstanceId) (ListCloudServiceRoleInstanceNetworkInterfacesCompleteResult, error) { + return c.ListCloudServiceRoleInstanceNetworkInterfacesCompleteMatchingPredicate(ctx, id, NetworkInterfaceOperationPredicate{}) +} + +// ListCloudServiceRoleInstanceNetworkInterfacesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkInterfacesClient) ListCloudServiceRoleInstanceNetworkInterfacesCompleteMatchingPredicate(ctx context.Context, id RoleInstanceId, predicate NetworkInterfaceOperationPredicate) (result ListCloudServiceRoleInstanceNetworkInterfacesCompleteResult, err error) { + items := make([]NetworkInterface, 0) + + resp, err := c.ListCloudServiceRoleInstanceNetworkInterfaces(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCloudServiceRoleInstanceNetworkInterfacesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go new file mode 100644 index 000000000000..8316911280d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go @@ -0,0 +1,90 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListEffectiveNetworkSecurityGroupsOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *[]EffectiveNetworkSecurityGroup +} + +type ListEffectiveNetworkSecurityGroupsCompleteResult struct { + LatestHttpResponse *http.Response + Items []EffectiveNetworkSecurityGroup +} + +type ListEffectiveNetworkSecurityGroupsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListEffectiveNetworkSecurityGroupsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListEffectiveNetworkSecurityGroups ... +func (c NetworkInterfacesClient) ListEffectiveNetworkSecurityGroups(ctx context.Context, id commonids.NetworkInterfaceId) (result ListEffectiveNetworkSecurityGroupsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Pager: &ListEffectiveNetworkSecurityGroupsCustomPager{}, + Path: fmt.Sprintf("%s/effectiveNetworkSecurityGroups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ListEffectiveNetworkSecurityGroupsThenPoll performs ListEffectiveNetworkSecurityGroups then polls until it's completed +func (c NetworkInterfacesClient) ListEffectiveNetworkSecurityGroupsThenPoll(ctx context.Context, id commonids.NetworkInterfaceId) error { + result, err := c.ListEffectiveNetworkSecurityGroups(ctx, id) + if err != nil { + return fmt.Errorf("performing ListEffectiveNetworkSecurityGroups: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ListEffectiveNetworkSecurityGroups: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go new file mode 100644 index 000000000000..8c1c944f6c81 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go @@ -0,0 +1,135 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListVirtualMachineScaleSetIPConfigurationsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkInterfaceIPConfiguration +} + +type ListVirtualMachineScaleSetIPConfigurationsCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkInterfaceIPConfiguration +} + +type ListVirtualMachineScaleSetIPConfigurationsOperationOptions struct { + Expand *string +} + +func DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions() ListVirtualMachineScaleSetIPConfigurationsOperationOptions { + return ListVirtualMachineScaleSetIPConfigurationsOperationOptions{} +} + +func (o ListVirtualMachineScaleSetIPConfigurationsOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListVirtualMachineScaleSetIPConfigurationsOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListVirtualMachineScaleSetIPConfigurationsOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +type ListVirtualMachineScaleSetIPConfigurationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachineScaleSetIPConfigurationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListVirtualMachineScaleSetIPConfigurations ... +func (c NetworkInterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, id commonids.VirtualMachineScaleSetNetworkInterfaceId, options ListVirtualMachineScaleSetIPConfigurationsOperationOptions) (result ListVirtualMachineScaleSetIPConfigurationsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListVirtualMachineScaleSetIPConfigurationsCustomPager{}, + Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkInterfaceIPConfiguration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListVirtualMachineScaleSetIPConfigurationsComplete retrieves all the results into a single object +func (c NetworkInterfacesClient) ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, id commonids.VirtualMachineScaleSetNetworkInterfaceId, options ListVirtualMachineScaleSetIPConfigurationsOperationOptions) (ListVirtualMachineScaleSetIPConfigurationsCompleteResult, error) { + return c.ListVirtualMachineScaleSetIPConfigurationsCompleteMatchingPredicate(ctx, id, options, NetworkInterfaceIPConfigurationOperationPredicate{}) +} + +// ListVirtualMachineScaleSetIPConfigurationsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkInterfacesClient) ListVirtualMachineScaleSetIPConfigurationsCompleteMatchingPredicate(ctx context.Context, id commonids.VirtualMachineScaleSetNetworkInterfaceId, options ListVirtualMachineScaleSetIPConfigurationsOperationOptions, predicate NetworkInterfaceIPConfigurationOperationPredicate) (result ListVirtualMachineScaleSetIPConfigurationsCompleteResult, err error) { + items := make([]NetworkInterfaceIPConfiguration, 0) + + resp, err := c.ListVirtualMachineScaleSetIPConfigurations(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListVirtualMachineScaleSetIPConfigurationsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go new file mode 100644 index 000000000000..968b1c8bbd5e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go @@ -0,0 +1,105 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListVirtualMachineScaleSetNetworkInterfacesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkInterface +} + +type ListVirtualMachineScaleSetNetworkInterfacesCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkInterface +} + +type ListVirtualMachineScaleSetNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachineScaleSetNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListVirtualMachineScaleSetNetworkInterfaces ... +func (c NetworkInterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, id VirtualMachineScaleSetId) (result ListVirtualMachineScaleSetNetworkInterfacesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListVirtualMachineScaleSetNetworkInterfacesCustomPager{}, + Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkInterface `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListVirtualMachineScaleSetNetworkInterfacesComplete retrieves all the results into a single object +func (c NetworkInterfacesClient) ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, id VirtualMachineScaleSetId) (ListVirtualMachineScaleSetNetworkInterfacesCompleteResult, error) { + return c.ListVirtualMachineScaleSetNetworkInterfacesCompleteMatchingPredicate(ctx, id, NetworkInterfaceOperationPredicate{}) +} + +// ListVirtualMachineScaleSetNetworkInterfacesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkInterfacesClient) ListVirtualMachineScaleSetNetworkInterfacesCompleteMatchingPredicate(ctx context.Context, id VirtualMachineScaleSetId, predicate NetworkInterfaceOperationPredicate) (result ListVirtualMachineScaleSetNetworkInterfacesCompleteResult, err error) { + items := make([]NetworkInterface, 0) + + resp, err := c.ListVirtualMachineScaleSetNetworkInterfaces(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListVirtualMachineScaleSetNetworkInterfacesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go new file mode 100644 index 000000000000..433357587d30 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go @@ -0,0 +1,105 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListVirtualMachineScaleSetVMNetworkInterfacesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkInterface +} + +type ListVirtualMachineScaleSetVMNetworkInterfacesCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkInterface +} + +type ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListVirtualMachineScaleSetVMNetworkInterfaces ... +func (c NetworkInterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, id VirtualMachineId) (result ListVirtualMachineScaleSetVMNetworkInterfacesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager{}, + Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkInterface `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListVirtualMachineScaleSetVMNetworkInterfacesComplete retrieves all the results into a single object +func (c NetworkInterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, id VirtualMachineId) (ListVirtualMachineScaleSetVMNetworkInterfacesCompleteResult, error) { + return c.ListVirtualMachineScaleSetVMNetworkInterfacesCompleteMatchingPredicate(ctx, id, NetworkInterfaceOperationPredicate{}) +} + +// ListVirtualMachineScaleSetVMNetworkInterfacesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkInterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfacesCompleteMatchingPredicate(ctx context.Context, id VirtualMachineId, predicate NetworkInterfaceOperationPredicate) (result ListVirtualMachineScaleSetVMNetworkInterfacesCompleteResult, err error) { + items := make([]NetworkInterface, 0) + + resp, err := c.ListVirtualMachineScaleSetVMNetworkInterfaces(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListVirtualMachineScaleSetVMNetworkInterfacesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go new file mode 100644 index 000000000000..7134fa1ab75b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go @@ -0,0 +1,54 @@ +package networkinterfaces + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkInterfaceIPConfiguration +} + +// NetworkInterfaceIPConfigurationsGet ... +func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsGet(ctx context.Context, id commonids.NetworkInterfaceIPConfigurationId) (result NetworkInterfaceIPConfigurationsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkInterfaceIPConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go new file mode 100644 index 000000000000..00a6c20f94c0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go @@ -0,0 +1,106 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkInterfaceIPConfiguration +} + +type NetworkInterfaceIPConfigurationsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkInterfaceIPConfiguration +} + +type NetworkInterfaceIPConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkInterfaceIPConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// NetworkInterfaceIPConfigurationsList ... +func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceIPConfigurationsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &NetworkInterfaceIPConfigurationsListCustomPager{}, + Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkInterfaceIPConfiguration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// NetworkInterfaceIPConfigurationsListComplete retrieves all the results into a single object +func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsListComplete(ctx context.Context, id commonids.NetworkInterfaceId) (NetworkInterfaceIPConfigurationsListCompleteResult, error) { + return c.NetworkInterfaceIPConfigurationsListCompleteMatchingPredicate(ctx, id, NetworkInterfaceIPConfigurationOperationPredicate{}) +} + +// NetworkInterfaceIPConfigurationsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsListCompleteMatchingPredicate(ctx context.Context, id commonids.NetworkInterfaceId, predicate NetworkInterfaceIPConfigurationOperationPredicate) (result NetworkInterfaceIPConfigurationsListCompleteResult, err error) { + items := make([]NetworkInterfaceIPConfiguration, 0) + + resp, err := c.NetworkInterfaceIPConfigurationsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = NetworkInterfaceIPConfigurationsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go new file mode 100644 index 000000000000..ee4b73b4d8dc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go @@ -0,0 +1,106 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceLoadBalancersListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]LoadBalancer +} + +type NetworkInterfaceLoadBalancersListCompleteResult struct { + LatestHttpResponse *http.Response + Items []LoadBalancer +} + +type NetworkInterfaceLoadBalancersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkInterfaceLoadBalancersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// NetworkInterfaceLoadBalancersList ... +func (c NetworkInterfacesClient) NetworkInterfaceLoadBalancersList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceLoadBalancersListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &NetworkInterfaceLoadBalancersListCustomPager{}, + Path: fmt.Sprintf("%s/loadBalancers", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]LoadBalancer `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// NetworkInterfaceLoadBalancersListComplete retrieves all the results into a single object +func (c NetworkInterfacesClient) NetworkInterfaceLoadBalancersListComplete(ctx context.Context, id commonids.NetworkInterfaceId) (NetworkInterfaceLoadBalancersListCompleteResult, error) { + return c.NetworkInterfaceLoadBalancersListCompleteMatchingPredicate(ctx, id, LoadBalancerOperationPredicate{}) +} + +// NetworkInterfaceLoadBalancersListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkInterfacesClient) NetworkInterfaceLoadBalancersListCompleteMatchingPredicate(ctx context.Context, id commonids.NetworkInterfaceId, predicate LoadBalancerOperationPredicate) (result NetworkInterfaceLoadBalancersListCompleteResult, err error) { + items := make([]LoadBalancer, 0) + + resp, err := c.NetworkInterfaceLoadBalancersList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = NetworkInterfaceLoadBalancersListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationscreateorupdate.go new file mode 100644 index 000000000000..fcece2ea104a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationscreateorupdate.go @@ -0,0 +1,75 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationsCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *NetworkInterfaceTapConfiguration +} + +// NetworkInterfaceTapConfigurationsCreateOrUpdate ... +func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsCreateOrUpdate(ctx context.Context, id TapConfigurationId, input NetworkInterfaceTapConfiguration) (result NetworkInterfaceTapConfigurationsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// NetworkInterfaceTapConfigurationsCreateOrUpdateThenPoll performs NetworkInterfaceTapConfigurationsCreateOrUpdate then polls until it's completed +func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsCreateOrUpdateThenPoll(ctx context.Context, id TapConfigurationId, input NetworkInterfaceTapConfiguration) error { + result, err := c.NetworkInterfaceTapConfigurationsCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing NetworkInterfaceTapConfigurationsCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after NetworkInterfaceTapConfigurationsCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationsdelete.go new file mode 100644 index 000000000000..263815906b2e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationsdelete.go @@ -0,0 +1,71 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationsDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// NetworkInterfaceTapConfigurationsDelete ... +func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsDelete(ctx context.Context, id TapConfigurationId) (result NetworkInterfaceTapConfigurationsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// NetworkInterfaceTapConfigurationsDeleteThenPoll performs NetworkInterfaceTapConfigurationsDelete then polls until it's completed +func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsDeleteThenPoll(ctx context.Context, id TapConfigurationId) error { + result, err := c.NetworkInterfaceTapConfigurationsDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing NetworkInterfaceTapConfigurationsDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after NetworkInterfaceTapConfigurationsDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go new file mode 100644 index 000000000000..004d700dbcde --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go @@ -0,0 +1,53 @@ +package networkinterfaces + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkInterfaceTapConfiguration +} + +// NetworkInterfaceTapConfigurationsGet ... +func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsGet(ctx context.Context, id TapConfigurationId) (result NetworkInterfaceTapConfigurationsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkInterfaceTapConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go new file mode 100644 index 000000000000..96b11107f622 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go @@ -0,0 +1,106 @@ +package networkinterfaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkInterfaceTapConfiguration +} + +type NetworkInterfaceTapConfigurationsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkInterfaceTapConfiguration +} + +type NetworkInterfaceTapConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkInterfaceTapConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// NetworkInterfaceTapConfigurationsList ... +func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceTapConfigurationsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &NetworkInterfaceTapConfigurationsListCustomPager{}, + Path: fmt.Sprintf("%s/tapConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkInterfaceTapConfiguration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// NetworkInterfaceTapConfigurationsListComplete retrieves all the results into a single object +func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsListComplete(ctx context.Context, id commonids.NetworkInterfaceId) (NetworkInterfaceTapConfigurationsListCompleteResult, error) { + return c.NetworkInterfaceTapConfigurationsListCompleteMatchingPredicate(ctx, id, NetworkInterfaceTapConfigurationOperationPredicate{}) +} + +// NetworkInterfaceTapConfigurationsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsListCompleteMatchingPredicate(ctx context.Context, id commonids.NetworkInterfaceId, predicate NetworkInterfaceTapConfigurationOperationPredicate) (result NetworkInterfaceTapConfigurationsListCompleteResult, err error) { + items := make([]NetworkInterfaceTapConfiguration, 0) + + resp, err := c.NetworkInterfaceTapConfigurationsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = NetworkInterfaceTapConfigurationsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_updatetags.go new file mode 100644 index 000000000000..4365d182729d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_updatetags.go @@ -0,0 +1,58 @@ +package networkinterfaces + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkInterface +} + +// UpdateTags ... +func (c NetworkInterfacesClient) UpdateTags(ctx context.Context, id commonids.NetworkInterfaceId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkInterface + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..126f8350b099 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..15c656ad0573 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..34912a8fcbd9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..3b83d83c7c96 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..dd810dfed2cb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..2948e0c794af --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..aa06b33fbe18 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_backendaddresspool.go new file mode 100644 index 000000000000..bd329cce1275 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..7c5d918e43ab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..e0be4a6b6f6d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ddossettings.go new file mode 100644 index 000000000000..4902360d6891 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ddossettings.go @@ -0,0 +1,9 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_delegation.go new file mode 100644 index 000000000000..5fb9effbb1bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_delegation.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecuritygroup.go new file mode 100644 index 000000000000..5c66ee3a9b59 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecuritygroup.go @@ -0,0 +1,11 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EffectiveNetworkSecurityGroup struct { + Association *EffectiveNetworkSecurityGroupAssociation `json:"association,omitempty"` + EffectiveSecurityRules *[]EffectiveNetworkSecurityRule `json:"effectiveSecurityRules,omitempty"` + NetworkSecurityGroup *SubResource `json:"networkSecurityGroup,omitempty"` + TagMap *map[string][]string `json:"tagMap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecuritygroupassociation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecuritygroupassociation.go new file mode 100644 index 000000000000..3c6248c32c9b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecuritygroupassociation.go @@ -0,0 +1,10 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EffectiveNetworkSecurityGroupAssociation struct { + NetworkInterface *SubResource `json:"networkInterface,omitempty"` + NetworkManager *SubResource `json:"networkManager,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecurityrule.go new file mode 100644 index 000000000000..9c9dd92e515a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecurityrule.go @@ -0,0 +1,22 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EffectiveNetworkSecurityRule struct { + Access *SecurityRuleAccess `json:"access,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction *SecurityRuleDirection `json:"direction,omitempty"` + ExpandedDestinationAddressPrefix *[]string `json:"expandedDestinationAddressPrefix,omitempty"` + ExpandedSourceAddressPrefix *[]string `json:"expandedSourceAddressPrefix,omitempty"` + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + Protocol *EffectiveSecurityRuleProtocol `json:"protocol,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectiveroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectiveroute.go new file mode 100644 index 000000000000..aa9dac678101 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectiveroute.go @@ -0,0 +1,14 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EffectiveRoute struct { + AddressPrefix *[]string `json:"addressPrefix,omitempty"` + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + Name *string `json:"name,omitempty"` + NextHopIPAddress *[]string `json:"nextHopIpAddress,omitempty"` + NextHopType *RouteNextHopType `json:"nextHopType,omitempty"` + Source *EffectiveRouteSource `json:"source,omitempty"` + State *EffectiveRouteState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlog.go new file mode 100644 index 000000000000..6c8ab9073ec9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlog.go @@ -0,0 +1,19 @@ +package networkinterfaces + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlogformatparameters.go new file mode 100644 index 000000000000..43abd6c15328 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..d59ce6dc4b69 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_frontendipconfiguration.go new file mode 100644 index 000000000000..35c07477d523 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package networkinterfaces + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..174b1d44662b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..8562c4824fba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatpool.go new file mode 100644 index 000000000000..a16659ffff03 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatpool.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatpoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatpoolpropertiesformat.go new file mode 100644 index 000000000000..4586e6ec1dcc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatpoolpropertiesformat.go @@ -0,0 +1,16 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatPoolPropertiesFormat struct { + BackendPort int64 `json:"backendPort"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPortRangeEnd int64 `json:"frontendPortRangeEnd"` + FrontendPortRangeStart int64 `json:"frontendPortRangeStart"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol TransportProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatrule.go new file mode 100644 index 000000000000..a41993b3c8d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..9a882cfef220 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfiguration.go new file mode 100644 index 000000000000..c1294125f572 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..b5f591fbc35a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..0027cc6adbe8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..1338f55c4e1a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_iptag.go new file mode 100644 index 000000000000..c2dc282ad0ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_iptag.go @@ -0,0 +1,9 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancer.go new file mode 100644 index 000000000000..aaa7bd9d0867 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancer.go @@ -0,0 +1,20 @@ +package networkinterfaces + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancer struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *LoadBalancerPropertiesFormat `json:"properties,omitempty"` + Sku *LoadBalancerSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..58da623122f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..192b497dd13d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerpropertiesformat.go new file mode 100644 index 000000000000..b0c27be8bab4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerpropertiesformat.go @@ -0,0 +1,16 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerPropertiesFormat struct { + BackendAddressPools *[]BackendAddressPool `json:"backendAddressPools,omitempty"` + FrontendIPConfigurations *[]FrontendIPConfiguration `json:"frontendIPConfigurations,omitempty"` + InboundNatPools *[]InboundNatPool `json:"inboundNatPools,omitempty"` + InboundNatRules *[]InboundNatRule `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]LoadBalancingRule `json:"loadBalancingRules,omitempty"` + OutboundRules *[]OutboundRule `json:"outboundRules,omitempty"` + Probes *[]Probe `json:"probes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancersku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancersku.go new file mode 100644 index 000000000000..e10cf68701b3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancersku.go @@ -0,0 +1,9 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerSku struct { + Name *LoadBalancerSkuName `json:"name,omitempty"` + Tier *LoadBalancerSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancingrule.go new file mode 100644 index 000000000000..5ca9aca81f1d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancingrule.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancingRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *LoadBalancingRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancingrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancingrulepropertiesformat.go new file mode 100644 index 000000000000..79fe798b88d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancingrulepropertiesformat.go @@ -0,0 +1,20 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancingRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendAddressPools *[]SubResource `json:"backendAddressPools,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + DisableOutboundSnat *bool `json:"disableOutboundSnat,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort int64 `json:"frontendPort"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LoadDistribution *LoadDistribution `json:"loadDistribution,omitempty"` + Probe *SubResource `json:"probe,omitempty"` + Protocol TransportProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgateway.go new file mode 100644 index 000000000000..7fe571d7a74e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgateway.go @@ -0,0 +1,20 @@ +package networkinterfaces + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..9da53fae58a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgatewaysku.go new file mode 100644 index 000000000000..aff4514b5e74 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natruleportmapping.go new file mode 100644 index 000000000000..05068ac7e2f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterface.go new file mode 100644 index 000000000000..286c9562aaf5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterface.go @@ -0,0 +1,19 @@ +package networkinterfaces + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..af3e4e75519e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..ca861570a5d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..abcc6fdfc5b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..86aea8f6e8e8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..3fd3da2e6e6f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..e67a81616a9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..72010ae8dac8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networksecuritygroup.go new file mode 100644 index 000000000000..05ed91fcd1a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..ce8a013b83a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_outboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_outboundrule.go new file mode 100644 index 000000000000..2afc56da4ccf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_outboundrule.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OutboundRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *OutboundRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_outboundrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_outboundrulepropertiesformat.go new file mode 100644 index 000000000000..4cc4e2f50878 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_outboundrulepropertiesformat.go @@ -0,0 +1,14 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OutboundRulePropertiesFormat struct { + AllocatedOutboundPorts *int64 `json:"allocatedOutboundPorts,omitempty"` + BackendAddressPool SubResource `json:"backendAddressPool"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfigurations []SubResource `json:"frontendIPConfigurations"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol LoadBalancerOutboundRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpoint.go new file mode 100644 index 000000000000..da5835bccbad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpoint.go @@ -0,0 +1,19 @@ +package networkinterfaces + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointconnection.go new file mode 100644 index 000000000000..81a07962195b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..eb2204732ecc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..085039e25e25 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..802747eb32e1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointproperties.go new file mode 100644 index 000000000000..ea496b7d032a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkservice.go new file mode 100644 index 000000000000..7dcd5f985b90 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package networkinterfaces + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..5e32cbfab8a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..355c3d254f25 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..367b48d2fd6c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..3893fd72b021 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..e1c0b0da64c1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..d17376760a66 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_probe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_probe.go new file mode 100644 index 000000000000..d935d63eee68 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_probe.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Probe struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ProbePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_probepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_probepropertiesformat.go new file mode 100644 index 000000000000..6c1f4d34dc82 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_probepropertiesformat.go @@ -0,0 +1,16 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProbePropertiesFormat struct { + IntervalInSeconds *int64 `json:"intervalInSeconds,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + NoHealthyBackendsBehavior *ProbeNoHealthyBackendsBehavior `json:"noHealthyBackendsBehavior,omitempty"` + NumberOfProbes *int64 `json:"numberOfProbes,omitempty"` + Port int64 `json:"port"` + ProbeThreshold *int64 `json:"probeThreshold,omitempty"` + Protocol ProbeProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestPath *string `json:"requestPath,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddress.go new file mode 100644 index 000000000000..e89fe49804bd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddress.go @@ -0,0 +1,22 @@ +package networkinterfaces + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..9a6ffc1106af --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..b13efec6d421 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddresssku.go new file mode 100644 index 000000000000..4f6513789bc3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourcenavigationlink.go new file mode 100644 index 000000000000..4a3f135d98d0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..aa59d57de520 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourceset.go new file mode 100644 index 000000000000..48356d239d8f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourceset.go @@ -0,0 +1,8 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..fe69c5c33894 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_route.go new file mode 100644 index 000000000000..8dd1c1c5cbe3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_route.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routepropertiesformat.go new file mode 100644 index 000000000000..b031c9a871e1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routetable.go new file mode 100644 index 000000000000..31df96e7b738 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routetable.go @@ -0,0 +1,14 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..3c524eb8fe1d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_securityrule.go new file mode 100644 index 000000000000..af9210ebc2f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_securityrule.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..0ff4ba975dc6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceassociationlink.go new file mode 100644 index 000000000000..88ebd302e705 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..538945df5d3c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..8444d0d495d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..c77c2e3460a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..6f523978f5bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..ddd9db6fe470 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..2692b80393d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..f7a4a8f30f47 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subnet.go new file mode 100644 index 000000000000..47a0e306b4a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subnet.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..e21a76de2c69 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subresource.go new file mode 100644 index 000000000000..28fa931dbee6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subresource.go @@ -0,0 +1,8 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_tagsobject.go new file mode 100644 index 000000000000..32bf2f0b066f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_tagsobject.go @@ -0,0 +1,8 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..bd0b0fa5fe00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..302f5bfcc4d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_virtualnetworktap.go new file mode 100644 index 000000000000..315bcaef0690 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..90ce2721f151 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/predicates.go new file mode 100644 index 000000000000..c58ed4a328b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/predicates.go @@ -0,0 +1,152 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EffectiveNetworkSecurityGroupOperationPredicate struct { +} + +func (p EffectiveNetworkSecurityGroupOperationPredicate) Matches(input EffectiveNetworkSecurityGroup) bool { + + return true +} + +type EffectiveRouteOperationPredicate struct { + DisableBgpRoutePropagation *bool + Name *string +} + +func (p EffectiveRouteOperationPredicate) Matches(input EffectiveRoute) bool { + + if p.DisableBgpRoutePropagation != nil && (input.DisableBgpRoutePropagation == nil || *p.DisableBgpRoutePropagation != *input.DisableBgpRoutePropagation) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + return true +} + +type LoadBalancerOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p LoadBalancerOperationPredicate) Matches(input LoadBalancer) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type NetworkInterfaceOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p NetworkInterfaceOperationPredicate) Matches(input NetworkInterface) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type NetworkInterfaceIPConfigurationOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p NetworkInterfaceIPConfigurationOperationPredicate) Matches(input NetworkInterfaceIPConfiguration) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type NetworkInterfaceTapConfigurationOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p NetworkInterfaceTapConfigurationOperationPredicate) Matches(input NetworkInterfaceTapConfiguration) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/version.go new file mode 100644 index 000000000000..3c8f768c357e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/version.go @@ -0,0 +1,10 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkinterfaces/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/README.md similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/README.md index fe78b15b36a0..c76456311eb3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations` Documentation -The `networkmanageractiveconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `networkmanageractiveconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/constants.go new file mode 100644 index 000000000000..2ff4add6d9d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/constants.go @@ -0,0 +1,318 @@ +package networkmanageractiveconfigurations + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressPrefixType string + +const ( + AddressPrefixTypeIPPrefix AddressPrefixType = "IPPrefix" + AddressPrefixTypeServiceTag AddressPrefixType = "ServiceTag" +) + +func PossibleValuesForAddressPrefixType() []string { + return []string{ + string(AddressPrefixTypeIPPrefix), + string(AddressPrefixTypeServiceTag), + } +} + +func (s *AddressPrefixType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAddressPrefixType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAddressPrefixType(input string) (*AddressPrefixType, error) { + vals := map[string]AddressPrefixType{ + "ipprefix": AddressPrefixTypeIPPrefix, + "servicetag": AddressPrefixTypeServiceTag, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AddressPrefixType(input) + return &out, nil +} + +type EffectiveAdminRuleKind string + +const ( + EffectiveAdminRuleKindCustom EffectiveAdminRuleKind = "Custom" + EffectiveAdminRuleKindDefault EffectiveAdminRuleKind = "Default" +) + +func PossibleValuesForEffectiveAdminRuleKind() []string { + return []string{ + string(EffectiveAdminRuleKindCustom), + string(EffectiveAdminRuleKindDefault), + } +} + +func (s *EffectiveAdminRuleKind) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEffectiveAdminRuleKind(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEffectiveAdminRuleKind(input string) (*EffectiveAdminRuleKind, error) { + vals := map[string]EffectiveAdminRuleKind{ + "custom": EffectiveAdminRuleKindCustom, + "default": EffectiveAdminRuleKindDefault, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EffectiveAdminRuleKind(input) + return &out, nil +} + +type GroupMemberType string + +const ( + GroupMemberTypeSubnet GroupMemberType = "Subnet" + GroupMemberTypeVirtualNetwork GroupMemberType = "VirtualNetwork" +) + +func PossibleValuesForGroupMemberType() []string { + return []string{ + string(GroupMemberTypeSubnet), + string(GroupMemberTypeVirtualNetwork), + } +} + +func (s *GroupMemberType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGroupMemberType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGroupMemberType(input string) (*GroupMemberType, error) { + vals := map[string]GroupMemberType{ + "subnet": GroupMemberTypeSubnet, + "virtualnetwork": GroupMemberTypeVirtualNetwork, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GroupMemberType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type SecurityConfigurationRuleAccess string + +const ( + SecurityConfigurationRuleAccessAllow SecurityConfigurationRuleAccess = "Allow" + SecurityConfigurationRuleAccessAlwaysAllow SecurityConfigurationRuleAccess = "AlwaysAllow" + SecurityConfigurationRuleAccessDeny SecurityConfigurationRuleAccess = "Deny" +) + +func PossibleValuesForSecurityConfigurationRuleAccess() []string { + return []string{ + string(SecurityConfigurationRuleAccessAllow), + string(SecurityConfigurationRuleAccessAlwaysAllow), + string(SecurityConfigurationRuleAccessDeny), + } +} + +func (s *SecurityConfigurationRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityConfigurationRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityConfigurationRuleAccess(input string) (*SecurityConfigurationRuleAccess, error) { + vals := map[string]SecurityConfigurationRuleAccess{ + "allow": SecurityConfigurationRuleAccessAllow, + "alwaysallow": SecurityConfigurationRuleAccessAlwaysAllow, + "deny": SecurityConfigurationRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityConfigurationRuleAccess(input) + return &out, nil +} + +type SecurityConfigurationRuleDirection string + +const ( + SecurityConfigurationRuleDirectionInbound SecurityConfigurationRuleDirection = "Inbound" + SecurityConfigurationRuleDirectionOutbound SecurityConfigurationRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityConfigurationRuleDirection() []string { + return []string{ + string(SecurityConfigurationRuleDirectionInbound), + string(SecurityConfigurationRuleDirectionOutbound), + } +} + +func (s *SecurityConfigurationRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityConfigurationRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityConfigurationRuleDirection(input string) (*SecurityConfigurationRuleDirection, error) { + vals := map[string]SecurityConfigurationRuleDirection{ + "inbound": SecurityConfigurationRuleDirectionInbound, + "outbound": SecurityConfigurationRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityConfigurationRuleDirection(input) + return &out, nil +} + +type SecurityConfigurationRuleProtocol string + +const ( + SecurityConfigurationRuleProtocolAh SecurityConfigurationRuleProtocol = "Ah" + SecurityConfigurationRuleProtocolAny SecurityConfigurationRuleProtocol = "Any" + SecurityConfigurationRuleProtocolEsp SecurityConfigurationRuleProtocol = "Esp" + SecurityConfigurationRuleProtocolIcmp SecurityConfigurationRuleProtocol = "Icmp" + SecurityConfigurationRuleProtocolTcp SecurityConfigurationRuleProtocol = "Tcp" + SecurityConfigurationRuleProtocolUdp SecurityConfigurationRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityConfigurationRuleProtocol() []string { + return []string{ + string(SecurityConfigurationRuleProtocolAh), + string(SecurityConfigurationRuleProtocolAny), + string(SecurityConfigurationRuleProtocolEsp), + string(SecurityConfigurationRuleProtocolIcmp), + string(SecurityConfigurationRuleProtocolTcp), + string(SecurityConfigurationRuleProtocolUdp), + } +} + +func (s *SecurityConfigurationRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityConfigurationRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityConfigurationRuleProtocol(input string) (*SecurityConfigurationRuleProtocol, error) { + vals := map[string]SecurityConfigurationRuleProtocol{ + "ah": SecurityConfigurationRuleProtocolAh, + "any": SecurityConfigurationRuleProtocolAny, + "esp": SecurityConfigurationRuleProtocolEsp, + "icmp": SecurityConfigurationRuleProtocolIcmp, + "tcp": SecurityConfigurationRuleProtocolTcp, + "udp": SecurityConfigurationRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityConfigurationRuleProtocol(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/id_networkmanager.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/id_networkmanager.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/id_networkmanager.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/method_listactivesecurityadminrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/method_listactivesecurityadminrules.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/method_listactivesecurityadminrules.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/method_listactivesecurityadminrules.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activebasesecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activebasesecurityadminrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activebasesecurityadminrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activebasesecurityadminrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activeconfigurationparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activeconfigurationparameter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activeconfigurationparameter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activeconfigurationparameter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activedefaultsecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activedefaultsecurityadminrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activedefaultsecurityadminrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activedefaultsecurityadminrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activesecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activesecurityadminrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activesecurityadminrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activesecurityadminrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activesecurityadminruleslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activesecurityadminruleslistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activesecurityadminruleslistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activesecurityadminruleslistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_addressprefixitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_addressprefixitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_addressprefixitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_addressprefixitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_adminpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_adminpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_adminpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_adminpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_configurationgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_configurationgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_configurationgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_configurationgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_defaultadminpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_defaultadminpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_defaultadminpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_defaultadminpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_networkgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_networkgroupproperties.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_networkgroupproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_networkgroupproperties.go index ed891dc195e2..0866d4d439a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_networkgroupproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_networkgroupproperties.go @@ -5,6 +5,7 @@ package networkmanageractiveconfigurations type NetworkGroupProperties struct { Description *string `json:"description,omitempty"` + MemberType *GroupMemberType `json:"memberType,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` ResourceGuid *string `json:"resourceGuid,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_networkmanagersecuritygroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_networkmanagersecuritygroupitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_networkmanagersecuritygroupitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_networkmanagersecuritygroupitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/version.go similarity index 84% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/version.go index 70d5cea35a07..3190ba7ffec7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/version.go @@ -3,8 +3,8 @@ package networkmanageractiveconfigurations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/networkmanageractiveconfigurations/2023-11-01" + return "hashicorp/go-azure-sdk/networkmanageractiveconfigurations/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/README.md similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/README.md index 6422cf625665..bc9d53f34ff0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations` Documentation -The `networkmanageractiveconnectivityconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `networkmanageractiveconnectivityconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/constants.go new file mode 100644 index 000000000000..642ecd4a0bd7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/constants.go @@ -0,0 +1,303 @@ +package networkmanageractiveconnectivityconfigurations + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectivityTopology string + +const ( + ConnectivityTopologyHubAndSpoke ConnectivityTopology = "HubAndSpoke" + ConnectivityTopologyMesh ConnectivityTopology = "Mesh" +) + +func PossibleValuesForConnectivityTopology() []string { + return []string{ + string(ConnectivityTopologyHubAndSpoke), + string(ConnectivityTopologyMesh), + } +} + +func (s *ConnectivityTopology) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseConnectivityTopology(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseConnectivityTopology(input string) (*ConnectivityTopology, error) { + vals := map[string]ConnectivityTopology{ + "hubandspoke": ConnectivityTopologyHubAndSpoke, + "mesh": ConnectivityTopologyMesh, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ConnectivityTopology(input) + return &out, nil +} + +type DeleteExistingPeering string + +const ( + DeleteExistingPeeringFalse DeleteExistingPeering = "False" + DeleteExistingPeeringTrue DeleteExistingPeering = "True" +) + +func PossibleValuesForDeleteExistingPeering() []string { + return []string{ + string(DeleteExistingPeeringFalse), + string(DeleteExistingPeeringTrue), + } +} + +func (s *DeleteExistingPeering) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteExistingPeering(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteExistingPeering(input string) (*DeleteExistingPeering, error) { + vals := map[string]DeleteExistingPeering{ + "false": DeleteExistingPeeringFalse, + "true": DeleteExistingPeeringTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteExistingPeering(input) + return &out, nil +} + +type GroupConnectivity string + +const ( + GroupConnectivityDirectlyConnected GroupConnectivity = "DirectlyConnected" + GroupConnectivityNone GroupConnectivity = "None" +) + +func PossibleValuesForGroupConnectivity() []string { + return []string{ + string(GroupConnectivityDirectlyConnected), + string(GroupConnectivityNone), + } +} + +func (s *GroupConnectivity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGroupConnectivity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGroupConnectivity(input string) (*GroupConnectivity, error) { + vals := map[string]GroupConnectivity{ + "directlyconnected": GroupConnectivityDirectlyConnected, + "none": GroupConnectivityNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GroupConnectivity(input) + return &out, nil +} + +type GroupMemberType string + +const ( + GroupMemberTypeSubnet GroupMemberType = "Subnet" + GroupMemberTypeVirtualNetwork GroupMemberType = "VirtualNetwork" +) + +func PossibleValuesForGroupMemberType() []string { + return []string{ + string(GroupMemberTypeSubnet), + string(GroupMemberTypeVirtualNetwork), + } +} + +func (s *GroupMemberType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGroupMemberType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGroupMemberType(input string) (*GroupMemberType, error) { + vals := map[string]GroupMemberType{ + "subnet": GroupMemberTypeSubnet, + "virtualnetwork": GroupMemberTypeVirtualNetwork, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GroupMemberType(input) + return &out, nil +} + +type IsGlobal string + +const ( + IsGlobalFalse IsGlobal = "False" + IsGlobalTrue IsGlobal = "True" +) + +func PossibleValuesForIsGlobal() []string { + return []string{ + string(IsGlobalFalse), + string(IsGlobalTrue), + } +} + +func (s *IsGlobal) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIsGlobal(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIsGlobal(input string) (*IsGlobal, error) { + vals := map[string]IsGlobal{ + "false": IsGlobalFalse, + "true": IsGlobalTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IsGlobal(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type UseHubGateway string + +const ( + UseHubGatewayFalse UseHubGateway = "False" + UseHubGatewayTrue UseHubGateway = "True" +) + +func PossibleValuesForUseHubGateway() []string { + return []string{ + string(UseHubGatewayFalse), + string(UseHubGatewayTrue), + } +} + +func (s *UseHubGateway) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseUseHubGateway(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseUseHubGateway(input string) (*UseHubGateway, error) { + vals := map[string]UseHubGateway{ + "false": UseHubGatewayFalse, + "true": UseHubGatewayTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := UseHubGateway(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/id_networkmanager.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/id_networkmanager.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/id_networkmanager.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/method_listactiveconnectivityconfigurations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/method_listactiveconnectivityconfigurations.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/method_listactiveconnectivityconfigurations.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/method_listactiveconnectivityconfigurations.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_activeconfigurationparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_activeconfigurationparameter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_activeconfigurationparameter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_activeconfigurationparameter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfigurationslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfigurationslistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfigurationslistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfigurationslistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_configurationgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_configurationgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_configurationgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_configurationgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_connectivityconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_connectivityconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_connectivityconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_connectivityconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_connectivitygroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_connectivitygroupitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_connectivitygroupitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_connectivitygroupitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_hub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_hub.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_hub.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_hub.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_networkgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_networkgroupproperties.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_networkgroupproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_networkgroupproperties.go index 46f87e5058e0..3f0564d6b8da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_networkgroupproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_networkgroupproperties.go @@ -5,6 +5,7 @@ package networkmanageractiveconnectivityconfigurations type NetworkGroupProperties struct { Description *string `json:"description,omitempty"` + MemberType *GroupMemberType `json:"memberType,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` ResourceGuid *string `json:"resourceGuid,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/version.go similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/version.go index 613c8e17ca89..677451994f25 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/version.go @@ -3,8 +3,8 @@ package networkmanageractiveconnectivityconfigurations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/networkmanageractiveconnectivityconfigurations/2023-11-01" + return "hashicorp/go-azure-sdk/networkmanageractiveconnectivityconfigurations/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/README.md new file mode 100644 index 000000000000..a62c906a66ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/README.md @@ -0,0 +1,161 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections` Documentation + +The `networkmanagerconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections" +``` + + +### Client Initialization + +```go +client := networkmanagerconnections.NewNetworkManagerConnectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkManagerConnectionsClient.ManagementGroupNetworkManagerConnectionsCreateOrUpdate` + +```go +ctx := context.TODO() +id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupId", "networkManagerConnectionName") + +payload := networkmanagerconnections.NetworkManagerConnection{ + // ... +} + + +read, err := client.ManagementGroupNetworkManagerConnectionsCreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagerConnectionsClient.ManagementGroupNetworkManagerConnectionsDelete` + +```go +ctx := context.TODO() +id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupId", "networkManagerConnectionName") + +read, err := client.ManagementGroupNetworkManagerConnectionsDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagerConnectionsClient.ManagementGroupNetworkManagerConnectionsGet` + +```go +ctx := context.TODO() +id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupId", "networkManagerConnectionName") + +read, err := client.ManagementGroupNetworkManagerConnectionsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagerConnectionsClient.ManagementGroupNetworkManagerConnectionsList` + +```go +ctx := context.TODO() +id := commonids.NewManagementGroupID("groupId") + +// alternatively `client.ManagementGroupNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination +items, err := client.ManagementGroupNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkManagerConnectionsClient.SubscriptionNetworkManagerConnectionsCreateOrUpdate` + +```go +ctx := context.TODO() +id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionName") + +payload := networkmanagerconnections.NetworkManagerConnection{ + // ... +} + + +read, err := client.SubscriptionNetworkManagerConnectionsCreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagerConnectionsClient.SubscriptionNetworkManagerConnectionsDelete` + +```go +ctx := context.TODO() +id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionName") + +read, err := client.SubscriptionNetworkManagerConnectionsDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagerConnectionsClient.SubscriptionNetworkManagerConnectionsGet` + +```go +ctx := context.TODO() +id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionName") + +read, err := client.SubscriptionNetworkManagerConnectionsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagerConnectionsClient.SubscriptionNetworkManagerConnectionsList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.SubscriptionNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultSubscriptionNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination +items, err := client.SubscriptionNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultSubscriptionNetworkManagerConnectionsListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/client.go new file mode 100644 index 000000000000..809f42be8790 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/client.go @@ -0,0 +1,26 @@ +package networkmanagerconnections + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerConnectionsClient struct { + Client *resourcemanager.Client +} + +func NewNetworkManagerConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkManagerConnectionsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "networkmanagerconnections", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating NetworkManagerConnectionsClient: %+v", err) + } + + return &NetworkManagerConnectionsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/constants.go new file mode 100644 index 000000000000..47d6adfd2071 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/constants.go @@ -0,0 +1,60 @@ +package networkmanagerconnections + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ScopeConnectionState string + +const ( + ScopeConnectionStateConflict ScopeConnectionState = "Conflict" + ScopeConnectionStateConnected ScopeConnectionState = "Connected" + ScopeConnectionStatePending ScopeConnectionState = "Pending" + ScopeConnectionStateRejected ScopeConnectionState = "Rejected" + ScopeConnectionStateRevoked ScopeConnectionState = "Revoked" +) + +func PossibleValuesForScopeConnectionState() []string { + return []string{ + string(ScopeConnectionStateConflict), + string(ScopeConnectionStateConnected), + string(ScopeConnectionStatePending), + string(ScopeConnectionStateRejected), + string(ScopeConnectionStateRevoked), + } +} + +func (s *ScopeConnectionState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseScopeConnectionState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseScopeConnectionState(input string) (*ScopeConnectionState, error) { + vals := map[string]ScopeConnectionState{ + "conflict": ScopeConnectionStateConflict, + "connected": ScopeConnectionStateConnected, + "pending": ScopeConnectionStatePending, + "rejected": ScopeConnectionStateRejected, + "revoked": ScopeConnectionStateRevoked, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ScopeConnectionState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/id_networkmanagerconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/id_networkmanagerconnection.go new file mode 100644 index 000000000000..a3050ef7c66a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/id_networkmanagerconnection.go @@ -0,0 +1,121 @@ +package networkmanagerconnections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkManagerConnectionId{}) +} + +var _ resourceids.ResourceId = &NetworkManagerConnectionId{} + +// NetworkManagerConnectionId is a struct representing the Resource ID for a Network Manager Connection +type NetworkManagerConnectionId struct { + SubscriptionId string + NetworkManagerConnectionName string +} + +// NewNetworkManagerConnectionID returns a new NetworkManagerConnectionId struct +func NewNetworkManagerConnectionID(subscriptionId string, networkManagerConnectionName string) NetworkManagerConnectionId { + return NetworkManagerConnectionId{ + SubscriptionId: subscriptionId, + NetworkManagerConnectionName: networkManagerConnectionName, + } +} + +// ParseNetworkManagerConnectionID parses 'input' into a NetworkManagerConnectionId +func ParseNetworkManagerConnectionID(input string) (*NetworkManagerConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkManagerConnectionIDInsensitively parses 'input' case-insensitively into a NetworkManagerConnectionId +// note: this method should only be used for API response data and not user input +func ParseNetworkManagerConnectionIDInsensitively(input string) (*NetworkManagerConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkManagerConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.NetworkManagerConnectionName, ok = input.Parsed["networkManagerConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerConnectionName", input) + } + + return nil +} + +// ValidateNetworkManagerConnectionID checks that 'input' can be parsed as a Network Manager Connection ID +func ValidateNetworkManagerConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkManagerConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Manager Connection ID +func (id NetworkManagerConnectionId) ID() string { + fmtString := "/subscriptions/%s/providers/Microsoft.Network/networkManagerConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.NetworkManagerConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Manager Connection ID +func (id NetworkManagerConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagerConnections", "networkManagerConnections", "networkManagerConnections"), + resourceids.UserSpecifiedSegment("networkManagerConnectionName", "networkManagerConnectionName"), + } +} + +// String returns a human-readable description of this Network Manager Connection ID +func (id NetworkManagerConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Network Manager Connection Name: %q", id.NetworkManagerConnectionName), + } + return fmt.Sprintf("Network Manager Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/id_providers2networkmanagerconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/id_providers2networkmanagerconnection.go new file mode 100644 index 000000000000..a0bb33d6bc5b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/id_providers2networkmanagerconnection.go @@ -0,0 +1,123 @@ +package networkmanagerconnections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&Providers2NetworkManagerConnectionId{}) +} + +var _ resourceids.ResourceId = &Providers2NetworkManagerConnectionId{} + +// Providers2NetworkManagerConnectionId is a struct representing the Resource ID for a Providers 2 Network Manager Connection +type Providers2NetworkManagerConnectionId struct { + ManagementGroupId string + NetworkManagerConnectionName string +} + +// NewProviders2NetworkManagerConnectionID returns a new Providers2NetworkManagerConnectionId struct +func NewProviders2NetworkManagerConnectionID(managementGroupId string, networkManagerConnectionName string) Providers2NetworkManagerConnectionId { + return Providers2NetworkManagerConnectionId{ + ManagementGroupId: managementGroupId, + NetworkManagerConnectionName: networkManagerConnectionName, + } +} + +// ParseProviders2NetworkManagerConnectionID parses 'input' into a Providers2NetworkManagerConnectionId +func ParseProviders2NetworkManagerConnectionID(input string) (*Providers2NetworkManagerConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&Providers2NetworkManagerConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := Providers2NetworkManagerConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseProviders2NetworkManagerConnectionIDInsensitively parses 'input' case-insensitively into a Providers2NetworkManagerConnectionId +// note: this method should only be used for API response data and not user input +func ParseProviders2NetworkManagerConnectionIDInsensitively(input string) (*Providers2NetworkManagerConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&Providers2NetworkManagerConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := Providers2NetworkManagerConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *Providers2NetworkManagerConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.ManagementGroupId, ok = input.Parsed["managementGroupId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "managementGroupId", input) + } + + if id.NetworkManagerConnectionName, ok = input.Parsed["networkManagerConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerConnectionName", input) + } + + return nil +} + +// ValidateProviders2NetworkManagerConnectionID checks that 'input' can be parsed as a Providers 2 Network Manager Connection ID +func ValidateProviders2NetworkManagerConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseProviders2NetworkManagerConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Providers 2 Network Manager Connection ID +func (id Providers2NetworkManagerConnectionId) ID() string { + fmtString := "/providers/Microsoft.Management/managementGroups/%s/providers/Microsoft.Network/networkManagerConnections/%s" + return fmt.Sprintf(fmtString, id.ManagementGroupId, id.NetworkManagerConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Providers 2 Network Manager Connection ID +func (id Providers2NetworkManagerConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftManagement", "Microsoft.Management", "Microsoft.Management"), + resourceids.StaticSegment("staticManagementGroups", "managementGroups", "managementGroups"), + resourceids.UserSpecifiedSegment("managementGroupId", "managementGroupId"), + resourceids.StaticSegment("staticProviders2", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagerConnections", "networkManagerConnections", "networkManagerConnections"), + resourceids.UserSpecifiedSegment("networkManagerConnectionName", "networkManagerConnectionName"), + } +} + +// String returns a human-readable description of this Providers 2 Network Manager Connection ID +func (id Providers2NetworkManagerConnectionId) String() string { + components := []string{ + fmt.Sprintf("Management Group: %q", id.ManagementGroupId), + fmt.Sprintf("Network Manager Connection Name: %q", id.NetworkManagerConnectionName), + } + return fmt.Sprintf("Providers 2 Network Manager Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionscreateorupdate.go new file mode 100644 index 000000000000..116a8f3da7a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionscreateorupdate.go @@ -0,0 +1,58 @@ +package networkmanagerconnections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagementGroupNetworkManagerConnectionsCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkManagerConnection +} + +// ManagementGroupNetworkManagerConnectionsCreateOrUpdate ... +func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnectionsCreateOrUpdate(ctx context.Context, id Providers2NetworkManagerConnectionId, input NetworkManagerConnection) (result ManagementGroupNetworkManagerConnectionsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkManagerConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsdelete.go new file mode 100644 index 000000000000..83c0e93f95b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsdelete.go @@ -0,0 +1,47 @@ +package networkmanagerconnections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagementGroupNetworkManagerConnectionsDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// ManagementGroupNetworkManagerConnectionsDelete ... +func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnectionsDelete(ctx context.Context, id Providers2NetworkManagerConnectionId) (result ManagementGroupNetworkManagerConnectionsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsget.go new file mode 100644 index 000000000000..c4f20220fbe6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsget.go @@ -0,0 +1,53 @@ +package networkmanagerconnections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagementGroupNetworkManagerConnectionsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkManagerConnection +} + +// ManagementGroupNetworkManagerConnectionsGet ... +func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnectionsGet(ctx context.Context, id Providers2NetworkManagerConnectionId) (result ManagementGroupNetworkManagerConnectionsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkManagerConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go new file mode 100644 index 000000000000..d8b68e162ab2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go @@ -0,0 +1,135 @@ +package networkmanagerconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagementGroupNetworkManagerConnectionsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkManagerConnection +} + +type ManagementGroupNetworkManagerConnectionsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkManagerConnection +} + +type ManagementGroupNetworkManagerConnectionsListOperationOptions struct { + Top *int64 +} + +func DefaultManagementGroupNetworkManagerConnectionsListOperationOptions() ManagementGroupNetworkManagerConnectionsListOperationOptions { + return ManagementGroupNetworkManagerConnectionsListOperationOptions{} +} + +func (o ManagementGroupNetworkManagerConnectionsListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ManagementGroupNetworkManagerConnectionsListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ManagementGroupNetworkManagerConnectionsListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ManagementGroupNetworkManagerConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ManagementGroupNetworkManagerConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ManagementGroupNetworkManagerConnectionsList ... +func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnectionsList(ctx context.Context, id commonids.ManagementGroupId, options ManagementGroupNetworkManagerConnectionsListOperationOptions) (result ManagementGroupNetworkManagerConnectionsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ManagementGroupNetworkManagerConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkManagerConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ManagementGroupNetworkManagerConnectionsListComplete retrieves all the results into a single object +func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnectionsListComplete(ctx context.Context, id commonids.ManagementGroupId, options ManagementGroupNetworkManagerConnectionsListOperationOptions) (ManagementGroupNetworkManagerConnectionsListCompleteResult, error) { + return c.ManagementGroupNetworkManagerConnectionsListCompleteMatchingPredicate(ctx, id, options, NetworkManagerConnectionOperationPredicate{}) +} + +// ManagementGroupNetworkManagerConnectionsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnectionsListCompleteMatchingPredicate(ctx context.Context, id commonids.ManagementGroupId, options ManagementGroupNetworkManagerConnectionsListOperationOptions, predicate NetworkManagerConnectionOperationPredicate) (result ManagementGroupNetworkManagerConnectionsListCompleteResult, err error) { + items := make([]NetworkManagerConnection, 0) + + resp, err := c.ManagementGroupNetworkManagerConnectionsList(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ManagementGroupNetworkManagerConnectionsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionscreateorupdate.go new file mode 100644 index 000000000000..2d07c99634c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionscreateorupdate.go @@ -0,0 +1,58 @@ +package networkmanagerconnections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubscriptionNetworkManagerConnectionsCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkManagerConnection +} + +// SubscriptionNetworkManagerConnectionsCreateOrUpdate ... +func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsCreateOrUpdate(ctx context.Context, id NetworkManagerConnectionId, input NetworkManagerConnection) (result SubscriptionNetworkManagerConnectionsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkManagerConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsdelete.go new file mode 100644 index 000000000000..43ebf8bb5e48 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsdelete.go @@ -0,0 +1,47 @@ +package networkmanagerconnections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubscriptionNetworkManagerConnectionsDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// SubscriptionNetworkManagerConnectionsDelete ... +func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsDelete(ctx context.Context, id NetworkManagerConnectionId) (result SubscriptionNetworkManagerConnectionsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsget.go new file mode 100644 index 000000000000..4b89ca96feb0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsget.go @@ -0,0 +1,53 @@ +package networkmanagerconnections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubscriptionNetworkManagerConnectionsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkManagerConnection +} + +// SubscriptionNetworkManagerConnectionsGet ... +func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsGet(ctx context.Context, id NetworkManagerConnectionId) (result SubscriptionNetworkManagerConnectionsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkManagerConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go new file mode 100644 index 000000000000..a08f8b1adfc6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go @@ -0,0 +1,135 @@ +package networkmanagerconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubscriptionNetworkManagerConnectionsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkManagerConnection +} + +type SubscriptionNetworkManagerConnectionsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkManagerConnection +} + +type SubscriptionNetworkManagerConnectionsListOperationOptions struct { + Top *int64 +} + +func DefaultSubscriptionNetworkManagerConnectionsListOperationOptions() SubscriptionNetworkManagerConnectionsListOperationOptions { + return SubscriptionNetworkManagerConnectionsListOperationOptions{} +} + +func (o SubscriptionNetworkManagerConnectionsListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o SubscriptionNetworkManagerConnectionsListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o SubscriptionNetworkManagerConnectionsListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type SubscriptionNetworkManagerConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SubscriptionNetworkManagerConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// SubscriptionNetworkManagerConnectionsList ... +func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsList(ctx context.Context, id commonids.SubscriptionId, options SubscriptionNetworkManagerConnectionsListOperationOptions) (result SubscriptionNetworkManagerConnectionsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &SubscriptionNetworkManagerConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkManagerConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// SubscriptionNetworkManagerConnectionsListComplete retrieves all the results into a single object +func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsListComplete(ctx context.Context, id commonids.SubscriptionId, options SubscriptionNetworkManagerConnectionsListOperationOptions) (SubscriptionNetworkManagerConnectionsListCompleteResult, error) { + return c.SubscriptionNetworkManagerConnectionsListCompleteMatchingPredicate(ctx, id, options, NetworkManagerConnectionOperationPredicate{}) +} + +// SubscriptionNetworkManagerConnectionsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options SubscriptionNetworkManagerConnectionsListOperationOptions, predicate NetworkManagerConnectionOperationPredicate) (result SubscriptionNetworkManagerConnectionsListCompleteResult, err error) { + items := make([]NetworkManagerConnection, 0) + + resp, err := c.SubscriptionNetworkManagerConnectionsList(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = SubscriptionNetworkManagerConnectionsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/model_networkmanagerconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/model_networkmanagerconnection.go new file mode 100644 index 000000000000..a7548b736992 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/model_networkmanagerconnection.go @@ -0,0 +1,17 @@ +package networkmanagerconnections + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkManagerConnectionProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/model_networkmanagerconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/model_networkmanagerconnectionproperties.go new file mode 100644 index 000000000000..faec43c2f304 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/model_networkmanagerconnectionproperties.go @@ -0,0 +1,10 @@ +package networkmanagerconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerConnectionProperties struct { + ConnectionState *ScopeConnectionState `json:"connectionState,omitempty"` + Description *string `json:"description,omitempty"` + NetworkManagerId *string `json:"networkManagerId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/predicates.go new file mode 100644 index 000000000000..145b7b7261a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/predicates.go @@ -0,0 +1,32 @@ +package networkmanagerconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerConnectionOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p NetworkManagerConnectionOperationPredicate) Matches(input NetworkManagerConnection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/version.go new file mode 100644 index 000000000000..dcfdaddff69e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/version.go @@ -0,0 +1,10 @@ +package networkmanagerconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkmanagerconnections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/README.md similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/README.md index 2b91a7d84d09..d3e066c2c3cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration` Documentation -The `networkmanagereffectiveconnectivityconfiguration` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `networkmanagereffectiveconnectivityconfiguration` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/constants.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/constants.go index 06b5b5629ffc..caa8b3c87477 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/constants.go @@ -132,6 +132,47 @@ func parseGroupConnectivity(input string) (*GroupConnectivity, error) { return &out, nil } +type GroupMemberType string + +const ( + GroupMemberTypeSubnet GroupMemberType = "Subnet" + GroupMemberTypeVirtualNetwork GroupMemberType = "VirtualNetwork" +) + +func PossibleValuesForGroupMemberType() []string { + return []string{ + string(GroupMemberTypeSubnet), + string(GroupMemberTypeVirtualNetwork), + } +} + +func (s *GroupMemberType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGroupMemberType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGroupMemberType(input string) (*GroupMemberType, error) { + vals := map[string]GroupMemberType{ + "subnet": GroupMemberTypeSubnet, + "virtualnetwork": GroupMemberTypeVirtualNetwork, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GroupMemberType(input) + return &out, nil +} + type IsGlobal string const ( diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/method_listnetworkmanagereffectiveconnectivityconfigurations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/method_listnetworkmanagereffectiveconnectivityconfigurations.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/method_listnetworkmanagereffectiveconnectivityconfigurations.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/method_listnetworkmanagereffectiveconnectivityconfigurations.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_configurationgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_configurationgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_configurationgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_configurationgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_connectivityconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_connectivityconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_connectivityconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_connectivityconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_connectivitygroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_connectivitygroupitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_connectivitygroupitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_connectivitygroupitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_effectiveconnectivityconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_effectiveconnectivityconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_effectiveconnectivityconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_effectiveconnectivityconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_hub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_hub.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_hub.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_hub.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_networkgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_networkgroupproperties.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_networkgroupproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_networkgroupproperties.go index ae331bfec1d7..38a863e54e16 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_networkgroupproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_networkgroupproperties.go @@ -5,6 +5,7 @@ package networkmanagereffectiveconnectivityconfiguration type NetworkGroupProperties struct { Description *string `json:"description,omitempty"` + MemberType *GroupMemberType `json:"memberType,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` ResourceGuid *string `json:"resourceGuid,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_networkmanagereffectiveconnectivityconfigurationlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_networkmanagereffectiveconnectivityconfigurationlistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_networkmanagereffectiveconnectivityconfigurationlistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_networkmanagereffectiveconnectivityconfigurationlistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_queryrequestoptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_queryrequestoptions.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_queryrequestoptions.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_queryrequestoptions.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/version.go similarity index 81% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/version.go index e90fd22ef318..b07cd1d5bca8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/version.go @@ -3,8 +3,8 @@ package networkmanagereffectiveconnectivityconfiguration // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/networkmanagereffectiveconnectivityconfiguration/2023-11-01" + return "hashicorp/go-azure-sdk/networkmanagereffectiveconnectivityconfiguration/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/README.md similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/README.md index 6fb874e9b9d6..0eb1b2c75832 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules` Documentation -The `networkmanagereffectivesecurityadminrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `networkmanagereffectivesecurityadminrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/constants.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/constants.go index 280bd1bc97d2..e9b8c9e7f009 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/constants.go @@ -91,6 +91,47 @@ func parseEffectiveAdminRuleKind(input string) (*EffectiveAdminRuleKind, error) return &out, nil } +type GroupMemberType string + +const ( + GroupMemberTypeSubnet GroupMemberType = "Subnet" + GroupMemberTypeVirtualNetwork GroupMemberType = "VirtualNetwork" +) + +func PossibleValuesForGroupMemberType() []string { + return []string{ + string(GroupMemberTypeSubnet), + string(GroupMemberTypeVirtualNetwork), + } +} + +func (s *GroupMemberType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGroupMemberType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGroupMemberType(input string) (*GroupMemberType, error) { + vals := map[string]GroupMemberType{ + "subnet": GroupMemberTypeSubnet, + "virtualnetwork": GroupMemberTypeVirtualNetwork, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GroupMemberType(input) + return &out, nil +} + type ProvisioningState string const ( diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/method_listnetworkmanagereffectivesecurityadminrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/method_listnetworkmanagereffectivesecurityadminrules.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/method_listnetworkmanagereffectivesecurityadminrules.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/method_listnetworkmanagereffectivesecurityadminrules.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_addressprefixitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_addressprefixitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_addressprefixitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_addressprefixitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_adminpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_adminpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_adminpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_adminpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_configurationgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_configurationgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_configurationgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_configurationgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_defaultadminpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_defaultadminpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_defaultadminpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_defaultadminpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivebasesecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_effectivebasesecurityadminrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivebasesecurityadminrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_effectivebasesecurityadminrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivedefaultsecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_effectivedefaultsecurityadminrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivedefaultsecurityadminrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_effectivedefaultsecurityadminrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivesecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_effectivesecurityadminrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivesecurityadminrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_effectivesecurityadminrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_networkgroupproperties.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkgroupproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_networkgroupproperties.go index 5890d573ff44..e032fa24f5a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkgroupproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_networkgroupproperties.go @@ -5,6 +5,7 @@ package networkmanagereffectivesecurityadminrules type NetworkGroupProperties struct { Description *string `json:"description,omitempty"` + MemberType *GroupMemberType `json:"memberType,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` ResourceGuid *string `json:"resourceGuid,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkmanagereffectivesecurityadminruleslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_networkmanagereffectivesecurityadminruleslistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkmanagereffectivesecurityadminruleslistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_networkmanagereffectivesecurityadminruleslistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkmanagersecuritygroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_networkmanagersecuritygroupitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkmanagersecuritygroupitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_networkmanagersecuritygroupitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_queryrequestoptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_queryrequestoptions.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_queryrequestoptions.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_queryrequestoptions.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/version.go similarity index 83% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/version.go index 70a1bd7d6c87..b70e1040ee04 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/version.go @@ -3,8 +3,8 @@ package networkmanagereffectivesecurityadminrules // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/networkmanagereffectivesecurityadminrules/2023-11-01" + return "hashicorp/go-azure-sdk/networkmanagereffectivesecurityadminrules/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/README.md new file mode 100644 index 000000000000..3d3f907a4897 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations` Documentation + +The `networkmanagerroutingconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations" +``` + + +### Client Initialization + +```go +client := networkmanagerroutingconfigurations.NewNetworkManagerRoutingConfigurationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkManagerRoutingConfigurationsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := networkmanagerroutingconfigurations.NewRoutingConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName") + +payload := networkmanagerroutingconfigurations.NetworkManagerRoutingConfiguration{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagerRoutingConfigurationsClient.Delete` + +```go +ctx := context.TODO() +id := networkmanagerroutingconfigurations.NewRoutingConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName") + +if err := client.DeleteThenPoll(ctx, id, networkmanagerroutingconfigurations.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkManagerRoutingConfigurationsClient.Get` + +```go +ctx := context.TODO() +id := networkmanagerroutingconfigurations.NewRoutingConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagerRoutingConfigurationsClient.List` + +```go +ctx := context.TODO() +id := networkmanagerroutingconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +// alternatively `client.List(ctx, id, networkmanagerroutingconfigurations.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, networkmanagerroutingconfigurations.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/client.go new file mode 100644 index 000000000000..cba155b1be76 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/client.go @@ -0,0 +1,26 @@ +package networkmanagerroutingconfigurations + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerRoutingConfigurationsClient struct { + Client *resourcemanager.Client +} + +func NewNetworkManagerRoutingConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkManagerRoutingConfigurationsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "networkmanagerroutingconfigurations", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating NetworkManagerRoutingConfigurationsClient: %+v", err) + } + + return &NetworkManagerRoutingConfigurationsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/constants.go new file mode 100644 index 000000000000..8e6da58586cd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/constants.go @@ -0,0 +1,57 @@ +package networkmanagerroutingconfigurations + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/id_networkmanager.go new file mode 100644 index 000000000000..6036bf276036 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/id_networkmanager.go @@ -0,0 +1,130 @@ +package networkmanagerroutingconfigurations + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkManagerId{}) +} + +var _ resourceids.ResourceId = &NetworkManagerId{} + +// NetworkManagerId is a struct representing the Resource ID for a Network Manager +type NetworkManagerId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string +} + +// NewNetworkManagerID returns a new NetworkManagerId struct +func NewNetworkManagerID(subscriptionId string, resourceGroupName string, networkManagerName string) NetworkManagerId { + return NetworkManagerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + } +} + +// ParseNetworkManagerID parses 'input' into a NetworkManagerId +func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkManagerIDInsensitively parses 'input' case-insensitively into a NetworkManagerId +// note: this method should only be used for API response data and not user input +func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkManagerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + return nil +} + +// ValidateNetworkManagerID checks that 'input' can be parsed as a Network Manager ID +func ValidateNetworkManagerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkManagerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Manager ID +func (id NetworkManagerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Manager ID +func (id NetworkManagerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + } +} + +// String returns a human-readable description of this Network Manager ID +func (id NetworkManagerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + } + return fmt.Sprintf("Network Manager (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/id_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/id_routingconfiguration.go new file mode 100644 index 000000000000..a9666fb45cd0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/id_routingconfiguration.go @@ -0,0 +1,139 @@ +package networkmanagerroutingconfigurations + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RoutingConfigurationId{}) +} + +var _ resourceids.ResourceId = &RoutingConfigurationId{} + +// RoutingConfigurationId is a struct representing the Resource ID for a Routing Configuration +type RoutingConfigurationId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + RoutingConfigurationName string +} + +// NewRoutingConfigurationID returns a new RoutingConfigurationId struct +func NewRoutingConfigurationID(subscriptionId string, resourceGroupName string, networkManagerName string, routingConfigurationName string) RoutingConfigurationId { + return RoutingConfigurationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + RoutingConfigurationName: routingConfigurationName, + } +} + +// ParseRoutingConfigurationID parses 'input' into a RoutingConfigurationId +func ParseRoutingConfigurationID(input string) (*RoutingConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&RoutingConfigurationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RoutingConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRoutingConfigurationIDInsensitively parses 'input' case-insensitively into a RoutingConfigurationId +// note: this method should only be used for API response data and not user input +func ParseRoutingConfigurationIDInsensitively(input string) (*RoutingConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&RoutingConfigurationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RoutingConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RoutingConfigurationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.RoutingConfigurationName, ok = input.Parsed["routingConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routingConfigurationName", input) + } + + return nil +} + +// ValidateRoutingConfigurationID checks that 'input' can be parsed as a Routing Configuration ID +func ValidateRoutingConfigurationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRoutingConfigurationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Routing Configuration ID +func (id RoutingConfigurationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/routingConfigurations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.RoutingConfigurationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Routing Configuration ID +func (id RoutingConfigurationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticRoutingConfigurations", "routingConfigurations", "routingConfigurations"), + resourceids.UserSpecifiedSegment("routingConfigurationName", "routingConfigurationName"), + } +} + +// String returns a human-readable description of this Routing Configuration ID +func (id RoutingConfigurationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Routing Configuration Name: %q", id.RoutingConfigurationName), + } + return fmt.Sprintf("Routing Configuration (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_createorupdate.go new file mode 100644 index 000000000000..ec0b2ada3f5a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_createorupdate.go @@ -0,0 +1,58 @@ +package networkmanagerroutingconfigurations + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkManagerRoutingConfiguration +} + +// CreateOrUpdate ... +func (c NetworkManagerRoutingConfigurationsClient) CreateOrUpdate(ctx context.Context, id RoutingConfigurationId, input NetworkManagerRoutingConfiguration) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkManagerRoutingConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_delete.go new file mode 100644 index 000000000000..d0b3464065a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_delete.go @@ -0,0 +1,100 @@ +package networkmanagerroutingconfigurations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c NetworkManagerRoutingConfigurationsClient) Delete(ctx context.Context, id RoutingConfigurationId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c NetworkManagerRoutingConfigurationsClient) DeleteThenPoll(ctx context.Context, id RoutingConfigurationId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_get.go new file mode 100644 index 000000000000..d1be82cc918e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_get.go @@ -0,0 +1,53 @@ +package networkmanagerroutingconfigurations + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkManagerRoutingConfiguration +} + +// Get ... +func (c NetworkManagerRoutingConfigurationsClient) Get(ctx context.Context, id RoutingConfigurationId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkManagerRoutingConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_list.go new file mode 100644 index 000000000000..2318cf571675 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_list.go @@ -0,0 +1,134 @@ +package networkmanagerroutingconfigurations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkManagerRoutingConfiguration +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkManagerRoutingConfiguration +} + +type ListOperationOptions struct { + Top *int64 +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c NetworkManagerRoutingConfigurationsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/routingConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkManagerRoutingConfiguration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c NetworkManagerRoutingConfigurationsClient) ListComplete(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, NetworkManagerRoutingConfigurationOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkManagerRoutingConfigurationsClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkManagerId, options ListOperationOptions, predicate NetworkManagerRoutingConfigurationOperationPredicate) (result ListCompleteResult, err error) { + items := make([]NetworkManagerRoutingConfiguration, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/model_networkmanagerroutingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/model_networkmanagerroutingconfiguration.go new file mode 100644 index 000000000000..775855260e0d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/model_networkmanagerroutingconfiguration.go @@ -0,0 +1,17 @@ +package networkmanagerroutingconfigurations + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerRoutingConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkManagerRoutingConfigurationPropertiesFormat `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/model_networkmanagerroutingconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/model_networkmanagerroutingconfigurationpropertiesformat.go new file mode 100644 index 000000000000..beeb3bbf8f33 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/model_networkmanagerroutingconfigurationpropertiesformat.go @@ -0,0 +1,10 @@ +package networkmanagerroutingconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerRoutingConfigurationPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/predicates.go new file mode 100644 index 000000000000..a1aaea41056b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/predicates.go @@ -0,0 +1,32 @@ +package networkmanagerroutingconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerRoutingConfigurationOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p NetworkManagerRoutingConfigurationOperationPredicate) Matches(input NetworkManagerRoutingConfiguration) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/version.go new file mode 100644 index 000000000000..c53e13a2ee87 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/version.go @@ -0,0 +1,10 @@ +package networkmanagerroutingconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkmanagerroutingconfigurations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/README.md new file mode 100644 index 000000000000..0addb27874c7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/README.md @@ -0,0 +1,163 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers` Documentation + +The `networkmanagers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers" +``` + + +### Client Initialization + +```go +client := networkmanagers.NewNetworkManagersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkManagersClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +payload := networkmanagers.NetworkManager{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagersClient.Delete` + +```go +ctx := context.TODO() +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +if err := client.DeleteThenPoll(ctx, id, networkmanagers.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkManagersClient.Get` + +```go +ctx := context.TODO() +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagersClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id, networkmanagers.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, networkmanagers.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkManagersClient.ListBySubscription` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListBySubscription(ctx, id, networkmanagers.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination +items, err := client.ListBySubscriptionComplete(ctx, id, networkmanagers.DefaultListBySubscriptionOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkManagersClient.NetworkManagerCommitsPost` + +```go +ctx := context.TODO() +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +payload := networkmanagers.NetworkManagerCommit{ + // ... +} + + +if err := client.NetworkManagerCommitsPostThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkManagersClient.NetworkManagerDeploymentStatusList` + +```go +ctx := context.TODO() +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +payload := networkmanagers.NetworkManagerDeploymentStatusParameter{ + // ... +} + + +read, err := client.NetworkManagerDeploymentStatusList(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagersClient.Patch` + +```go +ctx := context.TODO() +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +payload := networkmanagers.PatchObject{ + // ... +} + + +read, err := client.Patch(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/client.go new file mode 100644 index 000000000000..64a4e7996462 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/client.go @@ -0,0 +1,26 @@ +package networkmanagers + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagersClient struct { + Client *resourcemanager.Client +} + +func NewNetworkManagersClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkManagersClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "networkmanagers", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating NetworkManagersClient: %+v", err) + } + + return &NetworkManagersClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/constants.go new file mode 100644 index 000000000000..03e251a66011 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/constants.go @@ -0,0 +1,151 @@ +package networkmanagers + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConfigurationType string + +const ( + ConfigurationTypeConnectivity ConfigurationType = "Connectivity" + ConfigurationTypeRouting ConfigurationType = "Routing" + ConfigurationTypeSecurityAdmin ConfigurationType = "SecurityAdmin" + ConfigurationTypeSecurityUser ConfigurationType = "SecurityUser" +) + +func PossibleValuesForConfigurationType() []string { + return []string{ + string(ConfigurationTypeConnectivity), + string(ConfigurationTypeRouting), + string(ConfigurationTypeSecurityAdmin), + string(ConfigurationTypeSecurityUser), + } +} + +func (s *ConfigurationType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseConfigurationType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseConfigurationType(input string) (*ConfigurationType, error) { + vals := map[string]ConfigurationType{ + "connectivity": ConfigurationTypeConnectivity, + "routing": ConfigurationTypeRouting, + "securityadmin": ConfigurationTypeSecurityAdmin, + "securityuser": ConfigurationTypeSecurityUser, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ConfigurationType(input) + return &out, nil +} + +type DeploymentStatus string + +const ( + DeploymentStatusDeployed DeploymentStatus = "Deployed" + DeploymentStatusDeploying DeploymentStatus = "Deploying" + DeploymentStatusFailed DeploymentStatus = "Failed" + DeploymentStatusNotStarted DeploymentStatus = "NotStarted" +) + +func PossibleValuesForDeploymentStatus() []string { + return []string{ + string(DeploymentStatusDeployed), + string(DeploymentStatusDeploying), + string(DeploymentStatusFailed), + string(DeploymentStatusNotStarted), + } +} + +func (s *DeploymentStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeploymentStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeploymentStatus(input string) (*DeploymentStatus, error) { + vals := map[string]DeploymentStatus{ + "deployed": DeploymentStatusDeployed, + "deploying": DeploymentStatusDeploying, + "failed": DeploymentStatusFailed, + "notstarted": DeploymentStatusNotStarted, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeploymentStatus(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/id_networkmanager.go new file mode 100644 index 000000000000..35d0899f86c6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/id_networkmanager.go @@ -0,0 +1,130 @@ +package networkmanagers + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkManagerId{}) +} + +var _ resourceids.ResourceId = &NetworkManagerId{} + +// NetworkManagerId is a struct representing the Resource ID for a Network Manager +type NetworkManagerId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string +} + +// NewNetworkManagerID returns a new NetworkManagerId struct +func NewNetworkManagerID(subscriptionId string, resourceGroupName string, networkManagerName string) NetworkManagerId { + return NetworkManagerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + } +} + +// ParseNetworkManagerID parses 'input' into a NetworkManagerId +func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkManagerIDInsensitively parses 'input' case-insensitively into a NetworkManagerId +// note: this method should only be used for API response data and not user input +func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkManagerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + return nil +} + +// ValidateNetworkManagerID checks that 'input' can be parsed as a Network Manager ID +func ValidateNetworkManagerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkManagerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Manager ID +func (id NetworkManagerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Manager ID +func (id NetworkManagerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + } +} + +// String returns a human-readable description of this Network Manager ID +func (id NetworkManagerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + } + return fmt.Sprintf("Network Manager (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_createorupdate.go new file mode 100644 index 000000000000..cdce0892e43c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_createorupdate.go @@ -0,0 +1,58 @@ +package networkmanagers + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkManager +} + +// CreateOrUpdate ... +func (c NetworkManagersClient) CreateOrUpdate(ctx context.Context, id NetworkManagerId, input NetworkManager) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkManager + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_delete.go new file mode 100644 index 000000000000..a9619efb0e22 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_delete.go @@ -0,0 +1,100 @@ +package networkmanagers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c NetworkManagersClient) Delete(ctx context.Context, id NetworkManagerId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c NetworkManagersClient) DeleteThenPoll(ctx context.Context, id NetworkManagerId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_get.go new file mode 100644 index 000000000000..ed6b5d9ec820 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_get.go @@ -0,0 +1,53 @@ +package networkmanagers + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkManager +} + +// Get ... +func (c NetworkManagersClient) Get(ctx context.Context, id NetworkManagerId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkManager + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_list.go new file mode 100644 index 000000000000..902c41d52b33 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_list.go @@ -0,0 +1,135 @@ +package networkmanagers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkManager +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkManager +} + +type ListOperationOptions struct { + Top *int64 +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c NetworkManagersClient) List(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkManager `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c NetworkManagersClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, NetworkManagerOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkManagersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions, predicate NetworkManagerOperationPredicate) (result ListCompleteResult, err error) { + items := make([]NetworkManager, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_listbysubscription.go new file mode 100644 index 000000000000..d1e8f2d72a38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_listbysubscription.go @@ -0,0 +1,135 @@ +package networkmanagers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBySubscriptionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkManager +} + +type ListBySubscriptionCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkManager +} + +type ListBySubscriptionOperationOptions struct { + Top *int64 +} + +func DefaultListBySubscriptionOperationOptions() ListBySubscriptionOperationOptions { + return ListBySubscriptionOperationOptions{} +} + +func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListBySubscription ... +func (c NetworkManagersClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkManager `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListBySubscriptionComplete retrieves all the results into a single object +func (c NetworkManagersClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (ListBySubscriptionCompleteResult, error) { + return c.ListBySubscriptionCompleteMatchingPredicate(ctx, id, options, NetworkManagerOperationPredicate{}) +} + +// ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkManagersClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions, predicate NetworkManagerOperationPredicate) (result ListBySubscriptionCompleteResult, err error) { + items := make([]NetworkManager, 0) + + resp, err := c.ListBySubscription(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListBySubscriptionCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_networkmanagercommitspost.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_networkmanagercommitspost.go new file mode 100644 index 000000000000..6d93c0512d6e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_networkmanagercommitspost.go @@ -0,0 +1,75 @@ +package networkmanagers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerCommitsPostOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *NetworkManagerCommit +} + +// NetworkManagerCommitsPost ... +func (c NetworkManagersClient) NetworkManagerCommitsPost(ctx context.Context, id NetworkManagerId, input NetworkManagerCommit) (result NetworkManagerCommitsPostOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/commit", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// NetworkManagerCommitsPostThenPoll performs NetworkManagerCommitsPost then polls until it's completed +func (c NetworkManagersClient) NetworkManagerCommitsPostThenPoll(ctx context.Context, id NetworkManagerId, input NetworkManagerCommit) error { + result, err := c.NetworkManagerCommitsPost(ctx, id, input) + if err != nil { + return fmt.Errorf("performing NetworkManagerCommitsPost: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after NetworkManagerCommitsPost: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go new file mode 100644 index 000000000000..db1a1d144ac4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go @@ -0,0 +1,58 @@ +package networkmanagers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerDeploymentStatusListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkManagerDeploymentStatusListResult +} + +// NetworkManagerDeploymentStatusList ... +func (c NetworkManagersClient) NetworkManagerDeploymentStatusList(ctx context.Context, id NetworkManagerId, input NetworkManagerDeploymentStatusParameter) (result NetworkManagerDeploymentStatusListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listDeploymentStatus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkManagerDeploymentStatusListResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_patch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_patch.go new file mode 100644 index 000000000000..4aae0d607098 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_patch.go @@ -0,0 +1,57 @@ +package networkmanagers + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PatchOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkManager +} + +// Patch ... +func (c NetworkManagersClient) Patch(ctx context.Context, id NetworkManagerId, input PatchObject) (result PatchOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkManager + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_crosstenantscopes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_crosstenantscopes.go new file mode 100644 index 000000000000..537d9c70d4ac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_crosstenantscopes.go @@ -0,0 +1,10 @@ +package networkmanagers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CrossTenantScopes struct { + ManagementGroups *[]string `json:"managementGroups,omitempty"` + Subscriptions *[]string `json:"subscriptions,omitempty"` + TenantId *string `json:"tenantId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanager.go new file mode 100644 index 000000000000..8f98dec3ed26 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanager.go @@ -0,0 +1,19 @@ +package networkmanagers + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManager struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkManagerProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagercommit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagercommit.go new file mode 100644 index 000000000000..8649d0c0da81 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagercommit.go @@ -0,0 +1,11 @@ +package networkmanagers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerCommit struct { + CommitId *string `json:"commitId,omitempty"` + CommitType ConfigurationType `json:"commitType"` + ConfigurationIds *[]string `json:"configurationIds,omitempty"` + TargetLocations []string `json:"targetLocations"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatus.go new file mode 100644 index 000000000000..5727d45e8481 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatus.go @@ -0,0 +1,31 @@ +package networkmanagers + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerDeploymentStatus struct { + CommitTime *string `json:"commitTime,omitempty"` + ConfigurationIds *[]string `json:"configurationIds,omitempty"` + DeploymentStatus *DeploymentStatus `json:"deploymentStatus,omitempty"` + DeploymentType *ConfigurationType `json:"deploymentType,omitempty"` + ErrorMessage *string `json:"errorMessage,omitempty"` + Region *string `json:"region,omitempty"` +} + +func (o *NetworkManagerDeploymentStatus) GetCommitTimeAsTime() (*time.Time, error) { + if o.CommitTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.CommitTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *NetworkManagerDeploymentStatus) SetCommitTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.CommitTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatuslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatuslistresult.go new file mode 100644 index 000000000000..26a44c297a29 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatuslistresult.go @@ -0,0 +1,9 @@ +package networkmanagers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerDeploymentStatusListResult struct { + SkipToken *string `json:"skipToken,omitempty"` + Value *[]NetworkManagerDeploymentStatus `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatusparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatusparameter.go new file mode 100644 index 000000000000..1eb70a07ac3b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatusparameter.go @@ -0,0 +1,10 @@ +package networkmanagers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerDeploymentStatusParameter struct { + DeploymentTypes *[]ConfigurationType `json:"deploymentTypes,omitempty"` + Regions *[]string `json:"regions,omitempty"` + SkipToken *string `json:"skipToken,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerproperties.go new file mode 100644 index 000000000000..46dc5161ee2c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerproperties.go @@ -0,0 +1,12 @@ +package networkmanagers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerProperties struct { + Description *string `json:"description,omitempty"` + NetworkManagerScopeAccesses []ConfigurationType `json:"networkManagerScopeAccesses"` + NetworkManagerScopes NetworkManagerPropertiesNetworkManagerScopes `json:"networkManagerScopes"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerpropertiesnetworkmanagerscopes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerpropertiesnetworkmanagerscopes.go new file mode 100644 index 000000000000..2a91fc5b6013 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerpropertiesnetworkmanagerscopes.go @@ -0,0 +1,10 @@ +package networkmanagers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerPropertiesNetworkManagerScopes struct { + CrossTenantScopes *[]CrossTenantScopes `json:"crossTenantScopes,omitempty"` + ManagementGroups *[]string `json:"managementGroups,omitempty"` + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_patchobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_patchobject.go new file mode 100644 index 000000000000..775ef5986854 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_patchobject.go @@ -0,0 +1,8 @@ +package networkmanagers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PatchObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/predicates.go new file mode 100644 index 000000000000..7c1597c26669 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/predicates.go @@ -0,0 +1,37 @@ +package networkmanagers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p NetworkManagerOperationPredicate) Matches(input NetworkManager) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/version.go new file mode 100644 index 000000000000..83be06dfa17b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/version.go @@ -0,0 +1,10 @@ +package networkmanagers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkmanagers/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/README.md new file mode 100644 index 000000000000..21c6cfde1994 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/README.md @@ -0,0 +1,125 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles` Documentation + +The `networkprofiles` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles" +``` + + +### Client Initialization + +```go +client := networkprofiles.NewNetworkProfilesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkProfilesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") + +payload := networkprofiles.NetworkProfile{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkProfilesClient.Delete` + +```go +ctx := context.TODO() +id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkProfilesClient.Get` + +```go +ctx := context.TODO() +id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") + +read, err := client.Get(ctx, id, networkprofiles.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkProfilesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkProfilesClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkProfilesClient.UpdateTags` + +```go +ctx := context.TODO() +id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") + +payload := networkprofiles.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/client.go new file mode 100644 index 000000000000..33a4e0626aae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/client.go @@ -0,0 +1,26 @@ +package networkprofiles + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkProfilesClient struct { + Client *resourcemanager.Client +} + +func NewNetworkProfilesClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkProfilesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "networkprofiles", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating NetworkProfilesClient: %+v", err) + } + + return &NetworkProfilesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/constants.go new file mode 100644 index 000000000000..d3159767fb9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/constants.go @@ -0,0 +1,1198 @@ +package networkprofiles + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/id_networkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/id_networkprofile.go new file mode 100644 index 000000000000..e2a16f7fdfa6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/id_networkprofile.go @@ -0,0 +1,130 @@ +package networkprofiles + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkProfileId{}) +} + +var _ resourceids.ResourceId = &NetworkProfileId{} + +// NetworkProfileId is a struct representing the Resource ID for a Network Profile +type NetworkProfileId struct { + SubscriptionId string + ResourceGroupName string + NetworkProfileName string +} + +// NewNetworkProfileID returns a new NetworkProfileId struct +func NewNetworkProfileID(subscriptionId string, resourceGroupName string, networkProfileName string) NetworkProfileId { + return NetworkProfileId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkProfileName: networkProfileName, + } +} + +// ParseNetworkProfileID parses 'input' into a NetworkProfileId +func ParseNetworkProfileID(input string) (*NetworkProfileId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkProfileId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkProfileId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkProfileIDInsensitively parses 'input' case-insensitively into a NetworkProfileId +// note: this method should only be used for API response data and not user input +func ParseNetworkProfileIDInsensitively(input string) (*NetworkProfileId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkProfileId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkProfileId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkProfileId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkProfileName, ok = input.Parsed["networkProfileName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkProfileName", input) + } + + return nil +} + +// ValidateNetworkProfileID checks that 'input' can be parsed as a Network Profile ID +func ValidateNetworkProfileID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkProfileID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Profile ID +func (id NetworkProfileId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkProfiles/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkProfileName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Profile ID +func (id NetworkProfileId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkProfiles", "networkProfiles", "networkProfiles"), + resourceids.UserSpecifiedSegment("networkProfileName", "networkProfileName"), + } +} + +// String returns a human-readable description of this Network Profile ID +func (id NetworkProfileId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Profile Name: %q", id.NetworkProfileName), + } + return fmt.Sprintf("Network Profile (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_createorupdate.go new file mode 100644 index 000000000000..24ed5940195d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_createorupdate.go @@ -0,0 +1,58 @@ +package networkprofiles + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkProfile +} + +// CreateOrUpdate ... +func (c NetworkProfilesClient) CreateOrUpdate(ctx context.Context, id NetworkProfileId, input NetworkProfile) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkProfile + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_delete.go new file mode 100644 index 000000000000..c5564f89c854 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_delete.go @@ -0,0 +1,71 @@ +package networkprofiles + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c NetworkProfilesClient) Delete(ctx context.Context, id NetworkProfileId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c NetworkProfilesClient) DeleteThenPoll(ctx context.Context, id NetworkProfileId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_get.go new file mode 100644 index 000000000000..a0149c188f79 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_get.go @@ -0,0 +1,83 @@ +package networkprofiles + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkProfile +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c NetworkProfilesClient) Get(ctx context.Context, id NetworkProfileId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkProfile + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_list.go new file mode 100644 index 000000000000..e1bce2a2aa63 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_list.go @@ -0,0 +1,106 @@ +package networkprofiles + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkProfile +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkProfile +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c NetworkProfilesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkProfiles", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkProfile `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c NetworkProfilesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, NetworkProfileOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkProfilesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate NetworkProfileOperationPredicate) (result ListCompleteResult, err error) { + items := make([]NetworkProfile, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_listall.go new file mode 100644 index 000000000000..c8509368cef8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_listall.go @@ -0,0 +1,106 @@ +package networkprofiles + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkProfile +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkProfile +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c NetworkProfilesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkProfiles", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkProfile `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c NetworkProfilesClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, NetworkProfileOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkProfilesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate NetworkProfileOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]NetworkProfile, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_updatetags.go new file mode 100644 index 000000000000..757952def309 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_updatetags.go @@ -0,0 +1,57 @@ +package networkprofiles + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkProfile +} + +// UpdateTags ... +func (c NetworkProfilesClient) UpdateTags(ctx context.Context, id NetworkProfileId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkProfile + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..0452928be632 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..03bee9ad4aeb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..7a1eea7761a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..4e9c7a30701b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..b3a527e56787 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..a3c9e8c40261 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..962d80f7a836 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_backendaddresspool.go new file mode 100644 index 000000000000..b7491b172edb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..d1e4d94bf274 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterface.go new file mode 100644 index 000000000000..8319fdf7442e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterface.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerNetworkInterface struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ContainerNetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceconfiguration.go new file mode 100644 index 000000000000..1d0f89e15b46 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceconfiguration.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerNetworkInterfaceConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ContainerNetworkInterfaceConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceconfigurationpropertiesformat.go new file mode 100644 index 000000000000..1e85f54153a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceconfigurationpropertiesformat.go @@ -0,0 +1,10 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerNetworkInterfaceConfigurationPropertiesFormat struct { + ContainerNetworkInterfaces *[]SubResource `json:"containerNetworkInterfaces,omitempty"` + IPConfigurations *[]IPConfigurationProfile `json:"ipConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceipconfiguration.go new file mode 100644 index 000000000000..e74b8c6d59e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceipconfiguration.go @@ -0,0 +1,11 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerNetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ContainerNetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..07db6c62c7a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,8 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfacepropertiesformat.go new file mode 100644 index 000000000000..1c1efc89484e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfacepropertiesformat.go @@ -0,0 +1,11 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerNetworkInterfacePropertiesFormat struct { + Container *SubResource `json:"container,omitempty"` + ContainerNetworkInterfaceConfiguration *ContainerNetworkInterfaceConfiguration `json:"containerNetworkInterfaceConfiguration,omitempty"` + IPConfigurations *[]ContainerNetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..4860aa0e2f30 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ddossettings.go new file mode 100644 index 000000000000..c5dc78bcc06d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ddossettings.go @@ -0,0 +1,9 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_delegation.go new file mode 100644 index 000000000000..0195b7d30c33 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_delegation.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlog.go new file mode 100644 index 000000000000..44e961c1ca2d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlog.go @@ -0,0 +1,19 @@ +package networkprofiles + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlogformatparameters.go new file mode 100644 index 000000000000..b92557232fff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..fd435dc751c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_frontendipconfiguration.go new file mode 100644 index 000000000000..db5d69389982 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package networkprofiles + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..82aea1832995 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..cb7a2956f0ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_inboundnatrule.go new file mode 100644 index 000000000000..6b089d6c65c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..0a3a07799325 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfiguration.go new file mode 100644 index 000000000000..940760b2c92f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..373777029b11 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..ad8fa03c4f4f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..b90aa191e929 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_iptag.go new file mode 100644 index 000000000000..2e45e4540604 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_iptag.go @@ -0,0 +1,9 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..4484795804f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..203a8fab13ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgateway.go new file mode 100644 index 000000000000..6197c6237637 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgateway.go @@ -0,0 +1,20 @@ +package networkprofiles + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..1c1b918fa254 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgatewaysku.go new file mode 100644 index 000000000000..c3c91d290f2d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natruleportmapping.go new file mode 100644 index 000000000000..033011c8a8b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterface.go new file mode 100644 index 000000000000..68e610eeff9a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterface.go @@ -0,0 +1,19 @@ +package networkprofiles + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..8451913a32f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..139342da9311 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..2456f55b9277 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..34110f0cec54 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..8e4c0b29d333 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..daf580431c6d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..8a7e2121888e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkprofile.go new file mode 100644 index 000000000000..b11865bfdd65 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkprofile.go @@ -0,0 +1,14 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkProfilePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkprofilepropertiesformat.go new file mode 100644 index 000000000000..cf66d34892c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkprofilepropertiesformat.go @@ -0,0 +1,11 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkProfilePropertiesFormat struct { + ContainerNetworkInterfaceConfigurations *[]ContainerNetworkInterfaceConfiguration `json:"containerNetworkInterfaceConfigurations,omitempty"` + ContainerNetworkInterfaces *[]ContainerNetworkInterface `json:"containerNetworkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networksecuritygroup.go new file mode 100644 index 000000000000..b24d89a9bdfc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..4a7e6641883f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpoint.go new file mode 100644 index 000000000000..5fcc4823c22b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpoint.go @@ -0,0 +1,19 @@ +package networkprofiles + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointconnection.go new file mode 100644 index 000000000000..5ef26aa759dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..ae03a2042411 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..eb56313d0fe1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..c252cc443f75 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointproperties.go new file mode 100644 index 000000000000..d63068a30ea8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkservice.go new file mode 100644 index 000000000000..13e1f313103c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package networkprofiles + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..f7c7b9815119 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..36ba1ab614d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..6c4d7083fb95 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..556206b60403 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..7cdb9347d513 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..b1c8585be20a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddress.go new file mode 100644 index 000000000000..040a0bb56e86 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddress.go @@ -0,0 +1,22 @@ +package networkprofiles + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..3172667a9f86 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..9e8c3ce846b8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddresssku.go new file mode 100644 index 000000000000..af7b63fcdc58 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourcenavigationlink.go new file mode 100644 index 000000000000..d8706b6bc4da --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..b9a518cd2ae5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourceset.go new file mode 100644 index 000000000000..028384b44672 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourceset.go @@ -0,0 +1,8 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..a39da241fee2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_route.go new file mode 100644 index 000000000000..01d1b1aee3be --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_route.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routepropertiesformat.go new file mode 100644 index 000000000000..a0fba15da362 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routetable.go new file mode 100644 index 000000000000..e98510e4a998 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routetable.go @@ -0,0 +1,14 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..d3d001ea19c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_securityrule.go new file mode 100644 index 000000000000..d3a303b69a84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_securityrule.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..5a6f05507602 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceassociationlink.go new file mode 100644 index 000000000000..185baa31acbe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..a8ddcda5b291 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..bbe89cb1074b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..fc7682e49f7e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..49d3abcfdf16 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..59c9a98a4df4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..c41bd5c801ba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..b96cc0a7ddcb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subnet.go new file mode 100644 index 000000000000..92e0d90839e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subnet.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..1e4d43ddb3d6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subresource.go new file mode 100644 index 000000000000..e7710003aae7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subresource.go @@ -0,0 +1,8 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_tagsobject.go new file mode 100644 index 000000000000..4b300699106a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_tagsobject.go @@ -0,0 +1,8 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..43e8bd0f29a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..67da0952e734 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_virtualnetworktap.go new file mode 100644 index 000000000000..21bb960f5719 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..3e8521e5beb1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/predicates.go new file mode 100644 index 000000000000..c8b72ff46b29 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/predicates.go @@ -0,0 +1,37 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkProfileOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p NetworkProfileOperationPredicate) Matches(input NetworkProfile) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/version.go new file mode 100644 index 000000000000..e3043de7cac3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/version.go @@ -0,0 +1,10 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkprofiles/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/README.md new file mode 100644 index 000000000000..aadd75db9ef8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups` Documentation + +The `networksecuritygroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups" +``` + + +### Client Initialization + +```go +client := networksecuritygroups.NewNetworkSecurityGroupsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkSecurityGroupsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") + +payload := networksecuritygroups.NetworkSecurityGroup{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkSecurityGroupsClient.Delete` + +```go +ctx := context.TODO() +id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkSecurityGroupsClient.Get` + +```go +ctx := context.TODO() +id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") + +read, err := client.Get(ctx, id, networksecuritygroups.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkSecurityGroupsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkSecurityGroupsClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkSecurityGroupsClient.UpdateTags` + +```go +ctx := context.TODO() +id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") + +payload := networksecuritygroups.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/client.go new file mode 100644 index 000000000000..d490fa41c780 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/client.go @@ -0,0 +1,26 @@ +package networksecuritygroups + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupsClient struct { + Client *resourcemanager.Client +} + +func NewNetworkSecurityGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkSecurityGroupsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "networksecuritygroups", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating NetworkSecurityGroupsClient: %+v", err) + } + + return &NetworkSecurityGroupsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/constants.go new file mode 100644 index 000000000000..5a93db643325 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/constants.go @@ -0,0 +1,1198 @@ +package networksecuritygroups + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/id_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/id_networksecuritygroup.go new file mode 100644 index 000000000000..5b1f77f1061b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/id_networksecuritygroup.go @@ -0,0 +1,130 @@ +package networksecuritygroups + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkSecurityGroupId{}) +} + +var _ resourceids.ResourceId = &NetworkSecurityGroupId{} + +// NetworkSecurityGroupId is a struct representing the Resource ID for a Network Security Group +type NetworkSecurityGroupId struct { + SubscriptionId string + ResourceGroupName string + NetworkSecurityGroupName string +} + +// NewNetworkSecurityGroupID returns a new NetworkSecurityGroupId struct +func NewNetworkSecurityGroupID(subscriptionId string, resourceGroupName string, networkSecurityGroupName string) NetworkSecurityGroupId { + return NetworkSecurityGroupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkSecurityGroupName: networkSecurityGroupName, + } +} + +// ParseNetworkSecurityGroupID parses 'input' into a NetworkSecurityGroupId +func ParseNetworkSecurityGroupID(input string) (*NetworkSecurityGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkSecurityGroupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkSecurityGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkSecurityGroupIDInsensitively parses 'input' case-insensitively into a NetworkSecurityGroupId +// note: this method should only be used for API response data and not user input +func ParseNetworkSecurityGroupIDInsensitively(input string) (*NetworkSecurityGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkSecurityGroupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkSecurityGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkSecurityGroupId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkSecurityGroupName, ok = input.Parsed["networkSecurityGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkSecurityGroupName", input) + } + + return nil +} + +// ValidateNetworkSecurityGroupID checks that 'input' can be parsed as a Network Security Group ID +func ValidateNetworkSecurityGroupID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkSecurityGroupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Security Group ID +func (id NetworkSecurityGroupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkSecurityGroups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkSecurityGroupName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Security Group ID +func (id NetworkSecurityGroupId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkSecurityGroups", "networkSecurityGroups", "networkSecurityGroups"), + resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupName"), + } +} + +// String returns a human-readable description of this Network Security Group ID +func (id NetworkSecurityGroupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Security Group Name: %q", id.NetworkSecurityGroupName), + } + return fmt.Sprintf("Network Security Group (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_createorupdate.go new file mode 100644 index 000000000000..cb77896aae4a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_createorupdate.go @@ -0,0 +1,75 @@ +package networksecuritygroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *NetworkSecurityGroup +} + +// CreateOrUpdate ... +func (c NetworkSecurityGroupsClient) CreateOrUpdate(ctx context.Context, id NetworkSecurityGroupId, input NetworkSecurityGroup) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c NetworkSecurityGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id NetworkSecurityGroupId, input NetworkSecurityGroup) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_delete.go new file mode 100644 index 000000000000..103ca330a5b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_delete.go @@ -0,0 +1,71 @@ +package networksecuritygroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c NetworkSecurityGroupsClient) Delete(ctx context.Context, id NetworkSecurityGroupId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c NetworkSecurityGroupsClient) DeleteThenPoll(ctx context.Context, id NetworkSecurityGroupId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_get.go new file mode 100644 index 000000000000..7728917c0ec6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_get.go @@ -0,0 +1,83 @@ +package networksecuritygroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkSecurityGroup +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c NetworkSecurityGroupsClient) Get(ctx context.Context, id NetworkSecurityGroupId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkSecurityGroup + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_list.go new file mode 100644 index 000000000000..8ebd9f83a713 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_list.go @@ -0,0 +1,106 @@ +package networksecuritygroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkSecurityGroup +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkSecurityGroup +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c NetworkSecurityGroupsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkSecurityGroups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkSecurityGroup `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c NetworkSecurityGroupsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, NetworkSecurityGroupOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkSecurityGroupsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate NetworkSecurityGroupOperationPredicate) (result ListCompleteResult, err error) { + items := make([]NetworkSecurityGroup, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_listall.go new file mode 100644 index 000000000000..a6440c241500 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_listall.go @@ -0,0 +1,106 @@ +package networksecuritygroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkSecurityGroup +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkSecurityGroup +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c NetworkSecurityGroupsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkSecurityGroups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkSecurityGroup `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c NetworkSecurityGroupsClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, NetworkSecurityGroupOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkSecurityGroupsClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate NetworkSecurityGroupOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]NetworkSecurityGroup, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_updatetags.go new file mode 100644 index 000000000000..6f4b2cd3ce69 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_updatetags.go @@ -0,0 +1,57 @@ +package networksecuritygroups + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkSecurityGroup +} + +// UpdateTags ... +func (c NetworkSecurityGroupsClient) UpdateTags(ctx context.Context, id NetworkSecurityGroupId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkSecurityGroup + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..62c1c3109c08 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..17bf1792be84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..d96a3011a256 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..ebf65a382d3c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..e6f11b94c019 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..50a0b0f53a75 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..5443c32837af --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_backendaddresspool.go new file mode 100644 index 000000000000..0a2169643297 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..80cdae2e9126 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..d6dd55786fcc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ddossettings.go new file mode 100644 index 000000000000..4b0d4e3dc9b8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ddossettings.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_delegation.go new file mode 100644 index 000000000000..42805b01adab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_delegation.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlog.go new file mode 100644 index 000000000000..88e95b6c2a4a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlog.go @@ -0,0 +1,19 @@ +package networksecuritygroups + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlogformatparameters.go new file mode 100644 index 000000000000..fdad354f6b84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..aedfa0b64ad0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_frontendipconfiguration.go new file mode 100644 index 000000000000..24b23145d476 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package networksecuritygroups + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..5322ea68f346 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..fff6be9708f5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_inboundnatrule.go new file mode 100644 index 000000000000..6391fbf065c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..725fec857510 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfiguration.go new file mode 100644 index 000000000000..b9eec53b855d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..4885926d9aaf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..ec7f93c0f2b1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..ca12abb49928 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_iptag.go new file mode 100644 index 000000000000..3f5348f3776d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_iptag.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..8c8a91a5d1f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..1843fe9fb855 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgateway.go new file mode 100644 index 000000000000..8d6ecb14bc53 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgateway.go @@ -0,0 +1,20 @@ +package networksecuritygroups + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..389e752880f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgatewaysku.go new file mode 100644 index 000000000000..5e842304f20b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natruleportmapping.go new file mode 100644 index 000000000000..30f812c7c780 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterface.go new file mode 100644 index 000000000000..a4a62c2d6ea1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterface.go @@ -0,0 +1,19 @@ +package networksecuritygroups + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..f3819f014744 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..40cf733a9f01 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..caa03f6e4139 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..248c37ca51de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..95a8c67d71c3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..5e60c1bbfc44 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..d110d1936451 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networksecuritygroup.go new file mode 100644 index 000000000000..dd84b3efc893 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..704a86496f2d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpoint.go new file mode 100644 index 000000000000..753cd13341bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpoint.go @@ -0,0 +1,19 @@ +package networksecuritygroups + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointconnection.go new file mode 100644 index 000000000000..b28eaa1a2135 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..9649070d1a73 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..af86de8f897c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..550ef75ec1d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointproperties.go new file mode 100644 index 000000000000..36ad3ca4ffb3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkservice.go new file mode 100644 index 000000000000..f880da9d89d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package networksecuritygroups + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..3a721ae36379 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..50b8f7e352ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..619e38d131d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..dcbf418522b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..abc8d2f4904f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..a0623cf72291 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddress.go new file mode 100644 index 000000000000..7b797b006f5b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddress.go @@ -0,0 +1,22 @@ +package networksecuritygroups + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..2db9ef3f2c3b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..cac3fce28cea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddresssku.go new file mode 100644 index 000000000000..24fe5573abdb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourcenavigationlink.go new file mode 100644 index 000000000000..8d6ec6049420 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..0bf207481cb0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourceset.go new file mode 100644 index 000000000000..751d06dd7324 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourceset.go @@ -0,0 +1,8 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..b1e9035c2f8b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_route.go new file mode 100644 index 000000000000..9b712ab4e813 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_route.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routepropertiesformat.go new file mode 100644 index 000000000000..3225a4673f2b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routetable.go new file mode 100644 index 000000000000..9aff39efe9e7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routetable.go @@ -0,0 +1,14 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..5eee448b410c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_securityrule.go new file mode 100644 index 000000000000..1119115e9eb5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_securityrule.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..012709116827 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceassociationlink.go new file mode 100644 index 000000000000..050ee6cb43f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..81a4ac35e4ae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..089e2e1dc0c1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..6ca2d4bff53e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..2a8648b7931f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..c70380704b7e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..3000410cde3b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..41b220c51942 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subnet.go new file mode 100644 index 000000000000..499cc289ec38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subnet.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..1709c6e2bd1f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subresource.go new file mode 100644 index 000000000000..8fa7fe6b59d0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subresource.go @@ -0,0 +1,8 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_tagsobject.go new file mode 100644 index 000000000000..bb9ad0a63731 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_tagsobject.go @@ -0,0 +1,8 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..ddb354c4a7c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..f74d8a12ecb1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_virtualnetworktap.go new file mode 100644 index 000000000000..cfc1b073467b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..01620fae8c8e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/predicates.go new file mode 100644 index 000000000000..b9f6d3f3df5c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/predicates.go @@ -0,0 +1,37 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p NetworkSecurityGroupOperationPredicate) Matches(input NetworkSecurityGroup) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/version.go new file mode 100644 index 000000000000..765659c02341 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/version.go @@ -0,0 +1,10 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networksecuritygroups/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/README.md new file mode 100644 index 000000000000..a43627f1493c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/README.md @@ -0,0 +1,171 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances` Documentation + +The `networkvirtualappliances` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances" +``` + + +### Client Initialization + +```go +client := networkvirtualappliances.NewNetworkVirtualAppliancesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") + +payload := networkvirtualappliances.NetworkVirtualAppliance{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.Delete` + +```go +ctx := context.TODO() +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.Get` + +```go +ctx := context.TODO() +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") + +read, err := client.Get(ctx, id, networkvirtualappliances.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.InboundSecurityRuleCreateOrUpdate` + +```go +ctx := context.TODO() +id := networkvirtualappliances.NewInboundSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "inboundSecurityRuleName") + +payload := networkvirtualappliances.InboundSecurityRule{ + // ... +} + + +if err := client.InboundSecurityRuleCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.InboundSecurityRuleGet` + +```go +ctx := context.TODO() +id := networkvirtualappliances.NewInboundSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "inboundSecurityRuleName") + +read, err := client.InboundSecurityRuleGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.Restart` + +```go +ctx := context.TODO() +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") + +payload := networkvirtualappliances.NetworkVirtualApplianceInstanceIds{ + // ... +} + + +if err := client.RestartThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.UpdateTags` + +```go +ctx := context.TODO() +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") + +payload := networkvirtualappliances.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/client.go new file mode 100644 index 000000000000..ab8d70fafa5e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/client.go @@ -0,0 +1,26 @@ +package networkvirtualappliances + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualAppliancesClient struct { + Client *resourcemanager.Client +} + +func NewNetworkVirtualAppliancesClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkVirtualAppliancesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "networkvirtualappliances", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating NetworkVirtualAppliancesClient: %+v", err) + } + + return &NetworkVirtualAppliancesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/constants.go new file mode 100644 index 000000000000..a36e7b6985db --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/constants.go @@ -0,0 +1,224 @@ +package networkvirtualappliances + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundSecurityRuleType string + +const ( + InboundSecurityRuleTypeAutoExpire InboundSecurityRuleType = "AutoExpire" + InboundSecurityRuleTypePermanent InboundSecurityRuleType = "Permanent" +) + +func PossibleValuesForInboundSecurityRuleType() []string { + return []string{ + string(InboundSecurityRuleTypeAutoExpire), + string(InboundSecurityRuleTypePermanent), + } +} + +func (s *InboundSecurityRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseInboundSecurityRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseInboundSecurityRuleType(input string) (*InboundSecurityRuleType, error) { + vals := map[string]InboundSecurityRuleType{ + "autoexpire": InboundSecurityRuleTypeAutoExpire, + "permanent": InboundSecurityRuleTypePermanent, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := InboundSecurityRuleType(input) + return &out, nil +} + +type InboundSecurityRulesProtocol string + +const ( + InboundSecurityRulesProtocolTCP InboundSecurityRulesProtocol = "TCP" + InboundSecurityRulesProtocolUDP InboundSecurityRulesProtocol = "UDP" +) + +func PossibleValuesForInboundSecurityRulesProtocol() []string { + return []string{ + string(InboundSecurityRulesProtocolTCP), + string(InboundSecurityRulesProtocolUDP), + } +} + +func (s *InboundSecurityRulesProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseInboundSecurityRulesProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseInboundSecurityRulesProtocol(input string) (*InboundSecurityRulesProtocol, error) { + vals := map[string]InboundSecurityRulesProtocol{ + "tcp": InboundSecurityRulesProtocolTCP, + "udp": InboundSecurityRulesProtocolUDP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := InboundSecurityRulesProtocol(input) + return &out, nil +} + +type NicTypeInRequest string + +const ( + NicTypeInRequestPrivateNic NicTypeInRequest = "PrivateNic" + NicTypeInRequestPublicNic NicTypeInRequest = "PublicNic" +) + +func PossibleValuesForNicTypeInRequest() []string { + return []string{ + string(NicTypeInRequestPrivateNic), + string(NicTypeInRequestPublicNic), + } +} + +func (s *NicTypeInRequest) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNicTypeInRequest(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNicTypeInRequest(input string) (*NicTypeInRequest, error) { + vals := map[string]NicTypeInRequest{ + "privatenic": NicTypeInRequestPrivateNic, + "publicnic": NicTypeInRequestPublicNic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NicTypeInRequest(input) + return &out, nil +} + +type NicTypeInResponse string + +const ( + NicTypeInResponseAdditionalNic NicTypeInResponse = "AdditionalNic" + NicTypeInResponsePrivateNic NicTypeInResponse = "PrivateNic" + NicTypeInResponsePublicNic NicTypeInResponse = "PublicNic" +) + +func PossibleValuesForNicTypeInResponse() []string { + return []string{ + string(NicTypeInResponseAdditionalNic), + string(NicTypeInResponsePrivateNic), + string(NicTypeInResponsePublicNic), + } +} + +func (s *NicTypeInResponse) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNicTypeInResponse(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNicTypeInResponse(input string) (*NicTypeInResponse, error) { + vals := map[string]NicTypeInResponse{ + "additionalnic": NicTypeInResponseAdditionalNic, + "privatenic": NicTypeInResponsePrivateNic, + "publicnic": NicTypeInResponsePublicNic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NicTypeInResponse(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/id_inboundsecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/id_inboundsecurityrule.go new file mode 100644 index 000000000000..4da7242be6d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/id_inboundsecurityrule.go @@ -0,0 +1,139 @@ +package networkvirtualappliances + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&InboundSecurityRuleId{}) +} + +var _ resourceids.ResourceId = &InboundSecurityRuleId{} + +// InboundSecurityRuleId is a struct representing the Resource ID for a Inbound Security Rule +type InboundSecurityRuleId struct { + SubscriptionId string + ResourceGroupName string + NetworkVirtualApplianceName string + InboundSecurityRuleName string +} + +// NewInboundSecurityRuleID returns a new InboundSecurityRuleId struct +func NewInboundSecurityRuleID(subscriptionId string, resourceGroupName string, networkVirtualApplianceName string, inboundSecurityRuleName string) InboundSecurityRuleId { + return InboundSecurityRuleId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkVirtualApplianceName: networkVirtualApplianceName, + InboundSecurityRuleName: inboundSecurityRuleName, + } +} + +// ParseInboundSecurityRuleID parses 'input' into a InboundSecurityRuleId +func ParseInboundSecurityRuleID(input string) (*InboundSecurityRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&InboundSecurityRuleId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := InboundSecurityRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseInboundSecurityRuleIDInsensitively parses 'input' case-insensitively into a InboundSecurityRuleId +// note: this method should only be used for API response data and not user input +func ParseInboundSecurityRuleIDInsensitively(input string) (*InboundSecurityRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&InboundSecurityRuleId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := InboundSecurityRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *InboundSecurityRuleId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkVirtualApplianceName, ok = input.Parsed["networkVirtualApplianceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkVirtualApplianceName", input) + } + + if id.InboundSecurityRuleName, ok = input.Parsed["inboundSecurityRuleName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "inboundSecurityRuleName", input) + } + + return nil +} + +// ValidateInboundSecurityRuleID checks that 'input' can be parsed as a Inbound Security Rule ID +func ValidateInboundSecurityRuleID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseInboundSecurityRuleID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Inbound Security Rule ID +func (id InboundSecurityRuleId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkVirtualAppliances/%s/inboundSecurityRules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkVirtualApplianceName, id.InboundSecurityRuleName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Inbound Security Rule ID +func (id InboundSecurityRuleId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), + resourceids.StaticSegment("staticInboundSecurityRules", "inboundSecurityRules", "inboundSecurityRules"), + resourceids.UserSpecifiedSegment("inboundSecurityRuleName", "inboundSecurityRuleName"), + } +} + +// String returns a human-readable description of this Inbound Security Rule ID +func (id InboundSecurityRuleId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Virtual Appliance Name: %q", id.NetworkVirtualApplianceName), + fmt.Sprintf("Inbound Security Rule Name: %q", id.InboundSecurityRuleName), + } + return fmt.Sprintf("Inbound Security Rule (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/id_networkvirtualappliance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/id_networkvirtualappliance.go new file mode 100644 index 000000000000..a412e45cbba5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/id_networkvirtualappliance.go @@ -0,0 +1,130 @@ +package networkvirtualappliances + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkVirtualApplianceId{}) +} + +var _ resourceids.ResourceId = &NetworkVirtualApplianceId{} + +// NetworkVirtualApplianceId is a struct representing the Resource ID for a Network Virtual Appliance +type NetworkVirtualApplianceId struct { + SubscriptionId string + ResourceGroupName string + NetworkVirtualApplianceName string +} + +// NewNetworkVirtualApplianceID returns a new NetworkVirtualApplianceId struct +func NewNetworkVirtualApplianceID(subscriptionId string, resourceGroupName string, networkVirtualApplianceName string) NetworkVirtualApplianceId { + return NetworkVirtualApplianceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkVirtualApplianceName: networkVirtualApplianceName, + } +} + +// ParseNetworkVirtualApplianceID parses 'input' into a NetworkVirtualApplianceId +func ParseNetworkVirtualApplianceID(input string) (*NetworkVirtualApplianceId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkVirtualApplianceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkVirtualApplianceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkVirtualApplianceIDInsensitively parses 'input' case-insensitively into a NetworkVirtualApplianceId +// note: this method should only be used for API response data and not user input +func ParseNetworkVirtualApplianceIDInsensitively(input string) (*NetworkVirtualApplianceId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkVirtualApplianceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkVirtualApplianceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkVirtualApplianceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkVirtualApplianceName, ok = input.Parsed["networkVirtualApplianceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkVirtualApplianceName", input) + } + + return nil +} + +// ValidateNetworkVirtualApplianceID checks that 'input' can be parsed as a Network Virtual Appliance ID +func ValidateNetworkVirtualApplianceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkVirtualApplianceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Virtual Appliance ID +func (id NetworkVirtualApplianceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkVirtualAppliances/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkVirtualApplianceName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Virtual Appliance ID +func (id NetworkVirtualApplianceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), + } +} + +// String returns a human-readable description of this Network Virtual Appliance ID +func (id NetworkVirtualApplianceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Virtual Appliance Name: %q", id.NetworkVirtualApplianceName), + } + return fmt.Sprintf("Network Virtual Appliance (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_createorupdate.go new file mode 100644 index 000000000000..aa9b339951df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_createorupdate.go @@ -0,0 +1,75 @@ +package networkvirtualappliances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *NetworkVirtualAppliance +} + +// CreateOrUpdate ... +func (c NetworkVirtualAppliancesClient) CreateOrUpdate(ctx context.Context, id NetworkVirtualApplianceId, input NetworkVirtualAppliance) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c NetworkVirtualAppliancesClient) CreateOrUpdateThenPoll(ctx context.Context, id NetworkVirtualApplianceId, input NetworkVirtualAppliance) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_delete.go new file mode 100644 index 000000000000..9eb9b6f13ac9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_delete.go @@ -0,0 +1,71 @@ +package networkvirtualappliances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c NetworkVirtualAppliancesClient) Delete(ctx context.Context, id NetworkVirtualApplianceId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c NetworkVirtualAppliancesClient) DeleteThenPoll(ctx context.Context, id NetworkVirtualApplianceId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_get.go new file mode 100644 index 000000000000..2310883a4481 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_get.go @@ -0,0 +1,83 @@ +package networkvirtualappliances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkVirtualAppliance +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c NetworkVirtualAppliancesClient) Get(ctx context.Context, id NetworkVirtualApplianceId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkVirtualAppliance + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_inboundsecurityrulecreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_inboundsecurityrulecreateorupdate.go new file mode 100644 index 000000000000..6c268a71480d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_inboundsecurityrulecreateorupdate.go @@ -0,0 +1,75 @@ +package networkvirtualappliances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundSecurityRuleCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *InboundSecurityRule +} + +// InboundSecurityRuleCreateOrUpdate ... +func (c NetworkVirtualAppliancesClient) InboundSecurityRuleCreateOrUpdate(ctx context.Context, id InboundSecurityRuleId, input InboundSecurityRule) (result InboundSecurityRuleCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// InboundSecurityRuleCreateOrUpdateThenPoll performs InboundSecurityRuleCreateOrUpdate then polls until it's completed +func (c NetworkVirtualAppliancesClient) InboundSecurityRuleCreateOrUpdateThenPoll(ctx context.Context, id InboundSecurityRuleId, input InboundSecurityRule) error { + result, err := c.InboundSecurityRuleCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing InboundSecurityRuleCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after InboundSecurityRuleCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_inboundsecurityruleget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_inboundsecurityruleget.go new file mode 100644 index 000000000000..708005f5e02c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_inboundsecurityruleget.go @@ -0,0 +1,53 @@ +package networkvirtualappliances + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundSecurityRuleGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *InboundSecurityRule +} + +// InboundSecurityRuleGet ... +func (c NetworkVirtualAppliancesClient) InboundSecurityRuleGet(ctx context.Context, id InboundSecurityRuleId) (result InboundSecurityRuleGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model InboundSecurityRule + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_list.go new file mode 100644 index 000000000000..35259c60e6a0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_list.go @@ -0,0 +1,106 @@ +package networkvirtualappliances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkVirtualAppliance +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkVirtualAppliance +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c NetworkVirtualAppliancesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkVirtualAppliances", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkVirtualAppliance `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c NetworkVirtualAppliancesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, NetworkVirtualApplianceOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkVirtualAppliancesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate NetworkVirtualApplianceOperationPredicate) (result ListCompleteResult, err error) { + items := make([]NetworkVirtualAppliance, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_listbyresourcegroup.go new file mode 100644 index 000000000000..fe63e8307c6b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_listbyresourcegroup.go @@ -0,0 +1,106 @@ +package networkvirtualappliances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkVirtualAppliance +} + +type ListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkVirtualAppliance +} + +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByResourceGroup ... +func (c NetworkVirtualAppliancesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkVirtualAppliances", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkVirtualAppliance `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByResourceGroupComplete retrieves all the results into a single object +func (c NetworkVirtualAppliancesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, NetworkVirtualApplianceOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkVirtualAppliancesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate NetworkVirtualApplianceOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]NetworkVirtualAppliance, 0) + + resp, err := c.ListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_restart.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_restart.go new file mode 100644 index 000000000000..3a260c048e5f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_restart.go @@ -0,0 +1,75 @@ +package networkvirtualappliances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RestartOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *NetworkVirtualApplianceInstanceIds +} + +// Restart ... +func (c NetworkVirtualAppliancesClient) Restart(ctx context.Context, id NetworkVirtualApplianceId, input NetworkVirtualApplianceInstanceIds) (result RestartOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/restart", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RestartThenPoll performs Restart then polls until it's completed +func (c NetworkVirtualAppliancesClient) RestartThenPoll(ctx context.Context, id NetworkVirtualApplianceId, input NetworkVirtualApplianceInstanceIds) error { + result, err := c.Restart(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Restart: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Restart: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_updatetags.go new file mode 100644 index 000000000000..a8a8391f4a49 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_updatetags.go @@ -0,0 +1,57 @@ +package networkvirtualappliances + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkVirtualAppliance +} + +// UpdateTags ... +func (c NetworkVirtualAppliancesClient) UpdateTags(ctx context.Context, id NetworkVirtualApplianceId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkVirtualAppliance + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_delegationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_delegationproperties.go new file mode 100644 index 000000000000..cf2170e1c38c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_delegationproperties.go @@ -0,0 +1,9 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DelegationProperties struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityrule.go new file mode 100644 index 000000000000..f921a8c65340 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityrule.go @@ -0,0 +1,12 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundSecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundSecurityRuleProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityruleproperties.go new file mode 100644 index 000000000000..c4dafbd39cca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityruleproperties.go @@ -0,0 +1,10 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundSecurityRuleProperties struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RuleType *InboundSecurityRuleType `json:"ruleType,omitempty"` + Rules *[]InboundSecurityRules `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityrules.go new file mode 100644 index 000000000000..c8c2d5651768 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityrules.go @@ -0,0 +1,13 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundSecurityRules struct { + AppliesOn *[]string `json:"appliesOn,omitempty"` + DestinationPortRange *int64 `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Name *string `json:"name,omitempty"` + Protocol *InboundSecurityRulesProtocol `json:"protocol,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_internetingresspublicipsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_internetingresspublicipsproperties.go new file mode 100644 index 000000000000..692265ca5f92 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_internetingresspublicipsproperties.go @@ -0,0 +1,8 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InternetIngressPublicIPsProperties struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliance.go new file mode 100644 index 000000000000..03612c989df6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliance.go @@ -0,0 +1,19 @@ +package networkvirtualappliances + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualAppliance struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkVirtualAppliancePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualapplianceinstanceids.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualapplianceinstanceids.go new file mode 100644 index 000000000000..3d9d42b16943 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualapplianceinstanceids.go @@ -0,0 +1,8 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualApplianceInstanceIds struct { + InstanceIds *[]string `json:"instanceIds,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformat.go new file mode 100644 index 000000000000..17e239bf3543 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformat.go @@ -0,0 +1,26 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualAppliancePropertiesFormat struct { + AdditionalNics *[]VirtualApplianceAdditionalNicProperties `json:"additionalNics,omitempty"` + AddressPrefix *string `json:"addressPrefix,omitempty"` + BootStrapConfigurationBlobs *[]string `json:"bootStrapConfigurationBlobs,omitempty"` + CloudInitConfiguration *string `json:"cloudInitConfiguration,omitempty"` + CloudInitConfigurationBlobs *[]string `json:"cloudInitConfigurationBlobs,omitempty"` + Delegation *DelegationProperties `json:"delegation,omitempty"` + DeploymentType *string `json:"deploymentType,omitempty"` + InboundSecurityRules *[]SubResource `json:"inboundSecurityRules,omitempty"` + InternetIngressPublicIPs *[]InternetIngressPublicIPsProperties `json:"internetIngressPublicIps,omitempty"` + NetworkProfile *NetworkVirtualAppliancePropertiesFormatNetworkProfile `json:"networkProfile,omitempty"` + NvaSku *VirtualApplianceSkuProperties `json:"nvaSku,omitempty"` + PartnerManagedResource *PartnerManagedResourceProperties `json:"partnerManagedResource,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SshPublicKey *string `json:"sshPublicKey,omitempty"` + VirtualApplianceAsn *int64 `json:"virtualApplianceAsn,omitempty"` + VirtualApplianceConnections *[]SubResource `json:"virtualApplianceConnections,omitempty"` + VirtualApplianceNics *[]VirtualApplianceNicProperties `json:"virtualApplianceNics,omitempty"` + VirtualApplianceSites *[]SubResource `json:"virtualApplianceSites,omitempty"` + VirtualHub *SubResource `json:"virtualHub,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformatnetworkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformatnetworkprofile.go new file mode 100644 index 000000000000..0d4f966f36c7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformatnetworkprofile.go @@ -0,0 +1,8 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualAppliancePropertiesFormatNetworkProfile struct { + NetworkInterfaceConfigurations *[]VirtualApplianceNetworkInterfaceConfiguration `json:"networkInterfaceConfigurations,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_partnermanagedresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_partnermanagedresourceproperties.go new file mode 100644 index 000000000000..e89793be377c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_partnermanagedresourceproperties.go @@ -0,0 +1,10 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PartnerManagedResourceProperties struct { + Id *string `json:"id,omitempty"` + InternalLoadBalancerId *string `json:"internalLoadBalancerId,omitempty"` + StandardLoadBalancerId *string `json:"standardLoadBalancerId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_subresource.go new file mode 100644 index 000000000000..8df29cf10318 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_subresource.go @@ -0,0 +1,8 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_tagsobject.go new file mode 100644 index 000000000000..3ad1ec8468c7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_tagsobject.go @@ -0,0 +1,8 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceadditionalnicproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceadditionalnicproperties.go new file mode 100644 index 000000000000..7eb59c309c13 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceadditionalnicproperties.go @@ -0,0 +1,9 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualApplianceAdditionalNicProperties struct { + HasPublicIP *bool `json:"hasPublicIp,omitempty"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceipconfiguration.go new file mode 100644 index 000000000000..1ebade78697e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceipconfiguration.go @@ -0,0 +1,9 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualApplianceIPConfiguration struct { + Name *string `json:"name,omitempty"` + Properties *VirtualApplianceIPConfigurationProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceipconfigurationproperties.go new file mode 100644 index 000000000000..830f6a29d9a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceipconfigurationproperties.go @@ -0,0 +1,8 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualApplianceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfiguration.go new file mode 100644 index 000000000000..de88f83ae8d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfiguration.go @@ -0,0 +1,9 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualApplianceNetworkInterfaceConfiguration struct { + Properties *VirtualApplianceNetworkInterfaceConfigurationProperties `json:"properties,omitempty"` + Type *NicTypeInRequest `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfigurationproperties.go new file mode 100644 index 000000000000..436f144e6fc2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfigurationproperties.go @@ -0,0 +1,8 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualApplianceNetworkInterfaceConfigurationProperties struct { + IPConfigurations *[]VirtualApplianceIPConfiguration `json:"ipConfigurations,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenicproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenicproperties.go new file mode 100644 index 000000000000..0823febcef5c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenicproperties.go @@ -0,0 +1,12 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualApplianceNicProperties struct { + InstanceName *string `json:"instanceName,omitempty"` + Name *string `json:"name,omitempty"` + NicType *NicTypeInResponse `json:"nicType,omitempty"` + PrivateIPAddress *string `json:"privateIpAddress,omitempty"` + PublicIPAddress *string `json:"publicIpAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceskuproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceskuproperties.go new file mode 100644 index 000000000000..b194523806f7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceskuproperties.go @@ -0,0 +1,10 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualApplianceSkuProperties struct { + BundledScaleUnit *string `json:"bundledScaleUnit,omitempty"` + MarketPlaceVersion *string `json:"marketPlaceVersion,omitempty"` + Vendor *string `json:"vendor,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/predicates.go new file mode 100644 index 000000000000..676b2af6c25c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/predicates.go @@ -0,0 +1,37 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualApplianceOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p NetworkVirtualApplianceOperationPredicate) Matches(input NetworkVirtualAppliance) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/version.go new file mode 100644 index 000000000000..9a869ebd4d56 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/version.go @@ -0,0 +1,10 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkvirtualappliances/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/README.md new file mode 100644 index 000000000000..7c73009117f3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/README.md @@ -0,0 +1,331 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers` Documentation + +The `networkwatchers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers" +``` + + +### Client Initialization + +```go +client := networkwatchers.NewNetworkWatchersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkWatchersClient.CheckConnectivity` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.ConnectivityParameters{ + // ... +} + + +if err := client.CheckConnectivityThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.NetworkWatcher{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkWatchersClient.Delete` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.Get` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkWatchersClient.GetAzureReachabilityReport` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.AzureReachabilityReportParameters{ + // ... +} + + +if err := client.GetAzureReachabilityReportThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.GetFlowLogStatus` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.FlowLogStatusParameters{ + // ... +} + + +if err := client.GetFlowLogStatusThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.GetNetworkConfigurationDiagnostic` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.NetworkConfigurationDiagnosticParameters{ + // ... +} + + +if err := client.GetNetworkConfigurationDiagnosticThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.GetNextHop` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.NextHopParameters{ + // ... +} + + +if err := client.GetNextHopThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.GetTopology` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.TopologyParameters{ + // ... +} + + +read, err := client.GetTopology(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkWatchersClient.GetTroubleshooting` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.TroubleshootingParameters{ + // ... +} + + +if err := client.GetTroubleshootingThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.GetTroubleshootingResult` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.QueryTroubleshootingParameters{ + // ... +} + + +if err := client.GetTroubleshootingResultThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.GetVMSecurityRules` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.SecurityGroupViewParameters{ + // ... +} + + +if err := client.GetVMSecurityRulesThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +read, err := client.List(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkWatchersClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.ListAll(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkWatchersClient.ListAvailableProviders` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.AvailableProvidersListParameters{ + // ... +} + + +if err := client.ListAvailableProvidersThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.SetFlowLogConfiguration` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.FlowLogInformation{ + // ... +} + + +if err := client.SetFlowLogConfigurationThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.UpdateTags` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkWatchersClient.VerifyIPFlow` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.VerificationIPFlowParameters{ + // ... +} + + +if err := client.VerifyIPFlowThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/client.go new file mode 100644 index 000000000000..b544d19c2068 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/client.go @@ -0,0 +1,26 @@ +package networkwatchers + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkWatchersClient struct { + Client *resourcemanager.Client +} + +func NewNetworkWatchersClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkWatchersClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "networkwatchers", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating NetworkWatchersClient: %+v", err) + } + + return &NetworkWatchersClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/constants.go new file mode 100644 index 000000000000..2e400cad0f7c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/constants.go @@ -0,0 +1,855 @@ +package networkwatchers + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Access string + +const ( + AccessAllow Access = "Allow" + AccessDeny Access = "Deny" +) + +func PossibleValuesForAccess() []string { + return []string{ + string(AccessAllow), + string(AccessDeny), + } +} + +func (s *Access) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAccess(input string) (*Access, error) { + vals := map[string]Access{ + "allow": AccessAllow, + "deny": AccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Access(input) + return &out, nil +} + +type AssociationType string + +const ( + AssociationTypeAssociated AssociationType = "Associated" + AssociationTypeContains AssociationType = "Contains" +) + +func PossibleValuesForAssociationType() []string { + return []string{ + string(AssociationTypeAssociated), + string(AssociationTypeContains), + } +} + +func (s *AssociationType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAssociationType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAssociationType(input string) (*AssociationType, error) { + vals := map[string]AssociationType{ + "associated": AssociationTypeAssociated, + "contains": AssociationTypeContains, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AssociationType(input) + return &out, nil +} + +type ConnectionStatus string + +const ( + ConnectionStatusConnected ConnectionStatus = "Connected" + ConnectionStatusDegraded ConnectionStatus = "Degraded" + ConnectionStatusDisconnected ConnectionStatus = "Disconnected" + ConnectionStatusUnknown ConnectionStatus = "Unknown" +) + +func PossibleValuesForConnectionStatus() []string { + return []string{ + string(ConnectionStatusConnected), + string(ConnectionStatusDegraded), + string(ConnectionStatusDisconnected), + string(ConnectionStatusUnknown), + } +} + +func (s *ConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseConnectionStatus(input string) (*ConnectionStatus, error) { + vals := map[string]ConnectionStatus{ + "connected": ConnectionStatusConnected, + "degraded": ConnectionStatusDegraded, + "disconnected": ConnectionStatusDisconnected, + "unknown": ConnectionStatusUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ConnectionStatus(input) + return &out, nil +} + +type Direction string + +const ( + DirectionInbound Direction = "Inbound" + DirectionOutbound Direction = "Outbound" +) + +func PossibleValuesForDirection() []string { + return []string{ + string(DirectionInbound), + string(DirectionOutbound), + } +} + +func (s *Direction) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDirection(input string) (*Direction, error) { + vals := map[string]Direction{ + "inbound": DirectionInbound, + "outbound": DirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Direction(input) + return &out, nil +} + +type EffectiveSecurityRuleProtocol string + +const ( + EffectiveSecurityRuleProtocolAll EffectiveSecurityRuleProtocol = "All" + EffectiveSecurityRuleProtocolTcp EffectiveSecurityRuleProtocol = "Tcp" + EffectiveSecurityRuleProtocolUdp EffectiveSecurityRuleProtocol = "Udp" +) + +func PossibleValuesForEffectiveSecurityRuleProtocol() []string { + return []string{ + string(EffectiveSecurityRuleProtocolAll), + string(EffectiveSecurityRuleProtocolTcp), + string(EffectiveSecurityRuleProtocolUdp), + } +} + +func (s *EffectiveSecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEffectiveSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEffectiveSecurityRuleProtocol(input string) (*EffectiveSecurityRuleProtocol, error) { + vals := map[string]EffectiveSecurityRuleProtocol{ + "all": EffectiveSecurityRuleProtocolAll, + "tcp": EffectiveSecurityRuleProtocolTcp, + "udp": EffectiveSecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EffectiveSecurityRuleProtocol(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type HTTPMethod string + +const ( + HTTPMethodGet HTTPMethod = "Get" +) + +func PossibleValuesForHTTPMethod() []string { + return []string{ + string(HTTPMethodGet), + } +} + +func (s *HTTPMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseHTTPMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseHTTPMethod(input string) (*HTTPMethod, error) { + vals := map[string]HTTPMethod{ + "get": HTTPMethodGet, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := HTTPMethod(input) + return &out, nil +} + +type IPFlowProtocol string + +const ( + IPFlowProtocolTCP IPFlowProtocol = "TCP" + IPFlowProtocolUDP IPFlowProtocol = "UDP" +) + +func PossibleValuesForIPFlowProtocol() []string { + return []string{ + string(IPFlowProtocolTCP), + string(IPFlowProtocolUDP), + } +} + +func (s *IPFlowProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPFlowProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPFlowProtocol(input string) (*IPFlowProtocol, error) { + vals := map[string]IPFlowProtocol{ + "tcp": IPFlowProtocolTCP, + "udp": IPFlowProtocolUDP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPFlowProtocol(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type IssueType string + +const ( + IssueTypeAgentStopped IssueType = "AgentStopped" + IssueTypeDnsResolution IssueType = "DnsResolution" + IssueTypeGuestFirewall IssueType = "GuestFirewall" + IssueTypeNetworkSecurityRule IssueType = "NetworkSecurityRule" + IssueTypePlatform IssueType = "Platform" + IssueTypePortThrottled IssueType = "PortThrottled" + IssueTypeSocketBind IssueType = "SocketBind" + IssueTypeUnknown IssueType = "Unknown" + IssueTypeUserDefinedRoute IssueType = "UserDefinedRoute" +) + +func PossibleValuesForIssueType() []string { + return []string{ + string(IssueTypeAgentStopped), + string(IssueTypeDnsResolution), + string(IssueTypeGuestFirewall), + string(IssueTypeNetworkSecurityRule), + string(IssueTypePlatform), + string(IssueTypePortThrottled), + string(IssueTypeSocketBind), + string(IssueTypeUnknown), + string(IssueTypeUserDefinedRoute), + } +} + +func (s *IssueType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIssueType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIssueType(input string) (*IssueType, error) { + vals := map[string]IssueType{ + "agentstopped": IssueTypeAgentStopped, + "dnsresolution": IssueTypeDnsResolution, + "guestfirewall": IssueTypeGuestFirewall, + "networksecurityrule": IssueTypeNetworkSecurityRule, + "platform": IssueTypePlatform, + "portthrottled": IssueTypePortThrottled, + "socketbind": IssueTypeSocketBind, + "unknown": IssueTypeUnknown, + "userdefinedroute": IssueTypeUserDefinedRoute, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IssueType(input) + return &out, nil +} + +type NextHopType string + +const ( + NextHopTypeHyperNetGateway NextHopType = "HyperNetGateway" + NextHopTypeInternet NextHopType = "Internet" + NextHopTypeNone NextHopType = "None" + NextHopTypeVirtualAppliance NextHopType = "VirtualAppliance" + NextHopTypeVirtualNetworkGateway NextHopType = "VirtualNetworkGateway" + NextHopTypeVnetLocal NextHopType = "VnetLocal" +) + +func PossibleValuesForNextHopType() []string { + return []string{ + string(NextHopTypeHyperNetGateway), + string(NextHopTypeInternet), + string(NextHopTypeNone), + string(NextHopTypeVirtualAppliance), + string(NextHopTypeVirtualNetworkGateway), + string(NextHopTypeVnetLocal), + } +} + +func (s *NextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNextHopType(input string) (*NextHopType, error) { + vals := map[string]NextHopType{ + "hypernetgateway": NextHopTypeHyperNetGateway, + "internet": NextHopTypeInternet, + "none": NextHopTypeNone, + "virtualappliance": NextHopTypeVirtualAppliance, + "virtualnetworkgateway": NextHopTypeVirtualNetworkGateway, + "vnetlocal": NextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NextHopType(input) + return &out, nil +} + +type Origin string + +const ( + OriginInbound Origin = "Inbound" + OriginLocal Origin = "Local" + OriginOutbound Origin = "Outbound" +) + +func PossibleValuesForOrigin() []string { + return []string{ + string(OriginInbound), + string(OriginLocal), + string(OriginOutbound), + } +} + +func (s *Origin) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseOrigin(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseOrigin(input string) (*Origin, error) { + vals := map[string]Origin{ + "inbound": OriginInbound, + "local": OriginLocal, + "outbound": OriginOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Origin(input) + return &out, nil +} + +type Protocol string + +const ( + ProtocolHTTP Protocol = "Http" + ProtocolHTTPS Protocol = "Https" + ProtocolIcmp Protocol = "Icmp" + ProtocolTcp Protocol = "Tcp" +) + +func PossibleValuesForProtocol() []string { + return []string{ + string(ProtocolHTTP), + string(ProtocolHTTPS), + string(ProtocolIcmp), + string(ProtocolTcp), + } +} + +func (s *Protocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProtocol(input string) (*Protocol, error) { + vals := map[string]Protocol{ + "http": ProtocolHTTP, + "https": ProtocolHTTPS, + "icmp": ProtocolIcmp, + "tcp": ProtocolTcp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Protocol(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type Severity string + +const ( + SeverityError Severity = "Error" + SeverityWarning Severity = "Warning" +) + +func PossibleValuesForSeverity() []string { + return []string{ + string(SeverityError), + string(SeverityWarning), + } +} + +func (s *Severity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSeverity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSeverity(input string) (*Severity, error) { + vals := map[string]Severity{ + "error": SeverityError, + "warning": SeverityWarning, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Severity(input) + return &out, nil +} + +type VerbosityLevel string + +const ( + VerbosityLevelFull VerbosityLevel = "Full" + VerbosityLevelMinimum VerbosityLevel = "Minimum" + VerbosityLevelNormal VerbosityLevel = "Normal" +) + +func PossibleValuesForVerbosityLevel() []string { + return []string{ + string(VerbosityLevelFull), + string(VerbosityLevelMinimum), + string(VerbosityLevelNormal), + } +} + +func (s *VerbosityLevel) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVerbosityLevel(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVerbosityLevel(input string) (*VerbosityLevel, error) { + vals := map[string]VerbosityLevel{ + "full": VerbosityLevelFull, + "minimum": VerbosityLevelMinimum, + "normal": VerbosityLevelNormal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VerbosityLevel(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/id_networkwatcher.go new file mode 100644 index 000000000000..2e22c948a131 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/id_networkwatcher.go @@ -0,0 +1,130 @@ +package networkwatchers + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkWatcherId{}) +} + +var _ resourceids.ResourceId = &NetworkWatcherId{} + +// NetworkWatcherId is a struct representing the Resource ID for a Network Watcher +type NetworkWatcherId struct { + SubscriptionId string + ResourceGroupName string + NetworkWatcherName string +} + +// NewNetworkWatcherID returns a new NetworkWatcherId struct +func NewNetworkWatcherID(subscriptionId string, resourceGroupName string, networkWatcherName string) NetworkWatcherId { + return NetworkWatcherId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkWatcherName: networkWatcherName, + } +} + +// ParseNetworkWatcherID parses 'input' into a NetworkWatcherId +func ParseNetworkWatcherID(input string) (*NetworkWatcherId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkWatcherId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkWatcherId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkWatcherIDInsensitively parses 'input' case-insensitively into a NetworkWatcherId +// note: this method should only be used for API response data and not user input +func ParseNetworkWatcherIDInsensitively(input string) (*NetworkWatcherId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkWatcherId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkWatcherId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkWatcherId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkWatcherName, ok = input.Parsed["networkWatcherName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkWatcherName", input) + } + + return nil +} + +// ValidateNetworkWatcherID checks that 'input' can be parsed as a Network Watcher ID +func ValidateNetworkWatcherID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkWatcherID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Watcher ID +func (id NetworkWatcherId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkWatchers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkWatcherName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Watcher ID +func (id NetworkWatcherId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), + } +} + +// String returns a human-readable description of this Network Watcher ID +func (id NetworkWatcherId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Watcher Name: %q", id.NetworkWatcherName), + } + return fmt.Sprintf("Network Watcher (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_checkconnectivity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_checkconnectivity.go new file mode 100644 index 000000000000..a41a47a9dbff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_checkconnectivity.go @@ -0,0 +1,75 @@ +package networkwatchers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckConnectivityOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ConnectivityInformation +} + +// CheckConnectivity ... +func (c NetworkWatchersClient) CheckConnectivity(ctx context.Context, id NetworkWatcherId, input ConnectivityParameters) (result CheckConnectivityOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/connectivityCheck", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CheckConnectivityThenPoll performs CheckConnectivity then polls until it's completed +func (c NetworkWatchersClient) CheckConnectivityThenPoll(ctx context.Context, id NetworkWatcherId, input ConnectivityParameters) error { + result, err := c.CheckConnectivity(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CheckConnectivity: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CheckConnectivity: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_createorupdate.go new file mode 100644 index 000000000000..5881c4d5c10d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_createorupdate.go @@ -0,0 +1,58 @@ +package networkwatchers + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkWatcher +} + +// CreateOrUpdate ... +func (c NetworkWatchersClient) CreateOrUpdate(ctx context.Context, id NetworkWatcherId, input NetworkWatcher) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkWatcher + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_delete.go new file mode 100644 index 000000000000..4c59058ef037 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_delete.go @@ -0,0 +1,70 @@ +package networkwatchers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c NetworkWatchersClient) Delete(ctx context.Context, id NetworkWatcherId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c NetworkWatchersClient) DeleteThenPoll(ctx context.Context, id NetworkWatcherId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_get.go new file mode 100644 index 000000000000..1c429aeb42d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_get.go @@ -0,0 +1,53 @@ +package networkwatchers + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkWatcher +} + +// Get ... +func (c NetworkWatchersClient) Get(ctx context.Context, id NetworkWatcherId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkWatcher + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getazurereachabilityreport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getazurereachabilityreport.go new file mode 100644 index 000000000000..54a23dc1c189 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getazurereachabilityreport.go @@ -0,0 +1,75 @@ +package networkwatchers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetAzureReachabilityReportOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *AzureReachabilityReport +} + +// GetAzureReachabilityReport ... +func (c NetworkWatchersClient) GetAzureReachabilityReport(ctx context.Context, id NetworkWatcherId, input AzureReachabilityReportParameters) (result GetAzureReachabilityReportOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/azureReachabilityReport", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetAzureReachabilityReportThenPoll performs GetAzureReachabilityReport then polls until it's completed +func (c NetworkWatchersClient) GetAzureReachabilityReportThenPoll(ctx context.Context, id NetworkWatcherId, input AzureReachabilityReportParameters) error { + result, err := c.GetAzureReachabilityReport(ctx, id, input) + if err != nil { + return fmt.Errorf("performing GetAzureReachabilityReport: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetAzureReachabilityReport: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getflowlogstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getflowlogstatus.go new file mode 100644 index 000000000000..af6f975c6912 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getflowlogstatus.go @@ -0,0 +1,75 @@ +package networkwatchers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetFlowLogStatusOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *FlowLogInformation +} + +// GetFlowLogStatus ... +func (c NetworkWatchersClient) GetFlowLogStatus(ctx context.Context, id NetworkWatcherId, input FlowLogStatusParameters) (result GetFlowLogStatusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/queryFlowLogStatus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetFlowLogStatusThenPoll performs GetFlowLogStatus then polls until it's completed +func (c NetworkWatchersClient) GetFlowLogStatusThenPoll(ctx context.Context, id NetworkWatcherId, input FlowLogStatusParameters) error { + result, err := c.GetFlowLogStatus(ctx, id, input) + if err != nil { + return fmt.Errorf("performing GetFlowLogStatus: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetFlowLogStatus: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getnetworkconfigurationdiagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getnetworkconfigurationdiagnostic.go new file mode 100644 index 000000000000..de67c4ef4d4d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getnetworkconfigurationdiagnostic.go @@ -0,0 +1,75 @@ +package networkwatchers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetNetworkConfigurationDiagnosticOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *NetworkConfigurationDiagnosticResponse +} + +// GetNetworkConfigurationDiagnostic ... +func (c NetworkWatchersClient) GetNetworkConfigurationDiagnostic(ctx context.Context, id NetworkWatcherId, input NetworkConfigurationDiagnosticParameters) (result GetNetworkConfigurationDiagnosticOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/networkConfigurationDiagnostic", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetNetworkConfigurationDiagnosticThenPoll performs GetNetworkConfigurationDiagnostic then polls until it's completed +func (c NetworkWatchersClient) GetNetworkConfigurationDiagnosticThenPoll(ctx context.Context, id NetworkWatcherId, input NetworkConfigurationDiagnosticParameters) error { + result, err := c.GetNetworkConfigurationDiagnostic(ctx, id, input) + if err != nil { + return fmt.Errorf("performing GetNetworkConfigurationDiagnostic: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetNetworkConfigurationDiagnostic: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getnexthop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getnexthop.go new file mode 100644 index 000000000000..56fe43d4d11b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getnexthop.go @@ -0,0 +1,75 @@ +package networkwatchers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetNextHopOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *NextHopResult +} + +// GetNextHop ... +func (c NetworkWatchersClient) GetNextHop(ctx context.Context, id NetworkWatcherId, input NextHopParameters) (result GetNextHopOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/nextHop", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetNextHopThenPoll performs GetNextHop then polls until it's completed +func (c NetworkWatchersClient) GetNextHopThenPoll(ctx context.Context, id NetworkWatcherId, input NextHopParameters) error { + result, err := c.GetNextHop(ctx, id, input) + if err != nil { + return fmt.Errorf("performing GetNextHop: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetNextHop: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettopology.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettopology.go new file mode 100644 index 000000000000..68afb0d82060 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettopology.go @@ -0,0 +1,58 @@ +package networkwatchers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetTopologyOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Topology +} + +// GetTopology ... +func (c NetworkWatchersClient) GetTopology(ctx context.Context, id NetworkWatcherId, input TopologyParameters) (result GetTopologyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/topology", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model Topology + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettroubleshooting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettroubleshooting.go new file mode 100644 index 000000000000..9b5522b81199 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettroubleshooting.go @@ -0,0 +1,75 @@ +package networkwatchers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetTroubleshootingOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *TroubleshootingResult +} + +// GetTroubleshooting ... +func (c NetworkWatchersClient) GetTroubleshooting(ctx context.Context, id NetworkWatcherId, input TroubleshootingParameters) (result GetTroubleshootingOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/troubleshoot", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetTroubleshootingThenPoll performs GetTroubleshooting then polls until it's completed +func (c NetworkWatchersClient) GetTroubleshootingThenPoll(ctx context.Context, id NetworkWatcherId, input TroubleshootingParameters) error { + result, err := c.GetTroubleshooting(ctx, id, input) + if err != nil { + return fmt.Errorf("performing GetTroubleshooting: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetTroubleshooting: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettroubleshootingresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettroubleshootingresult.go new file mode 100644 index 000000000000..fc9651abd21b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettroubleshootingresult.go @@ -0,0 +1,75 @@ +package networkwatchers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetTroubleshootingResultOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *TroubleshootingResult +} + +// GetTroubleshootingResult ... +func (c NetworkWatchersClient) GetTroubleshootingResult(ctx context.Context, id NetworkWatcherId, input QueryTroubleshootingParameters) (result GetTroubleshootingResultOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/queryTroubleshootResult", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetTroubleshootingResultThenPoll performs GetTroubleshootingResult then polls until it's completed +func (c NetworkWatchersClient) GetTroubleshootingResultThenPoll(ctx context.Context, id NetworkWatcherId, input QueryTroubleshootingParameters) error { + result, err := c.GetTroubleshootingResult(ctx, id, input) + if err != nil { + return fmt.Errorf("performing GetTroubleshootingResult: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetTroubleshootingResult: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getvmsecurityrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getvmsecurityrules.go new file mode 100644 index 000000000000..1c8a917ab095 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getvmsecurityrules.go @@ -0,0 +1,75 @@ +package networkwatchers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetVMSecurityRulesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *SecurityGroupViewResult +} + +// GetVMSecurityRules ... +func (c NetworkWatchersClient) GetVMSecurityRules(ctx context.Context, id NetworkWatcherId, input SecurityGroupViewParameters) (result GetVMSecurityRulesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/securityGroupView", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetVMSecurityRulesThenPoll performs GetVMSecurityRules then polls until it's completed +func (c NetworkWatchersClient) GetVMSecurityRulesThenPoll(ctx context.Context, id NetworkWatcherId, input SecurityGroupViewParameters) error { + result, err := c.GetVMSecurityRules(ctx, id, input) + if err != nil { + return fmt.Errorf("performing GetVMSecurityRules: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetVMSecurityRules: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_list.go new file mode 100644 index 000000000000..36d57f04fef7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_list.go @@ -0,0 +1,55 @@ +package networkwatchers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkWatcherListResult +} + +// List ... +func (c NetworkWatchersClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkWatchers", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkWatcherListResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_listall.go new file mode 100644 index 000000000000..b8bd8d8d4a6c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_listall.go @@ -0,0 +1,55 @@ +package networkwatchers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkWatcherListResult +} + +// ListAll ... +func (c NetworkWatchersClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkWatchers", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkWatcherListResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_listavailableproviders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_listavailableproviders.go new file mode 100644 index 000000000000..12768222c1e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_listavailableproviders.go @@ -0,0 +1,75 @@ +package networkwatchers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAvailableProvidersOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *AvailableProvidersList +} + +// ListAvailableProviders ... +func (c NetworkWatchersClient) ListAvailableProviders(ctx context.Context, id NetworkWatcherId, input AvailableProvidersListParameters) (result ListAvailableProvidersOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/availableProvidersList", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ListAvailableProvidersThenPoll performs ListAvailableProviders then polls until it's completed +func (c NetworkWatchersClient) ListAvailableProvidersThenPoll(ctx context.Context, id NetworkWatcherId, input AvailableProvidersListParameters) error { + result, err := c.ListAvailableProviders(ctx, id, input) + if err != nil { + return fmt.Errorf("performing ListAvailableProviders: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ListAvailableProviders: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_setflowlogconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_setflowlogconfiguration.go new file mode 100644 index 000000000000..183183d38e99 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_setflowlogconfiguration.go @@ -0,0 +1,75 @@ +package networkwatchers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SetFlowLogConfigurationOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *FlowLogInformation +} + +// SetFlowLogConfiguration ... +func (c NetworkWatchersClient) SetFlowLogConfiguration(ctx context.Context, id NetworkWatcherId, input FlowLogInformation) (result SetFlowLogConfigurationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/configureFlowLog", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// SetFlowLogConfigurationThenPoll performs SetFlowLogConfiguration then polls until it's completed +func (c NetworkWatchersClient) SetFlowLogConfigurationThenPoll(ctx context.Context, id NetworkWatcherId, input FlowLogInformation) error { + result, err := c.SetFlowLogConfiguration(ctx, id, input) + if err != nil { + return fmt.Errorf("performing SetFlowLogConfiguration: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after SetFlowLogConfiguration: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_updatetags.go new file mode 100644 index 000000000000..0ad45fd1f1a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_updatetags.go @@ -0,0 +1,57 @@ +package networkwatchers + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkWatcher +} + +// UpdateTags ... +func (c NetworkWatchersClient) UpdateTags(ctx context.Context, id NetworkWatcherId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkWatcher + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_verifyipflow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_verifyipflow.go new file mode 100644 index 000000000000..1ef266cf37c8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_verifyipflow.go @@ -0,0 +1,75 @@ +package networkwatchers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VerifyIPFlowOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VerificationIPFlowResult +} + +// VerifyIPFlow ... +func (c NetworkWatchersClient) VerifyIPFlow(ctx context.Context, id NetworkWatcherId, input VerificationIPFlowParameters) (result VerifyIPFlowOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/ipFlowVerify", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VerifyIPFlowThenPoll performs VerifyIPFlow then polls until it's completed +func (c NetworkWatchersClient) VerifyIPFlowThenPoll(ctx context.Context, id NetworkWatcherId, input VerificationIPFlowParameters) error { + result, err := c.VerifyIPFlow(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VerifyIPFlow: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VerifyIPFlow: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..d93456b39dc9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..1edb4c6e9fd1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslist.go new file mode 100644 index 000000000000..f97306f3eb4c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslist.go @@ -0,0 +1,8 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AvailableProvidersList struct { + Countries []AvailableProvidersListCountry `json:"countries"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistcity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistcity.go new file mode 100644 index 000000000000..ad5727a8ad0f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistcity.go @@ -0,0 +1,9 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AvailableProvidersListCity struct { + CityName *string `json:"cityName,omitempty"` + Providers *[]string `json:"providers,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistcountry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistcountry.go new file mode 100644 index 000000000000..98f3996ac176 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistcountry.go @@ -0,0 +1,10 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AvailableProvidersListCountry struct { + CountryName *string `json:"countryName,omitempty"` + Providers *[]string `json:"providers,omitempty"` + States *[]AvailableProvidersListState `json:"states,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistparameters.go new file mode 100644 index 000000000000..e884f5cdb40b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistparameters.go @@ -0,0 +1,11 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AvailableProvidersListParameters struct { + AzureLocations *[]string `json:"azureLocations,omitempty"` + City *string `json:"city,omitempty"` + Country *string `json:"country,omitempty"` + State *string `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableprovidersliststate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableprovidersliststate.go new file mode 100644 index 000000000000..3504bafbcf0d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableprovidersliststate.go @@ -0,0 +1,10 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AvailableProvidersListState struct { + Cities *[]AvailableProvidersListCity `json:"cities,omitempty"` + Providers *[]string `json:"providers,omitempty"` + StateName *string `json:"stateName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreport.go new file mode 100644 index 000000000000..e045a1522bc5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreport.go @@ -0,0 +1,10 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureReachabilityReport struct { + AggregationLevel string `json:"aggregationLevel"` + ProviderLocation AzureReachabilityReportLocation `json:"providerLocation"` + ReachabilityReport []AzureReachabilityReportItem `json:"reachabilityReport"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportitem.go new file mode 100644 index 000000000000..50e7da37b258 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportitem.go @@ -0,0 +1,10 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureReachabilityReportItem struct { + AzureLocation *string `json:"azureLocation,omitempty"` + Latencies *[]AzureReachabilityReportLatencyInfo `json:"latencies,omitempty"` + Provider *string `json:"provider,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportlatencyinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportlatencyinfo.go new file mode 100644 index 000000000000..6755737d7075 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportlatencyinfo.go @@ -0,0 +1,27 @@ +package networkwatchers + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureReachabilityReportLatencyInfo struct { + Score *int64 `json:"score,omitempty"` + TimeStamp *string `json:"timeStamp,omitempty"` +} + +func (o *AzureReachabilityReportLatencyInfo) GetTimeStampAsTime() (*time.Time, error) { + if o.TimeStamp == nil { + return nil, nil + } + return dates.ParseAsFormat(o.TimeStamp, "2006-01-02T15:04:05Z07:00") +} + +func (o *AzureReachabilityReportLatencyInfo) SetTimeStampAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.TimeStamp = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportlocation.go new file mode 100644 index 000000000000..15b7ba2a6ee5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportlocation.go @@ -0,0 +1,10 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureReachabilityReportLocation struct { + City *string `json:"city,omitempty"` + Country string `json:"country"` + State *string `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportparameters.go new file mode 100644 index 000000000000..81d91ee2074a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportparameters.go @@ -0,0 +1,36 @@ +package networkwatchers + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureReachabilityReportParameters struct { + AzureLocations *[]string `json:"azureLocations,omitempty"` + EndTime string `json:"endTime"` + ProviderLocation AzureReachabilityReportLocation `json:"providerLocation"` + Providers *[]string `json:"providers,omitempty"` + StartTime string `json:"startTime"` +} + +func (o *AzureReachabilityReportParameters) GetEndTimeAsTime() (*time.Time, error) { + return dates.ParseAsFormat(&o.EndTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *AzureReachabilityReportParameters) SetEndTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EndTime = formatted +} + +func (o *AzureReachabilityReportParameters) GetStartTimeAsTime() (*time.Time, error) { + return dates.ParseAsFormat(&o.StartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *AzureReachabilityReportParameters) SetStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartTime = formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivitydestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivitydestination.go new file mode 100644 index 000000000000..fd92ab947d75 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivitydestination.go @@ -0,0 +1,10 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectivityDestination struct { + Address *string `json:"address,omitempty"` + Port *int64 `json:"port,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityhop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityhop.go new file mode 100644 index 000000000000..b199aef7d998 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityhop.go @@ -0,0 +1,16 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectivityHop struct { + Address *string `json:"address,omitempty"` + Id *string `json:"id,omitempty"` + Issues *[]ConnectivityIssue `json:"issues,omitempty"` + Links *[]HopLink `json:"links,omitempty"` + NextHopIds *[]string `json:"nextHopIds,omitempty"` + PreviousHopIds *[]string `json:"previousHopIds,omitempty"` + PreviousLinks *[]HopLink `json:"previousLinks,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityinformation.go new file mode 100644 index 000000000000..0ce37ca8e82e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityinformation.go @@ -0,0 +1,14 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectivityInformation struct { + AvgLatencyInMs *int64 `json:"avgLatencyInMs,omitempty"` + ConnectionStatus *ConnectionStatus `json:"connectionStatus,omitempty"` + Hops *[]ConnectivityHop `json:"hops,omitempty"` + MaxLatencyInMs *int64 `json:"maxLatencyInMs,omitempty"` + MinLatencyInMs *int64 `json:"minLatencyInMs,omitempty"` + ProbesFailed *int64 `json:"probesFailed,omitempty"` + ProbesSent *int64 `json:"probesSent,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityissue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityissue.go new file mode 100644 index 000000000000..ba9f23e149cd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityissue.go @@ -0,0 +1,11 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectivityIssue struct { + Context *[]map[string]string `json:"context,omitempty"` + Origin *Origin `json:"origin,omitempty"` + Severity *Severity `json:"severity,omitempty"` + Type *IssueType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityparameters.go new file mode 100644 index 000000000000..2fd0eea7e968 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityparameters.go @@ -0,0 +1,12 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectivityParameters struct { + Destination ConnectivityDestination `json:"destination"` + PreferredIPVersion *IPVersion `json:"preferredIPVersion,omitempty"` + Protocol *Protocol `json:"protocol,omitempty"` + ProtocolConfiguration *ProtocolConfiguration `json:"protocolConfiguration,omitempty"` + Source ConnectivitySource `json:"source"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivitysource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivitysource.go new file mode 100644 index 000000000000..471f2e79c483 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivitysource.go @@ -0,0 +1,9 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectivitySource struct { + Port *int64 `json:"port,omitempty"` + ResourceId string `json:"resourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_effectivenetworksecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_effectivenetworksecurityrule.go new file mode 100644 index 000000000000..738fb4c583df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_effectivenetworksecurityrule.go @@ -0,0 +1,22 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EffectiveNetworkSecurityRule struct { + Access *SecurityRuleAccess `json:"access,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction *SecurityRuleDirection `json:"direction,omitempty"` + ExpandedDestinationAddressPrefix *[]string `json:"expandedDestinationAddressPrefix,omitempty"` + ExpandedSourceAddressPrefix *[]string `json:"expandedSourceAddressPrefix,omitempty"` + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + Protocol *EffectiveSecurityRuleProtocol `json:"protocol,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_evaluatednetworksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_evaluatednetworksecuritygroup.go new file mode 100644 index 000000000000..c471d60f7c3e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_evaluatednetworksecuritygroup.go @@ -0,0 +1,11 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EvaluatedNetworkSecurityGroup struct { + AppliedTo *string `json:"appliedTo,omitempty"` + MatchedRule *MatchedRule `json:"matchedRule,omitempty"` + NetworkSecurityGroupId *string `json:"networkSecurityGroupId,omitempty"` + RulesEvaluationResult *[]NetworkSecurityRulesEvaluationResult `json:"rulesEvaluationResult,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogformatparameters.go new file mode 100644 index 000000000000..804e14368ee9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowloginformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowloginformation.go new file mode 100644 index 000000000000..af84bbc42024 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowloginformation.go @@ -0,0 +1,15 @@ +package networkwatchers + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogInformation struct { + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Properties FlowLogProperties `json:"properties"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogproperties.go new file mode 100644 index 000000000000..624b13072bab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogproperties.go @@ -0,0 +1,12 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogProperties struct { + Enabled bool `json:"enabled"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogstatusparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogstatusparameters.go new file mode 100644 index 000000000000..7adddbce138e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogstatusparameters.go @@ -0,0 +1,8 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogStatusParameters struct { + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_hoplink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_hoplink.go new file mode 100644 index 000000000000..ad0c1a88c32c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_hoplink.go @@ -0,0 +1,13 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HopLink struct { + Context *map[string]string `json:"context,omitempty"` + Issues *[]ConnectivityIssue `json:"issues,omitempty"` + LinkType *string `json:"linkType,omitempty"` + NextHopId *string `json:"nextHopId,omitempty"` + Properties *HopLinkProperties `json:"properties,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_hoplinkproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_hoplinkproperties.go new file mode 100644 index 000000000000..efce6d245812 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_hoplinkproperties.go @@ -0,0 +1,10 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HopLinkProperties struct { + RoundTripTimeAvg *int64 `json:"roundTripTimeAvg,omitempty"` + RoundTripTimeMax *int64 `json:"roundTripTimeMax,omitempty"` + RoundTripTimeMin *int64 `json:"roundTripTimeMin,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_httpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_httpconfiguration.go new file mode 100644 index 000000000000..e469c4b2e2ac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_httpconfiguration.go @@ -0,0 +1,10 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HTTPConfiguration struct { + Headers *[]HTTPHeader `json:"headers,omitempty"` + Method *HTTPMethod `json:"method,omitempty"` + ValidStatusCodes *[]int64 `json:"validStatusCodes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_httpheader.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_httpheader.go new file mode 100644 index 000000000000..5f0b41332f33 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_httpheader.go @@ -0,0 +1,9 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HTTPHeader struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_matchedrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_matchedrule.go new file mode 100644 index 000000000000..7ccb0bf4ff14 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_matchedrule.go @@ -0,0 +1,9 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MatchedRule struct { + Action *string `json:"action,omitempty"` + RuleName *string `json:"ruleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticparameters.go new file mode 100644 index 000000000000..62d57417ce8f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticparameters.go @@ -0,0 +1,10 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkConfigurationDiagnosticParameters struct { + Profiles []NetworkConfigurationDiagnosticProfile `json:"profiles"` + TargetResourceId string `json:"targetResourceId"` + VerbosityLevel *VerbosityLevel `json:"verbosityLevel,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticprofile.go new file mode 100644 index 000000000000..2591d3cb1bc6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticprofile.go @@ -0,0 +1,12 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkConfigurationDiagnosticProfile struct { + Destination string `json:"destination"` + DestinationPort string `json:"destinationPort"` + Direction Direction `json:"direction"` + Protocol string `json:"protocol"` + Source string `json:"source"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticresponse.go new file mode 100644 index 000000000000..a30c9686e579 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticresponse.go @@ -0,0 +1,8 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkConfigurationDiagnosticResponse struct { + Results *[]NetworkConfigurationDiagnosticResult `json:"results,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticresult.go new file mode 100644 index 000000000000..c0c796377f72 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticresult.go @@ -0,0 +1,9 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkConfigurationDiagnosticResult struct { + NetworkSecurityGroupResult *NetworkSecurityGroupResult `json:"networkSecurityGroupResult,omitempty"` + Profile *NetworkConfigurationDiagnosticProfile `json:"profile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkinterfaceassociation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkinterfaceassociation.go new file mode 100644 index 000000000000..0583e0225fde --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkinterfaceassociation.go @@ -0,0 +1,9 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceAssociation struct { + Id *string `json:"id,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networksecuritygroupresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networksecuritygroupresult.go new file mode 100644 index 000000000000..60f125dff532 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networksecuritygroupresult.go @@ -0,0 +1,9 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupResult struct { + EvaluatedNetworkSecurityGroups *[]EvaluatedNetworkSecurityGroup `json:"evaluatedNetworkSecurityGroups,omitempty"` + SecurityRuleAccessResult *SecurityRuleAccess `json:"securityRuleAccessResult,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networksecurityrulesevaluationresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networksecurityrulesevaluationresult.go new file mode 100644 index 000000000000..c54e4c0dc86f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networksecurityrulesevaluationresult.go @@ -0,0 +1,13 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityRulesEvaluationResult struct { + DestinationMatched *bool `json:"destinationMatched,omitempty"` + DestinationPortMatched *bool `json:"destinationPortMatched,omitempty"` + Name *string `json:"name,omitempty"` + ProtocolMatched *bool `json:"protocolMatched,omitempty"` + SourceMatched *bool `json:"sourceMatched,omitempty"` + SourcePortMatched *bool `json:"sourcePortMatched,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcher.go new file mode 100644 index 000000000000..4f58f1863d83 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcher.go @@ -0,0 +1,14 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkWatcher struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkWatcherPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcherlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcherlistresult.go new file mode 100644 index 000000000000..b78fc59bf86b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcherlistresult.go @@ -0,0 +1,8 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkWatcherListResult struct { + Value *[]NetworkWatcher `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcherpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcherpropertiesformat.go new file mode 100644 index 000000000000..d0d1c07ed9ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcherpropertiesformat.go @@ -0,0 +1,8 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkWatcherPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_nexthopparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_nexthopparameters.go new file mode 100644 index 000000000000..b8a7b00f4f34 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_nexthopparameters.go @@ -0,0 +1,11 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NextHopParameters struct { + DestinationIPAddress string `json:"destinationIPAddress"` + SourceIPAddress string `json:"sourceIPAddress"` + TargetNicResourceId *string `json:"targetNicResourceId,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_nexthopresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_nexthopresult.go new file mode 100644 index 000000000000..a8a2ba32b01b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_nexthopresult.go @@ -0,0 +1,10 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NextHopResult struct { + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType *NextHopType `json:"nextHopType,omitempty"` + RouteTableId *string `json:"routeTableId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_protocolconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_protocolconfiguration.go new file mode 100644 index 000000000000..e4592ed2fe58 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_protocolconfiguration.go @@ -0,0 +1,8 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProtocolConfiguration struct { + HTTPConfiguration *HTTPConfiguration `json:"HTTPConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_querytroubleshootingparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_querytroubleshootingparameters.go new file mode 100644 index 000000000000..d6bf4abce2c3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_querytroubleshootingparameters.go @@ -0,0 +1,8 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type QueryTroubleshootingParameters struct { + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..64b952abec03 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupnetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupnetworkinterface.go new file mode 100644 index 000000000000..e22bcd0a9edd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupnetworkinterface.go @@ -0,0 +1,9 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityGroupNetworkInterface struct { + Id *string `json:"id,omitempty"` + SecurityRuleAssociations *SecurityRuleAssociations `json:"securityRuleAssociations,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupviewparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupviewparameters.go new file mode 100644 index 000000000000..9cbdf854c96b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupviewparameters.go @@ -0,0 +1,8 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityGroupViewParameters struct { + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupviewresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupviewresult.go new file mode 100644 index 000000000000..eff95f059196 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupviewresult.go @@ -0,0 +1,8 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityGroupViewResult struct { + NetworkInterfaces *[]SecurityGroupNetworkInterface `json:"networkInterfaces,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityrule.go new file mode 100644 index 000000000000..c1dded9fca0a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityrule.go @@ -0,0 +1,12 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityruleassociations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityruleassociations.go new file mode 100644 index 000000000000..0ce7cc68a9ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityruleassociations.go @@ -0,0 +1,11 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRuleAssociations struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + EffectiveSecurityRules *[]EffectiveNetworkSecurityRule `json:"effectiveSecurityRules,omitempty"` + NetworkInterfaceAssociation *NetworkInterfaceAssociation `json:"networkInterfaceAssociation,omitempty"` + SubnetAssociation *SubnetAssociation `json:"subnetAssociation,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..ae100c6915e1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_subnetassociation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_subnetassociation.go new file mode 100644 index 000000000000..8b89222ca9e5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_subnetassociation.go @@ -0,0 +1,9 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetAssociation struct { + Id *string `json:"id,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_subresource.go new file mode 100644 index 000000000000..b98b68a29dd7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_subresource.go @@ -0,0 +1,8 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_tagsobject.go new file mode 100644 index 000000000000..f022d1785d94 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_tagsobject.go @@ -0,0 +1,8 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topology.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topology.go new file mode 100644 index 000000000000..c582a36ae6c7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topology.go @@ -0,0 +1,41 @@ +package networkwatchers + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Topology struct { + CreatedDateTime *string `json:"createdDateTime,omitempty"` + Id *string `json:"id,omitempty"` + LastModified *string `json:"lastModified,omitempty"` + Resources *[]TopologyResource `json:"resources,omitempty"` +} + +func (o *Topology) GetCreatedDateTimeAsTime() (*time.Time, error) { + if o.CreatedDateTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.CreatedDateTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *Topology) SetCreatedDateTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.CreatedDateTime = &formatted +} + +func (o *Topology) GetLastModifiedAsTime() (*time.Time, error) { + if o.LastModified == nil { + return nil, nil + } + return dates.ParseAsFormat(o.LastModified, "2006-01-02T15:04:05Z07:00") +} + +func (o *Topology) SetLastModifiedAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.LastModified = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyassociation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyassociation.go new file mode 100644 index 000000000000..9607c85650bd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyassociation.go @@ -0,0 +1,10 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TopologyAssociation struct { + AssociationType *AssociationType `json:"associationType,omitempty"` + Name *string `json:"name,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyparameters.go new file mode 100644 index 000000000000..25bc77b5345d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyparameters.go @@ -0,0 +1,10 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TopologyParameters struct { + TargetResourceGroupName *string `json:"targetResourceGroupName,omitempty"` + TargetSubnet *SubResource `json:"targetSubnet,omitempty"` + TargetVirtualNetwork *SubResource `json:"targetVirtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyresource.go new file mode 100644 index 000000000000..e126c541c8e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyresource.go @@ -0,0 +1,11 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TopologyResource struct { + Associations *[]TopologyAssociation `json:"associations,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..63df321f46e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..415ca1a8f5e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingdetails.go new file mode 100644 index 000000000000..2bc7443b1682 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingdetails.go @@ -0,0 +1,12 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TroubleshootingDetails struct { + Detail *string `json:"detail,omitempty"` + Id *string `json:"id,omitempty"` + ReasonType *string `json:"reasonType,omitempty"` + RecommendedActions *[]TroubleshootingRecommendedActions `json:"recommendedActions,omitempty"` + Summary *string `json:"summary,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingparameters.go new file mode 100644 index 000000000000..5ee881c84a7f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingparameters.go @@ -0,0 +1,9 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TroubleshootingParameters struct { + Properties TroubleshootingProperties `json:"properties"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingproperties.go new file mode 100644 index 000000000000..8d187050a325 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingproperties.go @@ -0,0 +1,9 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TroubleshootingProperties struct { + StorageId string `json:"storageId"` + StoragePath string `json:"storagePath"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingrecommendedactions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingrecommendedactions.go new file mode 100644 index 000000000000..c4e5781e6593 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingrecommendedactions.go @@ -0,0 +1,11 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TroubleshootingRecommendedActions struct { + ActionId *string `json:"actionId,omitempty"` + ActionText *string `json:"actionText,omitempty"` + ActionUri *string `json:"actionUri,omitempty"` + ActionUriText *string `json:"actionUriText,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingresult.go new file mode 100644 index 000000000000..62df62353d2e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingresult.go @@ -0,0 +1,41 @@ +package networkwatchers + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TroubleshootingResult struct { + Code *string `json:"code,omitempty"` + EndTime *string `json:"endTime,omitempty"` + Results *[]TroubleshootingDetails `json:"results,omitempty"` + StartTime *string `json:"startTime,omitempty"` +} + +func (o *TroubleshootingResult) GetEndTimeAsTime() (*time.Time, error) { + if o.EndTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EndTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *TroubleshootingResult) SetEndTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EndTime = &formatted +} + +func (o *TroubleshootingResult) GetStartTimeAsTime() (*time.Time, error) { + if o.StartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *TroubleshootingResult) SetStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_verificationipflowparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_verificationipflowparameters.go new file mode 100644 index 000000000000..05165f3ed261 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_verificationipflowparameters.go @@ -0,0 +1,15 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VerificationIPFlowParameters struct { + Direction Direction `json:"direction"` + LocalIPAddress string `json:"localIPAddress"` + LocalPort string `json:"localPort"` + Protocol IPFlowProtocol `json:"protocol"` + RemoteIPAddress string `json:"remoteIPAddress"` + RemotePort string `json:"remotePort"` + TargetNicResourceId *string `json:"targetNicResourceId,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_verificationipflowresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_verificationipflowresult.go new file mode 100644 index 000000000000..97318928bd83 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_verificationipflowresult.go @@ -0,0 +1,9 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VerificationIPFlowResult struct { + Access *Access `json:"access,omitempty"` + RuleName *string `json:"ruleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/version.go new file mode 100644 index 000000000000..ae05df76a21f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/version.go @@ -0,0 +1,10 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkwatchers/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/README.md index d71470116409..37f5c2c73e3d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways` Documentation -The `p2svpngateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `p2svpngateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_disconnectp2svpnconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_disconnectp2svpnconnections.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_disconnectp2svpnconnections.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_disconnectp2svpnconnections.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_generatevpnprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_generatevpnprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_generatevpnprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_generatevpnprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_getp2svpnconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_getp2svpnconnectionhealth.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_getp2svpnconnectionhealth.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_getp2svpnconnectionhealth.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_getp2svpnconnectionhealthdetailed.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_getp2svpnconnectionhealthdetailed.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_getp2svpnconnectionhealthdetailed.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_getp2svpnconnectionhealthdetailed.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_reset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_reset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_reset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_reset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_addressspace.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_addressspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_addressspace.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2sconnectionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2sconnectionconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2sconnectionconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2sconnectionconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2sconnectionconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2sconnectionconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2sconnectionconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2sconnectionconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpnconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpnconnectionhealth.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpnconnectionhealth.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpnconnectionhealth.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpnconnectionhealthrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpnconnectionhealthrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpnconnectionhealthrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpnconnectionhealthrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpnconnectionrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpnconnectionrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpnconnectionrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpnconnectionrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpngateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpngateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpngateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpngatewayproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpngatewayproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpngatewayproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpngatewayproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpnprofileparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpnprofileparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpnprofileparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpnprofileparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_propagatedroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_propagatedroutetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_propagatedroutetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_propagatedroutetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_routingconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_routingconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_routingconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_staticroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_staticroute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_staticroute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_staticroute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_staticroutesconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_staticroutesconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_staticroutesconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_staticroutesconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vnetroute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vnetroute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vnetroute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnclientconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnclientconnectionhealth.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnclientconnectionhealth.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnclientconnectionhealth.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnprofileresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnprofileresponse.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnprofileresponse.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnprofileresponse.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnserverconfigurationpolicygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnserverconfigurationpolicygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnserverconfigurationpolicygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnserverconfigurationpolicygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnserverconfigurationpolicygroupmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnserverconfigurationpolicygroupmember.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnserverconfigurationpolicygroupmember.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnserverconfigurationpolicygroupmember.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnserverconfigurationpolicygroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnserverconfigurationpolicygroupproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnserverconfigurationpolicygroupproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnserverconfigurationpolicygroupproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/version.go index fe9fc581b5e7..35293bc56ad1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/version.go @@ -3,8 +3,8 @@ package p2svpngateways // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/p2svpngateways/2023-11-01" + return "hashicorp/go-azure-sdk/p2svpngateways/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/README.md new file mode 100644 index 000000000000..08b0fda27aa2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/README.md @@ -0,0 +1,105 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures` Documentation + +The `packetcaptures` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures" +``` + + +### Client Initialization + +```go +client := packetcaptures.NewPacketCapturesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PacketCapturesClient.Create` + +```go +ctx := context.TODO() +id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") + +payload := packetcaptures.PacketCapture{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PacketCapturesClient.Delete` + +```go +ctx := context.TODO() +id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PacketCapturesClient.Get` + +```go +ctx := context.TODO() +id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PacketCapturesClient.GetStatus` + +```go +ctx := context.TODO() +id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") + +if err := client.GetStatusThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PacketCapturesClient.List` + +```go +ctx := context.TODO() +id := packetcaptures.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +read, err := client.List(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PacketCapturesClient.Stop` + +```go +ctx := context.TODO() +id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") + +if err := client.StopThenPoll(ctx, id); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/client.go new file mode 100644 index 000000000000..9acbfd7c6f73 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/client.go @@ -0,0 +1,26 @@ +package packetcaptures + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PacketCapturesClient struct { + Client *resourcemanager.Client +} + +func NewPacketCapturesClientWithBaseURI(sdkApi sdkEnv.Api) (*PacketCapturesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "packetcaptures", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating PacketCapturesClient: %+v", err) + } + + return &PacketCapturesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/constants.go new file mode 100644 index 000000000000..52471a03c9ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/constants.go @@ -0,0 +1,242 @@ +package packetcaptures + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PacketCaptureTargetType string + +const ( + PacketCaptureTargetTypeAzureVM PacketCaptureTargetType = "AzureVM" + PacketCaptureTargetTypeAzureVMSS PacketCaptureTargetType = "AzureVMSS" +) + +func PossibleValuesForPacketCaptureTargetType() []string { + return []string{ + string(PacketCaptureTargetTypeAzureVM), + string(PacketCaptureTargetTypeAzureVMSS), + } +} + +func (s *PacketCaptureTargetType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePacketCaptureTargetType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePacketCaptureTargetType(input string) (*PacketCaptureTargetType, error) { + vals := map[string]PacketCaptureTargetType{ + "azurevm": PacketCaptureTargetTypeAzureVM, + "azurevmss": PacketCaptureTargetTypeAzureVMSS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PacketCaptureTargetType(input) + return &out, nil +} + +type PcError string + +const ( + PcErrorAgentStopped PcError = "AgentStopped" + PcErrorCaptureFailed PcError = "CaptureFailed" + PcErrorInternalError PcError = "InternalError" + PcErrorLocalFileFailed PcError = "LocalFileFailed" + PcErrorStorageFailed PcError = "StorageFailed" +) + +func PossibleValuesForPcError() []string { + return []string{ + string(PcErrorAgentStopped), + string(PcErrorCaptureFailed), + string(PcErrorInternalError), + string(PcErrorLocalFileFailed), + string(PcErrorStorageFailed), + } +} + +func (s *PcError) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePcError(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePcError(input string) (*PcError, error) { + vals := map[string]PcError{ + "agentstopped": PcErrorAgentStopped, + "capturefailed": PcErrorCaptureFailed, + "internalerror": PcErrorInternalError, + "localfilefailed": PcErrorLocalFileFailed, + "storagefailed": PcErrorStorageFailed, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PcError(input) + return &out, nil +} + +type PcProtocol string + +const ( + PcProtocolAny PcProtocol = "Any" + PcProtocolTCP PcProtocol = "TCP" + PcProtocolUDP PcProtocol = "UDP" +) + +func PossibleValuesForPcProtocol() []string { + return []string{ + string(PcProtocolAny), + string(PcProtocolTCP), + string(PcProtocolUDP), + } +} + +func (s *PcProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePcProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePcProtocol(input string) (*PcProtocol, error) { + vals := map[string]PcProtocol{ + "any": PcProtocolAny, + "tcp": PcProtocolTCP, + "udp": PcProtocolUDP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PcProtocol(input) + return &out, nil +} + +type PcStatus string + +const ( + PcStatusError PcStatus = "Error" + PcStatusNotStarted PcStatus = "NotStarted" + PcStatusRunning PcStatus = "Running" + PcStatusStopped PcStatus = "Stopped" + PcStatusUnknown PcStatus = "Unknown" +) + +func PossibleValuesForPcStatus() []string { + return []string{ + string(PcStatusError), + string(PcStatusNotStarted), + string(PcStatusRunning), + string(PcStatusStopped), + string(PcStatusUnknown), + } +} + +func (s *PcStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePcStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePcStatus(input string) (*PcStatus, error) { + vals := map[string]PcStatus{ + "error": PcStatusError, + "notstarted": PcStatusNotStarted, + "running": PcStatusRunning, + "stopped": PcStatusStopped, + "unknown": PcStatusUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PcStatus(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/id_networkwatcher.go new file mode 100644 index 000000000000..df59b51a3161 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/id_networkwatcher.go @@ -0,0 +1,130 @@ +package packetcaptures + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkWatcherId{}) +} + +var _ resourceids.ResourceId = &NetworkWatcherId{} + +// NetworkWatcherId is a struct representing the Resource ID for a Network Watcher +type NetworkWatcherId struct { + SubscriptionId string + ResourceGroupName string + NetworkWatcherName string +} + +// NewNetworkWatcherID returns a new NetworkWatcherId struct +func NewNetworkWatcherID(subscriptionId string, resourceGroupName string, networkWatcherName string) NetworkWatcherId { + return NetworkWatcherId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkWatcherName: networkWatcherName, + } +} + +// ParseNetworkWatcherID parses 'input' into a NetworkWatcherId +func ParseNetworkWatcherID(input string) (*NetworkWatcherId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkWatcherId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkWatcherId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkWatcherIDInsensitively parses 'input' case-insensitively into a NetworkWatcherId +// note: this method should only be used for API response data and not user input +func ParseNetworkWatcherIDInsensitively(input string) (*NetworkWatcherId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkWatcherId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkWatcherId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkWatcherId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkWatcherName, ok = input.Parsed["networkWatcherName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkWatcherName", input) + } + + return nil +} + +// ValidateNetworkWatcherID checks that 'input' can be parsed as a Network Watcher ID +func ValidateNetworkWatcherID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkWatcherID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Watcher ID +func (id NetworkWatcherId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkWatchers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkWatcherName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Watcher ID +func (id NetworkWatcherId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), + } +} + +// String returns a human-readable description of this Network Watcher ID +func (id NetworkWatcherId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Watcher Name: %q", id.NetworkWatcherName), + } + return fmt.Sprintf("Network Watcher (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/id_packetcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/id_packetcapture.go new file mode 100644 index 000000000000..80f04f9f292e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/id_packetcapture.go @@ -0,0 +1,139 @@ +package packetcaptures + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&PacketCaptureId{}) +} + +var _ resourceids.ResourceId = &PacketCaptureId{} + +// PacketCaptureId is a struct representing the Resource ID for a Packet Capture +type PacketCaptureId struct { + SubscriptionId string + ResourceGroupName string + NetworkWatcherName string + PacketCaptureName string +} + +// NewPacketCaptureID returns a new PacketCaptureId struct +func NewPacketCaptureID(subscriptionId string, resourceGroupName string, networkWatcherName string, packetCaptureName string) PacketCaptureId { + return PacketCaptureId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkWatcherName: networkWatcherName, + PacketCaptureName: packetCaptureName, + } +} + +// ParsePacketCaptureID parses 'input' into a PacketCaptureId +func ParsePacketCaptureID(input string) (*PacketCaptureId, error) { + parser := resourceids.NewParserFromResourceIdType(&PacketCaptureId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PacketCaptureId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParsePacketCaptureIDInsensitively parses 'input' case-insensitively into a PacketCaptureId +// note: this method should only be used for API response data and not user input +func ParsePacketCaptureIDInsensitively(input string) (*PacketCaptureId, error) { + parser := resourceids.NewParserFromResourceIdType(&PacketCaptureId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PacketCaptureId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *PacketCaptureId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkWatcherName, ok = input.Parsed["networkWatcherName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkWatcherName", input) + } + + if id.PacketCaptureName, ok = input.Parsed["packetCaptureName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "packetCaptureName", input) + } + + return nil +} + +// ValidatePacketCaptureID checks that 'input' can be parsed as a Packet Capture ID +func ValidatePacketCaptureID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParsePacketCaptureID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Packet Capture ID +func (id PacketCaptureId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkWatchers/%s/packetCaptures/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkWatcherName, id.PacketCaptureName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Packet Capture ID +func (id PacketCaptureId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), + resourceids.StaticSegment("staticPacketCaptures", "packetCaptures", "packetCaptures"), + resourceids.UserSpecifiedSegment("packetCaptureName", "packetCaptureName"), + } +} + +// String returns a human-readable description of this Packet Capture ID +func (id PacketCaptureId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Watcher Name: %q", id.NetworkWatcherName), + fmt.Sprintf("Packet Capture Name: %q", id.PacketCaptureName), + } + return fmt.Sprintf("Packet Capture (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_create.go new file mode 100644 index 000000000000..d01c4d4092c6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_create.go @@ -0,0 +1,74 @@ +package packetcaptures + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *PacketCaptureResult +} + +// Create ... +func (c PacketCapturesClient) Create(ctx context.Context, id PacketCaptureId, input PacketCapture) (result CreateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateThenPoll performs Create then polls until it's completed +func (c PacketCapturesClient) CreateThenPoll(ctx context.Context, id PacketCaptureId, input PacketCapture) error { + result, err := c.Create(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Create: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Create: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_delete.go new file mode 100644 index 000000000000..d35a3b48efae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_delete.go @@ -0,0 +1,70 @@ +package packetcaptures + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c PacketCapturesClient) Delete(ctx context.Context, id PacketCaptureId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c PacketCapturesClient) DeleteThenPoll(ctx context.Context, id PacketCaptureId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_get.go new file mode 100644 index 000000000000..9f32b393d102 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_get.go @@ -0,0 +1,53 @@ +package packetcaptures + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PacketCaptureResult +} + +// Get ... +func (c PacketCapturesClient) Get(ctx context.Context, id PacketCaptureId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model PacketCaptureResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_getstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_getstatus.go new file mode 100644 index 000000000000..20a7fc75b3c3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_getstatus.go @@ -0,0 +1,71 @@ +package packetcaptures + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetStatusOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *PacketCaptureQueryStatusResult +} + +// GetStatus ... +func (c PacketCapturesClient) GetStatus(ctx context.Context, id PacketCaptureId) (result GetStatusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/queryStatus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetStatusThenPoll performs GetStatus then polls until it's completed +func (c PacketCapturesClient) GetStatusThenPoll(ctx context.Context, id PacketCaptureId) error { + result, err := c.GetStatus(ctx, id) + if err != nil { + return fmt.Errorf("performing GetStatus: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetStatus: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_list.go new file mode 100644 index 000000000000..08e6f4248639 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_list.go @@ -0,0 +1,54 @@ +package packetcaptures + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PacketCaptureListResult +} + +// List ... +func (c PacketCapturesClient) List(ctx context.Context, id NetworkWatcherId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/packetCaptures", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model PacketCaptureListResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_stop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_stop.go new file mode 100644 index 000000000000..31a3b0501693 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_stop.go @@ -0,0 +1,70 @@ +package packetcaptures + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Stop ... +func (c PacketCapturesClient) Stop(ctx context.Context, id PacketCaptureId) (result StopOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stop", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StopThenPoll performs Stop then polls until it's completed +func (c PacketCapturesClient) StopThenPoll(ctx context.Context, id PacketCaptureId) error { + result, err := c.Stop(ctx, id) + if err != nil { + return fmt.Errorf("performing Stop: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Stop: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapture.go new file mode 100644 index 000000000000..592cd89a6e7f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapture.go @@ -0,0 +1,8 @@ +package packetcaptures + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PacketCapture struct { + Properties PacketCaptureParameters `json:"properties"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturefilter.go new file mode 100644 index 000000000000..fb3018805668 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturefilter.go @@ -0,0 +1,12 @@ +package packetcaptures + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PacketCaptureFilter struct { + LocalIPAddress *string `json:"localIPAddress,omitempty"` + LocalPort *string `json:"localPort,omitempty"` + Protocol *PcProtocol `json:"protocol,omitempty"` + RemoteIPAddress *string `json:"remoteIPAddress,omitempty"` + RemotePort *string `json:"remotePort,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturelistresult.go new file mode 100644 index 000000000000..54c50c44871d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturelistresult.go @@ -0,0 +1,8 @@ +package packetcaptures + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PacketCaptureListResult struct { + Value *[]PacketCaptureResult `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturemachinescope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturemachinescope.go new file mode 100644 index 000000000000..99b476671ba3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturemachinescope.go @@ -0,0 +1,9 @@ +package packetcaptures + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PacketCaptureMachineScope struct { + Exclude *[]string `json:"exclude,omitempty"` + Include *[]string `json:"include,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureparameters.go new file mode 100644 index 000000000000..0ce5dbb1e977 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureparameters.go @@ -0,0 +1,17 @@ +package packetcaptures + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PacketCaptureParameters struct { + BytesToCapturePerPacket *int64 `json:"bytesToCapturePerPacket,omitempty"` + CaptureSettings *PacketCaptureSettings `json:"captureSettings,omitempty"` + ContinuousCapture *bool `json:"continuousCapture,omitempty"` + Filters *[]PacketCaptureFilter `json:"filters,omitempty"` + Scope *PacketCaptureMachineScope `json:"scope,omitempty"` + StorageLocation PacketCaptureStorageLocation `json:"storageLocation"` + Target string `json:"target"` + TargetType *PacketCaptureTargetType `json:"targetType,omitempty"` + TimeLimitInSeconds *int64 `json:"timeLimitInSeconds,omitempty"` + TotalBytesPerSession *int64 `json:"totalBytesPerSession,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturequerystatusresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturequerystatusresult.go new file mode 100644 index 000000000000..edea164feae0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturequerystatusresult.go @@ -0,0 +1,31 @@ +package packetcaptures + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PacketCaptureQueryStatusResult struct { + CaptureStartTime *string `json:"captureStartTime,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + PacketCaptureError *[]PcError `json:"packetCaptureError,omitempty"` + PacketCaptureStatus *PcStatus `json:"packetCaptureStatus,omitempty"` + StopReason *string `json:"stopReason,omitempty"` +} + +func (o *PacketCaptureQueryStatusResult) GetCaptureStartTimeAsTime() (*time.Time, error) { + if o.CaptureStartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.CaptureStartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *PacketCaptureQueryStatusResult) SetCaptureStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.CaptureStartTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureresult.go new file mode 100644 index 000000000000..a2e7cd88e028 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureresult.go @@ -0,0 +1,11 @@ +package packetcaptures + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PacketCaptureResult struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PacketCaptureResultProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureresultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureresultproperties.go new file mode 100644 index 000000000000..2e3ffaf706e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureresultproperties.go @@ -0,0 +1,18 @@ +package packetcaptures + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PacketCaptureResultProperties struct { + BytesToCapturePerPacket *int64 `json:"bytesToCapturePerPacket,omitempty"` + CaptureSettings *PacketCaptureSettings `json:"captureSettings,omitempty"` + ContinuousCapture *bool `json:"continuousCapture,omitempty"` + Filters *[]PacketCaptureFilter `json:"filters,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Scope *PacketCaptureMachineScope `json:"scope,omitempty"` + StorageLocation PacketCaptureStorageLocation `json:"storageLocation"` + Target string `json:"target"` + TargetType *PacketCaptureTargetType `json:"targetType,omitempty"` + TimeLimitInSeconds *int64 `json:"timeLimitInSeconds,omitempty"` + TotalBytesPerSession *int64 `json:"totalBytesPerSession,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturesettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturesettings.go new file mode 100644 index 000000000000..008b5742c30e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturesettings.go @@ -0,0 +1,10 @@ +package packetcaptures + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PacketCaptureSettings struct { + FileCount *int64 `json:"fileCount,omitempty"` + FileSizeInBytes *int64 `json:"fileSizeInBytes,omitempty"` + SessionTimeLimitInSeconds *int64 `json:"sessionTimeLimitInSeconds,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturestoragelocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturestoragelocation.go new file mode 100644 index 000000000000..dc8803c6bdd7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturestoragelocation.go @@ -0,0 +1,11 @@ +package packetcaptures + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PacketCaptureStorageLocation struct { + FilePath *string `json:"filePath,omitempty"` + LocalPath *string `json:"localPath,omitempty"` + StorageId *string `json:"storageId,omitempty"` + StoragePath *string `json:"storagePath,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/version.go new file mode 100644 index 000000000000..b582fc980901 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/version.go @@ -0,0 +1,10 @@ +package packetcaptures + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/packetcaptures/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/README.md similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/README.md index 6c724acb780a..1c5b2ddda8ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections` Documentation -The `peerexpressroutecircuitconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `peerexpressroutecircuitconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/id_peerconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/id_peerconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/id_peerconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/id_peerconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnectionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnectionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnectionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/version.go similarity index 84% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/version.go index 20015a147315..aad65b9e49c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/version.go @@ -3,8 +3,8 @@ package peerexpressroutecircuitconnections // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/peerexpressroutecircuitconnections/2023-11-01" + return "hashicorp/go-azure-sdk/peerexpressroutecircuitconnections/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/README.md new file mode 100644 index 000000000000..071aa659c7b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups` Documentation + +The `privatednszonegroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups" +``` + + +### Client Initialization + +```go +client := privatednszonegroups.NewPrivateDnsZoneGroupsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PrivateDnsZoneGroupsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName", "privateDnsZoneGroupName") + +payload := privatednszonegroups.PrivateDnsZoneGroup{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateDnsZoneGroupsClient.Delete` + +```go +ctx := context.TODO() +id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName", "privateDnsZoneGroupName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateDnsZoneGroupsClient.Get` + +```go +ctx := context.TODO() +id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName", "privateDnsZoneGroupName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PrivateDnsZoneGroupsClient.List` + +```go +ctx := context.TODO() +id := privatednszonegroups.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/client.go new file mode 100644 index 000000000000..58e48fe8e2e5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/client.go @@ -0,0 +1,26 @@ +package privatednszonegroups + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateDnsZoneGroupsClient struct { + Client *resourcemanager.Client +} + +func NewPrivateDnsZoneGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateDnsZoneGroupsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "privatednszonegroups", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating PrivateDnsZoneGroupsClient: %+v", err) + } + + return &PrivateDnsZoneGroupsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/constants.go new file mode 100644 index 000000000000..a68ae3a4523a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/constants.go @@ -0,0 +1,57 @@ +package privatednszonegroups + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/id_privatednszonegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/id_privatednszonegroup.go new file mode 100644 index 000000000000..9d6d9b40c00a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/id_privatednszonegroup.go @@ -0,0 +1,139 @@ +package privatednszonegroups + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&PrivateDnsZoneGroupId{}) +} + +var _ resourceids.ResourceId = &PrivateDnsZoneGroupId{} + +// PrivateDnsZoneGroupId is a struct representing the Resource ID for a Private Dns Zone Group +type PrivateDnsZoneGroupId struct { + SubscriptionId string + ResourceGroupName string + PrivateEndpointName string + PrivateDnsZoneGroupName string +} + +// NewPrivateDnsZoneGroupID returns a new PrivateDnsZoneGroupId struct +func NewPrivateDnsZoneGroupID(subscriptionId string, resourceGroupName string, privateEndpointName string, privateDnsZoneGroupName string) PrivateDnsZoneGroupId { + return PrivateDnsZoneGroupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + PrivateEndpointName: privateEndpointName, + PrivateDnsZoneGroupName: privateDnsZoneGroupName, + } +} + +// ParsePrivateDnsZoneGroupID parses 'input' into a PrivateDnsZoneGroupId +func ParsePrivateDnsZoneGroupID(input string) (*PrivateDnsZoneGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&PrivateDnsZoneGroupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PrivateDnsZoneGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParsePrivateDnsZoneGroupIDInsensitively parses 'input' case-insensitively into a PrivateDnsZoneGroupId +// note: this method should only be used for API response data and not user input +func ParsePrivateDnsZoneGroupIDInsensitively(input string) (*PrivateDnsZoneGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&PrivateDnsZoneGroupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PrivateDnsZoneGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *PrivateDnsZoneGroupId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.PrivateEndpointName, ok = input.Parsed["privateEndpointName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "privateEndpointName", input) + } + + if id.PrivateDnsZoneGroupName, ok = input.Parsed["privateDnsZoneGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "privateDnsZoneGroupName", input) + } + + return nil +} + +// ValidatePrivateDnsZoneGroupID checks that 'input' can be parsed as a Private Dns Zone Group ID +func ValidatePrivateDnsZoneGroupID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParsePrivateDnsZoneGroupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Private Dns Zone Group ID +func (id PrivateDnsZoneGroupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/privateEndpoints/%s/privateDnsZoneGroups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.PrivateEndpointName, id.PrivateDnsZoneGroupName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Private Dns Zone Group ID +func (id PrivateDnsZoneGroupId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticPrivateEndpoints", "privateEndpoints", "privateEndpoints"), + resourceids.UserSpecifiedSegment("privateEndpointName", "privateEndpointName"), + resourceids.StaticSegment("staticPrivateDnsZoneGroups", "privateDnsZoneGroups", "privateDnsZoneGroups"), + resourceids.UserSpecifiedSegment("privateDnsZoneGroupName", "privateDnsZoneGroupName"), + } +} + +// String returns a human-readable description of this Private Dns Zone Group ID +func (id PrivateDnsZoneGroupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Private Endpoint Name: %q", id.PrivateEndpointName), + fmt.Sprintf("Private Dns Zone Group Name: %q", id.PrivateDnsZoneGroupName), + } + return fmt.Sprintf("Private Dns Zone Group (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/id_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/id_privateendpoint.go new file mode 100644 index 000000000000..858dc908589e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/id_privateendpoint.go @@ -0,0 +1,130 @@ +package privatednszonegroups + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&PrivateEndpointId{}) +} + +var _ resourceids.ResourceId = &PrivateEndpointId{} + +// PrivateEndpointId is a struct representing the Resource ID for a Private Endpoint +type PrivateEndpointId struct { + SubscriptionId string + ResourceGroupName string + PrivateEndpointName string +} + +// NewPrivateEndpointID returns a new PrivateEndpointId struct +func NewPrivateEndpointID(subscriptionId string, resourceGroupName string, privateEndpointName string) PrivateEndpointId { + return PrivateEndpointId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + PrivateEndpointName: privateEndpointName, + } +} + +// ParsePrivateEndpointID parses 'input' into a PrivateEndpointId +func ParsePrivateEndpointID(input string) (*PrivateEndpointId, error) { + parser := resourceids.NewParserFromResourceIdType(&PrivateEndpointId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PrivateEndpointId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParsePrivateEndpointIDInsensitively parses 'input' case-insensitively into a PrivateEndpointId +// note: this method should only be used for API response data and not user input +func ParsePrivateEndpointIDInsensitively(input string) (*PrivateEndpointId, error) { + parser := resourceids.NewParserFromResourceIdType(&PrivateEndpointId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PrivateEndpointId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *PrivateEndpointId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.PrivateEndpointName, ok = input.Parsed["privateEndpointName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "privateEndpointName", input) + } + + return nil +} + +// ValidatePrivateEndpointID checks that 'input' can be parsed as a Private Endpoint ID +func ValidatePrivateEndpointID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParsePrivateEndpointID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Private Endpoint ID +func (id PrivateEndpointId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/privateEndpoints/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.PrivateEndpointName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Private Endpoint ID +func (id PrivateEndpointId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticPrivateEndpoints", "privateEndpoints", "privateEndpoints"), + resourceids.UserSpecifiedSegment("privateEndpointName", "privateEndpointName"), + } +} + +// String returns a human-readable description of this Private Endpoint ID +func (id PrivateEndpointId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Private Endpoint Name: %q", id.PrivateEndpointName), + } + return fmt.Sprintf("Private Endpoint (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_createorupdate.go new file mode 100644 index 000000000000..88dadb3a0a50 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_createorupdate.go @@ -0,0 +1,75 @@ +package privatednszonegroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *PrivateDnsZoneGroup +} + +// CreateOrUpdate ... +func (c PrivateDnsZoneGroupsClient) CreateOrUpdate(ctx context.Context, id PrivateDnsZoneGroupId, input PrivateDnsZoneGroup) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c PrivateDnsZoneGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id PrivateDnsZoneGroupId, input PrivateDnsZoneGroup) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_delete.go new file mode 100644 index 000000000000..cdf382f2686c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_delete.go @@ -0,0 +1,71 @@ +package privatednszonegroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c PrivateDnsZoneGroupsClient) Delete(ctx context.Context, id PrivateDnsZoneGroupId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c PrivateDnsZoneGroupsClient) DeleteThenPoll(ctx context.Context, id PrivateDnsZoneGroupId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_get.go new file mode 100644 index 000000000000..b0a317bbf4db --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_get.go @@ -0,0 +1,53 @@ +package privatednszonegroups + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PrivateDnsZoneGroup +} + +// Get ... +func (c PrivateDnsZoneGroupsClient) Get(ctx context.Context, id PrivateDnsZoneGroupId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model PrivateDnsZoneGroup + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_list.go new file mode 100644 index 000000000000..3abf08b87af6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_list.go @@ -0,0 +1,105 @@ +package privatednszonegroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PrivateDnsZoneGroup +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []PrivateDnsZoneGroup +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c PrivateDnsZoneGroupsClient) List(ctx context.Context, id PrivateEndpointId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/privateDnsZoneGroups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PrivateDnsZoneGroup `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c PrivateDnsZoneGroupsClient) ListComplete(ctx context.Context, id PrivateEndpointId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, PrivateDnsZoneGroupOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PrivateDnsZoneGroupsClient) ListCompleteMatchingPredicate(ctx context.Context, id PrivateEndpointId, predicate PrivateDnsZoneGroupOperationPredicate) (result ListCompleteResult, err error) { + items := make([]PrivateDnsZoneGroup, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszoneconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszoneconfig.go new file mode 100644 index 000000000000..e44ef143e5cd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszoneconfig.go @@ -0,0 +1,9 @@ +package privatednszonegroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateDnsZoneConfig struct { + Name *string `json:"name,omitempty"` + Properties *PrivateDnsZonePropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonegroup.go new file mode 100644 index 000000000000..75533fc47a56 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonegroup.go @@ -0,0 +1,11 @@ +package privatednszonegroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateDnsZoneGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateDnsZoneGroupPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonegrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonegrouppropertiesformat.go new file mode 100644 index 000000000000..f892f5549652 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonegrouppropertiesformat.go @@ -0,0 +1,9 @@ +package privatednszonegroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateDnsZoneGroupPropertiesFormat struct { + PrivateDnsZoneConfigs *[]PrivateDnsZoneConfig `json:"privateDnsZoneConfigs,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonepropertiesformat.go new file mode 100644 index 000000000000..33858bfe24ee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonepropertiesformat.go @@ -0,0 +1,9 @@ +package privatednszonegroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateDnsZonePropertiesFormat struct { + PrivateDnsZoneId *string `json:"privateDnsZoneId,omitempty"` + RecordSets *[]RecordSet `json:"recordSets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_recordset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_recordset.go new file mode 100644 index 000000000000..4a39969425d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_recordset.go @@ -0,0 +1,13 @@ +package privatednszonegroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RecordSet struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RecordSetName *string `json:"recordSetName,omitempty"` + RecordType *string `json:"recordType,omitempty"` + Ttl *int64 `json:"ttl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/predicates.go new file mode 100644 index 000000000000..4d27803d6e2a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/predicates.go @@ -0,0 +1,27 @@ +package privatednszonegroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateDnsZoneGroupOperationPredicate struct { + Etag *string + Id *string + Name *string +} + +func (p PrivateDnsZoneGroupOperationPredicate) Matches(input PrivateDnsZoneGroup) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/version.go new file mode 100644 index 000000000000..10ccb532b7d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/version.go @@ -0,0 +1,10 @@ +package privatednszonegroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/privatednszonegroups/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/README.md new file mode 100644 index 000000000000..6e0dfe6bab93 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/README.md @@ -0,0 +1,134 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints` Documentation + +The `privateendpoints` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" +``` + + +### Client Initialization + +```go +client := privateendpoints.NewPrivateEndpointsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PrivateEndpointsClient.AvailablePrivateEndpointTypesList` + +```go +ctx := context.TODO() +id := privateendpoints.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +// alternatively `client.AvailablePrivateEndpointTypesList(ctx, id)` can be used to do batched pagination +items, err := client.AvailablePrivateEndpointTypesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PrivateEndpointsClient.AvailablePrivateEndpointTypesListByResourceGroup` + +```go +ctx := context.TODO() +id := privateendpoints.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName") + +// alternatively `client.AvailablePrivateEndpointTypesListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.AvailablePrivateEndpointTypesListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PrivateEndpointsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") + +payload := privateendpoints.PrivateEndpoint{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateEndpointsClient.Delete` + +```go +ctx := context.TODO() +id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateEndpointsClient.Get` + +```go +ctx := context.TODO() +id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") + +read, err := client.Get(ctx, id, privateendpoints.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PrivateEndpointsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PrivateEndpointsClient.ListBySubscription` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination +items, err := client.ListBySubscriptionComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/client.go new file mode 100644 index 000000000000..d03b3dc1800b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/client.go @@ -0,0 +1,26 @@ +package privateendpoints + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointsClient struct { + Client *resourcemanager.Client +} + +func NewPrivateEndpointsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateEndpointsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "privateendpoints", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating PrivateEndpointsClient: %+v", err) + } + + return &PrivateEndpointsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/constants.go new file mode 100644 index 000000000000..0398aa0f9251 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/constants.go @@ -0,0 +1,1198 @@ +package privateendpoints + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_location.go new file mode 100644 index 000000000000..77d85ed86a27 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_location.go @@ -0,0 +1,121 @@ +package privateendpoints + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&LocationId{}) +} + +var _ resourceids.ResourceId = &LocationId{} + +// LocationId is a struct representing the Resource ID for a Location +type LocationId struct { + SubscriptionId string + LocationName string +} + +// NewLocationID returns a new LocationId struct +func NewLocationID(subscriptionId string, locationName string) LocationId { + return LocationId{ + SubscriptionId: subscriptionId, + LocationName: locationName, + } +} + +// ParseLocationID parses 'input' into a LocationId +func ParseLocationID(input string) (*LocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId +// note: this method should only be used for API response data and not user input +func ParseLocationIDInsensitively(input string) (*LocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *LocationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.LocationName, ok = input.Parsed["locationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) + } + + return nil +} + +// ValidateLocationID checks that 'input' can be parsed as a Location ID +func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseLocationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Location ID +func (id LocationId) ID() string { + fmtString := "/subscriptions/%s/providers/Microsoft.Network/locations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.LocationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Location ID +func (id LocationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticLocations", "locations", "locations"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), + } +} + +// String returns a human-readable description of this Location ID +func (id LocationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Location Name: %q", id.LocationName), + } + return fmt.Sprintf("Location (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_privateendpoint.go new file mode 100644 index 000000000000..09fd6278c207 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_privateendpoint.go @@ -0,0 +1,130 @@ +package privateendpoints + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&PrivateEndpointId{}) +} + +var _ resourceids.ResourceId = &PrivateEndpointId{} + +// PrivateEndpointId is a struct representing the Resource ID for a Private Endpoint +type PrivateEndpointId struct { + SubscriptionId string + ResourceGroupName string + PrivateEndpointName string +} + +// NewPrivateEndpointID returns a new PrivateEndpointId struct +func NewPrivateEndpointID(subscriptionId string, resourceGroupName string, privateEndpointName string) PrivateEndpointId { + return PrivateEndpointId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + PrivateEndpointName: privateEndpointName, + } +} + +// ParsePrivateEndpointID parses 'input' into a PrivateEndpointId +func ParsePrivateEndpointID(input string) (*PrivateEndpointId, error) { + parser := resourceids.NewParserFromResourceIdType(&PrivateEndpointId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PrivateEndpointId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParsePrivateEndpointIDInsensitively parses 'input' case-insensitively into a PrivateEndpointId +// note: this method should only be used for API response data and not user input +func ParsePrivateEndpointIDInsensitively(input string) (*PrivateEndpointId, error) { + parser := resourceids.NewParserFromResourceIdType(&PrivateEndpointId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PrivateEndpointId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *PrivateEndpointId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.PrivateEndpointName, ok = input.Parsed["privateEndpointName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "privateEndpointName", input) + } + + return nil +} + +// ValidatePrivateEndpointID checks that 'input' can be parsed as a Private Endpoint ID +func ValidatePrivateEndpointID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParsePrivateEndpointID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Private Endpoint ID +func (id PrivateEndpointId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/privateEndpoints/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.PrivateEndpointName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Private Endpoint ID +func (id PrivateEndpointId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticPrivateEndpoints", "privateEndpoints", "privateEndpoints"), + resourceids.UserSpecifiedSegment("privateEndpointName", "privateEndpointName"), + } +} + +// String returns a human-readable description of this Private Endpoint ID +func (id PrivateEndpointId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Private Endpoint Name: %q", id.PrivateEndpointName), + } + return fmt.Sprintf("Private Endpoint (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_providerlocation.go new file mode 100644 index 000000000000..5bf08d4e8612 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_providerlocation.go @@ -0,0 +1,130 @@ +package privateendpoints + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ProviderLocationId{}) +} + +var _ resourceids.ResourceId = &ProviderLocationId{} + +// ProviderLocationId is a struct representing the Resource ID for a Provider Location +type ProviderLocationId struct { + SubscriptionId string + ResourceGroupName string + LocationName string +} + +// NewProviderLocationID returns a new ProviderLocationId struct +func NewProviderLocationID(subscriptionId string, resourceGroupName string, locationName string) ProviderLocationId { + return ProviderLocationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + LocationName: locationName, + } +} + +// ParseProviderLocationID parses 'input' into a ProviderLocationId +func ParseProviderLocationID(input string) (*ProviderLocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&ProviderLocationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ProviderLocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseProviderLocationIDInsensitively parses 'input' case-insensitively into a ProviderLocationId +// note: this method should only be used for API response data and not user input +func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&ProviderLocationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ProviderLocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ProviderLocationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.LocationName, ok = input.Parsed["locationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) + } + + return nil +} + +// ValidateProviderLocationID checks that 'input' can be parsed as a Provider Location ID +func ValidateProviderLocationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseProviderLocationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Provider Location ID +func (id ProviderLocationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/locations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.LocationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Provider Location ID +func (id ProviderLocationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticLocations", "locations", "locations"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), + } +} + +// String returns a human-readable description of this Provider Location ID +func (id ProviderLocationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Location Name: %q", id.LocationName), + } + return fmt.Sprintf("Provider Location (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_availableprivateendpointtypeslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_availableprivateendpointtypeslist.go new file mode 100644 index 000000000000..f0c9af2990d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_availableprivateendpointtypeslist.go @@ -0,0 +1,105 @@ +package privateendpoints + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AvailablePrivateEndpointTypesListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]AvailablePrivateEndpointType +} + +type AvailablePrivateEndpointTypesListCompleteResult struct { + LatestHttpResponse *http.Response + Items []AvailablePrivateEndpointType +} + +type AvailablePrivateEndpointTypesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailablePrivateEndpointTypesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// AvailablePrivateEndpointTypesList ... +func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesList(ctx context.Context, id LocationId) (result AvailablePrivateEndpointTypesListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &AvailablePrivateEndpointTypesListCustomPager{}, + Path: fmt.Sprintf("%s/availablePrivateEndpointTypes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]AvailablePrivateEndpointType `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// AvailablePrivateEndpointTypesListComplete retrieves all the results into a single object +func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListComplete(ctx context.Context, id LocationId) (AvailablePrivateEndpointTypesListCompleteResult, error) { + return c.AvailablePrivateEndpointTypesListCompleteMatchingPredicate(ctx, id, AvailablePrivateEndpointTypeOperationPredicate{}) +} + +// AvailablePrivateEndpointTypesListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate AvailablePrivateEndpointTypeOperationPredicate) (result AvailablePrivateEndpointTypesListCompleteResult, err error) { + items := make([]AvailablePrivateEndpointType, 0) + + resp, err := c.AvailablePrivateEndpointTypesList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = AvailablePrivateEndpointTypesListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go new file mode 100644 index 000000000000..259ea902b1ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go @@ -0,0 +1,105 @@ +package privateendpoints + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AvailablePrivateEndpointTypesListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]AvailablePrivateEndpointType +} + +type AvailablePrivateEndpointTypesListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []AvailablePrivateEndpointType +} + +type AvailablePrivateEndpointTypesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailablePrivateEndpointTypesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// AvailablePrivateEndpointTypesListByResourceGroup ... +func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListByResourceGroup(ctx context.Context, id ProviderLocationId) (result AvailablePrivateEndpointTypesListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &AvailablePrivateEndpointTypesListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/availablePrivateEndpointTypes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]AvailablePrivateEndpointType `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// AvailablePrivateEndpointTypesListByResourceGroupComplete retrieves all the results into a single object +func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListByResourceGroupComplete(ctx context.Context, id ProviderLocationId) (AvailablePrivateEndpointTypesListByResourceGroupCompleteResult, error) { + return c.AvailablePrivateEndpointTypesListByResourceGroupCompleteMatchingPredicate(ctx, id, AvailablePrivateEndpointTypeOperationPredicate{}) +} + +// AvailablePrivateEndpointTypesListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id ProviderLocationId, predicate AvailablePrivateEndpointTypeOperationPredicate) (result AvailablePrivateEndpointTypesListByResourceGroupCompleteResult, err error) { + items := make([]AvailablePrivateEndpointType, 0) + + resp, err := c.AvailablePrivateEndpointTypesListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = AvailablePrivateEndpointTypesListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_createorupdate.go new file mode 100644 index 000000000000..b5055a0cda4b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_createorupdate.go @@ -0,0 +1,75 @@ +package privateendpoints + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *PrivateEndpoint +} + +// CreateOrUpdate ... +func (c PrivateEndpointsClient) CreateOrUpdate(ctx context.Context, id PrivateEndpointId, input PrivateEndpoint) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c PrivateEndpointsClient) CreateOrUpdateThenPoll(ctx context.Context, id PrivateEndpointId, input PrivateEndpoint) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_delete.go new file mode 100644 index 000000000000..70f382bf8e3b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_delete.go @@ -0,0 +1,71 @@ +package privateendpoints + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c PrivateEndpointsClient) Delete(ctx context.Context, id PrivateEndpointId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c PrivateEndpointsClient) DeleteThenPoll(ctx context.Context, id PrivateEndpointId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_get.go new file mode 100644 index 000000000000..559e0f436c5a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_get.go @@ -0,0 +1,83 @@ +package privateendpoints + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PrivateEndpoint +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c PrivateEndpointsClient) Get(ctx context.Context, id PrivateEndpointId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model PrivateEndpoint + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_list.go new file mode 100644 index 000000000000..f832db84c7a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_list.go @@ -0,0 +1,106 @@ +package privateendpoints + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PrivateEndpoint +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []PrivateEndpoint +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c PrivateEndpointsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateEndpoints", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PrivateEndpoint `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c PrivateEndpointsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, PrivateEndpointOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PrivateEndpointsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate PrivateEndpointOperationPredicate) (result ListCompleteResult, err error) { + items := make([]PrivateEndpoint, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_listbysubscription.go new file mode 100644 index 000000000000..c517e23cdbf1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_listbysubscription.go @@ -0,0 +1,106 @@ +package privateendpoints + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBySubscriptionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PrivateEndpoint +} + +type ListBySubscriptionCompleteResult struct { + LatestHttpResponse *http.Response + Items []PrivateEndpoint +} + +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListBySubscription ... +func (c PrivateEndpointsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateEndpoints", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PrivateEndpoint `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListBySubscriptionComplete retrieves all the results into a single object +func (c PrivateEndpointsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error) { + return c.ListBySubscriptionCompleteMatchingPredicate(ctx, id, PrivateEndpointOperationPredicate{}) +} + +// ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PrivateEndpointsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate PrivateEndpointOperationPredicate) (result ListBySubscriptionCompleteResult, err error) { + items := make([]PrivateEndpoint, 0) + + resp, err := c.ListBySubscription(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListBySubscriptionCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..b8767a924d33 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..faea7af96350 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..bc45532ef998 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..d7b619385a01 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..0975b3a3c18e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..b514ce65a104 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..c505be8adad1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_availableprivateendpointtype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_availableprivateendpointtype.go new file mode 100644 index 000000000000..c6aa8839dc14 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_availableprivateendpointtype.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AvailablePrivateEndpointType struct { + DisplayName *string `json:"displayName,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + ResourceName *string `json:"resourceName,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_backendaddresspool.go new file mode 100644 index 000000000000..afaee89cd0ab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..7079b8612911 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..a078479b1cf9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ddossettings.go new file mode 100644 index 000000000000..6253ff1e5a4f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ddossettings.go @@ -0,0 +1,9 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_delegation.go new file mode 100644 index 000000000000..fd6104e1e68c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_delegation.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlog.go new file mode 100644 index 000000000000..6e5b89e5f2cb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlog.go @@ -0,0 +1,19 @@ +package privateendpoints + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlogformatparameters.go new file mode 100644 index 000000000000..a15c48049c6c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..3e3ef311eed5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_frontendipconfiguration.go new file mode 100644 index 000000000000..3dcb8560fec0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package privateendpoints + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..8980fc3756f2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..dde47c23fb21 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_inboundnatrule.go new file mode 100644 index 000000000000..38c0ffd67281 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..b952302ddebd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfiguration.go new file mode 100644 index 000000000000..cf18ee9415ba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..d493529c992a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..dabdbd7c8411 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..fdfdcd1d175e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_iptag.go new file mode 100644 index 000000000000..83206500edce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_iptag.go @@ -0,0 +1,9 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..ee77fec93c3d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..9be73b64841e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgateway.go new file mode 100644 index 000000000000..e197bcd7adab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgateway.go @@ -0,0 +1,20 @@ +package privateendpoints + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..fc0ee1ef6da7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgatewaysku.go new file mode 100644 index 000000000000..c0b2d583e49e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natruleportmapping.go new file mode 100644 index 000000000000..07eeaf979f4e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterface.go new file mode 100644 index 000000000000..9e9c7fcfa82f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterface.go @@ -0,0 +1,19 @@ +package privateendpoints + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..5182d846bf12 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..e41eb348a7b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..ac6a234dd34b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..49402e36c835 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..a5fd36f92666 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..ebe35c0a1782 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..54e437f339f3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networksecuritygroup.go new file mode 100644 index 000000000000..cb420b609909 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..b03a951faff7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpoint.go new file mode 100644 index 000000000000..5e9da21fedbc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpoint.go @@ -0,0 +1,19 @@ +package privateendpoints + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointconnection.go new file mode 100644 index 000000000000..5bd8301f4f34 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..8c0662fe4e26 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..1fbe08553f6e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..3772b023f53f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointproperties.go new file mode 100644 index 000000000000..ac88e7637f3a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkservice.go new file mode 100644 index 000000000000..e4c8723fc8bd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package privateendpoints + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..be10aca683dc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..da2a7ed38710 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..1d19bec0830a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..358ee0e74506 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..81634dd44b1d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..aa8c280a9ad6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddress.go new file mode 100644 index 000000000000..eeca2133c315 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddress.go @@ -0,0 +1,22 @@ +package privateendpoints + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..bc8acd1515a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..bed9d0ba8d76 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddresssku.go new file mode 100644 index 000000000000..2bbd107f243e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourcenavigationlink.go new file mode 100644 index 000000000000..d88904429239 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..281da0ffc970 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourceset.go new file mode 100644 index 000000000000..999b1817a305 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourceset.go @@ -0,0 +1,8 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..b3df6ba5fd1f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_route.go new file mode 100644 index 000000000000..98c7a5ae4760 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_route.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routepropertiesformat.go new file mode 100644 index 000000000000..ca3956916f35 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routetable.go new file mode 100644 index 000000000000..e1f695300d86 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routetable.go @@ -0,0 +1,14 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..4976a28f0ea0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_securityrule.go new file mode 100644 index 000000000000..ccfc50b4a7e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_securityrule.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..2b19d6a628d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceassociationlink.go new file mode 100644 index 000000000000..a88015b02e11 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..7a779312074e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..84e538e83503 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..ea8ff121174c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..cc2054776fa3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..8355dfbaae00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..dbdcdea14422 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..c9bc7f38f99b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subnet.go new file mode 100644 index 000000000000..1eee73db2bda --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subnet.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..84fae8e2d690 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subresource.go new file mode 100644 index 000000000000..134c4f661024 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subresource.go @@ -0,0 +1,8 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..fc7cf55257e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..8a4f6042fa41 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_virtualnetworktap.go new file mode 100644 index 000000000000..99fe7d7fe1d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..c7fa6565e0f5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/predicates.go new file mode 100644 index 000000000000..c99098d01631 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/predicates.go @@ -0,0 +1,70 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AvailablePrivateEndpointTypeOperationPredicate struct { + DisplayName *string + Id *string + Name *string + ResourceName *string + Type *string +} + +func (p AvailablePrivateEndpointTypeOperationPredicate) Matches(input AvailablePrivateEndpointType) bool { + + if p.DisplayName != nil && (input.DisplayName == nil || *p.DisplayName != *input.DisplayName) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.ResourceName != nil && (input.ResourceName == nil || *p.ResourceName != *input.ResourceName) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type PrivateEndpointOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p PrivateEndpointOperationPredicate) Matches(input PrivateEndpoint) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/version.go new file mode 100644 index 000000000000..cad261b040ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/version.go @@ -0,0 +1,10 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/privateendpoints/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/README.md new file mode 100644 index 000000000000..57252b930e73 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/README.md @@ -0,0 +1,234 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices` Documentation + +The `privatelinkservices` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices" +``` + + +### Client Initialization + +```go +client := privatelinkservices.NewPrivateLinkServicesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PrivateLinkServicesClient.CheckPrivateLinkServiceVisibility` + +```go +ctx := context.TODO() +id := privatelinkservices.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +payload := privatelinkservices.CheckPrivateLinkServiceVisibilityRequest{ + // ... +} + + +if err := client.CheckPrivateLinkServiceVisibilityThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateLinkServicesClient.CheckPrivateLinkServiceVisibilityByResourceGroup` + +```go +ctx := context.TODO() +id := privatelinkservices.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName") + +payload := privatelinkservices.CheckPrivateLinkServiceVisibilityRequest{ + // ... +} + + +if err := client.CheckPrivateLinkServiceVisibilityByResourceGroupThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateLinkServicesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := privatelinkservices.NewPrivateLinkServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceName") + +payload := privatelinkservices.PrivateLinkService{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateLinkServicesClient.Delete` + +```go +ctx := context.TODO() +id := privatelinkservices.NewPrivateLinkServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateLinkServicesClient.DeletePrivateEndpointConnection` + +```go +ctx := context.TODO() +id := privatelinkservices.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceName", "privateEndpointConnectionName") + +if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateLinkServicesClient.Get` + +```go +ctx := context.TODO() +id := privatelinkservices.NewPrivateLinkServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceName") + +read, err := client.Get(ctx, id, privatelinkservices.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PrivateLinkServicesClient.GetPrivateEndpointConnection` + +```go +ctx := context.TODO() +id := privatelinkservices.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceName", "privateEndpointConnectionName") + +read, err := client.GetPrivateEndpointConnection(ctx, id, privatelinkservices.DefaultGetPrivateEndpointConnectionOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PrivateLinkServicesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PrivateLinkServicesClient.ListAutoApprovedPrivateLinkServices` + +```go +ctx := context.TODO() +id := privatelinkservices.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +// alternatively `client.ListAutoApprovedPrivateLinkServices(ctx, id)` can be used to do batched pagination +items, err := client.ListAutoApprovedPrivateLinkServicesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PrivateLinkServicesClient.ListAutoApprovedPrivateLinkServicesByResourceGroup` + +```go +ctx := context.TODO() +id := privatelinkservices.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName") + +// alternatively `client.ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListAutoApprovedPrivateLinkServicesByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PrivateLinkServicesClient.ListBySubscription` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination +items, err := client.ListBySubscriptionComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PrivateLinkServicesClient.ListPrivateEndpointConnections` + +```go +ctx := context.TODO() +id := privatelinkservices.NewPrivateLinkServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceName") + +// alternatively `client.ListPrivateEndpointConnections(ctx, id)` can be used to do batched pagination +items, err := client.ListPrivateEndpointConnectionsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PrivateLinkServicesClient.UpdatePrivateEndpointConnection` + +```go +ctx := context.TODO() +id := privatelinkservices.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceName", "privateEndpointConnectionName") + +payload := privatelinkservices.PrivateEndpointConnection{ + // ... +} + + +read, err := client.UpdatePrivateEndpointConnection(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/client.go new file mode 100644 index 000000000000..e097e552e3f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/client.go @@ -0,0 +1,26 @@ +package privatelinkservices + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServicesClient struct { + Client *resourcemanager.Client +} + +func NewPrivateLinkServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkServicesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "privatelinkservices", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating PrivateLinkServicesClient: %+v", err) + } + + return &PrivateLinkServicesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/constants.go new file mode 100644 index 000000000000..17a1620a8350 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/constants.go @@ -0,0 +1,1198 @@ +package privatelinkservices + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_location.go new file mode 100644 index 000000000000..ad61efbce7ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_location.go @@ -0,0 +1,121 @@ +package privatelinkservices + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&LocationId{}) +} + +var _ resourceids.ResourceId = &LocationId{} + +// LocationId is a struct representing the Resource ID for a Location +type LocationId struct { + SubscriptionId string + LocationName string +} + +// NewLocationID returns a new LocationId struct +func NewLocationID(subscriptionId string, locationName string) LocationId { + return LocationId{ + SubscriptionId: subscriptionId, + LocationName: locationName, + } +} + +// ParseLocationID parses 'input' into a LocationId +func ParseLocationID(input string) (*LocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId +// note: this method should only be used for API response data and not user input +func ParseLocationIDInsensitively(input string) (*LocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *LocationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.LocationName, ok = input.Parsed["locationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) + } + + return nil +} + +// ValidateLocationID checks that 'input' can be parsed as a Location ID +func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseLocationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Location ID +func (id LocationId) ID() string { + fmtString := "/subscriptions/%s/providers/Microsoft.Network/locations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.LocationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Location ID +func (id LocationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticLocations", "locations", "locations"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), + } +} + +// String returns a human-readable description of this Location ID +func (id LocationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Location Name: %q", id.LocationName), + } + return fmt.Sprintf("Location (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_privateendpointconnection.go new file mode 100644 index 000000000000..3f1f439928bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_privateendpointconnection.go @@ -0,0 +1,139 @@ +package privatelinkservices + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&PrivateEndpointConnectionId{}) +} + +var _ resourceids.ResourceId = &PrivateEndpointConnectionId{} + +// PrivateEndpointConnectionId is a struct representing the Resource ID for a Private Endpoint Connection +type PrivateEndpointConnectionId struct { + SubscriptionId string + ResourceGroupName string + PrivateLinkServiceName string + PrivateEndpointConnectionName string +} + +// NewPrivateEndpointConnectionID returns a new PrivateEndpointConnectionId struct +func NewPrivateEndpointConnectionID(subscriptionId string, resourceGroupName string, privateLinkServiceName string, privateEndpointConnectionName string) PrivateEndpointConnectionId { + return PrivateEndpointConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + PrivateLinkServiceName: privateLinkServiceName, + PrivateEndpointConnectionName: privateEndpointConnectionName, + } +} + +// ParsePrivateEndpointConnectionID parses 'input' into a PrivateEndpointConnectionId +func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&PrivateEndpointConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PrivateEndpointConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParsePrivateEndpointConnectionIDInsensitively parses 'input' case-insensitively into a PrivateEndpointConnectionId +// note: this method should only be used for API response data and not user input +func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpointConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&PrivateEndpointConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PrivateEndpointConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *PrivateEndpointConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.PrivateLinkServiceName, ok = input.Parsed["privateLinkServiceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "privateLinkServiceName", input) + } + + if id.PrivateEndpointConnectionName, ok = input.Parsed["privateEndpointConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "privateEndpointConnectionName", input) + } + + return nil +} + +// ValidatePrivateEndpointConnectionID checks that 'input' can be parsed as a Private Endpoint Connection ID +func ValidatePrivateEndpointConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParsePrivateEndpointConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Private Endpoint Connection ID +func (id PrivateEndpointConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/privateLinkServices/%s/privateEndpointConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.PrivateLinkServiceName, id.PrivateEndpointConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Private Endpoint Connection ID +func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticPrivateLinkServices", "privateLinkServices", "privateLinkServices"), + resourceids.UserSpecifiedSegment("privateLinkServiceName", "privateLinkServiceName"), + resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), + } +} + +// String returns a human-readable description of this Private Endpoint Connection ID +func (id PrivateEndpointConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Private Link Service Name: %q", id.PrivateLinkServiceName), + fmt.Sprintf("Private Endpoint Connection Name: %q", id.PrivateEndpointConnectionName), + } + return fmt.Sprintf("Private Endpoint Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_privatelinkservice.go new file mode 100644 index 000000000000..d691d1eded6b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_privatelinkservice.go @@ -0,0 +1,130 @@ +package privatelinkservices + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&PrivateLinkServiceId{}) +} + +var _ resourceids.ResourceId = &PrivateLinkServiceId{} + +// PrivateLinkServiceId is a struct representing the Resource ID for a Private Link Service +type PrivateLinkServiceId struct { + SubscriptionId string + ResourceGroupName string + PrivateLinkServiceName string +} + +// NewPrivateLinkServiceID returns a new PrivateLinkServiceId struct +func NewPrivateLinkServiceID(subscriptionId string, resourceGroupName string, privateLinkServiceName string) PrivateLinkServiceId { + return PrivateLinkServiceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + PrivateLinkServiceName: privateLinkServiceName, + } +} + +// ParsePrivateLinkServiceID parses 'input' into a PrivateLinkServiceId +func ParsePrivateLinkServiceID(input string) (*PrivateLinkServiceId, error) { + parser := resourceids.NewParserFromResourceIdType(&PrivateLinkServiceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PrivateLinkServiceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParsePrivateLinkServiceIDInsensitively parses 'input' case-insensitively into a PrivateLinkServiceId +// note: this method should only be used for API response data and not user input +func ParsePrivateLinkServiceIDInsensitively(input string) (*PrivateLinkServiceId, error) { + parser := resourceids.NewParserFromResourceIdType(&PrivateLinkServiceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PrivateLinkServiceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *PrivateLinkServiceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.PrivateLinkServiceName, ok = input.Parsed["privateLinkServiceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "privateLinkServiceName", input) + } + + return nil +} + +// ValidatePrivateLinkServiceID checks that 'input' can be parsed as a Private Link Service ID +func ValidatePrivateLinkServiceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParsePrivateLinkServiceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Private Link Service ID +func (id PrivateLinkServiceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/privateLinkServices/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.PrivateLinkServiceName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Private Link Service ID +func (id PrivateLinkServiceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticPrivateLinkServices", "privateLinkServices", "privateLinkServices"), + resourceids.UserSpecifiedSegment("privateLinkServiceName", "privateLinkServiceName"), + } +} + +// String returns a human-readable description of this Private Link Service ID +func (id PrivateLinkServiceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Private Link Service Name: %q", id.PrivateLinkServiceName), + } + return fmt.Sprintf("Private Link Service (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_providerlocation.go new file mode 100644 index 000000000000..706ab2680a9b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_providerlocation.go @@ -0,0 +1,130 @@ +package privatelinkservices + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ProviderLocationId{}) +} + +var _ resourceids.ResourceId = &ProviderLocationId{} + +// ProviderLocationId is a struct representing the Resource ID for a Provider Location +type ProviderLocationId struct { + SubscriptionId string + ResourceGroupName string + LocationName string +} + +// NewProviderLocationID returns a new ProviderLocationId struct +func NewProviderLocationID(subscriptionId string, resourceGroupName string, locationName string) ProviderLocationId { + return ProviderLocationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + LocationName: locationName, + } +} + +// ParseProviderLocationID parses 'input' into a ProviderLocationId +func ParseProviderLocationID(input string) (*ProviderLocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&ProviderLocationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ProviderLocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseProviderLocationIDInsensitively parses 'input' case-insensitively into a ProviderLocationId +// note: this method should only be used for API response data and not user input +func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&ProviderLocationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ProviderLocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ProviderLocationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.LocationName, ok = input.Parsed["locationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) + } + + return nil +} + +// ValidateProviderLocationID checks that 'input' can be parsed as a Provider Location ID +func ValidateProviderLocationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseProviderLocationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Provider Location ID +func (id ProviderLocationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/locations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.LocationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Provider Location ID +func (id ProviderLocationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticLocations", "locations", "locations"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), + } +} + +// String returns a human-readable description of this Provider Location ID +func (id ProviderLocationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Location Name: %q", id.LocationName), + } + return fmt.Sprintf("Provider Location (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_checkprivatelinkservicevisibility.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_checkprivatelinkservicevisibility.go new file mode 100644 index 000000000000..1e8a53a5ec7a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_checkprivatelinkservicevisibility.go @@ -0,0 +1,75 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckPrivateLinkServiceVisibilityOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *PrivateLinkServiceVisibility +} + +// CheckPrivateLinkServiceVisibility ... +func (c PrivateLinkServicesClient) CheckPrivateLinkServiceVisibility(ctx context.Context, id LocationId, input CheckPrivateLinkServiceVisibilityRequest) (result CheckPrivateLinkServiceVisibilityOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/checkPrivateLinkServiceVisibility", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CheckPrivateLinkServiceVisibilityThenPoll performs CheckPrivateLinkServiceVisibility then polls until it's completed +func (c PrivateLinkServicesClient) CheckPrivateLinkServiceVisibilityThenPoll(ctx context.Context, id LocationId, input CheckPrivateLinkServiceVisibilityRequest) error { + result, err := c.CheckPrivateLinkServiceVisibility(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CheckPrivateLinkServiceVisibility: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CheckPrivateLinkServiceVisibility: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_checkprivatelinkservicevisibilitybyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_checkprivatelinkservicevisibilitybyresourcegroup.go new file mode 100644 index 000000000000..22023c980d02 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_checkprivatelinkservicevisibilitybyresourcegroup.go @@ -0,0 +1,75 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckPrivateLinkServiceVisibilityByResourceGroupOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *PrivateLinkServiceVisibility +} + +// CheckPrivateLinkServiceVisibilityByResourceGroup ... +func (c PrivateLinkServicesClient) CheckPrivateLinkServiceVisibilityByResourceGroup(ctx context.Context, id ProviderLocationId, input CheckPrivateLinkServiceVisibilityRequest) (result CheckPrivateLinkServiceVisibilityByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/checkPrivateLinkServiceVisibility", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CheckPrivateLinkServiceVisibilityByResourceGroupThenPoll performs CheckPrivateLinkServiceVisibilityByResourceGroup then polls until it's completed +func (c PrivateLinkServicesClient) CheckPrivateLinkServiceVisibilityByResourceGroupThenPoll(ctx context.Context, id ProviderLocationId, input CheckPrivateLinkServiceVisibilityRequest) error { + result, err := c.CheckPrivateLinkServiceVisibilityByResourceGroup(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CheckPrivateLinkServiceVisibilityByResourceGroup: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CheckPrivateLinkServiceVisibilityByResourceGroup: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_createorupdate.go new file mode 100644 index 000000000000..469627334988 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_createorupdate.go @@ -0,0 +1,75 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *PrivateLinkService +} + +// CreateOrUpdate ... +func (c PrivateLinkServicesClient) CreateOrUpdate(ctx context.Context, id PrivateLinkServiceId, input PrivateLinkService) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c PrivateLinkServicesClient) CreateOrUpdateThenPoll(ctx context.Context, id PrivateLinkServiceId, input PrivateLinkService) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_delete.go new file mode 100644 index 000000000000..d518ac5aede1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_delete.go @@ -0,0 +1,71 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c PrivateLinkServicesClient) Delete(ctx context.Context, id PrivateLinkServiceId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c PrivateLinkServicesClient) DeleteThenPoll(ctx context.Context, id PrivateLinkServiceId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_deleteprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_deleteprivateendpointconnection.go new file mode 100644 index 000000000000..92593766f11d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_deleteprivateendpointconnection.go @@ -0,0 +1,71 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeletePrivateEndpointConnectionOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// DeletePrivateEndpointConnection ... +func (c PrivateLinkServicesClient) DeletePrivateEndpointConnection(ctx context.Context, id PrivateEndpointConnectionId) (result DeletePrivateEndpointConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeletePrivateEndpointConnectionThenPoll performs DeletePrivateEndpointConnection then polls until it's completed +func (c PrivateLinkServicesClient) DeletePrivateEndpointConnectionThenPoll(ctx context.Context, id PrivateEndpointConnectionId) error { + result, err := c.DeletePrivateEndpointConnection(ctx, id) + if err != nil { + return fmt.Errorf("performing DeletePrivateEndpointConnection: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after DeletePrivateEndpointConnection: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_get.go new file mode 100644 index 000000000000..3be1df5bb535 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_get.go @@ -0,0 +1,83 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PrivateLinkService +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c PrivateLinkServicesClient) Get(ctx context.Context, id PrivateLinkServiceId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model PrivateLinkService + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_getprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_getprivateendpointconnection.go new file mode 100644 index 000000000000..7690b7c62af4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_getprivateendpointconnection.go @@ -0,0 +1,83 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetPrivateEndpointConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PrivateEndpointConnection +} + +type GetPrivateEndpointConnectionOperationOptions struct { + Expand *string +} + +func DefaultGetPrivateEndpointConnectionOperationOptions() GetPrivateEndpointConnectionOperationOptions { + return GetPrivateEndpointConnectionOperationOptions{} +} + +func (o GetPrivateEndpointConnectionOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetPrivateEndpointConnectionOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetPrivateEndpointConnectionOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// GetPrivateEndpointConnection ... +func (c PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context.Context, id PrivateEndpointConnectionId, options GetPrivateEndpointConnectionOperationOptions) (result GetPrivateEndpointConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model PrivateEndpointConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_list.go new file mode 100644 index 000000000000..70140c6dc932 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_list.go @@ -0,0 +1,106 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PrivateLinkService +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []PrivateLinkService +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c PrivateLinkServicesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateLinkServices", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PrivateLinkService `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c PrivateLinkServicesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, PrivateLinkServiceOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PrivateLinkServicesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate PrivateLinkServiceOperationPredicate) (result ListCompleteResult, err error) { + items := make([]PrivateLinkService, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go new file mode 100644 index 000000000000..f3156a5739c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go @@ -0,0 +1,105 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAutoApprovedPrivateLinkServicesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]AutoApprovedPrivateLinkService +} + +type ListAutoApprovedPrivateLinkServicesCompleteResult struct { + LatestHttpResponse *http.Response + Items []AutoApprovedPrivateLinkService +} + +type ListAutoApprovedPrivateLinkServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAutoApprovedPrivateLinkServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAutoApprovedPrivateLinkServices ... +func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx context.Context, id LocationId) (result ListAutoApprovedPrivateLinkServicesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAutoApprovedPrivateLinkServicesCustomPager{}, + Path: fmt.Sprintf("%s/autoApprovedPrivateLinkServices", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]AutoApprovedPrivateLinkService `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAutoApprovedPrivateLinkServicesComplete retrieves all the results into a single object +func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesComplete(ctx context.Context, id LocationId) (ListAutoApprovedPrivateLinkServicesCompleteResult, error) { + return c.ListAutoApprovedPrivateLinkServicesCompleteMatchingPredicate(ctx, id, AutoApprovedPrivateLinkServiceOperationPredicate{}) +} + +// ListAutoApprovedPrivateLinkServicesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate AutoApprovedPrivateLinkServiceOperationPredicate) (result ListAutoApprovedPrivateLinkServicesCompleteResult, err error) { + items := make([]AutoApprovedPrivateLinkService, 0) + + resp, err := c.ListAutoApprovedPrivateLinkServices(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAutoApprovedPrivateLinkServicesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go new file mode 100644 index 000000000000..91eed65255ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go @@ -0,0 +1,105 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAutoApprovedPrivateLinkServicesByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]AutoApprovedPrivateLinkService +} + +type ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []AutoApprovedPrivateLinkService +} + +type ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAutoApprovedPrivateLinkServicesByResourceGroup ... +func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx context.Context, id ProviderLocationId) (result ListAutoApprovedPrivateLinkServicesByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/autoApprovedPrivateLinkServices", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]AutoApprovedPrivateLinkService `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAutoApprovedPrivateLinkServicesByResourceGroupComplete retrieves all the results into a single object +func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResourceGroupComplete(ctx context.Context, id ProviderLocationId) (ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteResult, error) { + return c.ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteMatchingPredicate(ctx, id, AutoApprovedPrivateLinkServiceOperationPredicate{}) +} + +// ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteMatchingPredicate(ctx context.Context, id ProviderLocationId, predicate AutoApprovedPrivateLinkServiceOperationPredicate) (result ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteResult, err error) { + items := make([]AutoApprovedPrivateLinkService, 0) + + resp, err := c.ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listbysubscription.go new file mode 100644 index 000000000000..63f9d6bf9c61 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listbysubscription.go @@ -0,0 +1,106 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBySubscriptionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PrivateLinkService +} + +type ListBySubscriptionCompleteResult struct { + LatestHttpResponse *http.Response + Items []PrivateLinkService +} + +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListBySubscription ... +func (c PrivateLinkServicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateLinkServices", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PrivateLinkService `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListBySubscriptionComplete retrieves all the results into a single object +func (c PrivateLinkServicesClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error) { + return c.ListBySubscriptionCompleteMatchingPredicate(ctx, id, PrivateLinkServiceOperationPredicate{}) +} + +// ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PrivateLinkServicesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate PrivateLinkServiceOperationPredicate) (result ListBySubscriptionCompleteResult, err error) { + items := make([]PrivateLinkService, 0) + + resp, err := c.ListBySubscription(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListBySubscriptionCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listprivateendpointconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listprivateendpointconnections.go new file mode 100644 index 000000000000..c4742974fe5e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listprivateendpointconnections.go @@ -0,0 +1,105 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListPrivateEndpointConnectionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PrivateEndpointConnection +} + +type ListPrivateEndpointConnectionsCompleteResult struct { + LatestHttpResponse *http.Response + Items []PrivateEndpointConnection +} + +type ListPrivateEndpointConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPrivateEndpointConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListPrivateEndpointConnections ... +func (c PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx context.Context, id PrivateLinkServiceId) (result ListPrivateEndpointConnectionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListPrivateEndpointConnectionsCustomPager{}, + Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PrivateEndpointConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListPrivateEndpointConnectionsComplete retrieves all the results into a single object +func (c PrivateLinkServicesClient) ListPrivateEndpointConnectionsComplete(ctx context.Context, id PrivateLinkServiceId) (ListPrivateEndpointConnectionsCompleteResult, error) { + return c.ListPrivateEndpointConnectionsCompleteMatchingPredicate(ctx, id, PrivateEndpointConnectionOperationPredicate{}) +} + +// ListPrivateEndpointConnectionsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PrivateLinkServicesClient) ListPrivateEndpointConnectionsCompleteMatchingPredicate(ctx context.Context, id PrivateLinkServiceId, predicate PrivateEndpointConnectionOperationPredicate) (result ListPrivateEndpointConnectionsCompleteResult, err error) { + items := make([]PrivateEndpointConnection, 0) + + resp, err := c.ListPrivateEndpointConnections(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListPrivateEndpointConnectionsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_updateprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_updateprivateendpointconnection.go new file mode 100644 index 000000000000..b108db06f2a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_updateprivateendpointconnection.go @@ -0,0 +1,57 @@ +package privatelinkservices + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdatePrivateEndpointConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PrivateEndpointConnection +} + +// UpdatePrivateEndpointConnection ... +func (c PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx context.Context, id PrivateEndpointConnectionId, input PrivateEndpointConnection) (result UpdatePrivateEndpointConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model PrivateEndpointConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..6e064132ab84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..2b8b30f76cf1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..687ec802ef4c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..237473164430 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..bc231fd9d60b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..102038ead97e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..b9a224260e0f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_autoapprovedprivatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_autoapprovedprivatelinkservice.go new file mode 100644 index 000000000000..e8eb368b9fd7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_autoapprovedprivatelinkservice.go @@ -0,0 +1,8 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AutoApprovedPrivateLinkService struct { + PrivateLinkService *string `json:"privateLinkService,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_backendaddresspool.go new file mode 100644 index 000000000000..e621fc409e7e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..4fe2c6dad022 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_checkprivatelinkservicevisibilityrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_checkprivatelinkservicevisibilityrequest.go new file mode 100644 index 000000000000..d338d570a52e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_checkprivatelinkservicevisibilityrequest.go @@ -0,0 +1,8 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckPrivateLinkServiceVisibilityRequest struct { + PrivateLinkServiceAlias *string `json:"privateLinkServiceAlias,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..5bb831424b80 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ddossettings.go new file mode 100644 index 000000000000..a88f6af3346c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ddossettings.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_delegation.go new file mode 100644 index 000000000000..861d7dccc335 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_delegation.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlog.go new file mode 100644 index 000000000000..a7a48567b588 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlog.go @@ -0,0 +1,19 @@ +package privatelinkservices + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlogformatparameters.go new file mode 100644 index 000000000000..e5d4b9b0d2f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..f7d23503742a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_frontendipconfiguration.go new file mode 100644 index 000000000000..c4908a4dc2b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package privatelinkservices + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..2a655d02dfc1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..57e817e63b2f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_inboundnatrule.go new file mode 100644 index 000000000000..acd7d0aa7090 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..8bf73e3faf8a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfiguration.go new file mode 100644 index 000000000000..3ad6065a48e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..0b4a7cbc860d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..f1bae207cc2e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..2852a27e2c3b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_iptag.go new file mode 100644 index 000000000000..a7e33392ad27 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_iptag.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..09bc3c7f06cc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..a567721ac6c7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgateway.go new file mode 100644 index 000000000000..077d2bc5d5fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgateway.go @@ -0,0 +1,20 @@ +package privatelinkservices + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..85150f10453f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgatewaysku.go new file mode 100644 index 000000000000..ceae4c333727 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natruleportmapping.go new file mode 100644 index 000000000000..e081a3363759 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterface.go new file mode 100644 index 000000000000..6ac282778d78 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterface.go @@ -0,0 +1,19 @@ +package privatelinkservices + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..b7993919c629 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..766f136f8526 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..4e4cefa66b4b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..9574d8285606 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..1c2bfc6ae43c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..66b7aeeab62b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..307c8944af02 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networksecuritygroup.go new file mode 100644 index 000000000000..1a2792e0f884 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..7990d29a1bbd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpoint.go new file mode 100644 index 000000000000..d3a77eea7544 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpoint.go @@ -0,0 +1,19 @@ +package privatelinkservices + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointconnection.go new file mode 100644 index 000000000000..bb755a705364 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..5966a68df2a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..6327ca28ff1d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..5e70530aabf8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointproperties.go new file mode 100644 index 000000000000..4d6d18b46a59 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkservice.go new file mode 100644 index 000000000000..4a672116bc2b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package privatelinkservices + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..eb5e26941fdf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..a991f868fe87 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..f227e3d5e6ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..de38cfbbde6c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..b1809f0d71c0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..1dbb659e8729 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkservicevisibility.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkservicevisibility.go new file mode 100644 index 000000000000..38f95ae51a17 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkservicevisibility.go @@ -0,0 +1,8 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceVisibility struct { + Visible *bool `json:"visible,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddress.go new file mode 100644 index 000000000000..cdcddd86935e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddress.go @@ -0,0 +1,22 @@ +package privatelinkservices + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..268300edf0bc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..2b9a811495b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddresssku.go new file mode 100644 index 000000000000..80c5ef44ece2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourcenavigationlink.go new file mode 100644 index 000000000000..68ad67e053ed --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..57d6954d2945 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourceset.go new file mode 100644 index 000000000000..e923870d39f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourceset.go @@ -0,0 +1,8 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..96f988841633 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_route.go new file mode 100644 index 000000000000..901d0eadcc62 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_route.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routepropertiesformat.go new file mode 100644 index 000000000000..120882489684 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routetable.go new file mode 100644 index 000000000000..8afe228ccfd7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routetable.go @@ -0,0 +1,14 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..6377cd08fd9b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_securityrule.go new file mode 100644 index 000000000000..df53714a81ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_securityrule.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..52b151efed9a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceassociationlink.go new file mode 100644 index 000000000000..5f9234cbb828 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..87f29c8ca656 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..2ad5375c2ca3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..c93c759f93a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..d1116eb2a61d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..7f68e9513e32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..5af6f94d80f2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..db38090185b9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subnet.go new file mode 100644 index 000000000000..afb102ed10a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subnet.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..223c45fd44d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subresource.go new file mode 100644 index 000000000000..b9dcdcf56bf2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subresource.go @@ -0,0 +1,8 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..c500218a37c3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..b98eb28874d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_virtualnetworktap.go new file mode 100644 index 000000000000..8dbee65a21a0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..4fb395dbc76b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/predicates.go new file mode 100644 index 000000000000..f7e18f9feee9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/predicates.go @@ -0,0 +1,78 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AutoApprovedPrivateLinkServiceOperationPredicate struct { + PrivateLinkService *string +} + +func (p AutoApprovedPrivateLinkServiceOperationPredicate) Matches(input AutoApprovedPrivateLinkService) bool { + + if p.PrivateLinkService != nil && (input.PrivateLinkService == nil || *p.PrivateLinkService != *input.PrivateLinkService) { + return false + } + + return true +} + +type PrivateEndpointConnectionOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p PrivateEndpointConnectionOperationPredicate) Matches(input PrivateEndpointConnection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type PrivateLinkServiceOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p PrivateLinkServiceOperationPredicate) Matches(input PrivateLinkService) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/version.go new file mode 100644 index 000000000000..0295a186c594 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/version.go @@ -0,0 +1,10 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/privatelinkservices/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/README.md new file mode 100644 index 000000000000..258f20353ec8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/README.md @@ -0,0 +1,133 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses` Documentation + +The `publicipaddresses` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" +``` + + +### Client Initialization + +```go +client := publicipaddresses.NewPublicIPAddressesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PublicIPAddressesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") + +payload := publicipaddresses.PublicIPAddress{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PublicIPAddressesClient.DdosProtectionStatus` + +```go +ctx := context.TODO() +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") + +if err := client.DdosProtectionStatusThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PublicIPAddressesClient.Delete` + +```go +ctx := context.TODO() +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PublicIPAddressesClient.Get` + +```go +ctx := context.TODO() +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") + +read, err := client.Get(ctx, id, publicipaddresses.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PublicIPAddressesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PublicIPAddressesClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PublicIPAddressesClient.UpdateTags` + +```go +ctx := context.TODO() +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") + +payload := publicipaddresses.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/client.go new file mode 100644 index 000000000000..54f2b0113c7f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/client.go @@ -0,0 +1,26 @@ +package publicipaddresses + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressesClient struct { + Client *resourcemanager.Client +} + +func NewPublicIPAddressesClientWithBaseURI(sdkApi sdkEnv.Api) (*PublicIPAddressesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "publicipaddresses", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating PublicIPAddressesClient: %+v", err) + } + + return &PublicIPAddressesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/constants.go new file mode 100644 index 000000000000..167548baa81b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/constants.go @@ -0,0 +1,1239 @@ +package publicipaddresses + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type IsWorkloadProtected string + +const ( + IsWorkloadProtectedFalse IsWorkloadProtected = "False" + IsWorkloadProtectedTrue IsWorkloadProtected = "True" +) + +func PossibleValuesForIsWorkloadProtected() []string { + return []string{ + string(IsWorkloadProtectedFalse), + string(IsWorkloadProtectedTrue), + } +} + +func (s *IsWorkloadProtected) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIsWorkloadProtected(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIsWorkloadProtected(input string) (*IsWorkloadProtected, error) { + vals := map[string]IsWorkloadProtected{ + "false": IsWorkloadProtectedFalse, + "true": IsWorkloadProtectedTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IsWorkloadProtected(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_createorupdate.go new file mode 100644 index 000000000000..fca7faa2130f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_createorupdate.go @@ -0,0 +1,76 @@ +package publicipaddresses + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *PublicIPAddress +} + +// CreateOrUpdate ... +func (c PublicIPAddressesClient) CreateOrUpdate(ctx context.Context, id commonids.PublicIPAddressId, input PublicIPAddress) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c PublicIPAddressesClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.PublicIPAddressId, input PublicIPAddress) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_ddosprotectionstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_ddosprotectionstatus.go new file mode 100644 index 000000000000..29e07596f6d8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_ddosprotectionstatus.go @@ -0,0 +1,72 @@ +package publicipaddresses + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosProtectionStatusOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *PublicIPDdosProtectionStatusResult +} + +// DdosProtectionStatus ... +func (c PublicIPAddressesClient) DdosProtectionStatus(ctx context.Context, id commonids.PublicIPAddressId) (result DdosProtectionStatusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/ddosProtectionStatus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DdosProtectionStatusThenPoll performs DdosProtectionStatus then polls until it's completed +func (c PublicIPAddressesClient) DdosProtectionStatusThenPoll(ctx context.Context, id commonids.PublicIPAddressId) error { + result, err := c.DdosProtectionStatus(ctx, id) + if err != nil { + return fmt.Errorf("performing DdosProtectionStatus: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after DdosProtectionStatus: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_delete.go new file mode 100644 index 000000000000..20c57a22e757 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_delete.go @@ -0,0 +1,72 @@ +package publicipaddresses + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c PublicIPAddressesClient) Delete(ctx context.Context, id commonids.PublicIPAddressId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c PublicIPAddressesClient) DeleteThenPoll(ctx context.Context, id commonids.PublicIPAddressId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_get.go new file mode 100644 index 000000000000..2548c9b4db60 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_get.go @@ -0,0 +1,84 @@ +package publicipaddresses + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PublicIPAddress +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c PublicIPAddressesClient) Get(ctx context.Context, id commonids.PublicIPAddressId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model PublicIPAddress + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_list.go new file mode 100644 index 000000000000..013d0306760d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_list.go @@ -0,0 +1,106 @@ +package publicipaddresses + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PublicIPAddress +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []PublicIPAddress +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c PublicIPAddressesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPAddresses", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PublicIPAddress `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c PublicIPAddressesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, PublicIPAddressOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PublicIPAddressesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate PublicIPAddressOperationPredicate) (result ListCompleteResult, err error) { + items := make([]PublicIPAddress, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_listall.go new file mode 100644 index 000000000000..fc1c5ecc2474 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_listall.go @@ -0,0 +1,106 @@ +package publicipaddresses + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PublicIPAddress +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []PublicIPAddress +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c PublicIPAddressesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPAddresses", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PublicIPAddress `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c PublicIPAddressesClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, PublicIPAddressOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PublicIPAddressesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate PublicIPAddressOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]PublicIPAddress, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_updatetags.go new file mode 100644 index 000000000000..622a0a8c202f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_updatetags.go @@ -0,0 +1,58 @@ +package publicipaddresses + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PublicIPAddress +} + +// UpdateTags ... +func (c PublicIPAddressesClient) UpdateTags(ctx context.Context, id commonids.PublicIPAddressId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model PublicIPAddress + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..d89d17bbae7f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..433f6b69df9a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..14750d210a4b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..33311f968a88 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..69ba272007f2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..7ab7c1cc362a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..3de744e7bae6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_backendaddresspool.go new file mode 100644 index 000000000000..c693d24a91b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..b4b3a346a35a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..2bbec7ab5233 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ddossettings.go new file mode 100644 index 000000000000..360538854a2a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ddossettings.go @@ -0,0 +1,9 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_delegation.go new file mode 100644 index 000000000000..1036beaaf723 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_delegation.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlog.go new file mode 100644 index 000000000000..d93575ba1592 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlog.go @@ -0,0 +1,19 @@ +package publicipaddresses + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlogformatparameters.go new file mode 100644 index 000000000000..28da49ecc439 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..f1571aeca23f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_frontendipconfiguration.go new file mode 100644 index 000000000000..72aec2b54372 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package publicipaddresses + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..2d86f96cffb3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..9d2c813c821d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_inboundnatrule.go new file mode 100644 index 000000000000..bd6a9711828d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..320809245cfc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfiguration.go new file mode 100644 index 000000000000..398840974cdd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..1bf1de274419 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..1523f28e63d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..bb4f647f729d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_iptag.go new file mode 100644 index 000000000000..7ea58148bb25 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_iptag.go @@ -0,0 +1,9 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..e427662f2a61 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..349c22b64f57 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgateway.go new file mode 100644 index 000000000000..fc10c7874b79 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgateway.go @@ -0,0 +1,20 @@ +package publicipaddresses + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..3a740fb997bd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgatewaysku.go new file mode 100644 index 000000000000..764ce1ec4aa6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natruleportmapping.go new file mode 100644 index 000000000000..8c9fe6cf53db --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterface.go new file mode 100644 index 000000000000..5297e4801531 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterface.go @@ -0,0 +1,19 @@ +package publicipaddresses + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..b5db798efaa9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..9840f48b6360 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..7815eb1f03a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..fefc0a7c7d9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..b50c25d80861 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..060a9d5285a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..d229b2dfb8dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networksecuritygroup.go new file mode 100644 index 000000000000..485cb7f8e07e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..8fef2ca403a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpoint.go new file mode 100644 index 000000000000..dd63348ae6f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpoint.go @@ -0,0 +1,19 @@ +package publicipaddresses + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointconnection.go new file mode 100644 index 000000000000..b449098f79d0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..8a20b5b22e7a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..e75d758ed009 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..42574e02e610 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointproperties.go new file mode 100644 index 000000000000..a0108e9c621e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkservice.go new file mode 100644 index 000000000000..b4d87fc15130 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package publicipaddresses + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..2039fef8e1a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..37f23eb3b44a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..ee170e641091 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..8dce57f93b6c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..17839c3231f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..5ae889b74972 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddress.go new file mode 100644 index 000000000000..6be866484876 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddress.go @@ -0,0 +1,22 @@ +package publicipaddresses + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..19bd5c73bdd8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..90c1d7720127 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddresssku.go new file mode 100644 index 000000000000..af0178060c91 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipddosprotectionstatusresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipddosprotectionstatusresult.go new file mode 100644 index 000000000000..dbf51354f05d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipddosprotectionstatusresult.go @@ -0,0 +1,11 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPDdosProtectionStatusResult struct { + DdosProtectionPlanId *string `json:"ddosProtectionPlanId,omitempty"` + IsWorkloadProtected *IsWorkloadProtected `json:"isWorkloadProtected,omitempty"` + PublicIPAddress *string `json:"publicIpAddress,omitempty"` + PublicIPAddressId *string `json:"publicIpAddressId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourcenavigationlink.go new file mode 100644 index 000000000000..8df0e65c7963 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..912dad5e9b9b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourceset.go new file mode 100644 index 000000000000..eb4ec2e13c49 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourceset.go @@ -0,0 +1,8 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..57e746e68001 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_route.go new file mode 100644 index 000000000000..6aaf9130e490 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_route.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routepropertiesformat.go new file mode 100644 index 000000000000..19e40f46ddbe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routetable.go new file mode 100644 index 000000000000..eed83ddcb847 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routetable.go @@ -0,0 +1,14 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..f408090b5c7b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_securityrule.go new file mode 100644 index 000000000000..056a5506bccf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_securityrule.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..e076569ccb45 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceassociationlink.go new file mode 100644 index 000000000000..80405186b49f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..e0afefd43a1c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..dfdf08665d4b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..2937667f2dfc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..a5c2fb101895 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..6eae5a093631 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..77840b5f2bdd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..b40e6fcd671b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subnet.go new file mode 100644 index 000000000000..4dc6901bd98f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subnet.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..72cc7de86106 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subresource.go new file mode 100644 index 000000000000..f4a7d6a32482 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subresource.go @@ -0,0 +1,8 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_tagsobject.go new file mode 100644 index 000000000000..717ed6f5d3dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_tagsobject.go @@ -0,0 +1,8 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..f3cbae91cdce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..4e34016e12ed --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_virtualnetworktap.go new file mode 100644 index 000000000000..b4791998c225 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..4f32bce3226a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/predicates.go new file mode 100644 index 000000000000..07d29ffa7330 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/predicates.go @@ -0,0 +1,37 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p PublicIPAddressOperationPredicate) Matches(input PublicIPAddress) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/version.go new file mode 100644 index 000000000000..ae6c52d8980b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/version.go @@ -0,0 +1,10 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/publicipaddresses/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/README.md new file mode 100644 index 000000000000..09316f3f7c65 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes` Documentation + +The `publicipprefixes` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes" +``` + + +### Client Initialization + +```go +client := publicipprefixes.NewPublicIPPrefixesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PublicIPPrefixesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPPrefixName") + +payload := publicipprefixes.PublicIPPrefix{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PublicIPPrefixesClient.Delete` + +```go +ctx := context.TODO() +id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPPrefixName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PublicIPPrefixesClient.Get` + +```go +ctx := context.TODO() +id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPPrefixName") + +read, err := client.Get(ctx, id, publicipprefixes.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PublicIPPrefixesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PublicIPPrefixesClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PublicIPPrefixesClient.UpdateTags` + +```go +ctx := context.TODO() +id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPPrefixName") + +payload := publicipprefixes.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/client.go new file mode 100644 index 000000000000..78db89733876 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/client.go @@ -0,0 +1,26 @@ +package publicipprefixes + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPPrefixesClient struct { + Client *resourcemanager.Client +} + +func NewPublicIPPrefixesClientWithBaseURI(sdkApi sdkEnv.Api) (*PublicIPPrefixesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "publicipprefixes", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating PublicIPPrefixesClient: %+v", err) + } + + return &PublicIPPrefixesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/constants.go new file mode 100644 index 000000000000..a8c1328b07bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/constants.go @@ -0,0 +1,215 @@ +package publicipprefixes + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPPrefixSkuName string + +const ( + PublicIPPrefixSkuNameStandard PublicIPPrefixSkuName = "Standard" +) + +func PossibleValuesForPublicIPPrefixSkuName() []string { + return []string{ + string(PublicIPPrefixSkuNameStandard), + } +} + +func (s *PublicIPPrefixSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPPrefixSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPPrefixSkuName(input string) (*PublicIPPrefixSkuName, error) { + vals := map[string]PublicIPPrefixSkuName{ + "standard": PublicIPPrefixSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPPrefixSkuName(input) + return &out, nil +} + +type PublicIPPrefixSkuTier string + +const ( + PublicIPPrefixSkuTierGlobal PublicIPPrefixSkuTier = "Global" + PublicIPPrefixSkuTierRegional PublicIPPrefixSkuTier = "Regional" +) + +func PossibleValuesForPublicIPPrefixSkuTier() []string { + return []string{ + string(PublicIPPrefixSkuTierGlobal), + string(PublicIPPrefixSkuTierRegional), + } +} + +func (s *PublicIPPrefixSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPPrefixSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPPrefixSkuTier(input string) (*PublicIPPrefixSkuTier, error) { + vals := map[string]PublicIPPrefixSkuTier{ + "global": PublicIPPrefixSkuTierGlobal, + "regional": PublicIPPrefixSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPPrefixSkuTier(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/id_publicipprefix.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/id_publicipprefix.go new file mode 100644 index 000000000000..35801814a579 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/id_publicipprefix.go @@ -0,0 +1,130 @@ +package publicipprefixes + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&PublicIPPrefixId{}) +} + +var _ resourceids.ResourceId = &PublicIPPrefixId{} + +// PublicIPPrefixId is a struct representing the Resource ID for a Public I P Prefix +type PublicIPPrefixId struct { + SubscriptionId string + ResourceGroupName string + PublicIPPrefixName string +} + +// NewPublicIPPrefixID returns a new PublicIPPrefixId struct +func NewPublicIPPrefixID(subscriptionId string, resourceGroupName string, publicIPPrefixName string) PublicIPPrefixId { + return PublicIPPrefixId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + PublicIPPrefixName: publicIPPrefixName, + } +} + +// ParsePublicIPPrefixID parses 'input' into a PublicIPPrefixId +func ParsePublicIPPrefixID(input string) (*PublicIPPrefixId, error) { + parser := resourceids.NewParserFromResourceIdType(&PublicIPPrefixId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PublicIPPrefixId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParsePublicIPPrefixIDInsensitively parses 'input' case-insensitively into a PublicIPPrefixId +// note: this method should only be used for API response data and not user input +func ParsePublicIPPrefixIDInsensitively(input string) (*PublicIPPrefixId, error) { + parser := resourceids.NewParserFromResourceIdType(&PublicIPPrefixId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PublicIPPrefixId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *PublicIPPrefixId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.PublicIPPrefixName, ok = input.Parsed["publicIPPrefixName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "publicIPPrefixName", input) + } + + return nil +} + +// ValidatePublicIPPrefixID checks that 'input' can be parsed as a Public I P Prefix ID +func ValidatePublicIPPrefixID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParsePublicIPPrefixID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Public I P Prefix ID +func (id PublicIPPrefixId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/publicIPPrefixes/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.PublicIPPrefixName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Public I P Prefix ID +func (id PublicIPPrefixId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticPublicIPPrefixes", "publicIPPrefixes", "publicIPPrefixes"), + resourceids.UserSpecifiedSegment("publicIPPrefixName", "publicIPPrefixName"), + } +} + +// String returns a human-readable description of this Public I P Prefix ID +func (id PublicIPPrefixId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Public I P Prefix Name: %q", id.PublicIPPrefixName), + } + return fmt.Sprintf("Public I P Prefix (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_createorupdate.go new file mode 100644 index 000000000000..eb586e03d6c7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_createorupdate.go @@ -0,0 +1,75 @@ +package publicipprefixes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *PublicIPPrefix +} + +// CreateOrUpdate ... +func (c PublicIPPrefixesClient) CreateOrUpdate(ctx context.Context, id PublicIPPrefixId, input PublicIPPrefix) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c PublicIPPrefixesClient) CreateOrUpdateThenPoll(ctx context.Context, id PublicIPPrefixId, input PublicIPPrefix) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_delete.go new file mode 100644 index 000000000000..4ef74511d047 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_delete.go @@ -0,0 +1,71 @@ +package publicipprefixes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c PublicIPPrefixesClient) Delete(ctx context.Context, id PublicIPPrefixId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c PublicIPPrefixesClient) DeleteThenPoll(ctx context.Context, id PublicIPPrefixId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_get.go new file mode 100644 index 000000000000..4d05c32931a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_get.go @@ -0,0 +1,83 @@ +package publicipprefixes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PublicIPPrefix +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c PublicIPPrefixesClient) Get(ctx context.Context, id PublicIPPrefixId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model PublicIPPrefix + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_list.go new file mode 100644 index 000000000000..122a9df6f37a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_list.go @@ -0,0 +1,106 @@ +package publicipprefixes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PublicIPPrefix +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []PublicIPPrefix +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c PublicIPPrefixesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPPrefixes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PublicIPPrefix `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c PublicIPPrefixesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, PublicIPPrefixOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PublicIPPrefixesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate PublicIPPrefixOperationPredicate) (result ListCompleteResult, err error) { + items := make([]PublicIPPrefix, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_listall.go new file mode 100644 index 000000000000..4c49b47b3fef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_listall.go @@ -0,0 +1,106 @@ +package publicipprefixes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PublicIPPrefix +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []PublicIPPrefix +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c PublicIPPrefixesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPPrefixes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PublicIPPrefix `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c PublicIPPrefixesClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, PublicIPPrefixOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PublicIPPrefixesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate PublicIPPrefixOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]PublicIPPrefix, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_updatetags.go new file mode 100644 index 000000000000..3111479b00a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_updatetags.go @@ -0,0 +1,57 @@ +package publicipprefixes + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PublicIPPrefix +} + +// UpdateTags ... +func (c PublicIPPrefixesClient) UpdateTags(ctx context.Context, id PublicIPPrefixId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model PublicIPPrefix + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_iptag.go new file mode 100644 index 000000000000..e1bbbc73a6e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_iptag.go @@ -0,0 +1,9 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgateway.go new file mode 100644 index 000000000000..170eeff68488 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgateway.go @@ -0,0 +1,20 @@ +package publicipprefixes + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..5c1f46d37373 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgatewaysku.go new file mode 100644 index 000000000000..465e471e9030 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefix.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefix.go new file mode 100644 index 000000000000..6679bada47df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefix.go @@ -0,0 +1,22 @@ +package publicipprefixes + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPPrefix struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPPrefixPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPPrefixSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefixpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefixpropertiesformat.go new file mode 100644 index 000000000000..32b58a818b38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefixpropertiesformat.go @@ -0,0 +1,17 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPPrefixPropertiesFormat struct { + CustomIPPrefix *SubResource `json:"customIPPrefix,omitempty"` + IPPrefix *string `json:"ipPrefix,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIpConfiguration,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + PrefixLength *int64 `json:"prefixLength,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAddresses *[]ReferencedPublicIPAddress `json:"publicIPAddresses,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefixsku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefixsku.go new file mode 100644 index 000000000000..0737b92dee17 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefixsku.go @@ -0,0 +1,9 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPPrefixSku struct { + Name *PublicIPPrefixSkuName `json:"name,omitempty"` + Tier *PublicIPPrefixSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_referencedpublicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_referencedpublicipaddress.go new file mode 100644 index 000000000000..26027a800a2b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_referencedpublicipaddress.go @@ -0,0 +1,8 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ReferencedPublicIPAddress struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_subresource.go new file mode 100644 index 000000000000..53e3c780cbf1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_subresource.go @@ -0,0 +1,8 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_tagsobject.go new file mode 100644 index 000000000000..6a82f86f28f9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_tagsobject.go @@ -0,0 +1,8 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/predicates.go new file mode 100644 index 000000000000..7deb3ca2bbf0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/predicates.go @@ -0,0 +1,37 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPPrefixOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p PublicIPPrefixOperationPredicate) Matches(input PublicIPPrefix) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/version.go new file mode 100644 index 000000000000..b2cad2b3bb3f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/version.go @@ -0,0 +1,10 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/publicipprefixes/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/README.md index 15c8d0423ac7..b45ae71eab1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules` Documentation -The `routefilterrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `routefilterrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/id_routefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/id_routefilter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/id_routefilter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/id_routefilter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/id_routefilterrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/id_routefilterrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/id_routefilterrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/id_routefilterrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_listbyroutefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/method_listbyroutefilter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_listbyroutefilter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/method_listbyroutefilter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/model_routefilterrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/model_routefilterrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/model_routefilterrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/model_routefilterrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/model_routefilterrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/model_routefilterrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/model_routefilterrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/model_routefilterrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/version.go index af9896c7f073..e66e08f61129 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/version.go @@ -3,8 +3,8 @@ package routefilterrules // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/routefilterrules/2023-11-01" + return "hashicorp/go-azure-sdk/routefilterrules/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/README.md new file mode 100644 index 000000000000..acba1b1bf137 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters` Documentation + +The `routefilters` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters" +``` + + +### Client Initialization + +```go +client := routefilters.NewRouteFiltersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `RouteFiltersClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") + +payload := routefilters.RouteFilter{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `RouteFiltersClient.Delete` + +```go +ctx := context.TODO() +id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `RouteFiltersClient.Get` + +```go +ctx := context.TODO() +id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") + +read, err := client.Get(ctx, id, routefilters.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RouteFiltersClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `RouteFiltersClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `RouteFiltersClient.UpdateTags` + +```go +ctx := context.TODO() +id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") + +payload := routefilters.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/client.go new file mode 100644 index 000000000000..5bf2183b43df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/client.go @@ -0,0 +1,26 @@ +package routefilters + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteFiltersClient struct { + Client *resourcemanager.Client +} + +func NewRouteFiltersClientWithBaseURI(sdkApi sdkEnv.Api) (*RouteFiltersClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "routefilters", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating RouteFiltersClient: %+v", err) + } + + return &RouteFiltersClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/constants.go new file mode 100644 index 000000000000..47cec86d2907 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/constants.go @@ -0,0 +1,353 @@ +package routefilters + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Access string + +const ( + AccessAllow Access = "Allow" + AccessDeny Access = "Deny" +) + +func PossibleValuesForAccess() []string { + return []string{ + string(AccessAllow), + string(AccessDeny), + } +} + +func (s *Access) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAccess(input string) (*Access, error) { + vals := map[string]Access{ + "allow": AccessAllow, + "deny": AccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Access(input) + return &out, nil +} + +type CircuitConnectionStatus string + +const ( + CircuitConnectionStatusConnected CircuitConnectionStatus = "Connected" + CircuitConnectionStatusConnecting CircuitConnectionStatus = "Connecting" + CircuitConnectionStatusDisconnected CircuitConnectionStatus = "Disconnected" +) + +func PossibleValuesForCircuitConnectionStatus() []string { + return []string{ + string(CircuitConnectionStatusConnected), + string(CircuitConnectionStatusConnecting), + string(CircuitConnectionStatusDisconnected), + } +} + +func (s *CircuitConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCircuitConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCircuitConnectionStatus(input string) (*CircuitConnectionStatus, error) { + vals := map[string]CircuitConnectionStatus{ + "connected": CircuitConnectionStatusConnected, + "connecting": CircuitConnectionStatusConnecting, + "disconnected": CircuitConnectionStatusDisconnected, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CircuitConnectionStatus(input) + return &out, nil +} + +type ExpressRouteCircuitPeeringAdvertisedPublicPrefixState string + +const ( + ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configured" + ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configuring" + ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "NotConfigured" + ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "ValidationNeeded" +) + +func PossibleValuesForExpressRouteCircuitPeeringAdvertisedPublicPrefixState() []string { + return []string{ + string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured), + string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring), + string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured), + string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded), + } +} + +func (s *ExpressRouteCircuitPeeringAdvertisedPublicPrefixState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteCircuitPeeringAdvertisedPublicPrefixState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteCircuitPeeringAdvertisedPublicPrefixState(input string) (*ExpressRouteCircuitPeeringAdvertisedPublicPrefixState, error) { + vals := map[string]ExpressRouteCircuitPeeringAdvertisedPublicPrefixState{ + "configured": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured, + "configuring": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring, + "notconfigured": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured, + "validationneeded": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteCircuitPeeringAdvertisedPublicPrefixState(input) + return &out, nil +} + +type ExpressRouteCircuitPeeringState string + +const ( + ExpressRouteCircuitPeeringStateDisabled ExpressRouteCircuitPeeringState = "Disabled" + ExpressRouteCircuitPeeringStateEnabled ExpressRouteCircuitPeeringState = "Enabled" +) + +func PossibleValuesForExpressRouteCircuitPeeringState() []string { + return []string{ + string(ExpressRouteCircuitPeeringStateDisabled), + string(ExpressRouteCircuitPeeringStateEnabled), + } +} + +func (s *ExpressRouteCircuitPeeringState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteCircuitPeeringState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteCircuitPeeringState(input string) (*ExpressRouteCircuitPeeringState, error) { + vals := map[string]ExpressRouteCircuitPeeringState{ + "disabled": ExpressRouteCircuitPeeringStateDisabled, + "enabled": ExpressRouteCircuitPeeringStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteCircuitPeeringState(input) + return &out, nil +} + +type ExpressRoutePeeringState string + +const ( + ExpressRoutePeeringStateDisabled ExpressRoutePeeringState = "Disabled" + ExpressRoutePeeringStateEnabled ExpressRoutePeeringState = "Enabled" +) + +func PossibleValuesForExpressRoutePeeringState() []string { + return []string{ + string(ExpressRoutePeeringStateDisabled), + string(ExpressRoutePeeringStateEnabled), + } +} + +func (s *ExpressRoutePeeringState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRoutePeeringState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRoutePeeringState(input string) (*ExpressRoutePeeringState, error) { + vals := map[string]ExpressRoutePeeringState{ + "disabled": ExpressRoutePeeringStateDisabled, + "enabled": ExpressRoutePeeringStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRoutePeeringState(input) + return &out, nil +} + +type ExpressRoutePeeringType string + +const ( + ExpressRoutePeeringTypeAzurePrivatePeering ExpressRoutePeeringType = "AzurePrivatePeering" + ExpressRoutePeeringTypeAzurePublicPeering ExpressRoutePeeringType = "AzurePublicPeering" + ExpressRoutePeeringTypeMicrosoftPeering ExpressRoutePeeringType = "MicrosoftPeering" +) + +func PossibleValuesForExpressRoutePeeringType() []string { + return []string{ + string(ExpressRoutePeeringTypeAzurePrivatePeering), + string(ExpressRoutePeeringTypeAzurePublicPeering), + string(ExpressRoutePeeringTypeMicrosoftPeering), + } +} + +func (s *ExpressRoutePeeringType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRoutePeeringType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRoutePeeringType(input string) (*ExpressRoutePeeringType, error) { + vals := map[string]ExpressRoutePeeringType{ + "azureprivatepeering": ExpressRoutePeeringTypeAzurePrivatePeering, + "azurepublicpeering": ExpressRoutePeeringTypeAzurePublicPeering, + "microsoftpeering": ExpressRoutePeeringTypeMicrosoftPeering, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRoutePeeringType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type RouteFilterRuleType string + +const ( + RouteFilterRuleTypeCommunity RouteFilterRuleType = "Community" +) + +func PossibleValuesForRouteFilterRuleType() []string { + return []string{ + string(RouteFilterRuleTypeCommunity), + } +} + +func (s *RouteFilterRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteFilterRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteFilterRuleType(input string) (*RouteFilterRuleType, error) { + vals := map[string]RouteFilterRuleType{ + "community": RouteFilterRuleTypeCommunity, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteFilterRuleType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/id_routefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/id_routefilter.go new file mode 100644 index 000000000000..0e497c52d8bd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/id_routefilter.go @@ -0,0 +1,130 @@ +package routefilters + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RouteFilterId{}) +} + +var _ resourceids.ResourceId = &RouteFilterId{} + +// RouteFilterId is a struct representing the Resource ID for a Route Filter +type RouteFilterId struct { + SubscriptionId string + ResourceGroupName string + RouteFilterName string +} + +// NewRouteFilterID returns a new RouteFilterId struct +func NewRouteFilterID(subscriptionId string, resourceGroupName string, routeFilterName string) RouteFilterId { + return RouteFilterId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + RouteFilterName: routeFilterName, + } +} + +// ParseRouteFilterID parses 'input' into a RouteFilterId +func ParseRouteFilterID(input string) (*RouteFilterId, error) { + parser := resourceids.NewParserFromResourceIdType(&RouteFilterId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RouteFilterId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRouteFilterIDInsensitively parses 'input' case-insensitively into a RouteFilterId +// note: this method should only be used for API response data and not user input +func ParseRouteFilterIDInsensitively(input string) (*RouteFilterId, error) { + parser := resourceids.NewParserFromResourceIdType(&RouteFilterId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RouteFilterId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RouteFilterId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.RouteFilterName, ok = input.Parsed["routeFilterName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routeFilterName", input) + } + + return nil +} + +// ValidateRouteFilterID checks that 'input' can be parsed as a Route Filter ID +func ValidateRouteFilterID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRouteFilterID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Route Filter ID +func (id RouteFilterId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/routeFilters/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.RouteFilterName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Route Filter ID +func (id RouteFilterId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticRouteFilters", "routeFilters", "routeFilters"), + resourceids.UserSpecifiedSegment("routeFilterName", "routeFilterName"), + } +} + +// String returns a human-readable description of this Route Filter ID +func (id RouteFilterId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Route Filter Name: %q", id.RouteFilterName), + } + return fmt.Sprintf("Route Filter (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_createorupdate.go new file mode 100644 index 000000000000..4881008706e8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_createorupdate.go @@ -0,0 +1,75 @@ +package routefilters + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *RouteFilter +} + +// CreateOrUpdate ... +func (c RouteFiltersClient) CreateOrUpdate(ctx context.Context, id RouteFilterId, input RouteFilter) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c RouteFiltersClient) CreateOrUpdateThenPoll(ctx context.Context, id RouteFilterId, input RouteFilter) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_delete.go new file mode 100644 index 000000000000..1a389b5108cb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_delete.go @@ -0,0 +1,71 @@ +package routefilters + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c RouteFiltersClient) Delete(ctx context.Context, id RouteFilterId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c RouteFiltersClient) DeleteThenPoll(ctx context.Context, id RouteFilterId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_get.go new file mode 100644 index 000000000000..f57a061fb522 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_get.go @@ -0,0 +1,83 @@ +package routefilters + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RouteFilter +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c RouteFiltersClient) Get(ctx context.Context, id RouteFilterId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RouteFilter + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_list.go new file mode 100644 index 000000000000..927387fb2da7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_list.go @@ -0,0 +1,106 @@ +package routefilters + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RouteFilter +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []RouteFilter +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c RouteFiltersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeFilters", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RouteFilter `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c RouteFiltersClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, RouteFilterOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c RouteFiltersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate RouteFilterOperationPredicate) (result ListCompleteResult, err error) { + items := make([]RouteFilter, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_listbyresourcegroup.go new file mode 100644 index 000000000000..256467e7de9f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_listbyresourcegroup.go @@ -0,0 +1,106 @@ +package routefilters + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RouteFilter +} + +type ListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []RouteFilter +} + +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByResourceGroup ... +func (c RouteFiltersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeFilters", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RouteFilter `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByResourceGroupComplete retrieves all the results into a single object +func (c RouteFiltersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, RouteFilterOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c RouteFiltersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate RouteFilterOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]RouteFilter, 0) + + resp, err := c.ListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_updatetags.go new file mode 100644 index 000000000000..5fe88949683e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_updatetags.go @@ -0,0 +1,57 @@ +package routefilters + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RouteFilter +} + +// UpdateTags ... +func (c RouteFiltersClient) UpdateTags(ctx context.Context, id RouteFilterId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RouteFilter + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitconnection.go new file mode 100644 index 000000000000..b4ee9836dca8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitconnection.go @@ -0,0 +1,12 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitconnectionpropertiesformat.go new file mode 100644 index 000000000000..2e9948e07f44 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitconnectionpropertiesformat.go @@ -0,0 +1,14 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitConnectionPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AuthorizationKey *string `json:"authorizationKey,omitempty"` + CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` + ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` + IPv6CircuitConnectionConfig *IPv6CircuitConnectionConfig `json:"ipv6CircuitConnectionConfig,omitempty"` + PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeering.go new file mode 100644 index 000000000000..79ef27f6ed80 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeering.go @@ -0,0 +1,12 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeering struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRouteCircuitPeeringPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeeringconfig.go new file mode 100644 index 000000000000..43de78057143 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeeringconfig.go @@ -0,0 +1,13 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeeringConfig struct { + AdvertisedCommunities *[]string `json:"advertisedCommunities,omitempty"` + AdvertisedPublicPrefixes *[]string `json:"advertisedPublicPrefixes,omitempty"` + AdvertisedPublicPrefixesState *ExpressRouteCircuitPeeringAdvertisedPublicPrefixState `json:"advertisedPublicPrefixesState,omitempty"` + CustomerASN *int64 `json:"customerASN,omitempty"` + LegacyMode *int64 `json:"legacyMode,omitempty"` + RoutingRegistryName *string `json:"routingRegistryName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeeringpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeeringpropertiesformat.go new file mode 100644 index 000000000000..1f5f8e7a726f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeeringpropertiesformat.go @@ -0,0 +1,27 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeeringPropertiesFormat struct { + AzureASN *int64 `json:"azureASN,omitempty"` + Connections *[]ExpressRouteCircuitConnection `json:"connections,omitempty"` + ExpressRouteConnection *ExpressRouteConnectionId `json:"expressRouteConnection,omitempty"` + GatewayManagerEtag *string `json:"gatewayManagerEtag,omitempty"` + IPv6PeeringConfig *IPv6ExpressRouteCircuitPeeringConfig `json:"ipv6PeeringConfig,omitempty"` + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` + PeerASN *int64 `json:"peerASN,omitempty"` + PeeredConnections *[]PeerExpressRouteCircuitConnection `json:"peeredConnections,omitempty"` + PeeringType *ExpressRoutePeeringType `json:"peeringType,omitempty"` + PrimaryAzurePort *string `json:"primaryAzurePort,omitempty"` + PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RouteFilter *SubResource `json:"routeFilter,omitempty"` + SecondaryAzurePort *string `json:"secondaryAzurePort,omitempty"` + SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` + SharedKey *string `json:"sharedKey,omitempty"` + State *ExpressRoutePeeringState `json:"state,omitempty"` + Stats *ExpressRouteCircuitStats `json:"stats,omitempty"` + VlanId *int64 `json:"vlanId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitstats.go new file mode 100644 index 000000000000..b57109bba40f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitstats.go @@ -0,0 +1,11 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitStats struct { + PrimarybytesIn *int64 `json:"primarybytesIn,omitempty"` + PrimarybytesOut *int64 `json:"primarybytesOut,omitempty"` + SecondarybytesIn *int64 `json:"secondarybytesIn,omitempty"` + SecondarybytesOut *int64 `json:"secondarybytesOut,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressrouteconnectionid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressrouteconnectionid.go new file mode 100644 index 000000000000..8d033b8e0e14 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressrouteconnectionid.go @@ -0,0 +1,8 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteConnectionId struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_ipv6circuitconnectionconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_ipv6circuitconnectionconfig.go new file mode 100644 index 000000000000..036a19fa8aac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_ipv6circuitconnectionconfig.go @@ -0,0 +1,9 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPv6CircuitConnectionConfig struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_ipv6expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_ipv6expressroutecircuitpeeringconfig.go new file mode 100644 index 000000000000..66f1810d2ef8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_ipv6expressroutecircuitpeeringconfig.go @@ -0,0 +1,12 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPv6ExpressRouteCircuitPeeringConfig struct { + MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` + PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` + RouteFilter *SubResource `json:"routeFilter,omitempty"` + SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` + State *ExpressRouteCircuitPeeringState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_peerexpressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_peerexpressroutecircuitconnection.go new file mode 100644 index 000000000000..1cceefb83219 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_peerexpressroutecircuitconnection.go @@ -0,0 +1,12 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PeerExpressRouteCircuitConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PeerExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_peerexpressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_peerexpressroutecircuitconnectionpropertiesformat.go new file mode 100644 index 000000000000..ae3652f5c1b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_peerexpressroutecircuitconnectionpropertiesformat.go @@ -0,0 +1,14 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PeerExpressRouteCircuitConnectionPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AuthResourceGuid *string `json:"authResourceGuid,omitempty"` + CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` + ConnectionName *string `json:"connectionName,omitempty"` + ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` + PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilter.go new file mode 100644 index 000000000000..932567d03cc9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilter.go @@ -0,0 +1,14 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteFilter struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteFilterPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterpropertiesformat.go new file mode 100644 index 000000000000..3442c803e118 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterpropertiesformat.go @@ -0,0 +1,11 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteFilterPropertiesFormat struct { + IPv6Peerings *[]ExpressRouteCircuitPeering `json:"ipv6Peerings,omitempty"` + Peerings *[]ExpressRouteCircuitPeering `json:"peerings,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Rules *[]RouteFilterRule `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterrule.go new file mode 100644 index 000000000000..7bce6e5cdbc2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterrule.go @@ -0,0 +1,12 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteFilterRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteFilterRulePropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterrulepropertiesformat.go new file mode 100644 index 000000000000..70f71e0d28d8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterrulepropertiesformat.go @@ -0,0 +1,11 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteFilterRulePropertiesFormat struct { + Access Access `json:"access"` + Communities []string `json:"communities"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RouteFilterRuleType RouteFilterRuleType `json:"routeFilterRuleType"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_subresource.go new file mode 100644 index 000000000000..18344aa65b5d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_subresource.go @@ -0,0 +1,8 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_tagsobject.go new file mode 100644 index 000000000000..7657d1402ea5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_tagsobject.go @@ -0,0 +1,8 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/predicates.go new file mode 100644 index 000000000000..333d40af18b9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/predicates.go @@ -0,0 +1,37 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteFilterOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p RouteFilterOperationPredicate) Matches(input RouteFilter) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/version.go new file mode 100644 index 000000000000..75fe9113b14a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/version.go @@ -0,0 +1,10 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/routefilters/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/README.md new file mode 100644 index 000000000000..780e952cda52 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes` Documentation + +The `routes` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes" +``` + + +### Client Initialization + +```go +client := routes.NewRoutesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `RoutesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName", "routeName") + +payload := routes.Route{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `RoutesClient.Delete` + +```go +ctx := context.TODO() +id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName", "routeName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `RoutesClient.Get` + +```go +ctx := context.TODO() +id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName", "routeName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RoutesClient.List` + +```go +ctx := context.TODO() +id := routes.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/client.go new file mode 100644 index 000000000000..88e9f135cd15 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/client.go @@ -0,0 +1,26 @@ +package routes + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutesClient struct { + Client *resourcemanager.Client +} + +func NewRoutesClientWithBaseURI(sdkApi sdkEnv.Api) (*RoutesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "routes", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating RoutesClient: %+v", err) + } + + return &RoutesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/constants.go new file mode 100644 index 000000000000..e26bed906c53 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/constants.go @@ -0,0 +1,107 @@ +package routes + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/id_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/id_route.go new file mode 100644 index 000000000000..55f4d71097a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/id_route.go @@ -0,0 +1,139 @@ +package routes + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RouteId{}) +} + +var _ resourceids.ResourceId = &RouteId{} + +// RouteId is a struct representing the Resource ID for a Route +type RouteId struct { + SubscriptionId string + ResourceGroupName string + RouteTableName string + RouteName string +} + +// NewRouteID returns a new RouteId struct +func NewRouteID(subscriptionId string, resourceGroupName string, routeTableName string, routeName string) RouteId { + return RouteId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + RouteTableName: routeTableName, + RouteName: routeName, + } +} + +// ParseRouteID parses 'input' into a RouteId +func ParseRouteID(input string) (*RouteId, error) { + parser := resourceids.NewParserFromResourceIdType(&RouteId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RouteId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRouteIDInsensitively parses 'input' case-insensitively into a RouteId +// note: this method should only be used for API response data and not user input +func ParseRouteIDInsensitively(input string) (*RouteId, error) { + parser := resourceids.NewParserFromResourceIdType(&RouteId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RouteId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RouteId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.RouteTableName, ok = input.Parsed["routeTableName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routeTableName", input) + } + + if id.RouteName, ok = input.Parsed["routeName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routeName", input) + } + + return nil +} + +// ValidateRouteID checks that 'input' can be parsed as a Route ID +func ValidateRouteID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRouteID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Route ID +func (id RouteId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/routeTables/%s/routes/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.RouteTableName, id.RouteName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Route ID +func (id RouteId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticRouteTables", "routeTables", "routeTables"), + resourceids.UserSpecifiedSegment("routeTableName", "routeTableName"), + resourceids.StaticSegment("staticRoutes", "routes", "routes"), + resourceids.UserSpecifiedSegment("routeName", "routeName"), + } +} + +// String returns a human-readable description of this Route ID +func (id RouteId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Route Table Name: %q", id.RouteTableName), + fmt.Sprintf("Route Name: %q", id.RouteName), + } + return fmt.Sprintf("Route (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/id_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/id_routetable.go new file mode 100644 index 000000000000..3fc7a0152246 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/id_routetable.go @@ -0,0 +1,130 @@ +package routes + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RouteTableId{}) +} + +var _ resourceids.ResourceId = &RouteTableId{} + +// RouteTableId is a struct representing the Resource ID for a Route Table +type RouteTableId struct { + SubscriptionId string + ResourceGroupName string + RouteTableName string +} + +// NewRouteTableID returns a new RouteTableId struct +func NewRouteTableID(subscriptionId string, resourceGroupName string, routeTableName string) RouteTableId { + return RouteTableId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + RouteTableName: routeTableName, + } +} + +// ParseRouteTableID parses 'input' into a RouteTableId +func ParseRouteTableID(input string) (*RouteTableId, error) { + parser := resourceids.NewParserFromResourceIdType(&RouteTableId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RouteTableId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRouteTableIDInsensitively parses 'input' case-insensitively into a RouteTableId +// note: this method should only be used for API response data and not user input +func ParseRouteTableIDInsensitively(input string) (*RouteTableId, error) { + parser := resourceids.NewParserFromResourceIdType(&RouteTableId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RouteTableId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RouteTableId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.RouteTableName, ok = input.Parsed["routeTableName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routeTableName", input) + } + + return nil +} + +// ValidateRouteTableID checks that 'input' can be parsed as a Route Table ID +func ValidateRouteTableID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRouteTableID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Route Table ID +func (id RouteTableId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/routeTables/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.RouteTableName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Route Table ID +func (id RouteTableId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticRouteTables", "routeTables", "routeTables"), + resourceids.UserSpecifiedSegment("routeTableName", "routeTableName"), + } +} + +// String returns a human-readable description of this Route Table ID +func (id RouteTableId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Route Table Name: %q", id.RouteTableName), + } + return fmt.Sprintf("Route Table (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_createorupdate.go new file mode 100644 index 000000000000..29b466f45ef8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_createorupdate.go @@ -0,0 +1,75 @@ +package routes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *Route +} + +// CreateOrUpdate ... +func (c RoutesClient) CreateOrUpdate(ctx context.Context, id RouteId, input Route) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c RoutesClient) CreateOrUpdateThenPoll(ctx context.Context, id RouteId, input Route) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_delete.go new file mode 100644 index 000000000000..f6cee23c1335 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_delete.go @@ -0,0 +1,71 @@ +package routes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c RoutesClient) Delete(ctx context.Context, id RouteId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c RoutesClient) DeleteThenPoll(ctx context.Context, id RouteId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_get.go new file mode 100644 index 000000000000..306c6528c392 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_get.go @@ -0,0 +1,53 @@ +package routes + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Route +} + +// Get ... +func (c RoutesClient) Get(ctx context.Context, id RouteId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model Route + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_list.go new file mode 100644 index 000000000000..dddfb46f64c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_list.go @@ -0,0 +1,105 @@ +package routes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Route +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []Route +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c RoutesClient) List(ctx context.Context, id RouteTableId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/routes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Route `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c RoutesClient) ListComplete(ctx context.Context, id RouteTableId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, RouteOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c RoutesClient) ListCompleteMatchingPredicate(ctx context.Context, id RouteTableId, predicate RouteOperationPredicate) (result ListCompleteResult, err error) { + items := make([]Route, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/model_route.go new file mode 100644 index 000000000000..364b3bb3322a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/model_route.go @@ -0,0 +1,12 @@ +package routes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/model_routepropertiesformat.go new file mode 100644 index 000000000000..82a30d0f4e04 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package routes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/predicates.go new file mode 100644 index 000000000000..b0ff24a6573b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/predicates.go @@ -0,0 +1,32 @@ +package routes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p RouteOperationPredicate) Matches(input Route) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/version.go new file mode 100644 index 000000000000..97cc3ec350bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/version.go @@ -0,0 +1,10 @@ +package routes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/routes/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/README.md new file mode 100644 index 000000000000..c6dcfd420fae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables` Documentation + +The `routetables` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables" +``` + + +### Client Initialization + +```go +client := routetables.NewRouteTablesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `RouteTablesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") + +payload := routetables.RouteTable{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `RouteTablesClient.Delete` + +```go +ctx := context.TODO() +id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `RouteTablesClient.Get` + +```go +ctx := context.TODO() +id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") + +read, err := client.Get(ctx, id, routetables.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RouteTablesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `RouteTablesClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `RouteTablesClient.UpdateTags` + +```go +ctx := context.TODO() +id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") + +payload := routetables.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/client.go new file mode 100644 index 000000000000..b52049cd5f7b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/client.go @@ -0,0 +1,26 @@ +package routetables + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablesClient struct { + Client *resourcemanager.Client +} + +func NewRouteTablesClientWithBaseURI(sdkApi sdkEnv.Api) (*RouteTablesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "routetables", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating RouteTablesClient: %+v", err) + } + + return &RouteTablesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/constants.go new file mode 100644 index 000000000000..035ce69edd5e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/constants.go @@ -0,0 +1,1198 @@ +package routetables + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/id_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/id_routetable.go new file mode 100644 index 000000000000..a18bf05ff67c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/id_routetable.go @@ -0,0 +1,130 @@ +package routetables + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RouteTableId{}) +} + +var _ resourceids.ResourceId = &RouteTableId{} + +// RouteTableId is a struct representing the Resource ID for a Route Table +type RouteTableId struct { + SubscriptionId string + ResourceGroupName string + RouteTableName string +} + +// NewRouteTableID returns a new RouteTableId struct +func NewRouteTableID(subscriptionId string, resourceGroupName string, routeTableName string) RouteTableId { + return RouteTableId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + RouteTableName: routeTableName, + } +} + +// ParseRouteTableID parses 'input' into a RouteTableId +func ParseRouteTableID(input string) (*RouteTableId, error) { + parser := resourceids.NewParserFromResourceIdType(&RouteTableId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RouteTableId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRouteTableIDInsensitively parses 'input' case-insensitively into a RouteTableId +// note: this method should only be used for API response data and not user input +func ParseRouteTableIDInsensitively(input string) (*RouteTableId, error) { + parser := resourceids.NewParserFromResourceIdType(&RouteTableId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RouteTableId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RouteTableId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.RouteTableName, ok = input.Parsed["routeTableName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routeTableName", input) + } + + return nil +} + +// ValidateRouteTableID checks that 'input' can be parsed as a Route Table ID +func ValidateRouteTableID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRouteTableID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Route Table ID +func (id RouteTableId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/routeTables/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.RouteTableName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Route Table ID +func (id RouteTableId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticRouteTables", "routeTables", "routeTables"), + resourceids.UserSpecifiedSegment("routeTableName", "routeTableName"), + } +} + +// String returns a human-readable description of this Route Table ID +func (id RouteTableId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Route Table Name: %q", id.RouteTableName), + } + return fmt.Sprintf("Route Table (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_createorupdate.go new file mode 100644 index 000000000000..04fdd62101df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_createorupdate.go @@ -0,0 +1,75 @@ +package routetables + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *RouteTable +} + +// CreateOrUpdate ... +func (c RouteTablesClient) CreateOrUpdate(ctx context.Context, id RouteTableId, input RouteTable) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c RouteTablesClient) CreateOrUpdateThenPoll(ctx context.Context, id RouteTableId, input RouteTable) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_delete.go new file mode 100644 index 000000000000..6ef6e0e531dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_delete.go @@ -0,0 +1,71 @@ +package routetables + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c RouteTablesClient) Delete(ctx context.Context, id RouteTableId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c RouteTablesClient) DeleteThenPoll(ctx context.Context, id RouteTableId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_get.go new file mode 100644 index 000000000000..6a2409acbfb8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_get.go @@ -0,0 +1,83 @@ +package routetables + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RouteTable +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c RouteTablesClient) Get(ctx context.Context, id RouteTableId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RouteTable + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_list.go new file mode 100644 index 000000000000..c219fd770efe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_list.go @@ -0,0 +1,106 @@ +package routetables + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RouteTable +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []RouteTable +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c RouteTablesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeTables", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RouteTable `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c RouteTablesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, RouteTableOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c RouteTablesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate RouteTableOperationPredicate) (result ListCompleteResult, err error) { + items := make([]RouteTable, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_listall.go new file mode 100644 index 000000000000..c3c8de7e20d0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_listall.go @@ -0,0 +1,106 @@ +package routetables + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RouteTable +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []RouteTable +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c RouteTablesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeTables", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RouteTable `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c RouteTablesClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, RouteTableOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c RouteTablesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate RouteTableOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]RouteTable, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_updatetags.go new file mode 100644 index 000000000000..258335fc6008 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_updatetags.go @@ -0,0 +1,57 @@ +package routetables + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RouteTable +} + +// UpdateTags ... +func (c RouteTablesClient) UpdateTags(ctx context.Context, id RouteTableId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RouteTable + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..3f1666af1927 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..aa535e08a6a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..26b2afe4fb6d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..2474ea7f89e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..b0ea966f8a50 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..da94563b9155 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..d270ac905b2a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_backendaddresspool.go new file mode 100644 index 000000000000..90a55576b632 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..34067eb4dc7a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..d85f90834ef0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ddossettings.go new file mode 100644 index 000000000000..ffd9663e3613 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ddossettings.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_delegation.go new file mode 100644 index 000000000000..2098ca8ace81 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_delegation.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlog.go new file mode 100644 index 000000000000..34743bfa20fa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlog.go @@ -0,0 +1,19 @@ +package routetables + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlogformatparameters.go new file mode 100644 index 000000000000..46d83a48283e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..8a24bb94c55a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_frontendipconfiguration.go new file mode 100644 index 000000000000..15308372f3ab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package routetables + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..c3ba5e8cb16c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..f99a910776db --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_inboundnatrule.go new file mode 100644 index 000000000000..b540b7a4ff5f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..5fa1c54256cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfiguration.go new file mode 100644 index 000000000000..7f86bd442fd3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..10063b56d94f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..8be23ea8407e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..33538e3da044 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_iptag.go new file mode 100644 index 000000000000..0591a6fbb81a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_iptag.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..6eb63262bd24 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..b4070586d52d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgateway.go new file mode 100644 index 000000000000..cdcecbfa0983 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgateway.go @@ -0,0 +1,20 @@ +package routetables + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..dd643c79c79a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgatewaysku.go new file mode 100644 index 000000000000..8e15e8b12506 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natruleportmapping.go new file mode 100644 index 000000000000..665d5f253ced --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterface.go new file mode 100644 index 000000000000..fac5f0869e65 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterface.go @@ -0,0 +1,19 @@ +package routetables + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..9d476ca26425 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..7db216219a15 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..60fdba4dd132 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..e81aa38f5f99 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..4cc36c8f7f5a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..6f876f8ce533 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..fbd84b3af86c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networksecuritygroup.go new file mode 100644 index 000000000000..84c0fadac170 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..633f7012e041 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpoint.go new file mode 100644 index 000000000000..80308b3a2a6a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpoint.go @@ -0,0 +1,19 @@ +package routetables + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointconnection.go new file mode 100644 index 000000000000..0e503458e9c1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..f8d3eeab02bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..de4e02544056 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..1ba73d98f4af --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointproperties.go new file mode 100644 index 000000000000..3d92a4a92e13 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkservice.go new file mode 100644 index 000000000000..29bf0cf58348 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package routetables + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..4adf690c566c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..063a4faec37c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..3b1634cb0596 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..e3ad61faa8fd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..430eebd19aef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..7be9cd6ea0f2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddress.go new file mode 100644 index 000000000000..8248c499a228 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddress.go @@ -0,0 +1,22 @@ +package routetables + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..84b1e72e903d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..ba0c692ec236 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddresssku.go new file mode 100644 index 000000000000..956c758896f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourcenavigationlink.go new file mode 100644 index 000000000000..c5d74e0472b6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..eca6b593c69d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourceset.go new file mode 100644 index 000000000000..8a57a8fb40d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourceset.go @@ -0,0 +1,8 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..37bad49cdcb0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_route.go new file mode 100644 index 000000000000..10c17005b287 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_route.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routepropertiesformat.go new file mode 100644 index 000000000000..028abe93e733 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routetable.go new file mode 100644 index 000000000000..1b2bb7549974 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routetable.go @@ -0,0 +1,14 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..64470e39699c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_securityrule.go new file mode 100644 index 000000000000..ab6f4a35210d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_securityrule.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..636af5195f05 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceassociationlink.go new file mode 100644 index 000000000000..682b36599897 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..7ed4a93de002 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..fba1a21dc465 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..c941578ec3ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..6a6135ec2061 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..a9fcdcec8469 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..25a22cda3fd9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..3f11f7d1bad8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subnet.go new file mode 100644 index 000000000000..949e07613d67 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subnet.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..e9da12bf739c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subresource.go new file mode 100644 index 000000000000..eab315946e0a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subresource.go @@ -0,0 +1,8 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_tagsobject.go new file mode 100644 index 000000000000..61b33687ad47 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_tagsobject.go @@ -0,0 +1,8 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..e02ff0c097ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..d88b7ea067e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_virtualnetworktap.go new file mode 100644 index 000000000000..7551bed07c8b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..2094070851fd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/predicates.go new file mode 100644 index 000000000000..e1d89b9fbd49 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/predicates.go @@ -0,0 +1,37 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTableOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p RouteTableOperationPredicate) Matches(input RouteTable) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/version.go new file mode 100644 index 000000000000..904c3ac9da96 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/version.go @@ -0,0 +1,10 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/routetables/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/README.md new file mode 100644 index 000000000000..ef390e4cd44b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections` Documentation + +The `routingrulecollections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections" +``` + + +### Client Initialization + +```go +client := routingrulecollections.NewRoutingRuleCollectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `RoutingRuleCollectionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := routingrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName", "ruleCollectionName") + +payload := routingrulecollections.RoutingRuleCollection{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RoutingRuleCollectionsClient.Delete` + +```go +ctx := context.TODO() +id := routingrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName", "ruleCollectionName") + +if err := client.DeleteThenPoll(ctx, id, routingrulecollections.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `RoutingRuleCollectionsClient.Get` + +```go +ctx := context.TODO() +id := routingrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName", "ruleCollectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RoutingRuleCollectionsClient.List` + +```go +ctx := context.TODO() +id := routingrulecollections.NewRoutingConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName") + +// alternatively `client.List(ctx, id, routingrulecollections.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, routingrulecollections.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/client.go new file mode 100644 index 000000000000..23d57a922010 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/client.go @@ -0,0 +1,26 @@ +package routingrulecollections + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRuleCollectionsClient struct { + Client *resourcemanager.Client +} + +func NewRoutingRuleCollectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*RoutingRuleCollectionsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "routingrulecollections", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating RoutingRuleCollectionsClient: %+v", err) + } + + return &RoutingRuleCollectionsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/constants.go new file mode 100644 index 000000000000..3f69337d8987 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/constants.go @@ -0,0 +1,98 @@ +package routingrulecollections + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DisableBgpRoutePropagation string + +const ( + DisableBgpRoutePropagationFalse DisableBgpRoutePropagation = "False" + DisableBgpRoutePropagationTrue DisableBgpRoutePropagation = "True" +) + +func PossibleValuesForDisableBgpRoutePropagation() []string { + return []string{ + string(DisableBgpRoutePropagationFalse), + string(DisableBgpRoutePropagationTrue), + } +} + +func (s *DisableBgpRoutePropagation) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDisableBgpRoutePropagation(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDisableBgpRoutePropagation(input string) (*DisableBgpRoutePropagation, error) { + vals := map[string]DisableBgpRoutePropagation{ + "false": DisableBgpRoutePropagationFalse, + "true": DisableBgpRoutePropagationTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DisableBgpRoutePropagation(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/id_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/id_routingconfiguration.go new file mode 100644 index 000000000000..1f12375338ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/id_routingconfiguration.go @@ -0,0 +1,139 @@ +package routingrulecollections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RoutingConfigurationId{}) +} + +var _ resourceids.ResourceId = &RoutingConfigurationId{} + +// RoutingConfigurationId is a struct representing the Resource ID for a Routing Configuration +type RoutingConfigurationId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + RoutingConfigurationName string +} + +// NewRoutingConfigurationID returns a new RoutingConfigurationId struct +func NewRoutingConfigurationID(subscriptionId string, resourceGroupName string, networkManagerName string, routingConfigurationName string) RoutingConfigurationId { + return RoutingConfigurationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + RoutingConfigurationName: routingConfigurationName, + } +} + +// ParseRoutingConfigurationID parses 'input' into a RoutingConfigurationId +func ParseRoutingConfigurationID(input string) (*RoutingConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&RoutingConfigurationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RoutingConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRoutingConfigurationIDInsensitively parses 'input' case-insensitively into a RoutingConfigurationId +// note: this method should only be used for API response data and not user input +func ParseRoutingConfigurationIDInsensitively(input string) (*RoutingConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&RoutingConfigurationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RoutingConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RoutingConfigurationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.RoutingConfigurationName, ok = input.Parsed["routingConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routingConfigurationName", input) + } + + return nil +} + +// ValidateRoutingConfigurationID checks that 'input' can be parsed as a Routing Configuration ID +func ValidateRoutingConfigurationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRoutingConfigurationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Routing Configuration ID +func (id RoutingConfigurationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/routingConfigurations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.RoutingConfigurationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Routing Configuration ID +func (id RoutingConfigurationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticRoutingConfigurations", "routingConfigurations", "routingConfigurations"), + resourceids.UserSpecifiedSegment("routingConfigurationName", "routingConfigurationName"), + } +} + +// String returns a human-readable description of this Routing Configuration ID +func (id RoutingConfigurationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Routing Configuration Name: %q", id.RoutingConfigurationName), + } + return fmt.Sprintf("Routing Configuration (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/id_rulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/id_rulecollection.go new file mode 100644 index 000000000000..a6828c644867 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/id_rulecollection.go @@ -0,0 +1,148 @@ +package routingrulecollections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RuleCollectionId{}) +} + +var _ resourceids.ResourceId = &RuleCollectionId{} + +// RuleCollectionId is a struct representing the Resource ID for a Rule Collection +type RuleCollectionId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + RoutingConfigurationName string + RuleCollectionName string +} + +// NewRuleCollectionID returns a new RuleCollectionId struct +func NewRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, routingConfigurationName string, ruleCollectionName string) RuleCollectionId { + return RuleCollectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + RoutingConfigurationName: routingConfigurationName, + RuleCollectionName: ruleCollectionName, + } +} + +// ParseRuleCollectionID parses 'input' into a RuleCollectionId +func ParseRuleCollectionID(input string) (*RuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRuleCollectionIDInsensitively parses 'input' case-insensitively into a RuleCollectionId +// note: this method should only be used for API response data and not user input +func ParseRuleCollectionIDInsensitively(input string) (*RuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RuleCollectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.RoutingConfigurationName, ok = input.Parsed["routingConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routingConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + return nil +} + +// ValidateRuleCollectionID checks that 'input' can be parsed as a Rule Collection ID +func ValidateRuleCollectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRuleCollectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Rule Collection ID +func (id RuleCollectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/routingConfigurations/%s/ruleCollections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.RoutingConfigurationName, id.RuleCollectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Rule Collection ID +func (id RuleCollectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticRoutingConfigurations", "routingConfigurations", "routingConfigurations"), + resourceids.UserSpecifiedSegment("routingConfigurationName", "routingConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + } +} + +// String returns a human-readable description of this Rule Collection ID +func (id RuleCollectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Routing Configuration Name: %q", id.RoutingConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + } + return fmt.Sprintf("Rule Collection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_createorupdate.go new file mode 100644 index 000000000000..4fc90824f8fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_createorupdate.go @@ -0,0 +1,58 @@ +package routingrulecollections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RoutingRuleCollection +} + +// CreateOrUpdate ... +func (c RoutingRuleCollectionsClient) CreateOrUpdate(ctx context.Context, id RuleCollectionId, input RoutingRuleCollection) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RoutingRuleCollection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_delete.go new file mode 100644 index 000000000000..dbc7657c4cad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_delete.go @@ -0,0 +1,100 @@ +package routingrulecollections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c RoutingRuleCollectionsClient) Delete(ctx context.Context, id RuleCollectionId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c RoutingRuleCollectionsClient) DeleteThenPoll(ctx context.Context, id RuleCollectionId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_get.go new file mode 100644 index 000000000000..02ef76119f56 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_get.go @@ -0,0 +1,53 @@ +package routingrulecollections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RoutingRuleCollection +} + +// Get ... +func (c RoutingRuleCollectionsClient) Get(ctx context.Context, id RuleCollectionId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RoutingRuleCollection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_list.go new file mode 100644 index 000000000000..9911a1912bd9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_list.go @@ -0,0 +1,134 @@ +package routingrulecollections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RoutingRuleCollection +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []RoutingRuleCollection +} + +type ListOperationOptions struct { + Top *int64 +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c RoutingRuleCollectionsClient) List(ctx context.Context, id RoutingConfigurationId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/ruleCollections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RoutingRuleCollection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c RoutingRuleCollectionsClient) ListComplete(ctx context.Context, id RoutingConfigurationId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, RoutingRuleCollectionOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c RoutingRuleCollectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id RoutingConfigurationId, options ListOperationOptions, predicate RoutingRuleCollectionOperationPredicate) (result ListCompleteResult, err error) { + items := make([]RoutingRuleCollection, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_networkmanagerroutinggroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_networkmanagerroutinggroupitem.go new file mode 100644 index 000000000000..1f6c81f7f4a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_networkmanagerroutinggroupitem.go @@ -0,0 +1,8 @@ +package routingrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerRoutingGroupItem struct { + NetworkGroupId string `json:"networkGroupId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_routingrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_routingrulecollection.go new file mode 100644 index 000000000000..46b420d67073 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_routingrulecollection.go @@ -0,0 +1,17 @@ +package routingrulecollections + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRuleCollection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutingRuleCollectionPropertiesFormat `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_routingrulecollectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_routingrulecollectionpropertiesformat.go new file mode 100644 index 000000000000..089e4d560ae8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_routingrulecollectionpropertiesformat.go @@ -0,0 +1,12 @@ +package routingrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRuleCollectionPropertiesFormat struct { + AppliesTo []NetworkManagerRoutingGroupItem `json:"appliesTo"` + Description *string `json:"description,omitempty"` + DisableBgpRoutePropagation *DisableBgpRoutePropagation `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/predicates.go new file mode 100644 index 000000000000..3a5830616cdc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/predicates.go @@ -0,0 +1,32 @@ +package routingrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRuleCollectionOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p RoutingRuleCollectionOperationPredicate) Matches(input RoutingRuleCollection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/version.go new file mode 100644 index 000000000000..aac0da658f85 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/version.go @@ -0,0 +1,10 @@ +package routingrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/routingrulecollections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/README.md new file mode 100644 index 000000000000..64ff0a561550 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules` Documentation + +The `routingrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules" +``` + + +### Client Initialization + +```go +client := routingrules.NewRoutingRulesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `RoutingRulesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := routingrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName", "ruleCollectionName", "ruleName") + +payload := routingrules.RoutingRule{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RoutingRulesClient.Delete` + +```go +ctx := context.TODO() +id := routingrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName", "ruleCollectionName", "ruleName") + +if err := client.DeleteThenPoll(ctx, id, routingrules.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `RoutingRulesClient.Get` + +```go +ctx := context.TODO() +id := routingrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName", "ruleCollectionName", "ruleName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RoutingRulesClient.List` + +```go +ctx := context.TODO() +id := routingrules.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName", "ruleCollectionName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/client.go new file mode 100644 index 000000000000..8fb9187c0c38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/client.go @@ -0,0 +1,26 @@ +package routingrules + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRulesClient struct { + Client *resourcemanager.Client +} + +func NewRoutingRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*RoutingRulesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "routingrules", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating RoutingRulesClient: %+v", err) + } + + return &RoutingRulesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/constants.go new file mode 100644 index 000000000000..ca5824bf6060 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/constants.go @@ -0,0 +1,148 @@ +package routingrules + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type RoutingRuleDestinationType string + +const ( + RoutingRuleDestinationTypeAddressPrefix RoutingRuleDestinationType = "AddressPrefix" + RoutingRuleDestinationTypeServiceTag RoutingRuleDestinationType = "ServiceTag" +) + +func PossibleValuesForRoutingRuleDestinationType() []string { + return []string{ + string(RoutingRuleDestinationTypeAddressPrefix), + string(RoutingRuleDestinationTypeServiceTag), + } +} + +func (s *RoutingRuleDestinationType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRoutingRuleDestinationType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRoutingRuleDestinationType(input string) (*RoutingRuleDestinationType, error) { + vals := map[string]RoutingRuleDestinationType{ + "addressprefix": RoutingRuleDestinationTypeAddressPrefix, + "servicetag": RoutingRuleDestinationTypeServiceTag, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RoutingRuleDestinationType(input) + return &out, nil +} + +type RoutingRuleNextHopType string + +const ( + RoutingRuleNextHopTypeInternet RoutingRuleNextHopType = "Internet" + RoutingRuleNextHopTypeNoNextHop RoutingRuleNextHopType = "NoNextHop" + RoutingRuleNextHopTypeVirtualAppliance RoutingRuleNextHopType = "VirtualAppliance" + RoutingRuleNextHopTypeVirtualNetworkGateway RoutingRuleNextHopType = "VirtualNetworkGateway" + RoutingRuleNextHopTypeVnetLocal RoutingRuleNextHopType = "VnetLocal" +) + +func PossibleValuesForRoutingRuleNextHopType() []string { + return []string{ + string(RoutingRuleNextHopTypeInternet), + string(RoutingRuleNextHopTypeNoNextHop), + string(RoutingRuleNextHopTypeVirtualAppliance), + string(RoutingRuleNextHopTypeVirtualNetworkGateway), + string(RoutingRuleNextHopTypeVnetLocal), + } +} + +func (s *RoutingRuleNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRoutingRuleNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRoutingRuleNextHopType(input string) (*RoutingRuleNextHopType, error) { + vals := map[string]RoutingRuleNextHopType{ + "internet": RoutingRuleNextHopTypeInternet, + "nonexthop": RoutingRuleNextHopTypeNoNextHop, + "virtualappliance": RoutingRuleNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RoutingRuleNextHopTypeVirtualNetworkGateway, + "vnetlocal": RoutingRuleNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RoutingRuleNextHopType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/id_rule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/id_rule.go new file mode 100644 index 000000000000..6418e71b7861 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/id_rule.go @@ -0,0 +1,157 @@ +package routingrules + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RuleId{}) +} + +var _ resourceids.ResourceId = &RuleId{} + +// RuleId is a struct representing the Resource ID for a Rule +type RuleId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + RoutingConfigurationName string + RuleCollectionName string + RuleName string +} + +// NewRuleID returns a new RuleId struct +func NewRuleID(subscriptionId string, resourceGroupName string, networkManagerName string, routingConfigurationName string, ruleCollectionName string, ruleName string) RuleId { + return RuleId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + RoutingConfigurationName: routingConfigurationName, + RuleCollectionName: ruleCollectionName, + RuleName: ruleName, + } +} + +// ParseRuleID parses 'input' into a RuleId +func ParseRuleID(input string) (*RuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRuleIDInsensitively parses 'input' case-insensitively into a RuleId +// note: this method should only be used for API response data and not user input +func ParseRuleIDInsensitively(input string) (*RuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RuleId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.RoutingConfigurationName, ok = input.Parsed["routingConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routingConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + if id.RuleName, ok = input.Parsed["ruleName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleName", input) + } + + return nil +} + +// ValidateRuleID checks that 'input' can be parsed as a Rule ID +func ValidateRuleID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRuleID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Rule ID +func (id RuleId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/routingConfigurations/%s/ruleCollections/%s/rules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.RoutingConfigurationName, id.RuleCollectionName, id.RuleName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Rule ID +func (id RuleId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticRoutingConfigurations", "routingConfigurations", "routingConfigurations"), + resourceids.UserSpecifiedSegment("routingConfigurationName", "routingConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + resourceids.StaticSegment("staticRules", "rules", "rules"), + resourceids.UserSpecifiedSegment("ruleName", "ruleName"), + } +} + +// String returns a human-readable description of this Rule ID +func (id RuleId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Routing Configuration Name: %q", id.RoutingConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + fmt.Sprintf("Rule Name: %q", id.RuleName), + } + return fmt.Sprintf("Rule (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/id_rulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/id_rulecollection.go new file mode 100644 index 000000000000..44d316acd6fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/id_rulecollection.go @@ -0,0 +1,148 @@ +package routingrules + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RuleCollectionId{}) +} + +var _ resourceids.ResourceId = &RuleCollectionId{} + +// RuleCollectionId is a struct representing the Resource ID for a Rule Collection +type RuleCollectionId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + RoutingConfigurationName string + RuleCollectionName string +} + +// NewRuleCollectionID returns a new RuleCollectionId struct +func NewRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, routingConfigurationName string, ruleCollectionName string) RuleCollectionId { + return RuleCollectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + RoutingConfigurationName: routingConfigurationName, + RuleCollectionName: ruleCollectionName, + } +} + +// ParseRuleCollectionID parses 'input' into a RuleCollectionId +func ParseRuleCollectionID(input string) (*RuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRuleCollectionIDInsensitively parses 'input' case-insensitively into a RuleCollectionId +// note: this method should only be used for API response data and not user input +func ParseRuleCollectionIDInsensitively(input string) (*RuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RuleCollectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.RoutingConfigurationName, ok = input.Parsed["routingConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routingConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + return nil +} + +// ValidateRuleCollectionID checks that 'input' can be parsed as a Rule Collection ID +func ValidateRuleCollectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRuleCollectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Rule Collection ID +func (id RuleCollectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/routingConfigurations/%s/ruleCollections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.RoutingConfigurationName, id.RuleCollectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Rule Collection ID +func (id RuleCollectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticRoutingConfigurations", "routingConfigurations", "routingConfigurations"), + resourceids.UserSpecifiedSegment("routingConfigurationName", "routingConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + } +} + +// String returns a human-readable description of this Rule Collection ID +func (id RuleCollectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Routing Configuration Name: %q", id.RoutingConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + } + return fmt.Sprintf("Rule Collection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_createorupdate.go new file mode 100644 index 000000000000..35bab8015636 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_createorupdate.go @@ -0,0 +1,58 @@ +package routingrules + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RoutingRule +} + +// CreateOrUpdate ... +func (c RoutingRulesClient) CreateOrUpdate(ctx context.Context, id RuleId, input RoutingRule) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RoutingRule + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_delete.go new file mode 100644 index 000000000000..3e5ea4998c86 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_delete.go @@ -0,0 +1,100 @@ +package routingrules + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c RoutingRulesClient) Delete(ctx context.Context, id RuleId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c RoutingRulesClient) DeleteThenPoll(ctx context.Context, id RuleId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_get.go new file mode 100644 index 000000000000..746ff6cedf38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_get.go @@ -0,0 +1,53 @@ +package routingrules + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RoutingRule +} + +// Get ... +func (c RoutingRulesClient) Get(ctx context.Context, id RuleId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RoutingRule + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_list.go new file mode 100644 index 000000000000..76a1bfb9a068 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_list.go @@ -0,0 +1,105 @@ +package routingrules + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RoutingRule +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []RoutingRule +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c RoutingRulesClient) List(ctx context.Context, id RuleCollectionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/rules", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RoutingRule `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c RoutingRulesClient) ListComplete(ctx context.Context, id RuleCollectionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, RoutingRuleOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c RoutingRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id RuleCollectionId, predicate RoutingRuleOperationPredicate) (result ListCompleteResult, err error) { + items := make([]RoutingRule, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrule.go new file mode 100644 index 000000000000..7f78cd2655a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrule.go @@ -0,0 +1,17 @@ +package routingrules + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutingRulePropertiesFormat `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrulenexthop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrulenexthop.go new file mode 100644 index 000000000000..4cc1a52a6fee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrulenexthop.go @@ -0,0 +1,9 @@ +package routingrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRuleNextHop struct { + NextHopAddress *string `json:"nextHopAddress,omitempty"` + NextHopType RoutingRuleNextHopType `json:"nextHopType"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrulepropertiesformat.go new file mode 100644 index 000000000000..a45d96ed053c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrulepropertiesformat.go @@ -0,0 +1,12 @@ +package routingrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRulePropertiesFormat struct { + Description *string `json:"description,omitempty"` + Destination RoutingRuleRouteDestination `json:"destination"` + NextHop RoutingRuleNextHop `json:"nextHop"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingruleroutedestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingruleroutedestination.go new file mode 100644 index 000000000000..e05f812849c8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingruleroutedestination.go @@ -0,0 +1,9 @@ +package routingrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRuleRouteDestination struct { + DestinationAddress string `json:"destinationAddress"` + Type RoutingRuleDestinationType `json:"type"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/predicates.go new file mode 100644 index 000000000000..b668fb3729bd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/predicates.go @@ -0,0 +1,32 @@ +package routingrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRuleOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p RoutingRuleOperationPredicate) Matches(input RoutingRule) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/version.go new file mode 100644 index 000000000000..28e9582a9b25 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/version.go @@ -0,0 +1,10 @@ +package routingrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/routingrules/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/README.md new file mode 100644 index 000000000000..e696fd59a336 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/README.md @@ -0,0 +1,90 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections` Documentation + +The `scopeconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections" +``` + + +### Client Initialization + +```go +client := scopeconnections.NewScopeConnectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ScopeConnectionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "scopeConnectionName") + +payload := scopeconnections.ScopeConnection{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ScopeConnectionsClient.Delete` + +```go +ctx := context.TODO() +id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "scopeConnectionName") + +read, err := client.Delete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ScopeConnectionsClient.Get` + +```go +ctx := context.TODO() +id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "scopeConnectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ScopeConnectionsClient.List` + +```go +ctx := context.TODO() +id := scopeconnections.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +// alternatively `client.List(ctx, id, scopeconnections.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, scopeconnections.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/client.go new file mode 100644 index 000000000000..81942e9b5e95 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/client.go @@ -0,0 +1,26 @@ +package scopeconnections + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ScopeConnectionsClient struct { + Client *resourcemanager.Client +} + +func NewScopeConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ScopeConnectionsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "scopeconnections", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ScopeConnectionsClient: %+v", err) + } + + return &ScopeConnectionsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/constants.go new file mode 100644 index 000000000000..24a9bb99e3a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/constants.go @@ -0,0 +1,60 @@ +package scopeconnections + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ScopeConnectionState string + +const ( + ScopeConnectionStateConflict ScopeConnectionState = "Conflict" + ScopeConnectionStateConnected ScopeConnectionState = "Connected" + ScopeConnectionStatePending ScopeConnectionState = "Pending" + ScopeConnectionStateRejected ScopeConnectionState = "Rejected" + ScopeConnectionStateRevoked ScopeConnectionState = "Revoked" +) + +func PossibleValuesForScopeConnectionState() []string { + return []string{ + string(ScopeConnectionStateConflict), + string(ScopeConnectionStateConnected), + string(ScopeConnectionStatePending), + string(ScopeConnectionStateRejected), + string(ScopeConnectionStateRevoked), + } +} + +func (s *ScopeConnectionState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseScopeConnectionState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseScopeConnectionState(input string) (*ScopeConnectionState, error) { + vals := map[string]ScopeConnectionState{ + "conflict": ScopeConnectionStateConflict, + "connected": ScopeConnectionStateConnected, + "pending": ScopeConnectionStatePending, + "rejected": ScopeConnectionStateRejected, + "revoked": ScopeConnectionStateRevoked, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ScopeConnectionState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/id_networkmanager.go new file mode 100644 index 000000000000..9deea7f39437 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/id_networkmanager.go @@ -0,0 +1,130 @@ +package scopeconnections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkManagerId{}) +} + +var _ resourceids.ResourceId = &NetworkManagerId{} + +// NetworkManagerId is a struct representing the Resource ID for a Network Manager +type NetworkManagerId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string +} + +// NewNetworkManagerID returns a new NetworkManagerId struct +func NewNetworkManagerID(subscriptionId string, resourceGroupName string, networkManagerName string) NetworkManagerId { + return NetworkManagerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + } +} + +// ParseNetworkManagerID parses 'input' into a NetworkManagerId +func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkManagerIDInsensitively parses 'input' case-insensitively into a NetworkManagerId +// note: this method should only be used for API response data and not user input +func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkManagerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + return nil +} + +// ValidateNetworkManagerID checks that 'input' can be parsed as a Network Manager ID +func ValidateNetworkManagerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkManagerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Manager ID +func (id NetworkManagerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Manager ID +func (id NetworkManagerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + } +} + +// String returns a human-readable description of this Network Manager ID +func (id NetworkManagerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + } + return fmt.Sprintf("Network Manager (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/id_scopeconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/id_scopeconnection.go new file mode 100644 index 000000000000..9af347c43b63 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/id_scopeconnection.go @@ -0,0 +1,139 @@ +package scopeconnections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ScopeConnectionId{}) +} + +var _ resourceids.ResourceId = &ScopeConnectionId{} + +// ScopeConnectionId is a struct representing the Resource ID for a Scope Connection +type ScopeConnectionId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + ScopeConnectionName string +} + +// NewScopeConnectionID returns a new ScopeConnectionId struct +func NewScopeConnectionID(subscriptionId string, resourceGroupName string, networkManagerName string, scopeConnectionName string) ScopeConnectionId { + return ScopeConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + ScopeConnectionName: scopeConnectionName, + } +} + +// ParseScopeConnectionID parses 'input' into a ScopeConnectionId +func ParseScopeConnectionID(input string) (*ScopeConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&ScopeConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ScopeConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseScopeConnectionIDInsensitively parses 'input' case-insensitively into a ScopeConnectionId +// note: this method should only be used for API response data and not user input +func ParseScopeConnectionIDInsensitively(input string) (*ScopeConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&ScopeConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ScopeConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ScopeConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.ScopeConnectionName, ok = input.Parsed["scopeConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "scopeConnectionName", input) + } + + return nil +} + +// ValidateScopeConnectionID checks that 'input' can be parsed as a Scope Connection ID +func ValidateScopeConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseScopeConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Scope Connection ID +func (id ScopeConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/scopeConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.ScopeConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Scope Connection ID +func (id ScopeConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticScopeConnections", "scopeConnections", "scopeConnections"), + resourceids.UserSpecifiedSegment("scopeConnectionName", "scopeConnectionName"), + } +} + +// String returns a human-readable description of this Scope Connection ID +func (id ScopeConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Scope Connection Name: %q", id.ScopeConnectionName), + } + return fmt.Sprintf("Scope Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_createorupdate.go new file mode 100644 index 000000000000..08383ec6587f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_createorupdate.go @@ -0,0 +1,58 @@ +package scopeconnections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ScopeConnection +} + +// CreateOrUpdate ... +func (c ScopeConnectionsClient) CreateOrUpdate(ctx context.Context, id ScopeConnectionId, input ScopeConnection) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ScopeConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_delete.go new file mode 100644 index 000000000000..0ef9f60e8f6e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_delete.go @@ -0,0 +1,47 @@ +package scopeconnections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ScopeConnectionsClient) Delete(ctx context.Context, id ScopeConnectionId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_get.go new file mode 100644 index 000000000000..67789a31c53e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_get.go @@ -0,0 +1,53 @@ +package scopeconnections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ScopeConnection +} + +// Get ... +func (c ScopeConnectionsClient) Get(ctx context.Context, id ScopeConnectionId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ScopeConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_list.go new file mode 100644 index 000000000000..c9f73b614110 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_list.go @@ -0,0 +1,134 @@ +package scopeconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ScopeConnection +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ScopeConnection +} + +type ListOperationOptions struct { + Top *int64 +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ScopeConnectionsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/scopeConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ScopeConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ScopeConnectionsClient) ListComplete(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, ScopeConnectionOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ScopeConnectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkManagerId, options ListOperationOptions, predicate ScopeConnectionOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ScopeConnection, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/model_scopeconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/model_scopeconnection.go new file mode 100644 index 000000000000..ddb7dcfd3ff5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/model_scopeconnection.go @@ -0,0 +1,17 @@ +package scopeconnections + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ScopeConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ScopeConnectionProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/model_scopeconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/model_scopeconnectionproperties.go new file mode 100644 index 000000000000..0997147a2a92 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/model_scopeconnectionproperties.go @@ -0,0 +1,11 @@ +package scopeconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ScopeConnectionProperties struct { + ConnectionState *ScopeConnectionState `json:"connectionState,omitempty"` + Description *string `json:"description,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` + TenantId *string `json:"tenantId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/predicates.go new file mode 100644 index 000000000000..eda309664f4d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/predicates.go @@ -0,0 +1,32 @@ +package scopeconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ScopeConnectionOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p ScopeConnectionOperationPredicate) Matches(input ScopeConnection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/version.go new file mode 100644 index 000000000000..7da54c1ad83a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/version.go @@ -0,0 +1,10 @@ +package scopeconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/scopeconnections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/README.md new file mode 100644 index 000000000000..e72955e6e0dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations` Documentation + +The `securityadminconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations" +``` + + +### Client Initialization + +```go +client := securityadminconfigurations.NewSecurityAdminConfigurationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `SecurityAdminConfigurationsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName") + +payload := securityadminconfigurations.SecurityAdminConfiguration{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityAdminConfigurationsClient.Delete` + +```go +ctx := context.TODO() +id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName") + +if err := client.DeleteThenPoll(ctx, id, securityadminconfigurations.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `SecurityAdminConfigurationsClient.Get` + +```go +ctx := context.TODO() +id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityAdminConfigurationsClient.List` + +```go +ctx := context.TODO() +id := securityadminconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +// alternatively `client.List(ctx, id, securityadminconfigurations.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, securityadminconfigurations.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/client.go new file mode 100644 index 000000000000..c4acda9a655c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/client.go @@ -0,0 +1,26 @@ +package securityadminconfigurations + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityAdminConfigurationsClient struct { + Client *resourcemanager.Client +} + +func NewSecurityAdminConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityAdminConfigurationsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "securityadminconfigurations", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating SecurityAdminConfigurationsClient: %+v", err) + } + + return &SecurityAdminConfigurationsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/constants.go new file mode 100644 index 000000000000..bfadf6115a8f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/constants.go @@ -0,0 +1,101 @@ +package securityadminconfigurations + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkIntentPolicyBasedService string + +const ( + NetworkIntentPolicyBasedServiceAll NetworkIntentPolicyBasedService = "All" + NetworkIntentPolicyBasedServiceAllowRulesOnly NetworkIntentPolicyBasedService = "AllowRulesOnly" + NetworkIntentPolicyBasedServiceNone NetworkIntentPolicyBasedService = "None" +) + +func PossibleValuesForNetworkIntentPolicyBasedService() []string { + return []string{ + string(NetworkIntentPolicyBasedServiceAll), + string(NetworkIntentPolicyBasedServiceAllowRulesOnly), + string(NetworkIntentPolicyBasedServiceNone), + } +} + +func (s *NetworkIntentPolicyBasedService) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkIntentPolicyBasedService(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkIntentPolicyBasedService(input string) (*NetworkIntentPolicyBasedService, error) { + vals := map[string]NetworkIntentPolicyBasedService{ + "all": NetworkIntentPolicyBasedServiceAll, + "allowrulesonly": NetworkIntentPolicyBasedServiceAllowRulesOnly, + "none": NetworkIntentPolicyBasedServiceNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkIntentPolicyBasedService(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/id_networkmanager.go new file mode 100644 index 000000000000..5829592a2f1d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/id_networkmanager.go @@ -0,0 +1,130 @@ +package securityadminconfigurations + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkManagerId{}) +} + +var _ resourceids.ResourceId = &NetworkManagerId{} + +// NetworkManagerId is a struct representing the Resource ID for a Network Manager +type NetworkManagerId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string +} + +// NewNetworkManagerID returns a new NetworkManagerId struct +func NewNetworkManagerID(subscriptionId string, resourceGroupName string, networkManagerName string) NetworkManagerId { + return NetworkManagerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + } +} + +// ParseNetworkManagerID parses 'input' into a NetworkManagerId +func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkManagerIDInsensitively parses 'input' case-insensitively into a NetworkManagerId +// note: this method should only be used for API response data and not user input +func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkManagerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + return nil +} + +// ValidateNetworkManagerID checks that 'input' can be parsed as a Network Manager ID +func ValidateNetworkManagerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkManagerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Manager ID +func (id NetworkManagerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Manager ID +func (id NetworkManagerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + } +} + +// String returns a human-readable description of this Network Manager ID +func (id NetworkManagerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + } + return fmt.Sprintf("Network Manager (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/id_securityadminconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/id_securityadminconfiguration.go new file mode 100644 index 000000000000..070ef0fa83e8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/id_securityadminconfiguration.go @@ -0,0 +1,139 @@ +package securityadminconfigurations + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityAdminConfigurationId{}) +} + +var _ resourceids.ResourceId = &SecurityAdminConfigurationId{} + +// SecurityAdminConfigurationId is a struct representing the Resource ID for a Security Admin Configuration +type SecurityAdminConfigurationId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityAdminConfigurationName string +} + +// NewSecurityAdminConfigurationID returns a new SecurityAdminConfigurationId struct +func NewSecurityAdminConfigurationID(subscriptionId string, resourceGroupName string, networkManagerName string, securityAdminConfigurationName string) SecurityAdminConfigurationId { + return SecurityAdminConfigurationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityAdminConfigurationName: securityAdminConfigurationName, + } +} + +// ParseSecurityAdminConfigurationID parses 'input' into a SecurityAdminConfigurationId +func ParseSecurityAdminConfigurationID(input string) (*SecurityAdminConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityAdminConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityAdminConfigurationIDInsensitively parses 'input' case-insensitively into a SecurityAdminConfigurationId +// note: this method should only be used for API response data and not user input +func ParseSecurityAdminConfigurationIDInsensitively(input string) (*SecurityAdminConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityAdminConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityAdminConfigurationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityAdminConfigurationName, ok = input.Parsed["securityAdminConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityAdminConfigurationName", input) + } + + return nil +} + +// ValidateSecurityAdminConfigurationID checks that 'input' can be parsed as a Security Admin Configuration ID +func ValidateSecurityAdminConfigurationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityAdminConfigurationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security Admin Configuration ID +func (id SecurityAdminConfigurationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityAdminConfigurations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security Admin Configuration ID +func (id SecurityAdminConfigurationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), + resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationName"), + } +} + +// String returns a human-readable description of this Security Admin Configuration ID +func (id SecurityAdminConfigurationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security Admin Configuration Name: %q", id.SecurityAdminConfigurationName), + } + return fmt.Sprintf("Security Admin Configuration (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_createorupdate.go new file mode 100644 index 000000000000..2406a218954f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_createorupdate.go @@ -0,0 +1,58 @@ +package securityadminconfigurations + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityAdminConfiguration +} + +// CreateOrUpdate ... +func (c SecurityAdminConfigurationsClient) CreateOrUpdate(ctx context.Context, id SecurityAdminConfigurationId, input SecurityAdminConfiguration) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityAdminConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_delete.go new file mode 100644 index 000000000000..98f2658625f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_delete.go @@ -0,0 +1,100 @@ +package securityadminconfigurations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c SecurityAdminConfigurationsClient) Delete(ctx context.Context, id SecurityAdminConfigurationId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c SecurityAdminConfigurationsClient) DeleteThenPoll(ctx context.Context, id SecurityAdminConfigurationId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_get.go new file mode 100644 index 000000000000..65a62286882d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_get.go @@ -0,0 +1,53 @@ +package securityadminconfigurations + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityAdminConfiguration +} + +// Get ... +func (c SecurityAdminConfigurationsClient) Get(ctx context.Context, id SecurityAdminConfigurationId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityAdminConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_list.go new file mode 100644 index 000000000000..a4abe4c74d37 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_list.go @@ -0,0 +1,134 @@ +package securityadminconfigurations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SecurityAdminConfiguration +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []SecurityAdminConfiguration +} + +type ListOperationOptions struct { + Top *int64 +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c SecurityAdminConfigurationsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/securityAdminConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SecurityAdminConfiguration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c SecurityAdminConfigurationsClient) ListComplete(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, SecurityAdminConfigurationOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c SecurityAdminConfigurationsClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkManagerId, options ListOperationOptions, predicate SecurityAdminConfigurationOperationPredicate) (result ListCompleteResult, err error) { + items := make([]SecurityAdminConfiguration, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/model_securityadminconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/model_securityadminconfiguration.go new file mode 100644 index 000000000000..004c4d46b07f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/model_securityadminconfiguration.go @@ -0,0 +1,17 @@ +package securityadminconfigurations + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityAdminConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityAdminConfigurationPropertiesFormat `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/model_securityadminconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/model_securityadminconfigurationpropertiesformat.go new file mode 100644 index 000000000000..cf9ecff77919 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/model_securityadminconfigurationpropertiesformat.go @@ -0,0 +1,11 @@ +package securityadminconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityAdminConfigurationPropertiesFormat struct { + ApplyOnNetworkIntentPolicyBasedServices *[]NetworkIntentPolicyBasedService `json:"applyOnNetworkIntentPolicyBasedServices,omitempty"` + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/predicates.go new file mode 100644 index 000000000000..bcc5de9a6a81 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/predicates.go @@ -0,0 +1,32 @@ +package securityadminconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityAdminConfigurationOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p SecurityAdminConfigurationOperationPredicate) Matches(input SecurityAdminConfiguration) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/version.go new file mode 100644 index 000000000000..94e4d3bae971 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/version.go @@ -0,0 +1,10 @@ +package securityadminconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/securityadminconfigurations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/README.md new file mode 100644 index 000000000000..2df7253b4eb3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders` Documentation + +The `securitypartnerproviders` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders" +``` + + +### Client Initialization + +```go +client := securitypartnerproviders.NewSecurityPartnerProvidersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `SecurityPartnerProvidersClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") + +payload := securitypartnerproviders.SecurityPartnerProvider{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `SecurityPartnerProvidersClient.Delete` + +```go +ctx := context.TODO() +id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `SecurityPartnerProvidersClient.Get` + +```go +ctx := context.TODO() +id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityPartnerProvidersClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `SecurityPartnerProvidersClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `SecurityPartnerProvidersClient.UpdateTags` + +```go +ctx := context.TODO() +id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") + +payload := securitypartnerproviders.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/client.go new file mode 100644 index 000000000000..7752e07fcf37 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/client.go @@ -0,0 +1,26 @@ +package securitypartnerproviders + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityPartnerProvidersClient struct { + Client *resourcemanager.Client +} + +func NewSecurityPartnerProvidersClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityPartnerProvidersClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "securitypartnerproviders", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating SecurityPartnerProvidersClient: %+v", err) + } + + return &SecurityPartnerProvidersClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/constants.go new file mode 100644 index 000000000000..2390c77210a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/constants.go @@ -0,0 +1,148 @@ +package securitypartnerproviders + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type SecurityPartnerProviderConnectionStatus string + +const ( + SecurityPartnerProviderConnectionStatusConnected SecurityPartnerProviderConnectionStatus = "Connected" + SecurityPartnerProviderConnectionStatusNotConnected SecurityPartnerProviderConnectionStatus = "NotConnected" + SecurityPartnerProviderConnectionStatusPartiallyConnected SecurityPartnerProviderConnectionStatus = "PartiallyConnected" + SecurityPartnerProviderConnectionStatusUnknown SecurityPartnerProviderConnectionStatus = "Unknown" +) + +func PossibleValuesForSecurityPartnerProviderConnectionStatus() []string { + return []string{ + string(SecurityPartnerProviderConnectionStatusConnected), + string(SecurityPartnerProviderConnectionStatusNotConnected), + string(SecurityPartnerProviderConnectionStatusPartiallyConnected), + string(SecurityPartnerProviderConnectionStatusUnknown), + } +} + +func (s *SecurityPartnerProviderConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityPartnerProviderConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityPartnerProviderConnectionStatus(input string) (*SecurityPartnerProviderConnectionStatus, error) { + vals := map[string]SecurityPartnerProviderConnectionStatus{ + "connected": SecurityPartnerProviderConnectionStatusConnected, + "notconnected": SecurityPartnerProviderConnectionStatusNotConnected, + "partiallyconnected": SecurityPartnerProviderConnectionStatusPartiallyConnected, + "unknown": SecurityPartnerProviderConnectionStatusUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityPartnerProviderConnectionStatus(input) + return &out, nil +} + +type SecurityProviderName string + +const ( + SecurityProviderNameCheckpoint SecurityProviderName = "Checkpoint" + SecurityProviderNameIBoss SecurityProviderName = "IBoss" + SecurityProviderNameZScaler SecurityProviderName = "ZScaler" +) + +func PossibleValuesForSecurityProviderName() []string { + return []string{ + string(SecurityProviderNameCheckpoint), + string(SecurityProviderNameIBoss), + string(SecurityProviderNameZScaler), + } +} + +func (s *SecurityProviderName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityProviderName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityProviderName(input string) (*SecurityProviderName, error) { + vals := map[string]SecurityProviderName{ + "checkpoint": SecurityProviderNameCheckpoint, + "iboss": SecurityProviderNameIBoss, + "zscaler": SecurityProviderNameZScaler, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityProviderName(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/id_securitypartnerprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/id_securitypartnerprovider.go new file mode 100644 index 000000000000..6cdcf1022eed --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/id_securitypartnerprovider.go @@ -0,0 +1,130 @@ +package securitypartnerproviders + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityPartnerProviderId{}) +} + +var _ resourceids.ResourceId = &SecurityPartnerProviderId{} + +// SecurityPartnerProviderId is a struct representing the Resource ID for a Security Partner Provider +type SecurityPartnerProviderId struct { + SubscriptionId string + ResourceGroupName string + SecurityPartnerProviderName string +} + +// NewSecurityPartnerProviderID returns a new SecurityPartnerProviderId struct +func NewSecurityPartnerProviderID(subscriptionId string, resourceGroupName string, securityPartnerProviderName string) SecurityPartnerProviderId { + return SecurityPartnerProviderId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + SecurityPartnerProviderName: securityPartnerProviderName, + } +} + +// ParseSecurityPartnerProviderID parses 'input' into a SecurityPartnerProviderId +func ParseSecurityPartnerProviderID(input string) (*SecurityPartnerProviderId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityPartnerProviderId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityPartnerProviderId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityPartnerProviderIDInsensitively parses 'input' case-insensitively into a SecurityPartnerProviderId +// note: this method should only be used for API response data and not user input +func ParseSecurityPartnerProviderIDInsensitively(input string) (*SecurityPartnerProviderId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityPartnerProviderId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityPartnerProviderId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityPartnerProviderId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.SecurityPartnerProviderName, ok = input.Parsed["securityPartnerProviderName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityPartnerProviderName", input) + } + + return nil +} + +// ValidateSecurityPartnerProviderID checks that 'input' can be parsed as a Security Partner Provider ID +func ValidateSecurityPartnerProviderID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityPartnerProviderID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security Partner Provider ID +func (id SecurityPartnerProviderId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/securityPartnerProviders/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SecurityPartnerProviderName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security Partner Provider ID +func (id SecurityPartnerProviderId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticSecurityPartnerProviders", "securityPartnerProviders", "securityPartnerProviders"), + resourceids.UserSpecifiedSegment("securityPartnerProviderName", "securityPartnerProviderName"), + } +} + +// String returns a human-readable description of this Security Partner Provider ID +func (id SecurityPartnerProviderId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Security Partner Provider Name: %q", id.SecurityPartnerProviderName), + } + return fmt.Sprintf("Security Partner Provider (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_createorupdate.go new file mode 100644 index 000000000000..3fb82d42ab3e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_createorupdate.go @@ -0,0 +1,75 @@ +package securitypartnerproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *SecurityPartnerProvider +} + +// CreateOrUpdate ... +func (c SecurityPartnerProvidersClient) CreateOrUpdate(ctx context.Context, id SecurityPartnerProviderId, input SecurityPartnerProvider) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c SecurityPartnerProvidersClient) CreateOrUpdateThenPoll(ctx context.Context, id SecurityPartnerProviderId, input SecurityPartnerProvider) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_delete.go new file mode 100644 index 000000000000..9494188070de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_delete.go @@ -0,0 +1,71 @@ +package securitypartnerproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c SecurityPartnerProvidersClient) Delete(ctx context.Context, id SecurityPartnerProviderId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c SecurityPartnerProvidersClient) DeleteThenPoll(ctx context.Context, id SecurityPartnerProviderId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_get.go new file mode 100644 index 000000000000..5b244206a3f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_get.go @@ -0,0 +1,53 @@ +package securitypartnerproviders + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityPartnerProvider +} + +// Get ... +func (c SecurityPartnerProvidersClient) Get(ctx context.Context, id SecurityPartnerProviderId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityPartnerProvider + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_list.go new file mode 100644 index 000000000000..9a4f54516805 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_list.go @@ -0,0 +1,106 @@ +package securitypartnerproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SecurityPartnerProvider +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []SecurityPartnerProvider +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c SecurityPartnerProvidersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/securityPartnerProviders", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SecurityPartnerProvider `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c SecurityPartnerProvidersClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, SecurityPartnerProviderOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c SecurityPartnerProvidersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate SecurityPartnerProviderOperationPredicate) (result ListCompleteResult, err error) { + items := make([]SecurityPartnerProvider, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_listbyresourcegroup.go new file mode 100644 index 000000000000..0616c919e32e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_listbyresourcegroup.go @@ -0,0 +1,106 @@ +package securitypartnerproviders + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SecurityPartnerProvider +} + +type ListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []SecurityPartnerProvider +} + +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByResourceGroup ... +func (c SecurityPartnerProvidersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/securityPartnerProviders", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SecurityPartnerProvider `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByResourceGroupComplete retrieves all the results into a single object +func (c SecurityPartnerProvidersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, SecurityPartnerProviderOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c SecurityPartnerProvidersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate SecurityPartnerProviderOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]SecurityPartnerProvider, 0) + + resp, err := c.ListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_updatetags.go new file mode 100644 index 000000000000..dfd04e92e889 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_updatetags.go @@ -0,0 +1,57 @@ +package securitypartnerproviders + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityPartnerProvider +} + +// UpdateTags ... +func (c SecurityPartnerProvidersClient) UpdateTags(ctx context.Context, id SecurityPartnerProviderId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityPartnerProvider + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_securitypartnerprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_securitypartnerprovider.go new file mode 100644 index 000000000000..059710a7ff69 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_securitypartnerprovider.go @@ -0,0 +1,14 @@ +package securitypartnerproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityPartnerProvider struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityPartnerProviderPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_securitypartnerproviderpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_securitypartnerproviderpropertiesformat.go new file mode 100644 index 000000000000..100f4648a9eb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_securitypartnerproviderpropertiesformat.go @@ -0,0 +1,11 @@ +package securitypartnerproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityPartnerProviderPropertiesFormat struct { + ConnectionStatus *SecurityPartnerProviderConnectionStatus `json:"connectionStatus,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SecurityProviderName *SecurityProviderName `json:"securityProviderName,omitempty"` + VirtualHub *SubResource `json:"virtualHub,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_subresource.go new file mode 100644 index 000000000000..0d259c7609a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_subresource.go @@ -0,0 +1,8 @@ +package securitypartnerproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_tagsobject.go new file mode 100644 index 000000000000..64020cc08ef8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_tagsobject.go @@ -0,0 +1,8 @@ +package securitypartnerproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/predicates.go new file mode 100644 index 000000000000..ef826d6c55f2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/predicates.go @@ -0,0 +1,37 @@ +package securitypartnerproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityPartnerProviderOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p SecurityPartnerProviderOperationPredicate) Matches(input SecurityPartnerProvider) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/version.go new file mode 100644 index 000000000000..353e81288182 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/version.go @@ -0,0 +1,10 @@ +package securitypartnerproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/securitypartnerproviders/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/README.md new file mode 100644 index 000000000000..b1455f31447d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/README.md @@ -0,0 +1,115 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules` Documentation + +The `securityrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules" +``` + + +### Client Initialization + +```go +client := securityrules.NewSecurityRulesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `SecurityRulesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "securityRuleName") + +payload := securityrules.SecurityRule{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `SecurityRulesClient.DefaultSecurityRulesGet` + +```go +ctx := context.TODO() +id := securityrules.NewDefaultSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "defaultSecurityRuleName") + +read, err := client.DefaultSecurityRulesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityRulesClient.DefaultSecurityRulesList` + +```go +ctx := context.TODO() +id := securityrules.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") + +// alternatively `client.DefaultSecurityRulesList(ctx, id)` can be used to do batched pagination +items, err := client.DefaultSecurityRulesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `SecurityRulesClient.Delete` + +```go +ctx := context.TODO() +id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "securityRuleName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `SecurityRulesClient.Get` + +```go +ctx := context.TODO() +id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "securityRuleName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityRulesClient.List` + +```go +ctx := context.TODO() +id := securityrules.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/client.go new file mode 100644 index 000000000000..fe76b456975e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/client.go @@ -0,0 +1,26 @@ +package securityrules + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulesClient struct { + Client *resourcemanager.Client +} + +func NewSecurityRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityRulesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "securityrules", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating SecurityRulesClient: %+v", err) + } + + return &SecurityRulesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/constants.go new file mode 100644 index 000000000000..413963586142 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/constants.go @@ -0,0 +1,192 @@ +package securityrules + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_defaultsecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_defaultsecurityrule.go new file mode 100644 index 000000000000..0a8b4713607d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_defaultsecurityrule.go @@ -0,0 +1,139 @@ +package securityrules + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&DefaultSecurityRuleId{}) +} + +var _ resourceids.ResourceId = &DefaultSecurityRuleId{} + +// DefaultSecurityRuleId is a struct representing the Resource ID for a Default Security Rule +type DefaultSecurityRuleId struct { + SubscriptionId string + ResourceGroupName string + NetworkSecurityGroupName string + DefaultSecurityRuleName string +} + +// NewDefaultSecurityRuleID returns a new DefaultSecurityRuleId struct +func NewDefaultSecurityRuleID(subscriptionId string, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) DefaultSecurityRuleId { + return DefaultSecurityRuleId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkSecurityGroupName: networkSecurityGroupName, + DefaultSecurityRuleName: defaultSecurityRuleName, + } +} + +// ParseDefaultSecurityRuleID parses 'input' into a DefaultSecurityRuleId +func ParseDefaultSecurityRuleID(input string) (*DefaultSecurityRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&DefaultSecurityRuleId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := DefaultSecurityRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseDefaultSecurityRuleIDInsensitively parses 'input' case-insensitively into a DefaultSecurityRuleId +// note: this method should only be used for API response data and not user input +func ParseDefaultSecurityRuleIDInsensitively(input string) (*DefaultSecurityRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&DefaultSecurityRuleId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := DefaultSecurityRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *DefaultSecurityRuleId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkSecurityGroupName, ok = input.Parsed["networkSecurityGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkSecurityGroupName", input) + } + + if id.DefaultSecurityRuleName, ok = input.Parsed["defaultSecurityRuleName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "defaultSecurityRuleName", input) + } + + return nil +} + +// ValidateDefaultSecurityRuleID checks that 'input' can be parsed as a Default Security Rule ID +func ValidateDefaultSecurityRuleID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseDefaultSecurityRuleID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Default Security Rule ID +func (id DefaultSecurityRuleId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkSecurityGroups/%s/defaultSecurityRules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkSecurityGroupName, id.DefaultSecurityRuleName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Default Security Rule ID +func (id DefaultSecurityRuleId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkSecurityGroups", "networkSecurityGroups", "networkSecurityGroups"), + resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupName"), + resourceids.StaticSegment("staticDefaultSecurityRules", "defaultSecurityRules", "defaultSecurityRules"), + resourceids.UserSpecifiedSegment("defaultSecurityRuleName", "defaultSecurityRuleName"), + } +} + +// String returns a human-readable description of this Default Security Rule ID +func (id DefaultSecurityRuleId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Security Group Name: %q", id.NetworkSecurityGroupName), + fmt.Sprintf("Default Security Rule Name: %q", id.DefaultSecurityRuleName), + } + return fmt.Sprintf("Default Security Rule (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_networksecuritygroup.go new file mode 100644 index 000000000000..c684ad866966 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_networksecuritygroup.go @@ -0,0 +1,130 @@ +package securityrules + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkSecurityGroupId{}) +} + +var _ resourceids.ResourceId = &NetworkSecurityGroupId{} + +// NetworkSecurityGroupId is a struct representing the Resource ID for a Network Security Group +type NetworkSecurityGroupId struct { + SubscriptionId string + ResourceGroupName string + NetworkSecurityGroupName string +} + +// NewNetworkSecurityGroupID returns a new NetworkSecurityGroupId struct +func NewNetworkSecurityGroupID(subscriptionId string, resourceGroupName string, networkSecurityGroupName string) NetworkSecurityGroupId { + return NetworkSecurityGroupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkSecurityGroupName: networkSecurityGroupName, + } +} + +// ParseNetworkSecurityGroupID parses 'input' into a NetworkSecurityGroupId +func ParseNetworkSecurityGroupID(input string) (*NetworkSecurityGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkSecurityGroupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkSecurityGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkSecurityGroupIDInsensitively parses 'input' case-insensitively into a NetworkSecurityGroupId +// note: this method should only be used for API response data and not user input +func ParseNetworkSecurityGroupIDInsensitively(input string) (*NetworkSecurityGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkSecurityGroupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkSecurityGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkSecurityGroupId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkSecurityGroupName, ok = input.Parsed["networkSecurityGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkSecurityGroupName", input) + } + + return nil +} + +// ValidateNetworkSecurityGroupID checks that 'input' can be parsed as a Network Security Group ID +func ValidateNetworkSecurityGroupID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkSecurityGroupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Security Group ID +func (id NetworkSecurityGroupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkSecurityGroups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkSecurityGroupName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Security Group ID +func (id NetworkSecurityGroupId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkSecurityGroups", "networkSecurityGroups", "networkSecurityGroups"), + resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupName"), + } +} + +// String returns a human-readable description of this Network Security Group ID +func (id NetworkSecurityGroupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Security Group Name: %q", id.NetworkSecurityGroupName), + } + return fmt.Sprintf("Network Security Group (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_securityrule.go new file mode 100644 index 000000000000..105879c11331 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_securityrule.go @@ -0,0 +1,139 @@ +package securityrules + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityRuleId{}) +} + +var _ resourceids.ResourceId = &SecurityRuleId{} + +// SecurityRuleId is a struct representing the Resource ID for a Security Rule +type SecurityRuleId struct { + SubscriptionId string + ResourceGroupName string + NetworkSecurityGroupName string + SecurityRuleName string +} + +// NewSecurityRuleID returns a new SecurityRuleId struct +func NewSecurityRuleID(subscriptionId string, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) SecurityRuleId { + return SecurityRuleId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkSecurityGroupName: networkSecurityGroupName, + SecurityRuleName: securityRuleName, + } +} + +// ParseSecurityRuleID parses 'input' into a SecurityRuleId +func ParseSecurityRuleID(input string) (*SecurityRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityRuleId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityRuleIDInsensitively parses 'input' case-insensitively into a SecurityRuleId +// note: this method should only be used for API response data and not user input +func ParseSecurityRuleIDInsensitively(input string) (*SecurityRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityRuleId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityRuleId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkSecurityGroupName, ok = input.Parsed["networkSecurityGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkSecurityGroupName", input) + } + + if id.SecurityRuleName, ok = input.Parsed["securityRuleName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityRuleName", input) + } + + return nil +} + +// ValidateSecurityRuleID checks that 'input' can be parsed as a Security Rule ID +func ValidateSecurityRuleID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityRuleID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security Rule ID +func (id SecurityRuleId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkSecurityGroups/%s/securityRules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkSecurityGroupName, id.SecurityRuleName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security Rule ID +func (id SecurityRuleId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkSecurityGroups", "networkSecurityGroups", "networkSecurityGroups"), + resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupName"), + resourceids.StaticSegment("staticSecurityRules", "securityRules", "securityRules"), + resourceids.UserSpecifiedSegment("securityRuleName", "securityRuleName"), + } +} + +// String returns a human-readable description of this Security Rule ID +func (id SecurityRuleId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Security Group Name: %q", id.NetworkSecurityGroupName), + fmt.Sprintf("Security Rule Name: %q", id.SecurityRuleName), + } + return fmt.Sprintf("Security Rule (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_createorupdate.go new file mode 100644 index 000000000000..ca2001b17165 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_createorupdate.go @@ -0,0 +1,75 @@ +package securityrules + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *SecurityRule +} + +// CreateOrUpdate ... +func (c SecurityRulesClient) CreateOrUpdate(ctx context.Context, id SecurityRuleId, input SecurityRule) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c SecurityRulesClient) CreateOrUpdateThenPoll(ctx context.Context, id SecurityRuleId, input SecurityRule) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_defaultsecurityrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_defaultsecurityrulesget.go new file mode 100644 index 000000000000..0d436a237068 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_defaultsecurityrulesget.go @@ -0,0 +1,53 @@ +package securityrules + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DefaultSecurityRulesGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityRule +} + +// DefaultSecurityRulesGet ... +func (c SecurityRulesClient) DefaultSecurityRulesGet(ctx context.Context, id DefaultSecurityRuleId) (result DefaultSecurityRulesGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityRule + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_defaultsecurityruleslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_defaultsecurityruleslist.go new file mode 100644 index 000000000000..fbf92af5b894 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_defaultsecurityruleslist.go @@ -0,0 +1,105 @@ +package securityrules + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DefaultSecurityRulesListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SecurityRule +} + +type DefaultSecurityRulesListCompleteResult struct { + LatestHttpResponse *http.Response + Items []SecurityRule +} + +type DefaultSecurityRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DefaultSecurityRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// DefaultSecurityRulesList ... +func (c SecurityRulesClient) DefaultSecurityRulesList(ctx context.Context, id NetworkSecurityGroupId) (result DefaultSecurityRulesListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &DefaultSecurityRulesListCustomPager{}, + Path: fmt.Sprintf("%s/defaultSecurityRules", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SecurityRule `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// DefaultSecurityRulesListComplete retrieves all the results into a single object +func (c SecurityRulesClient) DefaultSecurityRulesListComplete(ctx context.Context, id NetworkSecurityGroupId) (DefaultSecurityRulesListCompleteResult, error) { + return c.DefaultSecurityRulesListCompleteMatchingPredicate(ctx, id, SecurityRuleOperationPredicate{}) +} + +// DefaultSecurityRulesListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c SecurityRulesClient) DefaultSecurityRulesListCompleteMatchingPredicate(ctx context.Context, id NetworkSecurityGroupId, predicate SecurityRuleOperationPredicate) (result DefaultSecurityRulesListCompleteResult, err error) { + items := make([]SecurityRule, 0) + + resp, err := c.DefaultSecurityRulesList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = DefaultSecurityRulesListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_delete.go new file mode 100644 index 000000000000..769b4866b0d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_delete.go @@ -0,0 +1,71 @@ +package securityrules + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c SecurityRulesClient) Delete(ctx context.Context, id SecurityRuleId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c SecurityRulesClient) DeleteThenPoll(ctx context.Context, id SecurityRuleId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_get.go new file mode 100644 index 000000000000..85ddb4310ff1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_get.go @@ -0,0 +1,53 @@ +package securityrules + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityRule +} + +// Get ... +func (c SecurityRulesClient) Get(ctx context.Context, id SecurityRuleId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityRule + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_list.go new file mode 100644 index 000000000000..73b4f2f1a16e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_list.go @@ -0,0 +1,105 @@ +package securityrules + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SecurityRule +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []SecurityRule +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c SecurityRulesClient) List(ctx context.Context, id NetworkSecurityGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/securityRules", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SecurityRule `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c SecurityRulesClient) ListComplete(ctx context.Context, id NetworkSecurityGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, SecurityRuleOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c SecurityRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkSecurityGroupId, predicate SecurityRuleOperationPredicate) (result ListCompleteResult, err error) { + items := make([]SecurityRule, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..7a6b77fa92ac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package securityrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..b73ae0245399 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package securityrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_securityrule.go new file mode 100644 index 000000000000..e96cb57aa16b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_securityrule.go @@ -0,0 +1,12 @@ +package securityrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..a7e44555d950 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package securityrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/predicates.go new file mode 100644 index 000000000000..adf918c9ac43 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/predicates.go @@ -0,0 +1,32 @@ +package securityrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRuleOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p SecurityRuleOperationPredicate) Matches(input SecurityRule) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/version.go new file mode 100644 index 000000000000..2a5379084d59 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/version.go @@ -0,0 +1,10 @@ +package securityrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/securityrules/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/README.md new file mode 100644 index 000000000000..5437eb2a16c3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations` Documentation + +The `securityuserconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations" +``` + + +### Client Initialization + +```go +client := securityuserconfigurations.NewSecurityUserConfigurationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `SecurityUserConfigurationsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := securityuserconfigurations.NewSecurityUserConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName") + +payload := securityuserconfigurations.SecurityUserConfiguration{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityUserConfigurationsClient.Delete` + +```go +ctx := context.TODO() +id := securityuserconfigurations.NewSecurityUserConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName") + +if err := client.DeleteThenPoll(ctx, id, securityuserconfigurations.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `SecurityUserConfigurationsClient.Get` + +```go +ctx := context.TODO() +id := securityuserconfigurations.NewSecurityUserConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityUserConfigurationsClient.List` + +```go +ctx := context.TODO() +id := securityuserconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +// alternatively `client.List(ctx, id, securityuserconfigurations.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, securityuserconfigurations.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/client.go new file mode 100644 index 000000000000..81e35e1bfd00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/client.go @@ -0,0 +1,26 @@ +package securityuserconfigurations + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserConfigurationsClient struct { + Client *resourcemanager.Client +} + +func NewSecurityUserConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityUserConfigurationsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "securityuserconfigurations", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating SecurityUserConfigurationsClient: %+v", err) + } + + return &SecurityUserConfigurationsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/constants.go new file mode 100644 index 000000000000..28a18df66979 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/constants.go @@ -0,0 +1,57 @@ +package securityuserconfigurations + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/id_networkmanager.go new file mode 100644 index 000000000000..a1c611edbe64 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/id_networkmanager.go @@ -0,0 +1,130 @@ +package securityuserconfigurations + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkManagerId{}) +} + +var _ resourceids.ResourceId = &NetworkManagerId{} + +// NetworkManagerId is a struct representing the Resource ID for a Network Manager +type NetworkManagerId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string +} + +// NewNetworkManagerID returns a new NetworkManagerId struct +func NewNetworkManagerID(subscriptionId string, resourceGroupName string, networkManagerName string) NetworkManagerId { + return NetworkManagerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + } +} + +// ParseNetworkManagerID parses 'input' into a NetworkManagerId +func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkManagerIDInsensitively parses 'input' case-insensitively into a NetworkManagerId +// note: this method should only be used for API response data and not user input +func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkManagerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + return nil +} + +// ValidateNetworkManagerID checks that 'input' can be parsed as a Network Manager ID +func ValidateNetworkManagerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkManagerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Manager ID +func (id NetworkManagerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Manager ID +func (id NetworkManagerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + } +} + +// String returns a human-readable description of this Network Manager ID +func (id NetworkManagerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + } + return fmt.Sprintf("Network Manager (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/id_securityuserconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/id_securityuserconfiguration.go new file mode 100644 index 000000000000..6df5321bd18b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/id_securityuserconfiguration.go @@ -0,0 +1,139 @@ +package securityuserconfigurations + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityUserConfigurationId{}) +} + +var _ resourceids.ResourceId = &SecurityUserConfigurationId{} + +// SecurityUserConfigurationId is a struct representing the Resource ID for a Security User Configuration +type SecurityUserConfigurationId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityUserConfigurationName string +} + +// NewSecurityUserConfigurationID returns a new SecurityUserConfigurationId struct +func NewSecurityUserConfigurationID(subscriptionId string, resourceGroupName string, networkManagerName string, securityUserConfigurationName string) SecurityUserConfigurationId { + return SecurityUserConfigurationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityUserConfigurationName: securityUserConfigurationName, + } +} + +// ParseSecurityUserConfigurationID parses 'input' into a SecurityUserConfigurationId +func ParseSecurityUserConfigurationID(input string) (*SecurityUserConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityUserConfigurationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityUserConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityUserConfigurationIDInsensitively parses 'input' case-insensitively into a SecurityUserConfigurationId +// note: this method should only be used for API response data and not user input +func ParseSecurityUserConfigurationIDInsensitively(input string) (*SecurityUserConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityUserConfigurationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityUserConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityUserConfigurationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityUserConfigurationName, ok = input.Parsed["securityUserConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityUserConfigurationName", input) + } + + return nil +} + +// ValidateSecurityUserConfigurationID checks that 'input' can be parsed as a Security User Configuration ID +func ValidateSecurityUserConfigurationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityUserConfigurationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security User Configuration ID +func (id SecurityUserConfigurationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityUserConfigurations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityUserConfigurationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security User Configuration ID +func (id SecurityUserConfigurationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityUserConfigurations", "securityUserConfigurations", "securityUserConfigurations"), + resourceids.UserSpecifiedSegment("securityUserConfigurationName", "securityUserConfigurationName"), + } +} + +// String returns a human-readable description of this Security User Configuration ID +func (id SecurityUserConfigurationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security User Configuration Name: %q", id.SecurityUserConfigurationName), + } + return fmt.Sprintf("Security User Configuration (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_createorupdate.go new file mode 100644 index 000000000000..dd523a473767 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_createorupdate.go @@ -0,0 +1,58 @@ +package securityuserconfigurations + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityUserConfiguration +} + +// CreateOrUpdate ... +func (c SecurityUserConfigurationsClient) CreateOrUpdate(ctx context.Context, id SecurityUserConfigurationId, input SecurityUserConfiguration) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityUserConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_delete.go new file mode 100644 index 000000000000..afdd0d941f6c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_delete.go @@ -0,0 +1,100 @@ +package securityuserconfigurations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c SecurityUserConfigurationsClient) Delete(ctx context.Context, id SecurityUserConfigurationId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c SecurityUserConfigurationsClient) DeleteThenPoll(ctx context.Context, id SecurityUserConfigurationId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_get.go new file mode 100644 index 000000000000..bf0940d6925d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_get.go @@ -0,0 +1,53 @@ +package securityuserconfigurations + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityUserConfiguration +} + +// Get ... +func (c SecurityUserConfigurationsClient) Get(ctx context.Context, id SecurityUserConfigurationId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityUserConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_list.go new file mode 100644 index 000000000000..43f0254db990 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_list.go @@ -0,0 +1,134 @@ +package securityuserconfigurations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SecurityUserConfiguration +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []SecurityUserConfiguration +} + +type ListOperationOptions struct { + Top *int64 +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c SecurityUserConfigurationsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/securityUserConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SecurityUserConfiguration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c SecurityUserConfigurationsClient) ListComplete(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, SecurityUserConfigurationOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c SecurityUserConfigurationsClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkManagerId, options ListOperationOptions, predicate SecurityUserConfigurationOperationPredicate) (result ListCompleteResult, err error) { + items := make([]SecurityUserConfiguration, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/model_securityuserconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/model_securityuserconfiguration.go new file mode 100644 index 000000000000..9ac10a92364b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/model_securityuserconfiguration.go @@ -0,0 +1,17 @@ +package securityuserconfigurations + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityUserConfigurationPropertiesFormat `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/model_securityuserconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/model_securityuserconfigurationpropertiesformat.go new file mode 100644 index 000000000000..18af4f046ec1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/model_securityuserconfigurationpropertiesformat.go @@ -0,0 +1,10 @@ +package securityuserconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserConfigurationPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/predicates.go new file mode 100644 index 000000000000..835b3ccdcdb4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/predicates.go @@ -0,0 +1,32 @@ +package securityuserconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserConfigurationOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p SecurityUserConfigurationOperationPredicate) Matches(input SecurityUserConfiguration) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/version.go new file mode 100644 index 000000000000..5f278bd75f04 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/version.go @@ -0,0 +1,10 @@ +package securityuserconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/securityuserconfigurations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/README.md new file mode 100644 index 000000000000..d94abcbf9a0b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections` Documentation + +The `securityuserrulecollections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections" +``` + + +### Client Initialization + +```go +client := securityuserrulecollections.NewSecurityUserRuleCollectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `SecurityUserRuleCollectionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := securityuserrulecollections.NewSecurityUserConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName") + +payload := securityuserrulecollections.SecurityUserRuleCollection{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityUserRuleCollectionsClient.Delete` + +```go +ctx := context.TODO() +id := securityuserrulecollections.NewSecurityUserConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName") + +if err := client.DeleteThenPoll(ctx, id, securityuserrulecollections.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `SecurityUserRuleCollectionsClient.Get` + +```go +ctx := context.TODO() +id := securityuserrulecollections.NewSecurityUserConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityUserRuleCollectionsClient.List` + +```go +ctx := context.TODO() +id := securityuserrulecollections.NewSecurityUserConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName") + +// alternatively `client.List(ctx, id, securityuserrulecollections.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, securityuserrulecollections.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/client.go new file mode 100644 index 000000000000..2e65998d9690 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/client.go @@ -0,0 +1,26 @@ +package securityuserrulecollections + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserRuleCollectionsClient struct { + Client *resourcemanager.Client +} + +func NewSecurityUserRuleCollectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityUserRuleCollectionsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "securityuserrulecollections", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating SecurityUserRuleCollectionsClient: %+v", err) + } + + return &SecurityUserRuleCollectionsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/constants.go new file mode 100644 index 000000000000..d49d97eed47e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/constants.go @@ -0,0 +1,57 @@ +package securityuserrulecollections + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/id_securityuserconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/id_securityuserconfiguration.go new file mode 100644 index 000000000000..ab8dfdd078df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/id_securityuserconfiguration.go @@ -0,0 +1,139 @@ +package securityuserrulecollections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityUserConfigurationId{}) +} + +var _ resourceids.ResourceId = &SecurityUserConfigurationId{} + +// SecurityUserConfigurationId is a struct representing the Resource ID for a Security User Configuration +type SecurityUserConfigurationId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityUserConfigurationName string +} + +// NewSecurityUserConfigurationID returns a new SecurityUserConfigurationId struct +func NewSecurityUserConfigurationID(subscriptionId string, resourceGroupName string, networkManagerName string, securityUserConfigurationName string) SecurityUserConfigurationId { + return SecurityUserConfigurationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityUserConfigurationName: securityUserConfigurationName, + } +} + +// ParseSecurityUserConfigurationID parses 'input' into a SecurityUserConfigurationId +func ParseSecurityUserConfigurationID(input string) (*SecurityUserConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityUserConfigurationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityUserConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityUserConfigurationIDInsensitively parses 'input' case-insensitively into a SecurityUserConfigurationId +// note: this method should only be used for API response data and not user input +func ParseSecurityUserConfigurationIDInsensitively(input string) (*SecurityUserConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityUserConfigurationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityUserConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityUserConfigurationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityUserConfigurationName, ok = input.Parsed["securityUserConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityUserConfigurationName", input) + } + + return nil +} + +// ValidateSecurityUserConfigurationID checks that 'input' can be parsed as a Security User Configuration ID +func ValidateSecurityUserConfigurationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityUserConfigurationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security User Configuration ID +func (id SecurityUserConfigurationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityUserConfigurations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityUserConfigurationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security User Configuration ID +func (id SecurityUserConfigurationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityUserConfigurations", "securityUserConfigurations", "securityUserConfigurations"), + resourceids.UserSpecifiedSegment("securityUserConfigurationName", "securityUserConfigurationName"), + } +} + +// String returns a human-readable description of this Security User Configuration ID +func (id SecurityUserConfigurationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security User Configuration Name: %q", id.SecurityUserConfigurationName), + } + return fmt.Sprintf("Security User Configuration (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/id_securityuserconfigurationrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/id_securityuserconfigurationrulecollection.go new file mode 100644 index 000000000000..2b4f8fd6ed58 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/id_securityuserconfigurationrulecollection.go @@ -0,0 +1,148 @@ +package securityuserrulecollections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityUserConfigurationRuleCollectionId{}) +} + +var _ resourceids.ResourceId = &SecurityUserConfigurationRuleCollectionId{} + +// SecurityUserConfigurationRuleCollectionId is a struct representing the Resource ID for a Security User Configuration Rule Collection +type SecurityUserConfigurationRuleCollectionId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityUserConfigurationName string + RuleCollectionName string +} + +// NewSecurityUserConfigurationRuleCollectionID returns a new SecurityUserConfigurationRuleCollectionId struct +func NewSecurityUserConfigurationRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, securityUserConfigurationName string, ruleCollectionName string) SecurityUserConfigurationRuleCollectionId { + return SecurityUserConfigurationRuleCollectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityUserConfigurationName: securityUserConfigurationName, + RuleCollectionName: ruleCollectionName, + } +} + +// ParseSecurityUserConfigurationRuleCollectionID parses 'input' into a SecurityUserConfigurationRuleCollectionId +func ParseSecurityUserConfigurationRuleCollectionID(input string) (*SecurityUserConfigurationRuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityUserConfigurationRuleCollectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityUserConfigurationRuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityUserConfigurationRuleCollectionIDInsensitively parses 'input' case-insensitively into a SecurityUserConfigurationRuleCollectionId +// note: this method should only be used for API response data and not user input +func ParseSecurityUserConfigurationRuleCollectionIDInsensitively(input string) (*SecurityUserConfigurationRuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityUserConfigurationRuleCollectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityUserConfigurationRuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityUserConfigurationRuleCollectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityUserConfigurationName, ok = input.Parsed["securityUserConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityUserConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + return nil +} + +// ValidateSecurityUserConfigurationRuleCollectionID checks that 'input' can be parsed as a Security User Configuration Rule Collection ID +func ValidateSecurityUserConfigurationRuleCollectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityUserConfigurationRuleCollectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security User Configuration Rule Collection ID +func (id SecurityUserConfigurationRuleCollectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityUserConfigurations/%s/ruleCollections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityUserConfigurationName, id.RuleCollectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security User Configuration Rule Collection ID +func (id SecurityUserConfigurationRuleCollectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityUserConfigurations", "securityUserConfigurations", "securityUserConfigurations"), + resourceids.UserSpecifiedSegment("securityUserConfigurationName", "securityUserConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + } +} + +// String returns a human-readable description of this Security User Configuration Rule Collection ID +func (id SecurityUserConfigurationRuleCollectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security User Configuration Name: %q", id.SecurityUserConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + } + return fmt.Sprintf("Security User Configuration Rule Collection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_createorupdate.go new file mode 100644 index 000000000000..a6360eab05ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_createorupdate.go @@ -0,0 +1,58 @@ +package securityuserrulecollections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityUserRuleCollection +} + +// CreateOrUpdate ... +func (c SecurityUserRuleCollectionsClient) CreateOrUpdate(ctx context.Context, id SecurityUserConfigurationRuleCollectionId, input SecurityUserRuleCollection) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityUserRuleCollection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_delete.go new file mode 100644 index 000000000000..45d73ed7010a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_delete.go @@ -0,0 +1,100 @@ +package securityuserrulecollections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c SecurityUserRuleCollectionsClient) Delete(ctx context.Context, id SecurityUserConfigurationRuleCollectionId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c SecurityUserRuleCollectionsClient) DeleteThenPoll(ctx context.Context, id SecurityUserConfigurationRuleCollectionId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_get.go new file mode 100644 index 000000000000..6e3eacdacacd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_get.go @@ -0,0 +1,53 @@ +package securityuserrulecollections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityUserRuleCollection +} + +// Get ... +func (c SecurityUserRuleCollectionsClient) Get(ctx context.Context, id SecurityUserConfigurationRuleCollectionId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityUserRuleCollection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_list.go new file mode 100644 index 000000000000..72290b92b790 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_list.go @@ -0,0 +1,134 @@ +package securityuserrulecollections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SecurityUserRuleCollection +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []SecurityUserRuleCollection +} + +type ListOperationOptions struct { + Top *int64 +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c SecurityUserRuleCollectionsClient) List(ctx context.Context, id SecurityUserConfigurationId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/ruleCollections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SecurityUserRuleCollection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c SecurityUserRuleCollectionsClient) ListComplete(ctx context.Context, id SecurityUserConfigurationId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, SecurityUserRuleCollectionOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c SecurityUserRuleCollectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id SecurityUserConfigurationId, options ListOperationOptions, predicate SecurityUserRuleCollectionOperationPredicate) (result ListCompleteResult, err error) { + items := make([]SecurityUserRuleCollection, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityusergroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityusergroupitem.go new file mode 100644 index 000000000000..a067fbcbfe0a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityusergroupitem.go @@ -0,0 +1,8 @@ +package securityuserrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserGroupItem struct { + NetworkGroupId string `json:"networkGroupId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityuserrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityuserrulecollection.go new file mode 100644 index 000000000000..dc9c51b4598c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityuserrulecollection.go @@ -0,0 +1,17 @@ +package securityuserrulecollections + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserRuleCollection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityUserRuleCollectionPropertiesFormat `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityuserrulecollectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityuserrulecollectionpropertiesformat.go new file mode 100644 index 000000000000..752e873a957e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityuserrulecollectionpropertiesformat.go @@ -0,0 +1,11 @@ +package securityuserrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserRuleCollectionPropertiesFormat struct { + AppliesToGroups []SecurityUserGroupItem `json:"appliesToGroups"` + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/predicates.go new file mode 100644 index 000000000000..10ac4063ad9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/predicates.go @@ -0,0 +1,32 @@ +package securityuserrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserRuleCollectionOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p SecurityUserRuleCollectionOperationPredicate) Matches(input SecurityUserRuleCollection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/version.go new file mode 100644 index 000000000000..c504c33da968 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/version.go @@ -0,0 +1,10 @@ +package securityuserrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/securityuserrulecollections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/README.md new file mode 100644 index 000000000000..c3506759641c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules` Documentation + +The `securityuserrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules" +``` + + +### Client Initialization + +```go +client := securityuserrules.NewSecurityUserRulesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `SecurityUserRulesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := securityuserrules.NewRuleCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName", "ruleName") + +payload := securityuserrules.SecurityUserRule{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityUserRulesClient.Delete` + +```go +ctx := context.TODO() +id := securityuserrules.NewRuleCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName", "ruleName") + +if err := client.DeleteThenPoll(ctx, id, securityuserrules.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `SecurityUserRulesClient.Get` + +```go +ctx := context.TODO() +id := securityuserrules.NewRuleCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName", "ruleName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityUserRulesClient.List` + +```go +ctx := context.TODO() +id := securityuserrules.NewSecurityUserConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/client.go new file mode 100644 index 000000000000..bd99ee4be9c1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/client.go @@ -0,0 +1,26 @@ +package securityuserrules + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserRulesClient struct { + Client *resourcemanager.Client +} + +func NewSecurityUserRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityUserRulesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "securityuserrules", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating SecurityUserRulesClient: %+v", err) + } + + return &SecurityUserRulesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/constants.go new file mode 100644 index 000000000000..ef9491794bdf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/constants.go @@ -0,0 +1,192 @@ +package securityuserrules + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressPrefixType string + +const ( + AddressPrefixTypeIPPrefix AddressPrefixType = "IPPrefix" + AddressPrefixTypeServiceTag AddressPrefixType = "ServiceTag" +) + +func PossibleValuesForAddressPrefixType() []string { + return []string{ + string(AddressPrefixTypeIPPrefix), + string(AddressPrefixTypeServiceTag), + } +} + +func (s *AddressPrefixType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAddressPrefixType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAddressPrefixType(input string) (*AddressPrefixType, error) { + vals := map[string]AddressPrefixType{ + "ipprefix": AddressPrefixTypeIPPrefix, + "servicetag": AddressPrefixTypeServiceTag, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AddressPrefixType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type SecurityConfigurationRuleDirection string + +const ( + SecurityConfigurationRuleDirectionInbound SecurityConfigurationRuleDirection = "Inbound" + SecurityConfigurationRuleDirectionOutbound SecurityConfigurationRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityConfigurationRuleDirection() []string { + return []string{ + string(SecurityConfigurationRuleDirectionInbound), + string(SecurityConfigurationRuleDirectionOutbound), + } +} + +func (s *SecurityConfigurationRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityConfigurationRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityConfigurationRuleDirection(input string) (*SecurityConfigurationRuleDirection, error) { + vals := map[string]SecurityConfigurationRuleDirection{ + "inbound": SecurityConfigurationRuleDirectionInbound, + "outbound": SecurityConfigurationRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityConfigurationRuleDirection(input) + return &out, nil +} + +type SecurityConfigurationRuleProtocol string + +const ( + SecurityConfigurationRuleProtocolAh SecurityConfigurationRuleProtocol = "Ah" + SecurityConfigurationRuleProtocolAny SecurityConfigurationRuleProtocol = "Any" + SecurityConfigurationRuleProtocolEsp SecurityConfigurationRuleProtocol = "Esp" + SecurityConfigurationRuleProtocolIcmp SecurityConfigurationRuleProtocol = "Icmp" + SecurityConfigurationRuleProtocolTcp SecurityConfigurationRuleProtocol = "Tcp" + SecurityConfigurationRuleProtocolUdp SecurityConfigurationRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityConfigurationRuleProtocol() []string { + return []string{ + string(SecurityConfigurationRuleProtocolAh), + string(SecurityConfigurationRuleProtocolAny), + string(SecurityConfigurationRuleProtocolEsp), + string(SecurityConfigurationRuleProtocolIcmp), + string(SecurityConfigurationRuleProtocolTcp), + string(SecurityConfigurationRuleProtocolUdp), + } +} + +func (s *SecurityConfigurationRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityConfigurationRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityConfigurationRuleProtocol(input string) (*SecurityConfigurationRuleProtocol, error) { + vals := map[string]SecurityConfigurationRuleProtocol{ + "ah": SecurityConfigurationRuleProtocolAh, + "any": SecurityConfigurationRuleProtocolAny, + "esp": SecurityConfigurationRuleProtocolEsp, + "icmp": SecurityConfigurationRuleProtocolIcmp, + "tcp": SecurityConfigurationRuleProtocolTcp, + "udp": SecurityConfigurationRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityConfigurationRuleProtocol(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/id_rulecollectionrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/id_rulecollectionrule.go new file mode 100644 index 000000000000..0dad04170f32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/id_rulecollectionrule.go @@ -0,0 +1,157 @@ +package securityuserrules + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RuleCollectionRuleId{}) +} + +var _ resourceids.ResourceId = &RuleCollectionRuleId{} + +// RuleCollectionRuleId is a struct representing the Resource ID for a Rule Collection Rule +type RuleCollectionRuleId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityUserConfigurationName string + RuleCollectionName string + RuleName string +} + +// NewRuleCollectionRuleID returns a new RuleCollectionRuleId struct +func NewRuleCollectionRuleID(subscriptionId string, resourceGroupName string, networkManagerName string, securityUserConfigurationName string, ruleCollectionName string, ruleName string) RuleCollectionRuleId { + return RuleCollectionRuleId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityUserConfigurationName: securityUserConfigurationName, + RuleCollectionName: ruleCollectionName, + RuleName: ruleName, + } +} + +// ParseRuleCollectionRuleID parses 'input' into a RuleCollectionRuleId +func ParseRuleCollectionRuleID(input string) (*RuleCollectionRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionRuleId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRuleCollectionRuleIDInsensitively parses 'input' case-insensitively into a RuleCollectionRuleId +// note: this method should only be used for API response data and not user input +func ParseRuleCollectionRuleIDInsensitively(input string) (*RuleCollectionRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionRuleId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RuleCollectionRuleId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityUserConfigurationName, ok = input.Parsed["securityUserConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityUserConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + if id.RuleName, ok = input.Parsed["ruleName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleName", input) + } + + return nil +} + +// ValidateRuleCollectionRuleID checks that 'input' can be parsed as a Rule Collection Rule ID +func ValidateRuleCollectionRuleID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRuleCollectionRuleID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Rule Collection Rule ID +func (id RuleCollectionRuleId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityUserConfigurations/%s/ruleCollections/%s/rules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityUserConfigurationName, id.RuleCollectionName, id.RuleName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Rule Collection Rule ID +func (id RuleCollectionRuleId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityUserConfigurations", "securityUserConfigurations", "securityUserConfigurations"), + resourceids.UserSpecifiedSegment("securityUserConfigurationName", "securityUserConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + resourceids.StaticSegment("staticRules", "rules", "rules"), + resourceids.UserSpecifiedSegment("ruleName", "ruleName"), + } +} + +// String returns a human-readable description of this Rule Collection Rule ID +func (id RuleCollectionRuleId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security User Configuration Name: %q", id.SecurityUserConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + fmt.Sprintf("Rule Name: %q", id.RuleName), + } + return fmt.Sprintf("Rule Collection Rule (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/id_securityuserconfigurationrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/id_securityuserconfigurationrulecollection.go new file mode 100644 index 000000000000..208548d75290 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/id_securityuserconfigurationrulecollection.go @@ -0,0 +1,148 @@ +package securityuserrules + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityUserConfigurationRuleCollectionId{}) +} + +var _ resourceids.ResourceId = &SecurityUserConfigurationRuleCollectionId{} + +// SecurityUserConfigurationRuleCollectionId is a struct representing the Resource ID for a Security User Configuration Rule Collection +type SecurityUserConfigurationRuleCollectionId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityUserConfigurationName string + RuleCollectionName string +} + +// NewSecurityUserConfigurationRuleCollectionID returns a new SecurityUserConfigurationRuleCollectionId struct +func NewSecurityUserConfigurationRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, securityUserConfigurationName string, ruleCollectionName string) SecurityUserConfigurationRuleCollectionId { + return SecurityUserConfigurationRuleCollectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityUserConfigurationName: securityUserConfigurationName, + RuleCollectionName: ruleCollectionName, + } +} + +// ParseSecurityUserConfigurationRuleCollectionID parses 'input' into a SecurityUserConfigurationRuleCollectionId +func ParseSecurityUserConfigurationRuleCollectionID(input string) (*SecurityUserConfigurationRuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityUserConfigurationRuleCollectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityUserConfigurationRuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityUserConfigurationRuleCollectionIDInsensitively parses 'input' case-insensitively into a SecurityUserConfigurationRuleCollectionId +// note: this method should only be used for API response data and not user input +func ParseSecurityUserConfigurationRuleCollectionIDInsensitively(input string) (*SecurityUserConfigurationRuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityUserConfigurationRuleCollectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityUserConfigurationRuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityUserConfigurationRuleCollectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityUserConfigurationName, ok = input.Parsed["securityUserConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityUserConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + return nil +} + +// ValidateSecurityUserConfigurationRuleCollectionID checks that 'input' can be parsed as a Security User Configuration Rule Collection ID +func ValidateSecurityUserConfigurationRuleCollectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityUserConfigurationRuleCollectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security User Configuration Rule Collection ID +func (id SecurityUserConfigurationRuleCollectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityUserConfigurations/%s/ruleCollections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityUserConfigurationName, id.RuleCollectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security User Configuration Rule Collection ID +func (id SecurityUserConfigurationRuleCollectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityUserConfigurations", "securityUserConfigurations", "securityUserConfigurations"), + resourceids.UserSpecifiedSegment("securityUserConfigurationName", "securityUserConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + } +} + +// String returns a human-readable description of this Security User Configuration Rule Collection ID +func (id SecurityUserConfigurationRuleCollectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security User Configuration Name: %q", id.SecurityUserConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + } + return fmt.Sprintf("Security User Configuration Rule Collection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_createorupdate.go new file mode 100644 index 000000000000..24dfc0157f47 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_createorupdate.go @@ -0,0 +1,58 @@ +package securityuserrules + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityUserRule +} + +// CreateOrUpdate ... +func (c SecurityUserRulesClient) CreateOrUpdate(ctx context.Context, id RuleCollectionRuleId, input SecurityUserRule) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityUserRule + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_delete.go new file mode 100644 index 000000000000..b528d5df5200 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_delete.go @@ -0,0 +1,100 @@ +package securityuserrules + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c SecurityUserRulesClient) Delete(ctx context.Context, id RuleCollectionRuleId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c SecurityUserRulesClient) DeleteThenPoll(ctx context.Context, id RuleCollectionRuleId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_get.go new file mode 100644 index 000000000000..e87f74e1e7fc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_get.go @@ -0,0 +1,53 @@ +package securityuserrules + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityUserRule +} + +// Get ... +func (c SecurityUserRulesClient) Get(ctx context.Context, id RuleCollectionRuleId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityUserRule + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_list.go new file mode 100644 index 000000000000..0ca8047db253 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_list.go @@ -0,0 +1,105 @@ +package securityuserrules + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SecurityUserRule +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []SecurityUserRule +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c SecurityUserRulesClient) List(ctx context.Context, id SecurityUserConfigurationRuleCollectionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/rules", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SecurityUserRule `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c SecurityUserRulesClient) ListComplete(ctx context.Context, id SecurityUserConfigurationRuleCollectionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, SecurityUserRuleOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c SecurityUserRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id SecurityUserConfigurationRuleCollectionId, predicate SecurityUserRuleOperationPredicate) (result ListCompleteResult, err error) { + items := make([]SecurityUserRule, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_addressprefixitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_addressprefixitem.go new file mode 100644 index 000000000000..9105a353284d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_addressprefixitem.go @@ -0,0 +1,9 @@ +package securityuserrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressPrefixItem struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixType *AddressPrefixType `json:"addressPrefixType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_securityuserrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_securityuserrule.go new file mode 100644 index 000000000000..d5c394c559a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_securityuserrule.go @@ -0,0 +1,17 @@ +package securityuserrules + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityUserRulePropertiesFormat `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_securityuserrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_securityuserrulepropertiesformat.go new file mode 100644 index 000000000000..1444e3cd7a47 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_securityuserrulepropertiesformat.go @@ -0,0 +1,16 @@ +package securityuserrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserRulePropertiesFormat struct { + Description *string `json:"description,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Destinations *[]AddressPrefixItem `json:"destinations,omitempty"` + Direction SecurityConfigurationRuleDirection `json:"direction"` + Protocol SecurityConfigurationRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` + Sources *[]AddressPrefixItem `json:"sources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/predicates.go new file mode 100644 index 000000000000..5e46e378fc23 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/predicates.go @@ -0,0 +1,32 @@ +package securityuserrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserRuleOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p SecurityUserRuleOperationPredicate) Matches(input SecurityUserRule) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/version.go new file mode 100644 index 000000000000..e5e50fba4fc3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/version.go @@ -0,0 +1,10 @@ +package securityuserrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/securityuserrules/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/README.md new file mode 100644 index 000000000000..b55ecce42b7a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies` Documentation + +The `serviceendpointpolicies` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies" +``` + + +### Client Initialization + +```go +client := serviceendpointpolicies.NewServiceEndpointPoliciesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ServiceEndpointPoliciesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := serviceendpointpolicies.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName") + +payload := serviceendpointpolicies.ServiceEndpointPolicy{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ServiceEndpointPoliciesClient.Delete` + +```go +ctx := context.TODO() +id := serviceendpointpolicies.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ServiceEndpointPoliciesClient.Get` + +```go +ctx := context.TODO() +id := serviceendpointpolicies.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName") + +read, err := client.Get(ctx, id, serviceendpointpolicies.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ServiceEndpointPoliciesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ServiceEndpointPoliciesClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ServiceEndpointPoliciesClient.UpdateTags` + +```go +ctx := context.TODO() +id := serviceendpointpolicies.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName") + +payload := serviceendpointpolicies.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/client.go new file mode 100644 index 000000000000..4efc8d43b2ac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/client.go @@ -0,0 +1,26 @@ +package serviceendpointpolicies + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPoliciesClient struct { + Client *resourcemanager.Client +} + +func NewServiceEndpointPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*ServiceEndpointPoliciesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "serviceendpointpolicies", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ServiceEndpointPoliciesClient: %+v", err) + } + + return &ServiceEndpointPoliciesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/constants.go new file mode 100644 index 000000000000..5dd2d63050c0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/constants.go @@ -0,0 +1,1198 @@ +package serviceendpointpolicies + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/id_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/id_serviceendpointpolicy.go new file mode 100644 index 000000000000..651f7f56783e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/id_serviceendpointpolicy.go @@ -0,0 +1,130 @@ +package serviceendpointpolicies + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ServiceEndpointPolicyId{}) +} + +var _ resourceids.ResourceId = &ServiceEndpointPolicyId{} + +// ServiceEndpointPolicyId is a struct representing the Resource ID for a Service Endpoint Policy +type ServiceEndpointPolicyId struct { + SubscriptionId string + ResourceGroupName string + ServiceEndpointPolicyName string +} + +// NewServiceEndpointPolicyID returns a new ServiceEndpointPolicyId struct +func NewServiceEndpointPolicyID(subscriptionId string, resourceGroupName string, serviceEndpointPolicyName string) ServiceEndpointPolicyId { + return ServiceEndpointPolicyId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceEndpointPolicyName: serviceEndpointPolicyName, + } +} + +// ParseServiceEndpointPolicyID parses 'input' into a ServiceEndpointPolicyId +func ParseServiceEndpointPolicyID(input string) (*ServiceEndpointPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&ServiceEndpointPolicyId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ServiceEndpointPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseServiceEndpointPolicyIDInsensitively parses 'input' case-insensitively into a ServiceEndpointPolicyId +// note: this method should only be used for API response data and not user input +func ParseServiceEndpointPolicyIDInsensitively(input string) (*ServiceEndpointPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&ServiceEndpointPolicyId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ServiceEndpointPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ServiceEndpointPolicyId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ServiceEndpointPolicyName, ok = input.Parsed["serviceEndpointPolicyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceEndpointPolicyName", input) + } + + return nil +} + +// ValidateServiceEndpointPolicyID checks that 'input' can be parsed as a Service Endpoint Policy ID +func ValidateServiceEndpointPolicyID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseServiceEndpointPolicyID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Service Endpoint Policy ID +func (id ServiceEndpointPolicyId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/serviceEndpointPolicies/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceEndpointPolicyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Service Endpoint Policy ID +func (id ServiceEndpointPolicyId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticServiceEndpointPolicies", "serviceEndpointPolicies", "serviceEndpointPolicies"), + resourceids.UserSpecifiedSegment("serviceEndpointPolicyName", "serviceEndpointPolicyName"), + } +} + +// String returns a human-readable description of this Service Endpoint Policy ID +func (id ServiceEndpointPolicyId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Endpoint Policy Name: %q", id.ServiceEndpointPolicyName), + } + return fmt.Sprintf("Service Endpoint Policy (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_createorupdate.go new file mode 100644 index 000000000000..1912253430d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_createorupdate.go @@ -0,0 +1,75 @@ +package serviceendpointpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ServiceEndpointPolicy +} + +// CreateOrUpdate ... +func (c ServiceEndpointPoliciesClient) CreateOrUpdate(ctx context.Context, id ServiceEndpointPolicyId, input ServiceEndpointPolicy) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ServiceEndpointPoliciesClient) CreateOrUpdateThenPoll(ctx context.Context, id ServiceEndpointPolicyId, input ServiceEndpointPolicy) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_delete.go new file mode 100644 index 000000000000..fbffd77bf762 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_delete.go @@ -0,0 +1,71 @@ +package serviceendpointpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ServiceEndpointPoliciesClient) Delete(ctx context.Context, id ServiceEndpointPolicyId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ServiceEndpointPoliciesClient) DeleteThenPoll(ctx context.Context, id ServiceEndpointPolicyId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_get.go new file mode 100644 index 000000000000..ce97f45af4d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_get.go @@ -0,0 +1,83 @@ +package serviceendpointpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ServiceEndpointPolicy +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c ServiceEndpointPoliciesClient) Get(ctx context.Context, id ServiceEndpointPolicyId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ServiceEndpointPolicy + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_list.go new file mode 100644 index 000000000000..3a4372245560 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_list.go @@ -0,0 +1,106 @@ +package serviceendpointpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ServiceEndpointPolicy +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ServiceEndpointPolicy +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ServiceEndpointPoliciesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/serviceEndpointPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ServiceEndpointPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ServiceEndpointPoliciesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, ServiceEndpointPolicyOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ServiceEndpointPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ServiceEndpointPolicyOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ServiceEndpointPolicy, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_listbyresourcegroup.go new file mode 100644 index 000000000000..384f7dc28fec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_listbyresourcegroup.go @@ -0,0 +1,106 @@ +package serviceendpointpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ServiceEndpointPolicy +} + +type ListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []ServiceEndpointPolicy +} + +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByResourceGroup ... +func (c ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/serviceEndpointPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ServiceEndpointPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByResourceGroupComplete retrieves all the results into a single object +func (c ServiceEndpointPoliciesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, ServiceEndpointPolicyOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ServiceEndpointPoliciesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ServiceEndpointPolicyOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]ServiceEndpointPolicy, 0) + + resp, err := c.ListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_updatetags.go new file mode 100644 index 000000000000..d260b3470330 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_updatetags.go @@ -0,0 +1,57 @@ +package serviceendpointpolicies + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ServiceEndpointPolicy +} + +// UpdateTags ... +func (c ServiceEndpointPoliciesClient) UpdateTags(ctx context.Context, id ServiceEndpointPolicyId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ServiceEndpointPolicy + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..7a1f5258bb40 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..76bca3269ac0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..1e70d427a94f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..7f6bd42e1ccd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..15556d9d6468 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..6e7d684d6abd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..2f704e379832 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_backendaddresspool.go new file mode 100644 index 000000000000..feb93ad54759 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..4d71c4769d02 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..9f6fb9fe6e7e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ddossettings.go new file mode 100644 index 000000000000..de52c73833f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ddossettings.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_delegation.go new file mode 100644 index 000000000000..1e9e6e93b123 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_delegation.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlog.go new file mode 100644 index 000000000000..9ba393ae2ff3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlog.go @@ -0,0 +1,19 @@ +package serviceendpointpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlogformatparameters.go new file mode 100644 index 000000000000..64ce02b9b62b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..2a057a6f1f7e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_frontendipconfiguration.go new file mode 100644 index 000000000000..3460648e1743 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package serviceendpointpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..27c417be79df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..253d53dc1d32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_inboundnatrule.go new file mode 100644 index 000000000000..691567f16234 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..bcdf56e43887 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfiguration.go new file mode 100644 index 000000000000..43160da9e2b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..cbb4340c4742 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..a8340bcc1f3a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..b76d67b91b59 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_iptag.go new file mode 100644 index 000000000000..879d62109231 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_iptag.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..bcd25a343d45 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..71bfae4fc901 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgateway.go new file mode 100644 index 000000000000..4fce3c97a621 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgateway.go @@ -0,0 +1,20 @@ +package serviceendpointpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..0eae8e55e8c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgatewaysku.go new file mode 100644 index 000000000000..d7c06ad69504 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natruleportmapping.go new file mode 100644 index 000000000000..af408670c2d6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterface.go new file mode 100644 index 000000000000..4576b3d0a242 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterface.go @@ -0,0 +1,19 @@ +package serviceendpointpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..f2f63e673ceb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..efba2a7575dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..fee33255b2ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..aae328cad750 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..bdbb3dec7534 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..373ac2188724 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..1a2c2bc87745 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networksecuritygroup.go new file mode 100644 index 000000000000..7babf5dcba32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..9e417934d4ee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpoint.go new file mode 100644 index 000000000000..b9c2640063fc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpoint.go @@ -0,0 +1,19 @@ +package serviceendpointpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointconnection.go new file mode 100644 index 000000000000..0c67a94b0695 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..9468576ebfd3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..25ab508cf68f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..b2b9cd173919 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointproperties.go new file mode 100644 index 000000000000..b74aa311c148 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkservice.go new file mode 100644 index 000000000000..f69adbd0b190 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package serviceendpointpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..f163cad59d9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..e9560116ef63 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..9accc19fd8b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..e2a71cb74164 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..6cc9d81d85e8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..324d11d9e4c6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddress.go new file mode 100644 index 000000000000..b3722e1f1912 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddress.go @@ -0,0 +1,22 @@ +package serviceendpointpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..d28111e34e8d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..fe9e93dc57ee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddresssku.go new file mode 100644 index 000000000000..5d6c2dd15359 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourcenavigationlink.go new file mode 100644 index 000000000000..3a125f5d30ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..004d9d501d71 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourceset.go new file mode 100644 index 000000000000..33f79b6dd7fc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourceset.go @@ -0,0 +1,8 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..98b48093fe5c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_route.go new file mode 100644 index 000000000000..a08219146cfb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_route.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routepropertiesformat.go new file mode 100644 index 000000000000..a2d74c7e24ae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routetable.go new file mode 100644 index 000000000000..fabb0fc336d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routetable.go @@ -0,0 +1,14 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..fbf628f66f31 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_securityrule.go new file mode 100644 index 000000000000..3f50e5ddac64 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_securityrule.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..8d5f321605a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceassociationlink.go new file mode 100644 index 000000000000..a22d8f42829d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..5b81f28e88b3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..0903abfa70e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..796d7019b020 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..75928dae7f1b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..31efd2eb7eb5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..fdb4ecd0a7fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..40b6ccdb10e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subnet.go new file mode 100644 index 000000000000..50005077792c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subnet.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..97f4cb55074d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subresource.go new file mode 100644 index 000000000000..61370085ffcd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subresource.go @@ -0,0 +1,8 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_tagsobject.go new file mode 100644 index 000000000000..7c5d750fc909 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_tagsobject.go @@ -0,0 +1,8 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..da94c72fe297 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..58889a804767 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_virtualnetworktap.go new file mode 100644 index 000000000000..1d191ff67f04 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..2660ce6a3824 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/predicates.go new file mode 100644 index 000000000000..ddd972a1d9dc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/predicates.go @@ -0,0 +1,42 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyOperationPredicate struct { + Etag *string + Id *string + Kind *string + Location *string + Name *string + Type *string +} + +func (p ServiceEndpointPolicyOperationPredicate) Matches(input ServiceEndpointPolicy) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/version.go new file mode 100644 index 000000000000..3e8fbaeed0a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/version.go @@ -0,0 +1,10 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/serviceendpointpolicies/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/README.md index cbe875beabc6..c9cc1964e5ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions` Documentation -The `serviceendpointpolicydefinitions` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `serviceendpointpolicydefinitions` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/id_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/id_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/id_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/id_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/id_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/id_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/id_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/id_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/version.go similarity index 84% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/version.go index 4fad17904f57..14fc28700a77 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/version.go @@ -3,8 +3,8 @@ package serviceendpointpolicydefinitions // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/serviceendpointpolicydefinitions/2023-11-01" + return "hashicorp/go-azure-sdk/serviceendpointpolicydefinitions/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/README.md new file mode 100644 index 000000000000..36b7a9411467 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/README.md @@ -0,0 +1,53 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags` Documentation + +The `servicetags` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags" +``` + + +### Client Initialization + +```go +client := servicetags.NewServiceTagsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ServiceTagsClient.ServiceTagInformationList` + +```go +ctx := context.TODO() +id := servicetags.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +// alternatively `client.ServiceTagInformationList(ctx, id, servicetags.DefaultServiceTagInformationListOperationOptions())` can be used to do batched pagination +items, err := client.ServiceTagInformationListComplete(ctx, id, servicetags.DefaultServiceTagInformationListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ServiceTagsClient.ServiceTagsList` + +```go +ctx := context.TODO() +id := servicetags.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +read, err := client.ServiceTagsList(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/client.go new file mode 100644 index 000000000000..33295761773a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/client.go @@ -0,0 +1,26 @@ +package servicetags + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceTagsClient struct { + Client *resourcemanager.Client +} + +func NewServiceTagsClientWithBaseURI(sdkApi sdkEnv.Api) (*ServiceTagsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "servicetags", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ServiceTagsClient: %+v", err) + } + + return &ServiceTagsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/id_location.go new file mode 100644 index 000000000000..5040a3f420a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/id_location.go @@ -0,0 +1,121 @@ +package servicetags + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&LocationId{}) +} + +var _ resourceids.ResourceId = &LocationId{} + +// LocationId is a struct representing the Resource ID for a Location +type LocationId struct { + SubscriptionId string + LocationName string +} + +// NewLocationID returns a new LocationId struct +func NewLocationID(subscriptionId string, locationName string) LocationId { + return LocationId{ + SubscriptionId: subscriptionId, + LocationName: locationName, + } +} + +// ParseLocationID parses 'input' into a LocationId +func ParseLocationID(input string) (*LocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId +// note: this method should only be used for API response data and not user input +func ParseLocationIDInsensitively(input string) (*LocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *LocationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.LocationName, ok = input.Parsed["locationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) + } + + return nil +} + +// ValidateLocationID checks that 'input' can be parsed as a Location ID +func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseLocationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Location ID +func (id LocationId) ID() string { + fmtString := "/subscriptions/%s/providers/Microsoft.Network/locations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.LocationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Location ID +func (id LocationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticLocations", "locations", "locations"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), + } +} + +// String returns a human-readable description of this Location ID +func (id LocationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Location Name: %q", id.LocationName), + } + return fmt.Sprintf("Location (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/method_servicetaginformationlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/method_servicetaginformationlist.go new file mode 100644 index 000000000000..1150809dc2b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/method_servicetaginformationlist.go @@ -0,0 +1,138 @@ +package servicetags + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceTagInformationListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ServiceTagInformation +} + +type ServiceTagInformationListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ServiceTagInformation +} + +type ServiceTagInformationListOperationOptions struct { + NoAddressPrefixes *bool + TagName *string +} + +func DefaultServiceTagInformationListOperationOptions() ServiceTagInformationListOperationOptions { + return ServiceTagInformationListOperationOptions{} +} + +func (o ServiceTagInformationListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ServiceTagInformationListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ServiceTagInformationListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.NoAddressPrefixes != nil { + out.Append("noAddressPrefixes", fmt.Sprintf("%v", *o.NoAddressPrefixes)) + } + if o.TagName != nil { + out.Append("tagName", fmt.Sprintf("%v", *o.TagName)) + } + return &out +} + +type ServiceTagInformationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceTagInformationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ServiceTagInformationList ... +func (c ServiceTagsClient) ServiceTagInformationList(ctx context.Context, id LocationId, options ServiceTagInformationListOperationOptions) (result ServiceTagInformationListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ServiceTagInformationListCustomPager{}, + Path: fmt.Sprintf("%s/serviceTagDetails", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ServiceTagInformation `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ServiceTagInformationListComplete retrieves all the results into a single object +func (c ServiceTagsClient) ServiceTagInformationListComplete(ctx context.Context, id LocationId, options ServiceTagInformationListOperationOptions) (ServiceTagInformationListCompleteResult, error) { + return c.ServiceTagInformationListCompleteMatchingPredicate(ctx, id, options, ServiceTagInformationOperationPredicate{}) +} + +// ServiceTagInformationListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ServiceTagsClient) ServiceTagInformationListCompleteMatchingPredicate(ctx context.Context, id LocationId, options ServiceTagInformationListOperationOptions, predicate ServiceTagInformationOperationPredicate) (result ServiceTagInformationListCompleteResult, err error) { + items := make([]ServiceTagInformation, 0) + + resp, err := c.ServiceTagInformationList(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ServiceTagInformationListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/method_servicetagslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/method_servicetagslist.go new file mode 100644 index 000000000000..a25ce1872536 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/method_servicetagslist.go @@ -0,0 +1,54 @@ +package servicetags + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceTagsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ServiceTagsListResult +} + +// ServiceTagsList ... +func (c ServiceTagsClient) ServiceTagsList(ctx context.Context, id LocationId) (result ServiceTagsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/serviceTags", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ServiceTagsListResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetaginformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetaginformation.go new file mode 100644 index 000000000000..705268a5bb95 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetaginformation.go @@ -0,0 +1,11 @@ +package servicetags + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceTagInformation struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceTagInformationPropertiesFormat `json:"properties,omitempty"` + ServiceTagChangeNumber *string `json:"serviceTagChangeNumber,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetaginformationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetaginformationpropertiesformat.go new file mode 100644 index 000000000000..0d51bfcd8b27 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetaginformationpropertiesformat.go @@ -0,0 +1,12 @@ +package servicetags + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceTagInformationPropertiesFormat struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ChangeNumber *string `json:"changeNumber,omitempty"` + Region *string `json:"region,omitempty"` + State *string `json:"state,omitempty"` + SystemService *string `json:"systemService,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetagslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetagslistresult.go new file mode 100644 index 000000000000..9cfb2fb2afb1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetagslistresult.go @@ -0,0 +1,14 @@ +package servicetags + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceTagsListResult struct { + ChangeNumber *string `json:"changeNumber,omitempty"` + Cloud *string `json:"cloud,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + NextLink *string `json:"nextLink,omitempty"` + Type *string `json:"type,omitempty"` + Values *[]ServiceTagInformation `json:"values,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/predicates.go new file mode 100644 index 000000000000..e10bffe6a4f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/predicates.go @@ -0,0 +1,27 @@ +package servicetags + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceTagInformationOperationPredicate struct { + Id *string + Name *string + ServiceTagChangeNumber *string +} + +func (p ServiceTagInformationOperationPredicate) Matches(input ServiceTagInformation) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.ServiceTagChangeNumber != nil && (input.ServiceTagChangeNumber == nil || *p.ServiceTagChangeNumber != *input.ServiceTagChangeNumber) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/version.go new file mode 100644 index 000000000000..db645cf800ae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/version.go @@ -0,0 +1,10 @@ +package servicetags + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/servicetags/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/README.md new file mode 100644 index 000000000000..b7b56cabe28c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/README.md @@ -0,0 +1,90 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers` Documentation + +The `staticmembers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers" +``` + + +### Client Initialization + +```go +client := staticmembers.NewStaticMembersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `StaticMembersClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName", "staticMemberName") + +payload := staticmembers.StaticMember{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `StaticMembersClient.Delete` + +```go +ctx := context.TODO() +id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName", "staticMemberName") + +read, err := client.Delete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `StaticMembersClient.Get` + +```go +ctx := context.TODO() +id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName", "staticMemberName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `StaticMembersClient.List` + +```go +ctx := context.TODO() +id := staticmembers.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") + +// alternatively `client.List(ctx, id, staticmembers.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, staticmembers.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/client.go new file mode 100644 index 000000000000..9357db6d5f3c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/client.go @@ -0,0 +1,26 @@ +package staticmembers + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StaticMembersClient struct { + Client *resourcemanager.Client +} + +func NewStaticMembersClientWithBaseURI(sdkApi sdkEnv.Api) (*StaticMembersClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "staticmembers", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating StaticMembersClient: %+v", err) + } + + return &StaticMembersClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/constants.go new file mode 100644 index 000000000000..3ccbd94262b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/constants.go @@ -0,0 +1,57 @@ +package staticmembers + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/id_networkgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/id_networkgroup.go new file mode 100644 index 000000000000..d846cd377f4b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/id_networkgroup.go @@ -0,0 +1,139 @@ +package staticmembers + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkGroupId{}) +} + +var _ resourceids.ResourceId = &NetworkGroupId{} + +// NetworkGroupId is a struct representing the Resource ID for a Network Group +type NetworkGroupId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + NetworkGroupName string +} + +// NewNetworkGroupID returns a new NetworkGroupId struct +func NewNetworkGroupID(subscriptionId string, resourceGroupName string, networkManagerName string, networkGroupName string) NetworkGroupId { + return NetworkGroupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + NetworkGroupName: networkGroupName, + } +} + +// ParseNetworkGroupID parses 'input' into a NetworkGroupId +func ParseNetworkGroupID(input string) (*NetworkGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkGroupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkGroupIDInsensitively parses 'input' case-insensitively into a NetworkGroupId +// note: this method should only be used for API response data and not user input +func ParseNetworkGroupIDInsensitively(input string) (*NetworkGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkGroupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkGroupId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.NetworkGroupName, ok = input.Parsed["networkGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkGroupName", input) + } + + return nil +} + +// ValidateNetworkGroupID checks that 'input' can be parsed as a Network Group ID +func ValidateNetworkGroupID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkGroupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Group ID +func (id NetworkGroupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/networkGroups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.NetworkGroupName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Group ID +func (id NetworkGroupId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticNetworkGroups", "networkGroups", "networkGroups"), + resourceids.UserSpecifiedSegment("networkGroupName", "networkGroupName"), + } +} + +// String returns a human-readable description of this Network Group ID +func (id NetworkGroupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Network Group Name: %q", id.NetworkGroupName), + } + return fmt.Sprintf("Network Group (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/id_staticmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/id_staticmember.go new file mode 100644 index 000000000000..7bbcff626d34 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/id_staticmember.go @@ -0,0 +1,148 @@ +package staticmembers + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&StaticMemberId{}) +} + +var _ resourceids.ResourceId = &StaticMemberId{} + +// StaticMemberId is a struct representing the Resource ID for a Static Member +type StaticMemberId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + NetworkGroupName string + StaticMemberName string +} + +// NewStaticMemberID returns a new StaticMemberId struct +func NewStaticMemberID(subscriptionId string, resourceGroupName string, networkManagerName string, networkGroupName string, staticMemberName string) StaticMemberId { + return StaticMemberId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + NetworkGroupName: networkGroupName, + StaticMemberName: staticMemberName, + } +} + +// ParseStaticMemberID parses 'input' into a StaticMemberId +func ParseStaticMemberID(input string) (*StaticMemberId, error) { + parser := resourceids.NewParserFromResourceIdType(&StaticMemberId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := StaticMemberId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseStaticMemberIDInsensitively parses 'input' case-insensitively into a StaticMemberId +// note: this method should only be used for API response data and not user input +func ParseStaticMemberIDInsensitively(input string) (*StaticMemberId, error) { + parser := resourceids.NewParserFromResourceIdType(&StaticMemberId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := StaticMemberId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *StaticMemberId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.NetworkGroupName, ok = input.Parsed["networkGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkGroupName", input) + } + + if id.StaticMemberName, ok = input.Parsed["staticMemberName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "staticMemberName", input) + } + + return nil +} + +// ValidateStaticMemberID checks that 'input' can be parsed as a Static Member ID +func ValidateStaticMemberID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseStaticMemberID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Static Member ID +func (id StaticMemberId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/networkGroups/%s/staticMembers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.NetworkGroupName, id.StaticMemberName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Static Member ID +func (id StaticMemberId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticNetworkGroups", "networkGroups", "networkGroups"), + resourceids.UserSpecifiedSegment("networkGroupName", "networkGroupName"), + resourceids.StaticSegment("staticStaticMembers", "staticMembers", "staticMembers"), + resourceids.UserSpecifiedSegment("staticMemberName", "staticMemberName"), + } +} + +// String returns a human-readable description of this Static Member ID +func (id StaticMemberId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Network Group Name: %q", id.NetworkGroupName), + fmt.Sprintf("Static Member Name: %q", id.StaticMemberName), + } + return fmt.Sprintf("Static Member (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_createorupdate.go new file mode 100644 index 000000000000..f4ad175116b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_createorupdate.go @@ -0,0 +1,58 @@ +package staticmembers + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *StaticMember +} + +// CreateOrUpdate ... +func (c StaticMembersClient) CreateOrUpdate(ctx context.Context, id StaticMemberId, input StaticMember) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model StaticMember + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_delete.go new file mode 100644 index 000000000000..5709eca59ecb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_delete.go @@ -0,0 +1,47 @@ +package staticmembers + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c StaticMembersClient) Delete(ctx context.Context, id StaticMemberId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_get.go new file mode 100644 index 000000000000..8f9d30b17abe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_get.go @@ -0,0 +1,53 @@ +package staticmembers + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *StaticMember +} + +// Get ... +func (c StaticMembersClient) Get(ctx context.Context, id StaticMemberId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model StaticMember + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_list.go new file mode 100644 index 000000000000..ef104e6865f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_list.go @@ -0,0 +1,134 @@ +package staticmembers + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]StaticMember +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []StaticMember +} + +type ListOperationOptions struct { + Top *int64 +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c StaticMembersClient) List(ctx context.Context, id NetworkGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/staticMembers", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]StaticMember `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c StaticMembersClient) ListComplete(ctx context.Context, id NetworkGroupId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, StaticMemberOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c StaticMembersClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkGroupId, options ListOperationOptions, predicate StaticMemberOperationPredicate) (result ListCompleteResult, err error) { + items := make([]StaticMember, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/model_staticmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/model_staticmember.go new file mode 100644 index 000000000000..b0d518168ea8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/model_staticmember.go @@ -0,0 +1,17 @@ +package staticmembers + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StaticMember struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *StaticMemberProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/model_staticmemberproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/model_staticmemberproperties.go new file mode 100644 index 000000000000..513dd3e5b9b9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/model_staticmemberproperties.go @@ -0,0 +1,10 @@ +package staticmembers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StaticMemberProperties struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Region *string `json:"region,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/predicates.go new file mode 100644 index 000000000000..0fb08a96da71 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/predicates.go @@ -0,0 +1,32 @@ +package staticmembers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StaticMemberOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p StaticMemberOperationPredicate) Matches(input StaticMember) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/version.go new file mode 100644 index 000000000000..2a51ba3933fd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/version.go @@ -0,0 +1,10 @@ +package staticmembers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/staticmembers/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/README.md new file mode 100644 index 000000000000..fbf75bc161a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/README.md @@ -0,0 +1,83 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets` Documentation + +The `subnets` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" +``` + + +### Client Initialization + +```go +client := subnets.NewSubnetsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `SubnetsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") + +payload := subnets.Subnet{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `SubnetsClient.Delete` + +```go +ctx := context.TODO() +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `SubnetsClient.Get` + +```go +ctx := context.TODO() +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") + +read, err := client.Get(ctx, id, subnets.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SubnetsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/client.go new file mode 100644 index 000000000000..d3ece632ec64 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/client.go @@ -0,0 +1,26 @@ +package subnets + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetsClient struct { + Client *resourcemanager.Client +} + +func NewSubnetsClientWithBaseURI(sdkApi sdkEnv.Api) (*SubnetsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "subnets", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating SubnetsClient: %+v", err) + } + + return &SubnetsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/constants.go new file mode 100644 index 000000000000..8c3fe71424af --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/constants.go @@ -0,0 +1,1198 @@ +package subnets + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_createorupdate.go new file mode 100644 index 000000000000..2f47359f9756 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_createorupdate.go @@ -0,0 +1,76 @@ +package subnets + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *Subnet +} + +// CreateOrUpdate ... +func (c SubnetsClient) CreateOrUpdate(ctx context.Context, id commonids.SubnetId, input Subnet) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c SubnetsClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.SubnetId, input Subnet) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_delete.go new file mode 100644 index 000000000000..8be424289f01 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_delete.go @@ -0,0 +1,72 @@ +package subnets + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c SubnetsClient) Delete(ctx context.Context, id commonids.SubnetId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c SubnetsClient) DeleteThenPoll(ctx context.Context, id commonids.SubnetId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_get.go new file mode 100644 index 000000000000..9340f66305d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_get.go @@ -0,0 +1,84 @@ +package subnets + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Subnet +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c SubnetsClient) Get(ctx context.Context, id commonids.SubnetId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model Subnet + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_list.go new file mode 100644 index 000000000000..b9424e852805 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_list.go @@ -0,0 +1,106 @@ +package subnets + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Subnet +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []Subnet +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c SubnetsClient) List(ctx context.Context, id commonids.VirtualNetworkId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/subnets", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Subnet `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c SubnetsClient) ListComplete(ctx context.Context, id commonids.VirtualNetworkId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, SubnetOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c SubnetsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.VirtualNetworkId, predicate SubnetOperationPredicate) (result ListCompleteResult, err error) { + items := make([]Subnet, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..3788306fb6c3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..916f79f9c4c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..5cb3ab5e50f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..2064f06b67c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..ba5d67b2ce4e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..2b7038a9661a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..0444d465786d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_backendaddresspool.go new file mode 100644 index 000000000000..8549e5db3a86 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..561224fe97ee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..b8332f10ecf7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ddossettings.go new file mode 100644 index 000000000000..d48851a6ba15 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ddossettings.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_delegation.go new file mode 100644 index 000000000000..541d9d1d34b6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_delegation.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlog.go new file mode 100644 index 000000000000..e063f8c77303 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlog.go @@ -0,0 +1,19 @@ +package subnets + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlogformatparameters.go new file mode 100644 index 000000000000..492844afa0cc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..2dd1565d821c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_frontendipconfiguration.go new file mode 100644 index 000000000000..f24121e7c39c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package subnets + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..3c86535825a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..3d2ff9b30102 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_inboundnatrule.go new file mode 100644 index 000000000000..dd23aa7a490b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..ac29e9fd37d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfiguration.go new file mode 100644 index 000000000000..3e2e5516ea91 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..a4d5be3c038a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..bfb28994f14d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..4814acb3e8e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_iptag.go new file mode 100644 index 000000000000..8ccc055cb31a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_iptag.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..e3b148912e31 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..ee7815f178dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgateway.go new file mode 100644 index 000000000000..9a8fad20def6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgateway.go @@ -0,0 +1,20 @@ +package subnets + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..e9043897c529 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgatewaysku.go new file mode 100644 index 000000000000..617e7c19ff34 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natruleportmapping.go new file mode 100644 index 000000000000..1e546cf811d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterface.go new file mode 100644 index 000000000000..06d849fad907 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterface.go @@ -0,0 +1,19 @@ +package subnets + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..67fcb29afe77 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..dea0691831d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..51e7195920f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..a1064b425b93 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..dadc94210166 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..2cd16be245c1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..1bc23cee100c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networksecuritygroup.go new file mode 100644 index 000000000000..fa06f5f24ccc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..da7b074dbbfb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpoint.go new file mode 100644 index 000000000000..4fa549c3b13b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpoint.go @@ -0,0 +1,19 @@ +package subnets + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointconnection.go new file mode 100644 index 000000000000..1e354419cca0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..ff12b5a54fc0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..20625cb09d31 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..5d90f3c61bf7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointproperties.go new file mode 100644 index 000000000000..4913ece3049b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkservice.go new file mode 100644 index 000000000000..34c00e7cffb3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package subnets + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..af937a19eda7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..d6ad965c1368 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..4072e649f7a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..c48e1e87c659 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..eccb8844155e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..5c743a480bab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddress.go new file mode 100644 index 000000000000..9931f78d2364 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddress.go @@ -0,0 +1,22 @@ +package subnets + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..d002238e788d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..c8c5eb4251a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddresssku.go new file mode 100644 index 000000000000..21dd8f7d664d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourcenavigationlink.go new file mode 100644 index 000000000000..fcd37a760e65 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..103426fc9c39 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourceset.go new file mode 100644 index 000000000000..5daeebab425f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourceset.go @@ -0,0 +1,8 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..8ea922b85fef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_route.go new file mode 100644 index 000000000000..e40ded16b006 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_route.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routepropertiesformat.go new file mode 100644 index 000000000000..c87b62acaed2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routetable.go new file mode 100644 index 000000000000..6bb137b8242c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routetable.go @@ -0,0 +1,14 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..07d88ea8a301 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_securityrule.go new file mode 100644 index 000000000000..70772203f7bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_securityrule.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..cad2dbd820ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceassociationlink.go new file mode 100644 index 000000000000..c82eae5ac158 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..f1a92b714855 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..1680e52b8a1a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..68813a7b3e8f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..8fa72c305ed9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..b7b56f401a85 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..5e0804aa4384 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..e3835d75d211 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subnet.go new file mode 100644 index 000000000000..820673d7c161 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subnet.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..23fdab8b9aee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subresource.go new file mode 100644 index 000000000000..d986a3038192 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subresource.go @@ -0,0 +1,8 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..e93599e3f9cd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..fa6abc84aef0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_virtualnetworktap.go new file mode 100644 index 000000000000..f9e8be401f9a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..c8b60852b336 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/predicates.go new file mode 100644 index 000000000000..33b8979e3ccd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/predicates.go @@ -0,0 +1,32 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p SubnetOperationPredicate) Matches(input Subnet) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/version.go new file mode 100644 index 000000000000..93b56536f683 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/version.go @@ -0,0 +1,10 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/subnets/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/README.md similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/README.md index c081df22d795..003ce69b10fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics` Documentation -The `trafficanalytics` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `trafficanalytics` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/id_networkwatcher.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/id_networkwatcher.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/id_networkwatcher.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/method_networkwatchersgetflowlogstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/method_networkwatchersgetflowlogstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/method_networkwatchersgetflowlogstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/method_networkwatchersgetflowlogstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/method_networkwatcherssetflowlogconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/method_networkwatcherssetflowlogconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/method_networkwatcherssetflowlogconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/method_networkwatcherssetflowlogconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowloginformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowloginformation.go new file mode 100644 index 000000000000..c4dc94d99f73 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowloginformation.go @@ -0,0 +1,15 @@ +package trafficanalytics + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogInformation struct { + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Properties FlowLogProperties `json:"properties"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowlogproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowlogproperties.go new file mode 100644 index 000000000000..cf3b43fdbebf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowlogproperties.go @@ -0,0 +1,12 @@ +package trafficanalytics + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogProperties struct { + Enabled bool `json:"enabled"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowlogstatusparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowlogstatusparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowlogstatusparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowlogstatusparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/version.go index ca09dc5d2324..37128fd15384 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/version.go @@ -3,8 +3,8 @@ package trafficanalytics // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/trafficanalytics/2023-11-01" + return "hashicorp/go-azure-sdk/trafficanalytics/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/README.md similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/README.md index 577a5f5efff6..ac3c458aa8c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages` Documentation -The `usages` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `usages` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/model_usage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/model_usage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/model_usage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/model_usage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/model_usagename.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/model_usagename.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/model_usagename.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/model_usagename.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/version.go similarity index 69% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/version.go index 1f75d534194e..bd9406a21a78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/version.go @@ -3,8 +3,8 @@ package usages // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/usages/2023-11-01" + return "hashicorp/go-azure-sdk/usages/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/README.md index 0cfa64fa81a5..f8d4cf9aeb6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap` Documentation -The `vipswap` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `vipswap` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/id_cloudservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/id_cloudservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/id_cloudservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/id_cloudservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/model_swapresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/model_swapresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/model_swapresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/model_swapresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/model_swapresourcelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/model_swapresourcelistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/model_swapresourcelistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/model_swapresourcelistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/model_swapresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/model_swapresourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/model_swapresourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/model_swapresourceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/version.go similarity index 69% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/version.go index e6db46609f42..280683c8eef8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/version.go @@ -3,8 +3,8 @@ package vipswap // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/vipswap/2023-11-01" + return "hashicorp/go-azure-sdk/vipswap/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/README.md index 8b58521ebf54..9b1b90a265be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites` Documentation -The `virtualappliancesites` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `virtualappliancesites` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/id_networkvirtualappliance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/id_networkvirtualappliance.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/id_networkvirtualappliance.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/id_networkvirtualappliance.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/id_virtualappliancesite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/id_virtualappliancesite.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/id_virtualappliancesite.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/id_virtualappliancesite.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/model_breakoutcategorypolicies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/model_breakoutcategorypolicies.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/model_breakoutcategorypolicies.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/model_breakoutcategorypolicies.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/model_office365policyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/model_office365policyproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/model_office365policyproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/model_office365policyproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/model_virtualappliancesite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/model_virtualappliancesite.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/model_virtualappliancesite.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/model_virtualappliancesite.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/model_virtualappliancesiteproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/model_virtualappliancesiteproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/model_virtualappliancesiteproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/model_virtualappliancesiteproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/version.go index 7138ce3a1ee1..44a1e1ae185a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/version.go @@ -3,8 +3,8 @@ package virtualappliancesites // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/virtualappliancesites/2023-11-01" + return "hashicorp/go-azure-sdk/virtualappliancesites/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/README.md similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/README.md index 32b379d0ad3f..f782b8173492 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus` Documentation -The `virtualapplianceskus` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `virtualapplianceskus` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/id_networkvirtualappliancesku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/id_networkvirtualappliancesku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/id_networkvirtualappliancesku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/id_networkvirtualappliancesku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/model_networkvirtualappliancesku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/model_networkvirtualappliancesku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/model_networkvirtualappliancesku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/model_networkvirtualappliancesku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/model_networkvirtualapplianceskuinstances.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/model_networkvirtualapplianceskuinstances.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/model_networkvirtualapplianceskuinstances.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/model_networkvirtualapplianceskuinstances.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/model_networkvirtualapplianceskupropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/model_networkvirtualapplianceskupropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/model_networkvirtualapplianceskupropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/model_networkvirtualapplianceskupropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/version.go index a532397fa46e..d64ac97e5736 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/version.go @@ -3,8 +3,8 @@ package virtualapplianceskus // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/virtualapplianceskus/2023-11-01" + return "hashicorp/go-azure-sdk/virtualapplianceskus/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/README.md new file mode 100644 index 000000000000..e01886e18734 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/README.md @@ -0,0 +1,208 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections` Documentation + +The `virtualnetworkgatewayconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections" +``` + + +### Client Initialization + +```go +client := virtualnetworkgatewayconnections.NewVirtualNetworkGatewayConnectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +payload := virtualnetworkgatewayconnections.VirtualNetworkGatewayConnection{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.Delete` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.Get` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.GetIkeSas` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +if err := client.GetIkeSasThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.GetSharedKey` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +read, err := client.GetSharedKey(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.ResetConnection` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +if err := client.ResetConnectionThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.ResetSharedKey` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +payload := virtualnetworkgatewayconnections.ConnectionResetSharedKey{ + // ... +} + + +if err := client.ResetSharedKeyThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.SetSharedKey` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +payload := virtualnetworkgatewayconnections.ConnectionSharedKey{ + // ... +} + + +if err := client.SetSharedKeyThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.StartPacketCapture` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +payload := virtualnetworkgatewayconnections.VpnPacketCaptureStartParameters{ + // ... +} + + +if err := client.StartPacketCaptureThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.StopPacketCapture` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +payload := virtualnetworkgatewayconnections.VpnPacketCaptureStopParameters{ + // ... +} + + +if err := client.StopPacketCaptureThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.UpdateTags` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +payload := virtualnetworkgatewayconnections.TagsObject{ + // ... +} + + +if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/client.go new file mode 100644 index 000000000000..b74a1276981e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/client.go @@ -0,0 +1,26 @@ +package virtualnetworkgatewayconnections + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayConnectionsClient struct { + Client *resourcemanager.Client +} + +func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworkGatewayConnectionsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworkgatewayconnections", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating VirtualNetworkGatewayConnectionsClient: %+v", err) + } + + return &VirtualNetworkGatewayConnectionsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/constants.go new file mode 100644 index 000000000000..f7fbee05dd01 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/constants.go @@ -0,0 +1,1225 @@ +package virtualnetworkgatewayconnections + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdminState string + +const ( + AdminStateDisabled AdminState = "Disabled" + AdminStateEnabled AdminState = "Enabled" +) + +func PossibleValuesForAdminState() []string { + return []string{ + string(AdminStateDisabled), + string(AdminStateEnabled), + } +} + +func (s *AdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAdminState(input string) (*AdminState, error) { + vals := map[string]AdminState{ + "disabled": AdminStateDisabled, + "enabled": AdminStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AdminState(input) + return &out, nil +} + +type DhGroup string + +const ( + DhGroupDHGroupOne DhGroup = "DHGroup1" + DhGroupDHGroupOneFour DhGroup = "DHGroup14" + DhGroupDHGroupTwo DhGroup = "DHGroup2" + DhGroupDHGroupTwoFour DhGroup = "DHGroup24" + DhGroupDHGroupTwoZeroFourEight DhGroup = "DHGroup2048" + DhGroupECPThreeEightFour DhGroup = "ECP384" + DhGroupECPTwoFiveSix DhGroup = "ECP256" + DhGroupNone DhGroup = "None" +) + +func PossibleValuesForDhGroup() []string { + return []string{ + string(DhGroupDHGroupOne), + string(DhGroupDHGroupOneFour), + string(DhGroupDHGroupTwo), + string(DhGroupDHGroupTwoFour), + string(DhGroupDHGroupTwoZeroFourEight), + string(DhGroupECPThreeEightFour), + string(DhGroupECPTwoFiveSix), + string(DhGroupNone), + } +} + +func (s *DhGroup) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDhGroup(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDhGroup(input string) (*DhGroup, error) { + vals := map[string]DhGroup{ + "dhgroup1": DhGroupDHGroupOne, + "dhgroup14": DhGroupDHGroupOneFour, + "dhgroup2": DhGroupDHGroupTwo, + "dhgroup24": DhGroupDHGroupTwoFour, + "dhgroup2048": DhGroupDHGroupTwoZeroFourEight, + "ecp384": DhGroupECPThreeEightFour, + "ecp256": DhGroupECPTwoFiveSix, + "none": DhGroupNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DhGroup(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPsecEncryption string + +const ( + IPsecEncryptionAESOneNineTwo IPsecEncryption = "AES192" + IPsecEncryptionAESOneTwoEight IPsecEncryption = "AES128" + IPsecEncryptionAESTwoFiveSix IPsecEncryption = "AES256" + IPsecEncryptionDES IPsecEncryption = "DES" + IPsecEncryptionDESThree IPsecEncryption = "DES3" + IPsecEncryptionGCMAESOneNineTwo IPsecEncryption = "GCMAES192" + IPsecEncryptionGCMAESOneTwoEight IPsecEncryption = "GCMAES128" + IPsecEncryptionGCMAESTwoFiveSix IPsecEncryption = "GCMAES256" + IPsecEncryptionNone IPsecEncryption = "None" +) + +func PossibleValuesForIPsecEncryption() []string { + return []string{ + string(IPsecEncryptionAESOneNineTwo), + string(IPsecEncryptionAESOneTwoEight), + string(IPsecEncryptionAESTwoFiveSix), + string(IPsecEncryptionDES), + string(IPsecEncryptionDESThree), + string(IPsecEncryptionGCMAESOneNineTwo), + string(IPsecEncryptionGCMAESOneTwoEight), + string(IPsecEncryptionGCMAESTwoFiveSix), + string(IPsecEncryptionNone), + } +} + +func (s *IPsecEncryption) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPsecEncryption(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPsecEncryption(input string) (*IPsecEncryption, error) { + vals := map[string]IPsecEncryption{ + "aes192": IPsecEncryptionAESOneNineTwo, + "aes128": IPsecEncryptionAESOneTwoEight, + "aes256": IPsecEncryptionAESTwoFiveSix, + "des": IPsecEncryptionDES, + "des3": IPsecEncryptionDESThree, + "gcmaes192": IPsecEncryptionGCMAESOneNineTwo, + "gcmaes128": IPsecEncryptionGCMAESOneTwoEight, + "gcmaes256": IPsecEncryptionGCMAESTwoFiveSix, + "none": IPsecEncryptionNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPsecEncryption(input) + return &out, nil +} + +type IPsecIntegrity string + +const ( + IPsecIntegrityGCMAESOneNineTwo IPsecIntegrity = "GCMAES192" + IPsecIntegrityGCMAESOneTwoEight IPsecIntegrity = "GCMAES128" + IPsecIntegrityGCMAESTwoFiveSix IPsecIntegrity = "GCMAES256" + IPsecIntegrityMDFive IPsecIntegrity = "MD5" + IPsecIntegritySHAOne IPsecIntegrity = "SHA1" + IPsecIntegritySHATwoFiveSix IPsecIntegrity = "SHA256" +) + +func PossibleValuesForIPsecIntegrity() []string { + return []string{ + string(IPsecIntegrityGCMAESOneNineTwo), + string(IPsecIntegrityGCMAESOneTwoEight), + string(IPsecIntegrityGCMAESTwoFiveSix), + string(IPsecIntegrityMDFive), + string(IPsecIntegritySHAOne), + string(IPsecIntegritySHATwoFiveSix), + } +} + +func (s *IPsecIntegrity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPsecIntegrity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPsecIntegrity(input string) (*IPsecIntegrity, error) { + vals := map[string]IPsecIntegrity{ + "gcmaes192": IPsecIntegrityGCMAESOneNineTwo, + "gcmaes128": IPsecIntegrityGCMAESOneTwoEight, + "gcmaes256": IPsecIntegrityGCMAESTwoFiveSix, + "md5": IPsecIntegrityMDFive, + "sha1": IPsecIntegritySHAOne, + "sha256": IPsecIntegritySHATwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPsecIntegrity(input) + return &out, nil +} + +type IkeEncryption string + +const ( + IkeEncryptionAESOneNineTwo IkeEncryption = "AES192" + IkeEncryptionAESOneTwoEight IkeEncryption = "AES128" + IkeEncryptionAESTwoFiveSix IkeEncryption = "AES256" + IkeEncryptionDES IkeEncryption = "DES" + IkeEncryptionDESThree IkeEncryption = "DES3" + IkeEncryptionGCMAESOneTwoEight IkeEncryption = "GCMAES128" + IkeEncryptionGCMAESTwoFiveSix IkeEncryption = "GCMAES256" +) + +func PossibleValuesForIkeEncryption() []string { + return []string{ + string(IkeEncryptionAESOneNineTwo), + string(IkeEncryptionAESOneTwoEight), + string(IkeEncryptionAESTwoFiveSix), + string(IkeEncryptionDES), + string(IkeEncryptionDESThree), + string(IkeEncryptionGCMAESOneTwoEight), + string(IkeEncryptionGCMAESTwoFiveSix), + } +} + +func (s *IkeEncryption) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIkeEncryption(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIkeEncryption(input string) (*IkeEncryption, error) { + vals := map[string]IkeEncryption{ + "aes192": IkeEncryptionAESOneNineTwo, + "aes128": IkeEncryptionAESOneTwoEight, + "aes256": IkeEncryptionAESTwoFiveSix, + "des": IkeEncryptionDES, + "des3": IkeEncryptionDESThree, + "gcmaes128": IkeEncryptionGCMAESOneTwoEight, + "gcmaes256": IkeEncryptionGCMAESTwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IkeEncryption(input) + return &out, nil +} + +type IkeIntegrity string + +const ( + IkeIntegrityGCMAESOneTwoEight IkeIntegrity = "GCMAES128" + IkeIntegrityGCMAESTwoFiveSix IkeIntegrity = "GCMAES256" + IkeIntegrityMDFive IkeIntegrity = "MD5" + IkeIntegritySHAOne IkeIntegrity = "SHA1" + IkeIntegritySHAThreeEightFour IkeIntegrity = "SHA384" + IkeIntegritySHATwoFiveSix IkeIntegrity = "SHA256" +) + +func PossibleValuesForIkeIntegrity() []string { + return []string{ + string(IkeIntegrityGCMAESOneTwoEight), + string(IkeIntegrityGCMAESTwoFiveSix), + string(IkeIntegrityMDFive), + string(IkeIntegritySHAOne), + string(IkeIntegritySHAThreeEightFour), + string(IkeIntegritySHATwoFiveSix), + } +} + +func (s *IkeIntegrity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIkeIntegrity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIkeIntegrity(input string) (*IkeIntegrity, error) { + vals := map[string]IkeIntegrity{ + "gcmaes128": IkeIntegrityGCMAESOneTwoEight, + "gcmaes256": IkeIntegrityGCMAESTwoFiveSix, + "md5": IkeIntegrityMDFive, + "sha1": IkeIntegritySHAOne, + "sha384": IkeIntegritySHAThreeEightFour, + "sha256": IkeIntegritySHATwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IkeIntegrity(input) + return &out, nil +} + +type PfsGroup string + +const ( + PfsGroupECPThreeEightFour PfsGroup = "ECP384" + PfsGroupECPTwoFiveSix PfsGroup = "ECP256" + PfsGroupNone PfsGroup = "None" + PfsGroupPFSMM PfsGroup = "PFSMM" + PfsGroupPFSOne PfsGroup = "PFS1" + PfsGroupPFSOneFour PfsGroup = "PFS14" + PfsGroupPFSTwo PfsGroup = "PFS2" + PfsGroupPFSTwoFour PfsGroup = "PFS24" + PfsGroupPFSTwoZeroFourEight PfsGroup = "PFS2048" +) + +func PossibleValuesForPfsGroup() []string { + return []string{ + string(PfsGroupECPThreeEightFour), + string(PfsGroupECPTwoFiveSix), + string(PfsGroupNone), + string(PfsGroupPFSMM), + string(PfsGroupPFSOne), + string(PfsGroupPFSOneFour), + string(PfsGroupPFSTwo), + string(PfsGroupPFSTwoFour), + string(PfsGroupPFSTwoZeroFourEight), + } +} + +func (s *PfsGroup) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePfsGroup(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePfsGroup(input string) (*PfsGroup, error) { + vals := map[string]PfsGroup{ + "ecp384": PfsGroupECPThreeEightFour, + "ecp256": PfsGroupECPTwoFiveSix, + "none": PfsGroupNone, + "pfsmm": PfsGroupPFSMM, + "pfs1": PfsGroupPFSOne, + "pfs14": PfsGroupPFSOneFour, + "pfs2": PfsGroupPFSTwo, + "pfs24": PfsGroupPFSTwoFour, + "pfs2048": PfsGroupPFSTwoZeroFourEight, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PfsGroup(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type ResiliencyModel string + +const ( + ResiliencyModelMultiHomed ResiliencyModel = "MultiHomed" + ResiliencyModelSingleHomed ResiliencyModel = "SingleHomed" +) + +func PossibleValuesForResiliencyModel() []string { + return []string{ + string(ResiliencyModelMultiHomed), + string(ResiliencyModelSingleHomed), + } +} + +func (s *ResiliencyModel) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseResiliencyModel(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseResiliencyModel(input string) (*ResiliencyModel, error) { + vals := map[string]ResiliencyModel{ + "multihomed": ResiliencyModelMultiHomed, + "singlehomed": ResiliencyModelSingleHomed, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ResiliencyModel(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionMode string + +const ( + VirtualNetworkGatewayConnectionModeDefault VirtualNetworkGatewayConnectionMode = "Default" + VirtualNetworkGatewayConnectionModeInitiatorOnly VirtualNetworkGatewayConnectionMode = "InitiatorOnly" + VirtualNetworkGatewayConnectionModeResponderOnly VirtualNetworkGatewayConnectionMode = "ResponderOnly" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionMode() []string { + return []string{ + string(VirtualNetworkGatewayConnectionModeDefault), + string(VirtualNetworkGatewayConnectionModeInitiatorOnly), + string(VirtualNetworkGatewayConnectionModeResponderOnly), + } +} + +func (s *VirtualNetworkGatewayConnectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionMode(input string) (*VirtualNetworkGatewayConnectionMode, error) { + vals := map[string]VirtualNetworkGatewayConnectionMode{ + "default": VirtualNetworkGatewayConnectionModeDefault, + "initiatoronly": VirtualNetworkGatewayConnectionModeInitiatorOnly, + "responderonly": VirtualNetworkGatewayConnectionModeResponderOnly, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionMode(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionProtocol string + +const ( + VirtualNetworkGatewayConnectionProtocolIKEvOne VirtualNetworkGatewayConnectionProtocol = "IKEv1" + VirtualNetworkGatewayConnectionProtocolIKEvTwo VirtualNetworkGatewayConnectionProtocol = "IKEv2" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionProtocol() []string { + return []string{ + string(VirtualNetworkGatewayConnectionProtocolIKEvOne), + string(VirtualNetworkGatewayConnectionProtocolIKEvTwo), + } +} + +func (s *VirtualNetworkGatewayConnectionProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionProtocol(input string) (*VirtualNetworkGatewayConnectionProtocol, error) { + vals := map[string]VirtualNetworkGatewayConnectionProtocol{ + "ikev1": VirtualNetworkGatewayConnectionProtocolIKEvOne, + "ikev2": VirtualNetworkGatewayConnectionProtocolIKEvTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionProtocol(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionStatus string + +const ( + VirtualNetworkGatewayConnectionStatusConnected VirtualNetworkGatewayConnectionStatus = "Connected" + VirtualNetworkGatewayConnectionStatusConnecting VirtualNetworkGatewayConnectionStatus = "Connecting" + VirtualNetworkGatewayConnectionStatusNotConnected VirtualNetworkGatewayConnectionStatus = "NotConnected" + VirtualNetworkGatewayConnectionStatusUnknown VirtualNetworkGatewayConnectionStatus = "Unknown" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionStatus() []string { + return []string{ + string(VirtualNetworkGatewayConnectionStatusConnected), + string(VirtualNetworkGatewayConnectionStatusConnecting), + string(VirtualNetworkGatewayConnectionStatusNotConnected), + string(VirtualNetworkGatewayConnectionStatusUnknown), + } +} + +func (s *VirtualNetworkGatewayConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionStatus(input string) (*VirtualNetworkGatewayConnectionStatus, error) { + vals := map[string]VirtualNetworkGatewayConnectionStatus{ + "connected": VirtualNetworkGatewayConnectionStatusConnected, + "connecting": VirtualNetworkGatewayConnectionStatusConnecting, + "notconnected": VirtualNetworkGatewayConnectionStatusNotConnected, + "unknown": VirtualNetworkGatewayConnectionStatusUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionStatus(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionType string + +const ( + VirtualNetworkGatewayConnectionTypeExpressRoute VirtualNetworkGatewayConnectionType = "ExpressRoute" + VirtualNetworkGatewayConnectionTypeIPsec VirtualNetworkGatewayConnectionType = "IPsec" + VirtualNetworkGatewayConnectionTypeVPNClient VirtualNetworkGatewayConnectionType = "VPNClient" + VirtualNetworkGatewayConnectionTypeVnetTwoVnet VirtualNetworkGatewayConnectionType = "Vnet2Vnet" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionType() []string { + return []string{ + string(VirtualNetworkGatewayConnectionTypeExpressRoute), + string(VirtualNetworkGatewayConnectionTypeIPsec), + string(VirtualNetworkGatewayConnectionTypeVPNClient), + string(VirtualNetworkGatewayConnectionTypeVnetTwoVnet), + } +} + +func (s *VirtualNetworkGatewayConnectionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionType(input string) (*VirtualNetworkGatewayConnectionType, error) { + vals := map[string]VirtualNetworkGatewayConnectionType{ + "expressroute": VirtualNetworkGatewayConnectionTypeExpressRoute, + "ipsec": VirtualNetworkGatewayConnectionTypeIPsec, + "vpnclient": VirtualNetworkGatewayConnectionTypeVPNClient, + "vnet2vnet": VirtualNetworkGatewayConnectionTypeVnetTwoVnet, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionType(input) + return &out, nil +} + +type VirtualNetworkGatewaySkuName string + +const ( + VirtualNetworkGatewaySkuNameBasic VirtualNetworkGatewaySkuName = "Basic" + VirtualNetworkGatewaySkuNameErGwOneAZ VirtualNetworkGatewaySkuName = "ErGw1AZ" + VirtualNetworkGatewaySkuNameErGwScale VirtualNetworkGatewaySkuName = "ErGwScale" + VirtualNetworkGatewaySkuNameErGwThreeAZ VirtualNetworkGatewaySkuName = "ErGw3AZ" + VirtualNetworkGatewaySkuNameErGwTwoAZ VirtualNetworkGatewaySkuName = "ErGw2AZ" + VirtualNetworkGatewaySkuNameHighPerformance VirtualNetworkGatewaySkuName = "HighPerformance" + VirtualNetworkGatewaySkuNameStandard VirtualNetworkGatewaySkuName = "Standard" + VirtualNetworkGatewaySkuNameUltraPerformance VirtualNetworkGatewaySkuName = "UltraPerformance" + VirtualNetworkGatewaySkuNameVpnGwFive VirtualNetworkGatewaySkuName = "VpnGw5" + VirtualNetworkGatewaySkuNameVpnGwFiveAZ VirtualNetworkGatewaySkuName = "VpnGw5AZ" + VirtualNetworkGatewaySkuNameVpnGwFour VirtualNetworkGatewaySkuName = "VpnGw4" + VirtualNetworkGatewaySkuNameVpnGwFourAZ VirtualNetworkGatewaySkuName = "VpnGw4AZ" + VirtualNetworkGatewaySkuNameVpnGwOne VirtualNetworkGatewaySkuName = "VpnGw1" + VirtualNetworkGatewaySkuNameVpnGwOneAZ VirtualNetworkGatewaySkuName = "VpnGw1AZ" + VirtualNetworkGatewaySkuNameVpnGwThree VirtualNetworkGatewaySkuName = "VpnGw3" + VirtualNetworkGatewaySkuNameVpnGwThreeAZ VirtualNetworkGatewaySkuName = "VpnGw3AZ" + VirtualNetworkGatewaySkuNameVpnGwTwo VirtualNetworkGatewaySkuName = "VpnGw2" + VirtualNetworkGatewaySkuNameVpnGwTwoAZ VirtualNetworkGatewaySkuName = "VpnGw2AZ" +) + +func PossibleValuesForVirtualNetworkGatewaySkuName() []string { + return []string{ + string(VirtualNetworkGatewaySkuNameBasic), + string(VirtualNetworkGatewaySkuNameErGwOneAZ), + string(VirtualNetworkGatewaySkuNameErGwScale), + string(VirtualNetworkGatewaySkuNameErGwThreeAZ), + string(VirtualNetworkGatewaySkuNameErGwTwoAZ), + string(VirtualNetworkGatewaySkuNameHighPerformance), + string(VirtualNetworkGatewaySkuNameStandard), + string(VirtualNetworkGatewaySkuNameUltraPerformance), + string(VirtualNetworkGatewaySkuNameVpnGwFive), + string(VirtualNetworkGatewaySkuNameVpnGwFiveAZ), + string(VirtualNetworkGatewaySkuNameVpnGwFour), + string(VirtualNetworkGatewaySkuNameVpnGwFourAZ), + string(VirtualNetworkGatewaySkuNameVpnGwOne), + string(VirtualNetworkGatewaySkuNameVpnGwOneAZ), + string(VirtualNetworkGatewaySkuNameVpnGwThree), + string(VirtualNetworkGatewaySkuNameVpnGwThreeAZ), + string(VirtualNetworkGatewaySkuNameVpnGwTwo), + string(VirtualNetworkGatewaySkuNameVpnGwTwoAZ), + } +} + +func (s *VirtualNetworkGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewaySkuName(input string) (*VirtualNetworkGatewaySkuName, error) { + vals := map[string]VirtualNetworkGatewaySkuName{ + "basic": VirtualNetworkGatewaySkuNameBasic, + "ergw1az": VirtualNetworkGatewaySkuNameErGwOneAZ, + "ergwscale": VirtualNetworkGatewaySkuNameErGwScale, + "ergw3az": VirtualNetworkGatewaySkuNameErGwThreeAZ, + "ergw2az": VirtualNetworkGatewaySkuNameErGwTwoAZ, + "highperformance": VirtualNetworkGatewaySkuNameHighPerformance, + "standard": VirtualNetworkGatewaySkuNameStandard, + "ultraperformance": VirtualNetworkGatewaySkuNameUltraPerformance, + "vpngw5": VirtualNetworkGatewaySkuNameVpnGwFive, + "vpngw5az": VirtualNetworkGatewaySkuNameVpnGwFiveAZ, + "vpngw4": VirtualNetworkGatewaySkuNameVpnGwFour, + "vpngw4az": VirtualNetworkGatewaySkuNameVpnGwFourAZ, + "vpngw1": VirtualNetworkGatewaySkuNameVpnGwOne, + "vpngw1az": VirtualNetworkGatewaySkuNameVpnGwOneAZ, + "vpngw3": VirtualNetworkGatewaySkuNameVpnGwThree, + "vpngw3az": VirtualNetworkGatewaySkuNameVpnGwThreeAZ, + "vpngw2": VirtualNetworkGatewaySkuNameVpnGwTwo, + "vpngw2az": VirtualNetworkGatewaySkuNameVpnGwTwoAZ, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewaySkuName(input) + return &out, nil +} + +type VirtualNetworkGatewaySkuTier string + +const ( + VirtualNetworkGatewaySkuTierBasic VirtualNetworkGatewaySkuTier = "Basic" + VirtualNetworkGatewaySkuTierErGwOneAZ VirtualNetworkGatewaySkuTier = "ErGw1AZ" + VirtualNetworkGatewaySkuTierErGwScale VirtualNetworkGatewaySkuTier = "ErGwScale" + VirtualNetworkGatewaySkuTierErGwThreeAZ VirtualNetworkGatewaySkuTier = "ErGw3AZ" + VirtualNetworkGatewaySkuTierErGwTwoAZ VirtualNetworkGatewaySkuTier = "ErGw2AZ" + VirtualNetworkGatewaySkuTierHighPerformance VirtualNetworkGatewaySkuTier = "HighPerformance" + VirtualNetworkGatewaySkuTierStandard VirtualNetworkGatewaySkuTier = "Standard" + VirtualNetworkGatewaySkuTierUltraPerformance VirtualNetworkGatewaySkuTier = "UltraPerformance" + VirtualNetworkGatewaySkuTierVpnGwFive VirtualNetworkGatewaySkuTier = "VpnGw5" + VirtualNetworkGatewaySkuTierVpnGwFiveAZ VirtualNetworkGatewaySkuTier = "VpnGw5AZ" + VirtualNetworkGatewaySkuTierVpnGwFour VirtualNetworkGatewaySkuTier = "VpnGw4" + VirtualNetworkGatewaySkuTierVpnGwFourAZ VirtualNetworkGatewaySkuTier = "VpnGw4AZ" + VirtualNetworkGatewaySkuTierVpnGwOne VirtualNetworkGatewaySkuTier = "VpnGw1" + VirtualNetworkGatewaySkuTierVpnGwOneAZ VirtualNetworkGatewaySkuTier = "VpnGw1AZ" + VirtualNetworkGatewaySkuTierVpnGwThree VirtualNetworkGatewaySkuTier = "VpnGw3" + VirtualNetworkGatewaySkuTierVpnGwThreeAZ VirtualNetworkGatewaySkuTier = "VpnGw3AZ" + VirtualNetworkGatewaySkuTierVpnGwTwo VirtualNetworkGatewaySkuTier = "VpnGw2" + VirtualNetworkGatewaySkuTierVpnGwTwoAZ VirtualNetworkGatewaySkuTier = "VpnGw2AZ" +) + +func PossibleValuesForVirtualNetworkGatewaySkuTier() []string { + return []string{ + string(VirtualNetworkGatewaySkuTierBasic), + string(VirtualNetworkGatewaySkuTierErGwOneAZ), + string(VirtualNetworkGatewaySkuTierErGwScale), + string(VirtualNetworkGatewaySkuTierErGwThreeAZ), + string(VirtualNetworkGatewaySkuTierErGwTwoAZ), + string(VirtualNetworkGatewaySkuTierHighPerformance), + string(VirtualNetworkGatewaySkuTierStandard), + string(VirtualNetworkGatewaySkuTierUltraPerformance), + string(VirtualNetworkGatewaySkuTierVpnGwFive), + string(VirtualNetworkGatewaySkuTierVpnGwFiveAZ), + string(VirtualNetworkGatewaySkuTierVpnGwFour), + string(VirtualNetworkGatewaySkuTierVpnGwFourAZ), + string(VirtualNetworkGatewaySkuTierVpnGwOne), + string(VirtualNetworkGatewaySkuTierVpnGwOneAZ), + string(VirtualNetworkGatewaySkuTierVpnGwThree), + string(VirtualNetworkGatewaySkuTierVpnGwThreeAZ), + string(VirtualNetworkGatewaySkuTierVpnGwTwo), + string(VirtualNetworkGatewaySkuTierVpnGwTwoAZ), + } +} + +func (s *VirtualNetworkGatewaySkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewaySkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewaySkuTier(input string) (*VirtualNetworkGatewaySkuTier, error) { + vals := map[string]VirtualNetworkGatewaySkuTier{ + "basic": VirtualNetworkGatewaySkuTierBasic, + "ergw1az": VirtualNetworkGatewaySkuTierErGwOneAZ, + "ergwscale": VirtualNetworkGatewaySkuTierErGwScale, + "ergw3az": VirtualNetworkGatewaySkuTierErGwThreeAZ, + "ergw2az": VirtualNetworkGatewaySkuTierErGwTwoAZ, + "highperformance": VirtualNetworkGatewaySkuTierHighPerformance, + "standard": VirtualNetworkGatewaySkuTierStandard, + "ultraperformance": VirtualNetworkGatewaySkuTierUltraPerformance, + "vpngw5": VirtualNetworkGatewaySkuTierVpnGwFive, + "vpngw5az": VirtualNetworkGatewaySkuTierVpnGwFiveAZ, + "vpngw4": VirtualNetworkGatewaySkuTierVpnGwFour, + "vpngw4az": VirtualNetworkGatewaySkuTierVpnGwFourAZ, + "vpngw1": VirtualNetworkGatewaySkuTierVpnGwOne, + "vpngw1az": VirtualNetworkGatewaySkuTierVpnGwOneAZ, + "vpngw3": VirtualNetworkGatewaySkuTierVpnGwThree, + "vpngw3az": VirtualNetworkGatewaySkuTierVpnGwThreeAZ, + "vpngw2": VirtualNetworkGatewaySkuTierVpnGwTwo, + "vpngw2az": VirtualNetworkGatewaySkuTierVpnGwTwoAZ, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewaySkuTier(input) + return &out, nil +} + +type VirtualNetworkGatewayType string + +const ( + VirtualNetworkGatewayTypeExpressRoute VirtualNetworkGatewayType = "ExpressRoute" + VirtualNetworkGatewayTypeLocalGateway VirtualNetworkGatewayType = "LocalGateway" + VirtualNetworkGatewayTypeVpn VirtualNetworkGatewayType = "Vpn" +) + +func PossibleValuesForVirtualNetworkGatewayType() []string { + return []string{ + string(VirtualNetworkGatewayTypeExpressRoute), + string(VirtualNetworkGatewayTypeLocalGateway), + string(VirtualNetworkGatewayTypeVpn), + } +} + +func (s *VirtualNetworkGatewayType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayType(input string) (*VirtualNetworkGatewayType, error) { + vals := map[string]VirtualNetworkGatewayType{ + "expressroute": VirtualNetworkGatewayTypeExpressRoute, + "localgateway": VirtualNetworkGatewayTypeLocalGateway, + "vpn": VirtualNetworkGatewayTypeVpn, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayType(input) + return &out, nil +} + +type VpnAuthenticationType string + +const ( + VpnAuthenticationTypeAAD VpnAuthenticationType = "AAD" + VpnAuthenticationTypeCertificate VpnAuthenticationType = "Certificate" + VpnAuthenticationTypeRadius VpnAuthenticationType = "Radius" +) + +func PossibleValuesForVpnAuthenticationType() []string { + return []string{ + string(VpnAuthenticationTypeAAD), + string(VpnAuthenticationTypeCertificate), + string(VpnAuthenticationTypeRadius), + } +} + +func (s *VpnAuthenticationType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnAuthenticationType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnAuthenticationType(input string) (*VpnAuthenticationType, error) { + vals := map[string]VpnAuthenticationType{ + "aad": VpnAuthenticationTypeAAD, + "certificate": VpnAuthenticationTypeCertificate, + "radius": VpnAuthenticationTypeRadius, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnAuthenticationType(input) + return &out, nil +} + +type VpnClientProtocol string + +const ( + VpnClientProtocolIkeVTwo VpnClientProtocol = "IkeV2" + VpnClientProtocolOpenVPN VpnClientProtocol = "OpenVPN" + VpnClientProtocolSSTP VpnClientProtocol = "SSTP" +) + +func PossibleValuesForVpnClientProtocol() []string { + return []string{ + string(VpnClientProtocolIkeVTwo), + string(VpnClientProtocolOpenVPN), + string(VpnClientProtocolSSTP), + } +} + +func (s *VpnClientProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnClientProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnClientProtocol(input string) (*VpnClientProtocol, error) { + vals := map[string]VpnClientProtocol{ + "ikev2": VpnClientProtocolIkeVTwo, + "openvpn": VpnClientProtocolOpenVPN, + "sstp": VpnClientProtocolSSTP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnClientProtocol(input) + return &out, nil +} + +type VpnGatewayGeneration string + +const ( + VpnGatewayGenerationGenerationOne VpnGatewayGeneration = "Generation1" + VpnGatewayGenerationGenerationTwo VpnGatewayGeneration = "Generation2" + VpnGatewayGenerationNone VpnGatewayGeneration = "None" +) + +func PossibleValuesForVpnGatewayGeneration() []string { + return []string{ + string(VpnGatewayGenerationGenerationOne), + string(VpnGatewayGenerationGenerationTwo), + string(VpnGatewayGenerationNone), + } +} + +func (s *VpnGatewayGeneration) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnGatewayGeneration(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnGatewayGeneration(input string) (*VpnGatewayGeneration, error) { + vals := map[string]VpnGatewayGeneration{ + "generation1": VpnGatewayGenerationGenerationOne, + "generation2": VpnGatewayGenerationGenerationTwo, + "none": VpnGatewayGenerationNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnGatewayGeneration(input) + return &out, nil +} + +type VpnNatRuleMode string + +const ( + VpnNatRuleModeEgressSnat VpnNatRuleMode = "EgressSnat" + VpnNatRuleModeIngressSnat VpnNatRuleMode = "IngressSnat" +) + +func PossibleValuesForVpnNatRuleMode() []string { + return []string{ + string(VpnNatRuleModeEgressSnat), + string(VpnNatRuleModeIngressSnat), + } +} + +func (s *VpnNatRuleMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnNatRuleMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnNatRuleMode(input string) (*VpnNatRuleMode, error) { + vals := map[string]VpnNatRuleMode{ + "egresssnat": VpnNatRuleModeEgressSnat, + "ingresssnat": VpnNatRuleModeIngressSnat, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnNatRuleMode(input) + return &out, nil +} + +type VpnNatRuleType string + +const ( + VpnNatRuleTypeDynamic VpnNatRuleType = "Dynamic" + VpnNatRuleTypeStatic VpnNatRuleType = "Static" +) + +func PossibleValuesForVpnNatRuleType() []string { + return []string{ + string(VpnNatRuleTypeDynamic), + string(VpnNatRuleTypeStatic), + } +} + +func (s *VpnNatRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnNatRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnNatRuleType(input string) (*VpnNatRuleType, error) { + vals := map[string]VpnNatRuleType{ + "dynamic": VpnNatRuleTypeDynamic, + "static": VpnNatRuleTypeStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnNatRuleType(input) + return &out, nil +} + +type VpnPolicyMemberAttributeType string + +const ( + VpnPolicyMemberAttributeTypeAADGroupId VpnPolicyMemberAttributeType = "AADGroupId" + VpnPolicyMemberAttributeTypeCertificateGroupId VpnPolicyMemberAttributeType = "CertificateGroupId" + VpnPolicyMemberAttributeTypeRadiusAzureGroupId VpnPolicyMemberAttributeType = "RadiusAzureGroupId" +) + +func PossibleValuesForVpnPolicyMemberAttributeType() []string { + return []string{ + string(VpnPolicyMemberAttributeTypeAADGroupId), + string(VpnPolicyMemberAttributeTypeCertificateGroupId), + string(VpnPolicyMemberAttributeTypeRadiusAzureGroupId), + } +} + +func (s *VpnPolicyMemberAttributeType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnPolicyMemberAttributeType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnPolicyMemberAttributeType(input string) (*VpnPolicyMemberAttributeType, error) { + vals := map[string]VpnPolicyMemberAttributeType{ + "aadgroupid": VpnPolicyMemberAttributeTypeAADGroupId, + "certificategroupid": VpnPolicyMemberAttributeTypeCertificateGroupId, + "radiusazuregroupid": VpnPolicyMemberAttributeTypeRadiusAzureGroupId, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnPolicyMemberAttributeType(input) + return &out, nil +} + +type VpnType string + +const ( + VpnTypePolicyBased VpnType = "PolicyBased" + VpnTypeRouteBased VpnType = "RouteBased" +) + +func PossibleValuesForVpnType() []string { + return []string{ + string(VpnTypePolicyBased), + string(VpnTypeRouteBased), + } +} + +func (s *VpnType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnType(input string) (*VpnType, error) { + vals := map[string]VpnType{ + "policybased": VpnTypePolicyBased, + "routebased": VpnTypeRouteBased, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/id_connection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/id_connection.go new file mode 100644 index 000000000000..25fa92d52388 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/id_connection.go @@ -0,0 +1,130 @@ +package virtualnetworkgatewayconnections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ConnectionId{}) +} + +var _ resourceids.ResourceId = &ConnectionId{} + +// ConnectionId is a struct representing the Resource ID for a Connection +type ConnectionId struct { + SubscriptionId string + ResourceGroupName string + ConnectionName string +} + +// NewConnectionID returns a new ConnectionId struct +func NewConnectionID(subscriptionId string, resourceGroupName string, connectionName string) ConnectionId { + return ConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ConnectionName: connectionName, + } +} + +// ParseConnectionID parses 'input' into a ConnectionId +func ParseConnectionID(input string) (*ConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&ConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseConnectionIDInsensitively parses 'input' case-insensitively into a ConnectionId +// note: this method should only be used for API response data and not user input +func ParseConnectionIDInsensitively(input string) (*ConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&ConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ConnectionName, ok = input.Parsed["connectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "connectionName", input) + } + + return nil +} + +// ValidateConnectionID checks that 'input' can be parsed as a Connection ID +func ValidateConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Connection ID +func (id ConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/connections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Connection ID +func (id ConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticConnections", "connections", "connections"), + resourceids.UserSpecifiedSegment("connectionName", "connectionName"), + } +} + +// String returns a human-readable description of this Connection ID +func (id ConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Connection Name: %q", id.ConnectionName), + } + return fmt.Sprintf("Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_createorupdate.go new file mode 100644 index 000000000000..2c95ee842546 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_createorupdate.go @@ -0,0 +1,75 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetworkGatewayConnection +} + +// CreateOrUpdate ... +func (c VirtualNetworkGatewayConnectionsClient) CreateOrUpdate(ctx context.Context, id ConnectionId, input VirtualNetworkGatewayConnection) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) CreateOrUpdateThenPoll(ctx context.Context, id ConnectionId, input VirtualNetworkGatewayConnection) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_delete.go new file mode 100644 index 000000000000..4d46161ff400 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_delete.go @@ -0,0 +1,71 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c VirtualNetworkGatewayConnectionsClient) Delete(ctx context.Context, id ConnectionId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) DeleteThenPoll(ctx context.Context, id ConnectionId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_get.go new file mode 100644 index 000000000000..842bab814e9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_get.go @@ -0,0 +1,53 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetworkGatewayConnection +} + +// Get ... +func (c VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, id ConnectionId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualNetworkGatewayConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_getikesas.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_getikesas.go new file mode 100644 index 000000000000..f146120f19ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_getikesas.go @@ -0,0 +1,71 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetIkeSasOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// GetIkeSas ... +func (c VirtualNetworkGatewayConnectionsClient) GetIkeSas(ctx context.Context, id ConnectionId) (result GetIkeSasOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/getikesas", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetIkeSasThenPoll performs GetIkeSas then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) GetIkeSasThenPoll(ctx context.Context, id ConnectionId) error { + result, err := c.GetIkeSas(ctx, id) + if err != nil { + return fmt.Errorf("performing GetIkeSas: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetIkeSas: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_getsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_getsharedkey.go new file mode 100644 index 000000000000..3606b2efb656 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_getsharedkey.go @@ -0,0 +1,54 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSharedKeyOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionSharedKey +} + +// GetSharedKey ... +func (c VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Context, id ConnectionId) (result GetSharedKeyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/sharedkey", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ConnectionSharedKey + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_list.go new file mode 100644 index 000000000000..34dc525dce47 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_list.go @@ -0,0 +1,106 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualNetworkGatewayConnection +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualNetworkGatewayConnection +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/connections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualNetworkGatewayConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c VirtualNetworkGatewayConnectionsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, VirtualNetworkGatewayConnectionOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualNetworkGatewayConnectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VirtualNetworkGatewayConnectionOperationPredicate) (result ListCompleteResult, err error) { + items := make([]VirtualNetworkGatewayConnection, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_resetconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_resetconnection.go new file mode 100644 index 000000000000..7898a434030f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_resetconnection.go @@ -0,0 +1,69 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResetConnectionOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// ResetConnection ... +func (c VirtualNetworkGatewayConnectionsClient) ResetConnection(ctx context.Context, id ConnectionId) (result ResetConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/resetconnection", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ResetConnectionThenPoll performs ResetConnection then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) ResetConnectionThenPoll(ctx context.Context, id ConnectionId) error { + result, err := c.ResetConnection(ctx, id) + if err != nil { + return fmt.Errorf("performing ResetConnection: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ResetConnection: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_resetsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_resetsharedkey.go new file mode 100644 index 000000000000..37c842b0ba1b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_resetsharedkey.go @@ -0,0 +1,75 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResetSharedKeyOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionResetSharedKey +} + +// ResetSharedKey ... +func (c VirtualNetworkGatewayConnectionsClient) ResetSharedKey(ctx context.Context, id ConnectionId, input ConnectionResetSharedKey) (result ResetSharedKeyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/sharedkey/reset", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ResetSharedKeyThenPoll performs ResetSharedKey then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) ResetSharedKeyThenPoll(ctx context.Context, id ConnectionId, input ConnectionResetSharedKey) error { + result, err := c.ResetSharedKey(ctx, id, input) + if err != nil { + return fmt.Errorf("performing ResetSharedKey: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ResetSharedKey: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_setsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_setsharedkey.go new file mode 100644 index 000000000000..7cce553c9535 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_setsharedkey.go @@ -0,0 +1,75 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SetSharedKeyOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionSharedKey +} + +// SetSharedKey ... +func (c VirtualNetworkGatewayConnectionsClient) SetSharedKey(ctx context.Context, id ConnectionId, input ConnectionSharedKey) (result SetSharedKeyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/sharedkey", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// SetSharedKeyThenPoll performs SetSharedKey then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) SetSharedKeyThenPoll(ctx context.Context, id ConnectionId, input ConnectionSharedKey) error { + result, err := c.SetSharedKey(ctx, id, input) + if err != nil { + return fmt.Errorf("performing SetSharedKey: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after SetSharedKey: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_startpacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_startpacketcapture.go new file mode 100644 index 000000000000..d0bd4f6819d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_startpacketcapture.go @@ -0,0 +1,75 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartPacketCaptureOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// StartPacketCapture ... +func (c VirtualNetworkGatewayConnectionsClient) StartPacketCapture(ctx context.Context, id ConnectionId, input VpnPacketCaptureStartParameters) (result StartPacketCaptureOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/startPacketCapture", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StartPacketCaptureThenPoll performs StartPacketCapture then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) StartPacketCaptureThenPoll(ctx context.Context, id ConnectionId, input VpnPacketCaptureStartParameters) error { + result, err := c.StartPacketCapture(ctx, id, input) + if err != nil { + return fmt.Errorf("performing StartPacketCapture: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after StartPacketCapture: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_stoppacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_stoppacketcapture.go new file mode 100644 index 000000000000..8741b058a40e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_stoppacketcapture.go @@ -0,0 +1,75 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopPacketCaptureOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// StopPacketCapture ... +func (c VirtualNetworkGatewayConnectionsClient) StopPacketCapture(ctx context.Context, id ConnectionId, input VpnPacketCaptureStopParameters) (result StopPacketCaptureOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stopPacketCapture", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StopPacketCaptureThenPoll performs StopPacketCapture then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) StopPacketCaptureThenPoll(ctx context.Context, id ConnectionId, input VpnPacketCaptureStopParameters) error { + result, err := c.StopPacketCapture(ctx, id, input) + if err != nil { + return fmt.Errorf("performing StopPacketCapture: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after StopPacketCapture: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_updatetags.go new file mode 100644 index 000000000000..6a0ba8aaae88 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_updatetags.go @@ -0,0 +1,75 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetworkGatewayConnection +} + +// UpdateTags ... +func (c VirtualNetworkGatewayConnectionsClient) UpdateTags(ctx context.Context, id ConnectionId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateTagsThenPoll performs UpdateTags then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) UpdateTagsThenPoll(ctx context.Context, id ConnectionId, input TagsObject) error { + result, err := c.UpdateTags(ctx, id, input) + if err != nil { + return fmt.Errorf("performing UpdateTags: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after UpdateTags: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_addressspace.go new file mode 100644 index 000000000000..e94b18200568 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_addressspace.go @@ -0,0 +1,8 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressSpace struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_bgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_bgpsettings.go new file mode 100644 index 000000000000..e03680282e61 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_bgpsettings.go @@ -0,0 +1,11 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BgpSettings struct { + Asn *int64 `json:"asn,omitempty"` + BgpPeeringAddress *string `json:"bgpPeeringAddress,omitempty"` + BgpPeeringAddresses *[]IPConfigurationBgpPeeringAddress `json:"bgpPeeringAddresses,omitempty"` + PeerWeight *int64 `json:"peerWeight,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_connectionresetsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_connectionresetsharedkey.go new file mode 100644 index 000000000000..3e1887b9d36d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_connectionresetsharedkey.go @@ -0,0 +1,8 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionResetSharedKey struct { + KeyLength int64 `json:"keyLength"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_connectionsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_connectionsharedkey.go new file mode 100644 index 000000000000..069812d03a42 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_connectionsharedkey.go @@ -0,0 +1,9 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionSharedKey struct { + Id *string `json:"id,omitempty"` + Value string `json:"value"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_gatewaycustombgpipaddressipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_gatewaycustombgpipaddressipconfiguration.go new file mode 100644 index 000000000000..7fda76a83171 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_gatewaycustombgpipaddressipconfiguration.go @@ -0,0 +1,9 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayCustomBgpIPAddressIPConfiguration struct { + CustomBgpIPAddress string `json:"customBgpIpAddress"` + IPConfigurationId string `json:"ipConfigurationId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_ipconfigurationbgppeeringaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_ipconfigurationbgppeeringaddress.go new file mode 100644 index 000000000000..dd6001591ee4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_ipconfigurationbgppeeringaddress.go @@ -0,0 +1,11 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationBgpPeeringAddress struct { + CustomBgpIPAddresses *[]string `json:"customBgpIpAddresses,omitempty"` + DefaultBgpIPAddresses *[]string `json:"defaultBgpIpAddresses,omitempty"` + IPconfigurationId *string `json:"ipconfigurationId,omitempty"` + TunnelIPAddresses *[]string `json:"tunnelIpAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_ipsecpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_ipsecpolicy.go new file mode 100644 index 000000000000..e36e053ac756 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_ipsecpolicy.go @@ -0,0 +1,15 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPsecPolicy struct { + DhGroup DhGroup `json:"dhGroup"` + IPsecEncryption IPsecEncryption `json:"ipsecEncryption"` + IPsecIntegrity IPsecIntegrity `json:"ipsecIntegrity"` + IkeEncryption IkeEncryption `json:"ikeEncryption"` + IkeIntegrity IkeIntegrity `json:"ikeIntegrity"` + PfsGroup PfsGroup `json:"pfsGroup"` + SaDataSizeKilobytes int64 `json:"saDataSizeKilobytes"` + SaLifeTimeSeconds int64 `json:"saLifeTimeSeconds"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_localnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_localnetworkgateway.go new file mode 100644 index 000000000000..9ddafdd0d6e5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_localnetworkgateway.go @@ -0,0 +1,14 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocalNetworkGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties LocalNetworkGatewayPropertiesFormat `json:"properties"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_localnetworkgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_localnetworkgatewaypropertiesformat.go new file mode 100644 index 000000000000..bf0176c3023d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_localnetworkgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocalNetworkGatewayPropertiesFormat struct { + BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + GatewayIPAddress *string `json:"gatewayIpAddress,omitempty"` + LocalNetworkAddressSpace *AddressSpace `json:"localNetworkAddressSpace,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_radiusserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_radiusserver.go new file mode 100644 index 000000000000..ffc93e649653 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_radiusserver.go @@ -0,0 +1,10 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RadiusServer struct { + RadiusServerAddress string `json:"radiusServerAddress"` + RadiusServerScore *int64 `json:"radiusServerScore,omitempty"` + RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_subresource.go new file mode 100644 index 000000000000..25e6382622d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_subresource.go @@ -0,0 +1,8 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_tagsobject.go new file mode 100644 index 000000000000..5f1bce5d03db --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_tagsobject.go @@ -0,0 +1,8 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_trafficselectorpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_trafficselectorpolicy.go new file mode 100644 index 000000000000..7d824402850b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_trafficselectorpolicy.go @@ -0,0 +1,9 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficSelectorPolicy struct { + LocalAddressRanges []string `json:"localAddressRanges"` + RemoteAddressRanges []string `json:"remoteAddressRanges"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_tunnelconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_tunnelconnectionhealth.go new file mode 100644 index 000000000000..71722a9b5e7d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_tunnelconnectionhealth.go @@ -0,0 +1,12 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TunnelConnectionHealth struct { + ConnectionStatus *VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty"` + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` + Tunnel *string `json:"tunnel,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgateway.go new file mode 100644 index 000000000000..4fc1211e31dc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgateway.go @@ -0,0 +1,21 @@ +package virtualnetworkgatewayconnections + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGateway struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties VirtualNetworkGatewayPropertiesFormat `json:"properties"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayautoscalebounds.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayautoscalebounds.go new file mode 100644 index 000000000000..1c546e60aa68 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayautoscalebounds.go @@ -0,0 +1,9 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayAutoScaleBounds struct { + Max *int64 `json:"max,omitempty"` + Min *int64 `json:"min,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayautoscaleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayautoscaleconfiguration.go new file mode 100644 index 000000000000..5fd318f04460 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayautoscaleconfiguration.go @@ -0,0 +1,8 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayAutoScaleConfiguration struct { + Bounds *VirtualNetworkGatewayAutoScaleBounds `json:"bounds,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayconnection.go new file mode 100644 index 000000000000..05a6ea7eb900 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayconnection.go @@ -0,0 +1,14 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties VirtualNetworkGatewayConnectionPropertiesFormat `json:"properties"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayconnectionpropertiesformat.go new file mode 100644 index 000000000000..ef9af43f2078 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayconnectionpropertiesformat.go @@ -0,0 +1,34 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayConnectionPropertiesFormat struct { + AuthorizationKey *string `json:"authorizationKey,omitempty"` + ConnectionMode *VirtualNetworkGatewayConnectionMode `json:"connectionMode,omitempty"` + ConnectionProtocol *VirtualNetworkGatewayConnectionProtocol `json:"connectionProtocol,omitempty"` + ConnectionStatus *VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty"` + ConnectionType VirtualNetworkGatewayConnectionType `json:"connectionType"` + DpdTimeoutSeconds *int64 `json:"dpdTimeoutSeconds,omitempty"` + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + EgressNatRules *[]SubResource `json:"egressNatRules,omitempty"` + EnableBgp *bool `json:"enableBgp,omitempty"` + EnablePrivateLinkFastPath *bool `json:"enablePrivateLinkFastPath,omitempty"` + ExpressRouteGatewayBypass *bool `json:"expressRouteGatewayBypass,omitempty"` + GatewayCustomBgpIPAddresses *[]GatewayCustomBgpIPAddressIPConfiguration `json:"gatewayCustomBgpIpAddresses,omitempty"` + IPsecPolicies *[]IPsecPolicy `json:"ipsecPolicies,omitempty"` + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + IngressNatRules *[]SubResource `json:"ingressNatRules,omitempty"` + LocalNetworkGateway2 *LocalNetworkGateway `json:"localNetworkGateway2,omitempty"` + Peer *SubResource `json:"peer,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + RoutingWeight *int64 `json:"routingWeight,omitempty"` + SharedKey *string `json:"sharedKey,omitempty"` + TrafficSelectorPolicies *[]TrafficSelectorPolicy `json:"trafficSelectorPolicies,omitempty"` + TunnelConnectionStatus *[]TunnelConnectionHealth `json:"tunnelConnectionStatus,omitempty"` + UseLocalAzureIPAddress *bool `json:"useLocalAzureIpAddress,omitempty"` + UsePolicyBasedTrafficSelectors *bool `json:"usePolicyBasedTrafficSelectors,omitempty"` + VirtualNetworkGateway1 VirtualNetworkGateway `json:"virtualNetworkGateway1"` + VirtualNetworkGateway2 *VirtualNetworkGateway `json:"virtualNetworkGateway2,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayipconfiguration.go new file mode 100644 index 000000000000..30467eb2ed13 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayipconfiguration.go @@ -0,0 +1,11 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..863c37692960 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayIPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaynatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaynatrule.go new file mode 100644 index 000000000000..ff6c91b0d664 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaynatrule.go @@ -0,0 +1,12 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkGatewayNatRuleProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaynatruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaynatruleproperties.go new file mode 100644 index 000000000000..75185bb4a84e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaynatruleproperties.go @@ -0,0 +1,13 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayNatRuleProperties struct { + ExternalMappings *[]VpnNatRuleMapping `json:"externalMappings,omitempty"` + IPConfigurationId *string `json:"ipConfigurationId,omitempty"` + InternalMappings *[]VpnNatRuleMapping `json:"internalMappings,omitempty"` + Mode *VpnNatRuleMode `json:"mode,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Type *VpnNatRuleType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroup.go new file mode 100644 index 000000000000..cd507b1d5330 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroup.go @@ -0,0 +1,11 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayPolicyGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkGatewayPolicyGroupProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroupmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroupmember.go new file mode 100644 index 000000000000..632e3bda52fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroupmember.go @@ -0,0 +1,10 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayPolicyGroupMember struct { + AttributeType *VpnPolicyMemberAttributeType `json:"attributeType,omitempty"` + AttributeValue *string `json:"attributeValue,omitempty"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroupproperties.go new file mode 100644 index 000000000000..6b20992105ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroupproperties.go @@ -0,0 +1,12 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayPolicyGroupProperties struct { + IsDefault bool `json:"isDefault"` + PolicyMembers []VirtualNetworkGatewayPolicyGroupMember `json:"policyMembers"` + Priority int64 `json:"priority"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VngClientConnectionConfigurations *[]SubResource `json:"vngClientConnectionConfigurations,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypropertiesformat.go new file mode 100644 index 000000000000..12e2b05bcd97 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypropertiesformat.go @@ -0,0 +1,33 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayPropertiesFormat struct { + ActiveActive *bool `json:"activeActive,omitempty"` + AdminState *AdminState `json:"adminState,omitempty"` + AllowRemoteVnetTraffic *bool `json:"allowRemoteVnetTraffic,omitempty"` + AllowVirtualWanTraffic *bool `json:"allowVirtualWanTraffic,omitempty"` + AutoScaleConfiguration *VirtualNetworkGatewayAutoScaleConfiguration `json:"autoScaleConfiguration,omitempty"` + BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` + CustomRoutes *AddressSpace `json:"customRoutes,omitempty"` + DisableIPSecReplayProtection *bool `json:"disableIPSecReplayProtection,omitempty"` + EnableBgp *bool `json:"enableBgp,omitempty"` + EnableBgpRouteTranslationForNat *bool `json:"enableBgpRouteTranslationForNat,omitempty"` + EnableDnsForwarding *bool `json:"enableDnsForwarding,omitempty"` + EnablePrivateIPAddress *bool `json:"enablePrivateIpAddress,omitempty"` + GatewayDefaultSite *SubResource `json:"gatewayDefaultSite,omitempty"` + GatewayType *VirtualNetworkGatewayType `json:"gatewayType,omitempty"` + IPConfigurations *[]VirtualNetworkGatewayIPConfiguration `json:"ipConfigurations,omitempty"` + InboundDnsForwardingEndpoint *string `json:"inboundDnsForwardingEndpoint,omitempty"` + NatRules *[]VirtualNetworkGatewayNatRule `json:"natRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResiliencyModel *ResiliencyModel `json:"resiliencyModel,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Sku *VirtualNetworkGatewaySku `json:"sku,omitempty"` + VNetExtendedLocationResourceId *string `json:"vNetExtendedLocationResourceId,omitempty"` + VirtualNetworkGatewayPolicyGroups *[]VirtualNetworkGatewayPolicyGroup `json:"virtualNetworkGatewayPolicyGroups,omitempty"` + VpnClientConfiguration *VpnClientConfiguration `json:"vpnClientConfiguration,omitempty"` + VpnGatewayGeneration *VpnGatewayGeneration `json:"vpnGatewayGeneration,omitempty"` + VpnType *VpnType `json:"vpnType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaysku.go new file mode 100644 index 000000000000..301f66896ac8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaysku.go @@ -0,0 +1,10 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewaySku struct { + Capacity *int64 `json:"capacity,omitempty"` + Name *VirtualNetworkGatewaySkuName `json:"name,omitempty"` + Tier *VirtualNetworkGatewaySkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vngclientconnectionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vngclientconnectionconfiguration.go new file mode 100644 index 000000000000..744d5505a177 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vngclientconnectionconfiguration.go @@ -0,0 +1,11 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VngClientConnectionConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VngClientConnectionConfigurationProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vngclientconnectionconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vngclientconnectionconfigurationproperties.go new file mode 100644 index 000000000000..531c18a0419f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vngclientconnectionconfigurationproperties.go @@ -0,0 +1,10 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VngClientConnectionConfigurationProperties struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkGatewayPolicyGroups []SubResource `json:"virtualNetworkGatewayPolicyGroups"` + VpnClientAddressPool AddressSpace `json:"vpnClientAddressPool"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientconfiguration.go new file mode 100644 index 000000000000..f7da3943c5a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientconfiguration.go @@ -0,0 +1,20 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientConfiguration struct { + AadAudience *string `json:"aadAudience,omitempty"` + AadIssuer *string `json:"aadIssuer,omitempty"` + AadTenant *string `json:"aadTenant,omitempty"` + RadiusServerAddress *string `json:"radiusServerAddress,omitempty"` + RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` + RadiusServers *[]RadiusServer `json:"radiusServers,omitempty"` + VngClientConnectionConfigurations *[]VngClientConnectionConfiguration `json:"vngClientConnectionConfigurations,omitempty"` + VpnAuthenticationTypes *[]VpnAuthenticationType `json:"vpnAuthenticationTypes,omitempty"` + VpnClientAddressPool *AddressSpace `json:"vpnClientAddressPool,omitempty"` + VpnClientIPsecPolicies *[]IPsecPolicy `json:"vpnClientIpsecPolicies,omitempty"` + VpnClientProtocols *[]VpnClientProtocol `json:"vpnClientProtocols,omitempty"` + VpnClientRevokedCertificates *[]VpnClientRevokedCertificate `json:"vpnClientRevokedCertificates,omitempty"` + VpnClientRootCertificates *[]VpnClientRootCertificate `json:"vpnClientRootCertificates,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrevokedcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrevokedcertificate.go new file mode 100644 index 000000000000..7f83a9053a4c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrevokedcertificate.go @@ -0,0 +1,11 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientRevokedCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnClientRevokedCertificatePropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrevokedcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrevokedcertificatepropertiesformat.go new file mode 100644 index 000000000000..0155228d4d1e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrevokedcertificatepropertiesformat.go @@ -0,0 +1,9 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientRevokedCertificatePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Thumbprint *string `json:"thumbprint,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrootcertificate.go new file mode 100644 index 000000000000..6eb8d073f4fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrootcertificate.go @@ -0,0 +1,11 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientRootCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties VpnClientRootCertificatePropertiesFormat `json:"properties"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrootcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrootcertificatepropertiesformat.go new file mode 100644 index 000000000000..f5048e1ed786 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrootcertificatepropertiesformat.go @@ -0,0 +1,9 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientRootCertificatePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicCertData string `json:"publicCertData"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnnatrulemapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnnatrulemapping.go new file mode 100644 index 000000000000..394cabc619d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnnatrulemapping.go @@ -0,0 +1,9 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnNatRuleMapping struct { + AddressSpace *string `json:"addressSpace,omitempty"` + PortRange *string `json:"portRange,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnpacketcapturestartparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnpacketcapturestartparameters.go new file mode 100644 index 000000000000..52273329f1d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnpacketcapturestartparameters.go @@ -0,0 +1,8 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnPacketCaptureStartParameters struct { + FilterData *string `json:"filterData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnpacketcapturestopparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnpacketcapturestopparameters.go new file mode 100644 index 000000000000..34b830870000 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnpacketcapturestopparameters.go @@ -0,0 +1,8 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnPacketCaptureStopParameters struct { + SasURL *string `json:"sasUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/predicates.go new file mode 100644 index 000000000000..c1fe558dd663 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/predicates.go @@ -0,0 +1,37 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayConnectionOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p VirtualNetworkGatewayConnectionOperationPredicate) Matches(input VirtualNetworkGatewayConnection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/version.go new file mode 100644 index 000000000000..317144dd638b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/version.go @@ -0,0 +1,10 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/virtualnetworkgatewayconnections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/README.md new file mode 100644 index 000000000000..9397f2c4e207 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/README.md @@ -0,0 +1,414 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways` Documentation + +The `virtualnetworkgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways" +``` + + +### Client Initialization + +```go +client := virtualnetworkgateways.NewVirtualNetworkGatewaysClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +payload := virtualnetworkgateways.VirtualNetworkGateway{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.Delete` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.DisconnectVirtualNetworkGatewayVpnConnections` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +payload := virtualnetworkgateways.P2SVpnConnectionRequest{ + // ... +} + + +if err := client.DisconnectVirtualNetworkGatewayVpnConnectionsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.GenerateVpnProfile` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +payload := virtualnetworkgateways.VpnClientParameters{ + // ... +} + + +if err := client.GenerateVpnProfileThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.Generatevpnclientpackage` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +payload := virtualnetworkgateways.VpnClientParameters{ + // ... +} + + +if err := client.GeneratevpnclientpackageThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.Get` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.GetAdvertisedRoutes` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.GetAdvertisedRoutesThenPoll(ctx, id, virtualnetworkgateways.DefaultGetAdvertisedRoutesOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.GetBgpPeerStatus` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.GetBgpPeerStatusThenPoll(ctx, id, virtualnetworkgateways.DefaultGetBgpPeerStatusOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.GetLearnedRoutes` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.GetLearnedRoutesThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.GetVpnProfilePackageURL` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.GetVpnProfilePackageURLThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.GetVpnclientConnectionHealth` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.GetVpnclientConnectionHealthThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.GetVpnclientIPsecParameters` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.GetVpnclientIPsecParametersThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.ListConnections` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +// alternatively `client.ListConnections(ctx, id)` can be used to do batched pagination +items, err := client.ListConnectionsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.Reset` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.ResetThenPoll(ctx, id, virtualnetworkgateways.DefaultResetOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.ResetVpnClientSharedKey` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.ResetVpnClientSharedKeyThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.SetVpnclientIPsecParameters` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +payload := virtualnetworkgateways.VpnClientIPsecParameters{ + // ... +} + + +if err := client.SetVpnclientIPsecParametersThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.StartPacketCapture` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +payload := virtualnetworkgateways.VpnPacketCaptureStartParameters{ + // ... +} + + +if err := client.StartPacketCaptureThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.StopPacketCapture` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +payload := virtualnetworkgateways.VpnPacketCaptureStopParameters{ + // ... +} + + +if err := client.StopPacketCaptureThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.SupportedVpnDevices` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +read, err := client.SupportedVpnDevices(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.UpdateTags` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +payload := virtualnetworkgateways.TagsObject{ + // ... +} + + +if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.VirtualNetworkGatewayNatRulesCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName", "natRuleName") + +payload := virtualnetworkgateways.VirtualNetworkGatewayNatRule{ + // ... +} + + +if err := client.VirtualNetworkGatewayNatRulesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.VirtualNetworkGatewayNatRulesDelete` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName", "natRuleName") + +if err := client.VirtualNetworkGatewayNatRulesDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.VirtualNetworkGatewayNatRulesGet` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName", "natRuleName") + +read, err := client.VirtualNetworkGatewayNatRulesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +// alternatively `client.VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway(ctx, id)` can be used to do batched pagination +items, err := client.VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.VpnDeviceConfigurationScript` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +payload := virtualnetworkgateways.VpnDeviceScriptParameters{ + // ... +} + + +read, err := client.VpnDeviceConfigurationScript(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/client.go new file mode 100644 index 000000000000..56907b3d1b47 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/client.go @@ -0,0 +1,26 @@ +package virtualnetworkgateways + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewaysClient struct { + Client *resourcemanager.Client +} + +func NewVirtualNetworkGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworkGatewaysClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworkgateways", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating VirtualNetworkGatewaysClient: %+v", err) + } + + return &VirtualNetworkGatewaysClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/constants.go new file mode 100644 index 000000000000..5f3bc70d78c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/constants.go @@ -0,0 +1,1357 @@ +package virtualnetworkgateways + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdminState string + +const ( + AdminStateDisabled AdminState = "Disabled" + AdminStateEnabled AdminState = "Enabled" +) + +func PossibleValuesForAdminState() []string { + return []string{ + string(AdminStateDisabled), + string(AdminStateEnabled), + } +} + +func (s *AdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAdminState(input string) (*AdminState, error) { + vals := map[string]AdminState{ + "disabled": AdminStateDisabled, + "enabled": AdminStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AdminState(input) + return &out, nil +} + +type AuthenticationMethod string + +const ( + AuthenticationMethodEAPMSCHAPvTwo AuthenticationMethod = "EAPMSCHAPv2" + AuthenticationMethodEAPTLS AuthenticationMethod = "EAPTLS" +) + +func PossibleValuesForAuthenticationMethod() []string { + return []string{ + string(AuthenticationMethodEAPMSCHAPvTwo), + string(AuthenticationMethodEAPTLS), + } +} + +func (s *AuthenticationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAuthenticationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAuthenticationMethod(input string) (*AuthenticationMethod, error) { + vals := map[string]AuthenticationMethod{ + "eapmschapv2": AuthenticationMethodEAPMSCHAPvTwo, + "eaptls": AuthenticationMethodEAPTLS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AuthenticationMethod(input) + return &out, nil +} + +type BgpPeerState string + +const ( + BgpPeerStateConnected BgpPeerState = "Connected" + BgpPeerStateConnecting BgpPeerState = "Connecting" + BgpPeerStateIdle BgpPeerState = "Idle" + BgpPeerStateStopped BgpPeerState = "Stopped" + BgpPeerStateUnknown BgpPeerState = "Unknown" +) + +func PossibleValuesForBgpPeerState() []string { + return []string{ + string(BgpPeerStateConnected), + string(BgpPeerStateConnecting), + string(BgpPeerStateIdle), + string(BgpPeerStateStopped), + string(BgpPeerStateUnknown), + } +} + +func (s *BgpPeerState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseBgpPeerState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseBgpPeerState(input string) (*BgpPeerState, error) { + vals := map[string]BgpPeerState{ + "connected": BgpPeerStateConnected, + "connecting": BgpPeerStateConnecting, + "idle": BgpPeerStateIdle, + "stopped": BgpPeerStateStopped, + "unknown": BgpPeerStateUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := BgpPeerState(input) + return &out, nil +} + +type DhGroup string + +const ( + DhGroupDHGroupOne DhGroup = "DHGroup1" + DhGroupDHGroupOneFour DhGroup = "DHGroup14" + DhGroupDHGroupTwo DhGroup = "DHGroup2" + DhGroupDHGroupTwoFour DhGroup = "DHGroup24" + DhGroupDHGroupTwoZeroFourEight DhGroup = "DHGroup2048" + DhGroupECPThreeEightFour DhGroup = "ECP384" + DhGroupECPTwoFiveSix DhGroup = "ECP256" + DhGroupNone DhGroup = "None" +) + +func PossibleValuesForDhGroup() []string { + return []string{ + string(DhGroupDHGroupOne), + string(DhGroupDHGroupOneFour), + string(DhGroupDHGroupTwo), + string(DhGroupDHGroupTwoFour), + string(DhGroupDHGroupTwoZeroFourEight), + string(DhGroupECPThreeEightFour), + string(DhGroupECPTwoFiveSix), + string(DhGroupNone), + } +} + +func (s *DhGroup) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDhGroup(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDhGroup(input string) (*DhGroup, error) { + vals := map[string]DhGroup{ + "dhgroup1": DhGroupDHGroupOne, + "dhgroup14": DhGroupDHGroupOneFour, + "dhgroup2": DhGroupDHGroupTwo, + "dhgroup24": DhGroupDHGroupTwoFour, + "dhgroup2048": DhGroupDHGroupTwoZeroFourEight, + "ecp384": DhGroupECPThreeEightFour, + "ecp256": DhGroupECPTwoFiveSix, + "none": DhGroupNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DhGroup(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPsecEncryption string + +const ( + IPsecEncryptionAESOneNineTwo IPsecEncryption = "AES192" + IPsecEncryptionAESOneTwoEight IPsecEncryption = "AES128" + IPsecEncryptionAESTwoFiveSix IPsecEncryption = "AES256" + IPsecEncryptionDES IPsecEncryption = "DES" + IPsecEncryptionDESThree IPsecEncryption = "DES3" + IPsecEncryptionGCMAESOneNineTwo IPsecEncryption = "GCMAES192" + IPsecEncryptionGCMAESOneTwoEight IPsecEncryption = "GCMAES128" + IPsecEncryptionGCMAESTwoFiveSix IPsecEncryption = "GCMAES256" + IPsecEncryptionNone IPsecEncryption = "None" +) + +func PossibleValuesForIPsecEncryption() []string { + return []string{ + string(IPsecEncryptionAESOneNineTwo), + string(IPsecEncryptionAESOneTwoEight), + string(IPsecEncryptionAESTwoFiveSix), + string(IPsecEncryptionDES), + string(IPsecEncryptionDESThree), + string(IPsecEncryptionGCMAESOneNineTwo), + string(IPsecEncryptionGCMAESOneTwoEight), + string(IPsecEncryptionGCMAESTwoFiveSix), + string(IPsecEncryptionNone), + } +} + +func (s *IPsecEncryption) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPsecEncryption(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPsecEncryption(input string) (*IPsecEncryption, error) { + vals := map[string]IPsecEncryption{ + "aes192": IPsecEncryptionAESOneNineTwo, + "aes128": IPsecEncryptionAESOneTwoEight, + "aes256": IPsecEncryptionAESTwoFiveSix, + "des": IPsecEncryptionDES, + "des3": IPsecEncryptionDESThree, + "gcmaes192": IPsecEncryptionGCMAESOneNineTwo, + "gcmaes128": IPsecEncryptionGCMAESOneTwoEight, + "gcmaes256": IPsecEncryptionGCMAESTwoFiveSix, + "none": IPsecEncryptionNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPsecEncryption(input) + return &out, nil +} + +type IPsecIntegrity string + +const ( + IPsecIntegrityGCMAESOneNineTwo IPsecIntegrity = "GCMAES192" + IPsecIntegrityGCMAESOneTwoEight IPsecIntegrity = "GCMAES128" + IPsecIntegrityGCMAESTwoFiveSix IPsecIntegrity = "GCMAES256" + IPsecIntegrityMDFive IPsecIntegrity = "MD5" + IPsecIntegritySHAOne IPsecIntegrity = "SHA1" + IPsecIntegritySHATwoFiveSix IPsecIntegrity = "SHA256" +) + +func PossibleValuesForIPsecIntegrity() []string { + return []string{ + string(IPsecIntegrityGCMAESOneNineTwo), + string(IPsecIntegrityGCMAESOneTwoEight), + string(IPsecIntegrityGCMAESTwoFiveSix), + string(IPsecIntegrityMDFive), + string(IPsecIntegritySHAOne), + string(IPsecIntegritySHATwoFiveSix), + } +} + +func (s *IPsecIntegrity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPsecIntegrity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPsecIntegrity(input string) (*IPsecIntegrity, error) { + vals := map[string]IPsecIntegrity{ + "gcmaes192": IPsecIntegrityGCMAESOneNineTwo, + "gcmaes128": IPsecIntegrityGCMAESOneTwoEight, + "gcmaes256": IPsecIntegrityGCMAESTwoFiveSix, + "md5": IPsecIntegrityMDFive, + "sha1": IPsecIntegritySHAOne, + "sha256": IPsecIntegritySHATwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPsecIntegrity(input) + return &out, nil +} + +type IkeEncryption string + +const ( + IkeEncryptionAESOneNineTwo IkeEncryption = "AES192" + IkeEncryptionAESOneTwoEight IkeEncryption = "AES128" + IkeEncryptionAESTwoFiveSix IkeEncryption = "AES256" + IkeEncryptionDES IkeEncryption = "DES" + IkeEncryptionDESThree IkeEncryption = "DES3" + IkeEncryptionGCMAESOneTwoEight IkeEncryption = "GCMAES128" + IkeEncryptionGCMAESTwoFiveSix IkeEncryption = "GCMAES256" +) + +func PossibleValuesForIkeEncryption() []string { + return []string{ + string(IkeEncryptionAESOneNineTwo), + string(IkeEncryptionAESOneTwoEight), + string(IkeEncryptionAESTwoFiveSix), + string(IkeEncryptionDES), + string(IkeEncryptionDESThree), + string(IkeEncryptionGCMAESOneTwoEight), + string(IkeEncryptionGCMAESTwoFiveSix), + } +} + +func (s *IkeEncryption) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIkeEncryption(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIkeEncryption(input string) (*IkeEncryption, error) { + vals := map[string]IkeEncryption{ + "aes192": IkeEncryptionAESOneNineTwo, + "aes128": IkeEncryptionAESOneTwoEight, + "aes256": IkeEncryptionAESTwoFiveSix, + "des": IkeEncryptionDES, + "des3": IkeEncryptionDESThree, + "gcmaes128": IkeEncryptionGCMAESOneTwoEight, + "gcmaes256": IkeEncryptionGCMAESTwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IkeEncryption(input) + return &out, nil +} + +type IkeIntegrity string + +const ( + IkeIntegrityGCMAESOneTwoEight IkeIntegrity = "GCMAES128" + IkeIntegrityGCMAESTwoFiveSix IkeIntegrity = "GCMAES256" + IkeIntegrityMDFive IkeIntegrity = "MD5" + IkeIntegritySHAOne IkeIntegrity = "SHA1" + IkeIntegritySHAThreeEightFour IkeIntegrity = "SHA384" + IkeIntegritySHATwoFiveSix IkeIntegrity = "SHA256" +) + +func PossibleValuesForIkeIntegrity() []string { + return []string{ + string(IkeIntegrityGCMAESOneTwoEight), + string(IkeIntegrityGCMAESTwoFiveSix), + string(IkeIntegrityMDFive), + string(IkeIntegritySHAOne), + string(IkeIntegritySHAThreeEightFour), + string(IkeIntegritySHATwoFiveSix), + } +} + +func (s *IkeIntegrity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIkeIntegrity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIkeIntegrity(input string) (*IkeIntegrity, error) { + vals := map[string]IkeIntegrity{ + "gcmaes128": IkeIntegrityGCMAESOneTwoEight, + "gcmaes256": IkeIntegrityGCMAESTwoFiveSix, + "md5": IkeIntegrityMDFive, + "sha1": IkeIntegritySHAOne, + "sha384": IkeIntegritySHAThreeEightFour, + "sha256": IkeIntegritySHATwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IkeIntegrity(input) + return &out, nil +} + +type PfsGroup string + +const ( + PfsGroupECPThreeEightFour PfsGroup = "ECP384" + PfsGroupECPTwoFiveSix PfsGroup = "ECP256" + PfsGroupNone PfsGroup = "None" + PfsGroupPFSMM PfsGroup = "PFSMM" + PfsGroupPFSOne PfsGroup = "PFS1" + PfsGroupPFSOneFour PfsGroup = "PFS14" + PfsGroupPFSTwo PfsGroup = "PFS2" + PfsGroupPFSTwoFour PfsGroup = "PFS24" + PfsGroupPFSTwoZeroFourEight PfsGroup = "PFS2048" +) + +func PossibleValuesForPfsGroup() []string { + return []string{ + string(PfsGroupECPThreeEightFour), + string(PfsGroupECPTwoFiveSix), + string(PfsGroupNone), + string(PfsGroupPFSMM), + string(PfsGroupPFSOne), + string(PfsGroupPFSOneFour), + string(PfsGroupPFSTwo), + string(PfsGroupPFSTwoFour), + string(PfsGroupPFSTwoZeroFourEight), + } +} + +func (s *PfsGroup) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePfsGroup(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePfsGroup(input string) (*PfsGroup, error) { + vals := map[string]PfsGroup{ + "ecp384": PfsGroupECPThreeEightFour, + "ecp256": PfsGroupECPTwoFiveSix, + "none": PfsGroupNone, + "pfsmm": PfsGroupPFSMM, + "pfs1": PfsGroupPFSOne, + "pfs14": PfsGroupPFSOneFour, + "pfs2": PfsGroupPFSTwo, + "pfs24": PfsGroupPFSTwoFour, + "pfs2048": PfsGroupPFSTwoZeroFourEight, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PfsGroup(input) + return &out, nil +} + +type ProcessorArchitecture string + +const ( + ProcessorArchitectureAmdSixFour ProcessorArchitecture = "Amd64" + ProcessorArchitectureXEightSix ProcessorArchitecture = "X86" +) + +func PossibleValuesForProcessorArchitecture() []string { + return []string{ + string(ProcessorArchitectureAmdSixFour), + string(ProcessorArchitectureXEightSix), + } +} + +func (s *ProcessorArchitecture) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProcessorArchitecture(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProcessorArchitecture(input string) (*ProcessorArchitecture, error) { + vals := map[string]ProcessorArchitecture{ + "amd64": ProcessorArchitectureAmdSixFour, + "x86": ProcessorArchitectureXEightSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProcessorArchitecture(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type ResiliencyModel string + +const ( + ResiliencyModelMultiHomed ResiliencyModel = "MultiHomed" + ResiliencyModelSingleHomed ResiliencyModel = "SingleHomed" +) + +func PossibleValuesForResiliencyModel() []string { + return []string{ + string(ResiliencyModelMultiHomed), + string(ResiliencyModelSingleHomed), + } +} + +func (s *ResiliencyModel) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseResiliencyModel(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseResiliencyModel(input string) (*ResiliencyModel, error) { + vals := map[string]ResiliencyModel{ + "multihomed": ResiliencyModelMultiHomed, + "singlehomed": ResiliencyModelSingleHomed, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ResiliencyModel(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionMode string + +const ( + VirtualNetworkGatewayConnectionModeDefault VirtualNetworkGatewayConnectionMode = "Default" + VirtualNetworkGatewayConnectionModeInitiatorOnly VirtualNetworkGatewayConnectionMode = "InitiatorOnly" + VirtualNetworkGatewayConnectionModeResponderOnly VirtualNetworkGatewayConnectionMode = "ResponderOnly" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionMode() []string { + return []string{ + string(VirtualNetworkGatewayConnectionModeDefault), + string(VirtualNetworkGatewayConnectionModeInitiatorOnly), + string(VirtualNetworkGatewayConnectionModeResponderOnly), + } +} + +func (s *VirtualNetworkGatewayConnectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionMode(input string) (*VirtualNetworkGatewayConnectionMode, error) { + vals := map[string]VirtualNetworkGatewayConnectionMode{ + "default": VirtualNetworkGatewayConnectionModeDefault, + "initiatoronly": VirtualNetworkGatewayConnectionModeInitiatorOnly, + "responderonly": VirtualNetworkGatewayConnectionModeResponderOnly, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionMode(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionProtocol string + +const ( + VirtualNetworkGatewayConnectionProtocolIKEvOne VirtualNetworkGatewayConnectionProtocol = "IKEv1" + VirtualNetworkGatewayConnectionProtocolIKEvTwo VirtualNetworkGatewayConnectionProtocol = "IKEv2" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionProtocol() []string { + return []string{ + string(VirtualNetworkGatewayConnectionProtocolIKEvOne), + string(VirtualNetworkGatewayConnectionProtocolIKEvTwo), + } +} + +func (s *VirtualNetworkGatewayConnectionProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionProtocol(input string) (*VirtualNetworkGatewayConnectionProtocol, error) { + vals := map[string]VirtualNetworkGatewayConnectionProtocol{ + "ikev1": VirtualNetworkGatewayConnectionProtocolIKEvOne, + "ikev2": VirtualNetworkGatewayConnectionProtocolIKEvTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionProtocol(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionStatus string + +const ( + VirtualNetworkGatewayConnectionStatusConnected VirtualNetworkGatewayConnectionStatus = "Connected" + VirtualNetworkGatewayConnectionStatusConnecting VirtualNetworkGatewayConnectionStatus = "Connecting" + VirtualNetworkGatewayConnectionStatusNotConnected VirtualNetworkGatewayConnectionStatus = "NotConnected" + VirtualNetworkGatewayConnectionStatusUnknown VirtualNetworkGatewayConnectionStatus = "Unknown" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionStatus() []string { + return []string{ + string(VirtualNetworkGatewayConnectionStatusConnected), + string(VirtualNetworkGatewayConnectionStatusConnecting), + string(VirtualNetworkGatewayConnectionStatusNotConnected), + string(VirtualNetworkGatewayConnectionStatusUnknown), + } +} + +func (s *VirtualNetworkGatewayConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionStatus(input string) (*VirtualNetworkGatewayConnectionStatus, error) { + vals := map[string]VirtualNetworkGatewayConnectionStatus{ + "connected": VirtualNetworkGatewayConnectionStatusConnected, + "connecting": VirtualNetworkGatewayConnectionStatusConnecting, + "notconnected": VirtualNetworkGatewayConnectionStatusNotConnected, + "unknown": VirtualNetworkGatewayConnectionStatusUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionStatus(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionType string + +const ( + VirtualNetworkGatewayConnectionTypeExpressRoute VirtualNetworkGatewayConnectionType = "ExpressRoute" + VirtualNetworkGatewayConnectionTypeIPsec VirtualNetworkGatewayConnectionType = "IPsec" + VirtualNetworkGatewayConnectionTypeVPNClient VirtualNetworkGatewayConnectionType = "VPNClient" + VirtualNetworkGatewayConnectionTypeVnetTwoVnet VirtualNetworkGatewayConnectionType = "Vnet2Vnet" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionType() []string { + return []string{ + string(VirtualNetworkGatewayConnectionTypeExpressRoute), + string(VirtualNetworkGatewayConnectionTypeIPsec), + string(VirtualNetworkGatewayConnectionTypeVPNClient), + string(VirtualNetworkGatewayConnectionTypeVnetTwoVnet), + } +} + +func (s *VirtualNetworkGatewayConnectionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionType(input string) (*VirtualNetworkGatewayConnectionType, error) { + vals := map[string]VirtualNetworkGatewayConnectionType{ + "expressroute": VirtualNetworkGatewayConnectionTypeExpressRoute, + "ipsec": VirtualNetworkGatewayConnectionTypeIPsec, + "vpnclient": VirtualNetworkGatewayConnectionTypeVPNClient, + "vnet2vnet": VirtualNetworkGatewayConnectionTypeVnetTwoVnet, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionType(input) + return &out, nil +} + +type VirtualNetworkGatewaySkuName string + +const ( + VirtualNetworkGatewaySkuNameBasic VirtualNetworkGatewaySkuName = "Basic" + VirtualNetworkGatewaySkuNameErGwOneAZ VirtualNetworkGatewaySkuName = "ErGw1AZ" + VirtualNetworkGatewaySkuNameErGwScale VirtualNetworkGatewaySkuName = "ErGwScale" + VirtualNetworkGatewaySkuNameErGwThreeAZ VirtualNetworkGatewaySkuName = "ErGw3AZ" + VirtualNetworkGatewaySkuNameErGwTwoAZ VirtualNetworkGatewaySkuName = "ErGw2AZ" + VirtualNetworkGatewaySkuNameHighPerformance VirtualNetworkGatewaySkuName = "HighPerformance" + VirtualNetworkGatewaySkuNameStandard VirtualNetworkGatewaySkuName = "Standard" + VirtualNetworkGatewaySkuNameUltraPerformance VirtualNetworkGatewaySkuName = "UltraPerformance" + VirtualNetworkGatewaySkuNameVpnGwFive VirtualNetworkGatewaySkuName = "VpnGw5" + VirtualNetworkGatewaySkuNameVpnGwFiveAZ VirtualNetworkGatewaySkuName = "VpnGw5AZ" + VirtualNetworkGatewaySkuNameVpnGwFour VirtualNetworkGatewaySkuName = "VpnGw4" + VirtualNetworkGatewaySkuNameVpnGwFourAZ VirtualNetworkGatewaySkuName = "VpnGw4AZ" + VirtualNetworkGatewaySkuNameVpnGwOne VirtualNetworkGatewaySkuName = "VpnGw1" + VirtualNetworkGatewaySkuNameVpnGwOneAZ VirtualNetworkGatewaySkuName = "VpnGw1AZ" + VirtualNetworkGatewaySkuNameVpnGwThree VirtualNetworkGatewaySkuName = "VpnGw3" + VirtualNetworkGatewaySkuNameVpnGwThreeAZ VirtualNetworkGatewaySkuName = "VpnGw3AZ" + VirtualNetworkGatewaySkuNameVpnGwTwo VirtualNetworkGatewaySkuName = "VpnGw2" + VirtualNetworkGatewaySkuNameVpnGwTwoAZ VirtualNetworkGatewaySkuName = "VpnGw2AZ" +) + +func PossibleValuesForVirtualNetworkGatewaySkuName() []string { + return []string{ + string(VirtualNetworkGatewaySkuNameBasic), + string(VirtualNetworkGatewaySkuNameErGwOneAZ), + string(VirtualNetworkGatewaySkuNameErGwScale), + string(VirtualNetworkGatewaySkuNameErGwThreeAZ), + string(VirtualNetworkGatewaySkuNameErGwTwoAZ), + string(VirtualNetworkGatewaySkuNameHighPerformance), + string(VirtualNetworkGatewaySkuNameStandard), + string(VirtualNetworkGatewaySkuNameUltraPerformance), + string(VirtualNetworkGatewaySkuNameVpnGwFive), + string(VirtualNetworkGatewaySkuNameVpnGwFiveAZ), + string(VirtualNetworkGatewaySkuNameVpnGwFour), + string(VirtualNetworkGatewaySkuNameVpnGwFourAZ), + string(VirtualNetworkGatewaySkuNameVpnGwOne), + string(VirtualNetworkGatewaySkuNameVpnGwOneAZ), + string(VirtualNetworkGatewaySkuNameVpnGwThree), + string(VirtualNetworkGatewaySkuNameVpnGwThreeAZ), + string(VirtualNetworkGatewaySkuNameVpnGwTwo), + string(VirtualNetworkGatewaySkuNameVpnGwTwoAZ), + } +} + +func (s *VirtualNetworkGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewaySkuName(input string) (*VirtualNetworkGatewaySkuName, error) { + vals := map[string]VirtualNetworkGatewaySkuName{ + "basic": VirtualNetworkGatewaySkuNameBasic, + "ergw1az": VirtualNetworkGatewaySkuNameErGwOneAZ, + "ergwscale": VirtualNetworkGatewaySkuNameErGwScale, + "ergw3az": VirtualNetworkGatewaySkuNameErGwThreeAZ, + "ergw2az": VirtualNetworkGatewaySkuNameErGwTwoAZ, + "highperformance": VirtualNetworkGatewaySkuNameHighPerformance, + "standard": VirtualNetworkGatewaySkuNameStandard, + "ultraperformance": VirtualNetworkGatewaySkuNameUltraPerformance, + "vpngw5": VirtualNetworkGatewaySkuNameVpnGwFive, + "vpngw5az": VirtualNetworkGatewaySkuNameVpnGwFiveAZ, + "vpngw4": VirtualNetworkGatewaySkuNameVpnGwFour, + "vpngw4az": VirtualNetworkGatewaySkuNameVpnGwFourAZ, + "vpngw1": VirtualNetworkGatewaySkuNameVpnGwOne, + "vpngw1az": VirtualNetworkGatewaySkuNameVpnGwOneAZ, + "vpngw3": VirtualNetworkGatewaySkuNameVpnGwThree, + "vpngw3az": VirtualNetworkGatewaySkuNameVpnGwThreeAZ, + "vpngw2": VirtualNetworkGatewaySkuNameVpnGwTwo, + "vpngw2az": VirtualNetworkGatewaySkuNameVpnGwTwoAZ, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewaySkuName(input) + return &out, nil +} + +type VirtualNetworkGatewaySkuTier string + +const ( + VirtualNetworkGatewaySkuTierBasic VirtualNetworkGatewaySkuTier = "Basic" + VirtualNetworkGatewaySkuTierErGwOneAZ VirtualNetworkGatewaySkuTier = "ErGw1AZ" + VirtualNetworkGatewaySkuTierErGwScale VirtualNetworkGatewaySkuTier = "ErGwScale" + VirtualNetworkGatewaySkuTierErGwThreeAZ VirtualNetworkGatewaySkuTier = "ErGw3AZ" + VirtualNetworkGatewaySkuTierErGwTwoAZ VirtualNetworkGatewaySkuTier = "ErGw2AZ" + VirtualNetworkGatewaySkuTierHighPerformance VirtualNetworkGatewaySkuTier = "HighPerformance" + VirtualNetworkGatewaySkuTierStandard VirtualNetworkGatewaySkuTier = "Standard" + VirtualNetworkGatewaySkuTierUltraPerformance VirtualNetworkGatewaySkuTier = "UltraPerformance" + VirtualNetworkGatewaySkuTierVpnGwFive VirtualNetworkGatewaySkuTier = "VpnGw5" + VirtualNetworkGatewaySkuTierVpnGwFiveAZ VirtualNetworkGatewaySkuTier = "VpnGw5AZ" + VirtualNetworkGatewaySkuTierVpnGwFour VirtualNetworkGatewaySkuTier = "VpnGw4" + VirtualNetworkGatewaySkuTierVpnGwFourAZ VirtualNetworkGatewaySkuTier = "VpnGw4AZ" + VirtualNetworkGatewaySkuTierVpnGwOne VirtualNetworkGatewaySkuTier = "VpnGw1" + VirtualNetworkGatewaySkuTierVpnGwOneAZ VirtualNetworkGatewaySkuTier = "VpnGw1AZ" + VirtualNetworkGatewaySkuTierVpnGwThree VirtualNetworkGatewaySkuTier = "VpnGw3" + VirtualNetworkGatewaySkuTierVpnGwThreeAZ VirtualNetworkGatewaySkuTier = "VpnGw3AZ" + VirtualNetworkGatewaySkuTierVpnGwTwo VirtualNetworkGatewaySkuTier = "VpnGw2" + VirtualNetworkGatewaySkuTierVpnGwTwoAZ VirtualNetworkGatewaySkuTier = "VpnGw2AZ" +) + +func PossibleValuesForVirtualNetworkGatewaySkuTier() []string { + return []string{ + string(VirtualNetworkGatewaySkuTierBasic), + string(VirtualNetworkGatewaySkuTierErGwOneAZ), + string(VirtualNetworkGatewaySkuTierErGwScale), + string(VirtualNetworkGatewaySkuTierErGwThreeAZ), + string(VirtualNetworkGatewaySkuTierErGwTwoAZ), + string(VirtualNetworkGatewaySkuTierHighPerformance), + string(VirtualNetworkGatewaySkuTierStandard), + string(VirtualNetworkGatewaySkuTierUltraPerformance), + string(VirtualNetworkGatewaySkuTierVpnGwFive), + string(VirtualNetworkGatewaySkuTierVpnGwFiveAZ), + string(VirtualNetworkGatewaySkuTierVpnGwFour), + string(VirtualNetworkGatewaySkuTierVpnGwFourAZ), + string(VirtualNetworkGatewaySkuTierVpnGwOne), + string(VirtualNetworkGatewaySkuTierVpnGwOneAZ), + string(VirtualNetworkGatewaySkuTierVpnGwThree), + string(VirtualNetworkGatewaySkuTierVpnGwThreeAZ), + string(VirtualNetworkGatewaySkuTierVpnGwTwo), + string(VirtualNetworkGatewaySkuTierVpnGwTwoAZ), + } +} + +func (s *VirtualNetworkGatewaySkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewaySkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewaySkuTier(input string) (*VirtualNetworkGatewaySkuTier, error) { + vals := map[string]VirtualNetworkGatewaySkuTier{ + "basic": VirtualNetworkGatewaySkuTierBasic, + "ergw1az": VirtualNetworkGatewaySkuTierErGwOneAZ, + "ergwscale": VirtualNetworkGatewaySkuTierErGwScale, + "ergw3az": VirtualNetworkGatewaySkuTierErGwThreeAZ, + "ergw2az": VirtualNetworkGatewaySkuTierErGwTwoAZ, + "highperformance": VirtualNetworkGatewaySkuTierHighPerformance, + "standard": VirtualNetworkGatewaySkuTierStandard, + "ultraperformance": VirtualNetworkGatewaySkuTierUltraPerformance, + "vpngw5": VirtualNetworkGatewaySkuTierVpnGwFive, + "vpngw5az": VirtualNetworkGatewaySkuTierVpnGwFiveAZ, + "vpngw4": VirtualNetworkGatewaySkuTierVpnGwFour, + "vpngw4az": VirtualNetworkGatewaySkuTierVpnGwFourAZ, + "vpngw1": VirtualNetworkGatewaySkuTierVpnGwOne, + "vpngw1az": VirtualNetworkGatewaySkuTierVpnGwOneAZ, + "vpngw3": VirtualNetworkGatewaySkuTierVpnGwThree, + "vpngw3az": VirtualNetworkGatewaySkuTierVpnGwThreeAZ, + "vpngw2": VirtualNetworkGatewaySkuTierVpnGwTwo, + "vpngw2az": VirtualNetworkGatewaySkuTierVpnGwTwoAZ, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewaySkuTier(input) + return &out, nil +} + +type VirtualNetworkGatewayType string + +const ( + VirtualNetworkGatewayTypeExpressRoute VirtualNetworkGatewayType = "ExpressRoute" + VirtualNetworkGatewayTypeLocalGateway VirtualNetworkGatewayType = "LocalGateway" + VirtualNetworkGatewayTypeVpn VirtualNetworkGatewayType = "Vpn" +) + +func PossibleValuesForVirtualNetworkGatewayType() []string { + return []string{ + string(VirtualNetworkGatewayTypeExpressRoute), + string(VirtualNetworkGatewayTypeLocalGateway), + string(VirtualNetworkGatewayTypeVpn), + } +} + +func (s *VirtualNetworkGatewayType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayType(input string) (*VirtualNetworkGatewayType, error) { + vals := map[string]VirtualNetworkGatewayType{ + "expressroute": VirtualNetworkGatewayTypeExpressRoute, + "localgateway": VirtualNetworkGatewayTypeLocalGateway, + "vpn": VirtualNetworkGatewayTypeVpn, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayType(input) + return &out, nil +} + +type VpnAuthenticationType string + +const ( + VpnAuthenticationTypeAAD VpnAuthenticationType = "AAD" + VpnAuthenticationTypeCertificate VpnAuthenticationType = "Certificate" + VpnAuthenticationTypeRadius VpnAuthenticationType = "Radius" +) + +func PossibleValuesForVpnAuthenticationType() []string { + return []string{ + string(VpnAuthenticationTypeAAD), + string(VpnAuthenticationTypeCertificate), + string(VpnAuthenticationTypeRadius), + } +} + +func (s *VpnAuthenticationType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnAuthenticationType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnAuthenticationType(input string) (*VpnAuthenticationType, error) { + vals := map[string]VpnAuthenticationType{ + "aad": VpnAuthenticationTypeAAD, + "certificate": VpnAuthenticationTypeCertificate, + "radius": VpnAuthenticationTypeRadius, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnAuthenticationType(input) + return &out, nil +} + +type VpnClientProtocol string + +const ( + VpnClientProtocolIkeVTwo VpnClientProtocol = "IkeV2" + VpnClientProtocolOpenVPN VpnClientProtocol = "OpenVPN" + VpnClientProtocolSSTP VpnClientProtocol = "SSTP" +) + +func PossibleValuesForVpnClientProtocol() []string { + return []string{ + string(VpnClientProtocolIkeVTwo), + string(VpnClientProtocolOpenVPN), + string(VpnClientProtocolSSTP), + } +} + +func (s *VpnClientProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnClientProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnClientProtocol(input string) (*VpnClientProtocol, error) { + vals := map[string]VpnClientProtocol{ + "ikev2": VpnClientProtocolIkeVTwo, + "openvpn": VpnClientProtocolOpenVPN, + "sstp": VpnClientProtocolSSTP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnClientProtocol(input) + return &out, nil +} + +type VpnGatewayGeneration string + +const ( + VpnGatewayGenerationGenerationOne VpnGatewayGeneration = "Generation1" + VpnGatewayGenerationGenerationTwo VpnGatewayGeneration = "Generation2" + VpnGatewayGenerationNone VpnGatewayGeneration = "None" +) + +func PossibleValuesForVpnGatewayGeneration() []string { + return []string{ + string(VpnGatewayGenerationGenerationOne), + string(VpnGatewayGenerationGenerationTwo), + string(VpnGatewayGenerationNone), + } +} + +func (s *VpnGatewayGeneration) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnGatewayGeneration(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnGatewayGeneration(input string) (*VpnGatewayGeneration, error) { + vals := map[string]VpnGatewayGeneration{ + "generation1": VpnGatewayGenerationGenerationOne, + "generation2": VpnGatewayGenerationGenerationTwo, + "none": VpnGatewayGenerationNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnGatewayGeneration(input) + return &out, nil +} + +type VpnNatRuleMode string + +const ( + VpnNatRuleModeEgressSnat VpnNatRuleMode = "EgressSnat" + VpnNatRuleModeIngressSnat VpnNatRuleMode = "IngressSnat" +) + +func PossibleValuesForVpnNatRuleMode() []string { + return []string{ + string(VpnNatRuleModeEgressSnat), + string(VpnNatRuleModeIngressSnat), + } +} + +func (s *VpnNatRuleMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnNatRuleMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnNatRuleMode(input string) (*VpnNatRuleMode, error) { + vals := map[string]VpnNatRuleMode{ + "egresssnat": VpnNatRuleModeEgressSnat, + "ingresssnat": VpnNatRuleModeIngressSnat, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnNatRuleMode(input) + return &out, nil +} + +type VpnNatRuleType string + +const ( + VpnNatRuleTypeDynamic VpnNatRuleType = "Dynamic" + VpnNatRuleTypeStatic VpnNatRuleType = "Static" +) + +func PossibleValuesForVpnNatRuleType() []string { + return []string{ + string(VpnNatRuleTypeDynamic), + string(VpnNatRuleTypeStatic), + } +} + +func (s *VpnNatRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnNatRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnNatRuleType(input string) (*VpnNatRuleType, error) { + vals := map[string]VpnNatRuleType{ + "dynamic": VpnNatRuleTypeDynamic, + "static": VpnNatRuleTypeStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnNatRuleType(input) + return &out, nil +} + +type VpnPolicyMemberAttributeType string + +const ( + VpnPolicyMemberAttributeTypeAADGroupId VpnPolicyMemberAttributeType = "AADGroupId" + VpnPolicyMemberAttributeTypeCertificateGroupId VpnPolicyMemberAttributeType = "CertificateGroupId" + VpnPolicyMemberAttributeTypeRadiusAzureGroupId VpnPolicyMemberAttributeType = "RadiusAzureGroupId" +) + +func PossibleValuesForVpnPolicyMemberAttributeType() []string { + return []string{ + string(VpnPolicyMemberAttributeTypeAADGroupId), + string(VpnPolicyMemberAttributeTypeCertificateGroupId), + string(VpnPolicyMemberAttributeTypeRadiusAzureGroupId), + } +} + +func (s *VpnPolicyMemberAttributeType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnPolicyMemberAttributeType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnPolicyMemberAttributeType(input string) (*VpnPolicyMemberAttributeType, error) { + vals := map[string]VpnPolicyMemberAttributeType{ + "aadgroupid": VpnPolicyMemberAttributeTypeAADGroupId, + "certificategroupid": VpnPolicyMemberAttributeTypeCertificateGroupId, + "radiusazuregroupid": VpnPolicyMemberAttributeTypeRadiusAzureGroupId, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnPolicyMemberAttributeType(input) + return &out, nil +} + +type VpnType string + +const ( + VpnTypePolicyBased VpnType = "PolicyBased" + VpnTypeRouteBased VpnType = "RouteBased" +) + +func PossibleValuesForVpnType() []string { + return []string{ + string(VpnTypePolicyBased), + string(VpnTypeRouteBased), + } +} + +func (s *VpnType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnType(input string) (*VpnType, error) { + vals := map[string]VpnType{ + "policybased": VpnTypePolicyBased, + "routebased": VpnTypeRouteBased, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_connection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_connection.go new file mode 100644 index 000000000000..7e0a849bdfdc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_connection.go @@ -0,0 +1,130 @@ +package virtualnetworkgateways + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ConnectionId{}) +} + +var _ resourceids.ResourceId = &ConnectionId{} + +// ConnectionId is a struct representing the Resource ID for a Connection +type ConnectionId struct { + SubscriptionId string + ResourceGroupName string + ConnectionName string +} + +// NewConnectionID returns a new ConnectionId struct +func NewConnectionID(subscriptionId string, resourceGroupName string, connectionName string) ConnectionId { + return ConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ConnectionName: connectionName, + } +} + +// ParseConnectionID parses 'input' into a ConnectionId +func ParseConnectionID(input string) (*ConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&ConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseConnectionIDInsensitively parses 'input' case-insensitively into a ConnectionId +// note: this method should only be used for API response data and not user input +func ParseConnectionIDInsensitively(input string) (*ConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&ConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ConnectionName, ok = input.Parsed["connectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "connectionName", input) + } + + return nil +} + +// ValidateConnectionID checks that 'input' can be parsed as a Connection ID +func ValidateConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Connection ID +func (id ConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/connections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Connection ID +func (id ConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticConnections", "connections", "connections"), + resourceids.UserSpecifiedSegment("connectionName", "connectionName"), + } +} + +// String returns a human-readable description of this Connection ID +func (id ConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Connection Name: %q", id.ConnectionName), + } + return fmt.Sprintf("Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_virtualnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_virtualnetworkgateway.go new file mode 100644 index 000000000000..37161e508ae5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_virtualnetworkgateway.go @@ -0,0 +1,130 @@ +package virtualnetworkgateways + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VirtualNetworkGatewayId{}) +} + +var _ resourceids.ResourceId = &VirtualNetworkGatewayId{} + +// VirtualNetworkGatewayId is a struct representing the Resource ID for a Virtual Network Gateway +type VirtualNetworkGatewayId struct { + SubscriptionId string + ResourceGroupName string + VirtualNetworkGatewayName string +} + +// NewVirtualNetworkGatewayID returns a new VirtualNetworkGatewayId struct +func NewVirtualNetworkGatewayID(subscriptionId string, resourceGroupName string, virtualNetworkGatewayName string) VirtualNetworkGatewayId { + return VirtualNetworkGatewayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualNetworkGatewayName: virtualNetworkGatewayName, + } +} + +// ParseVirtualNetworkGatewayID parses 'input' into a VirtualNetworkGatewayId +func ParseVirtualNetworkGatewayID(input string) (*VirtualNetworkGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualNetworkGatewayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualNetworkGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVirtualNetworkGatewayIDInsensitively parses 'input' case-insensitively into a VirtualNetworkGatewayId +// note: this method should only be used for API response data and not user input +func ParseVirtualNetworkGatewayIDInsensitively(input string) (*VirtualNetworkGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualNetworkGatewayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualNetworkGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VirtualNetworkGatewayId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualNetworkGatewayName, ok = input.Parsed["virtualNetworkGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualNetworkGatewayName", input) + } + + return nil +} + +// ValidateVirtualNetworkGatewayID checks that 'input' can be parsed as a Virtual Network Gateway ID +func ValidateVirtualNetworkGatewayID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVirtualNetworkGatewayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Virtual Network Gateway ID +func (id VirtualNetworkGatewayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworkGateways/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualNetworkGatewayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Virtual Network Gateway ID +func (id VirtualNetworkGatewayId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualNetworkGateways", "virtualNetworkGateways", "virtualNetworkGateways"), + resourceids.UserSpecifiedSegment("virtualNetworkGatewayName", "virtualNetworkGatewayName"), + } +} + +// String returns a human-readable description of this Virtual Network Gateway ID +func (id VirtualNetworkGatewayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Network Gateway Name: %q", id.VirtualNetworkGatewayName), + } + return fmt.Sprintf("Virtual Network Gateway (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_virtualnetworkgatewaynatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_virtualnetworkgatewaynatrule.go new file mode 100644 index 000000000000..eefda2a39b13 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_virtualnetworkgatewaynatrule.go @@ -0,0 +1,139 @@ +package virtualnetworkgateways + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VirtualNetworkGatewayNatRuleId{}) +} + +var _ resourceids.ResourceId = &VirtualNetworkGatewayNatRuleId{} + +// VirtualNetworkGatewayNatRuleId is a struct representing the Resource ID for a Virtual Network Gateway Nat Rule +type VirtualNetworkGatewayNatRuleId struct { + SubscriptionId string + ResourceGroupName string + VirtualNetworkGatewayName string + NatRuleName string +} + +// NewVirtualNetworkGatewayNatRuleID returns a new VirtualNetworkGatewayNatRuleId struct +func NewVirtualNetworkGatewayNatRuleID(subscriptionId string, resourceGroupName string, virtualNetworkGatewayName string, natRuleName string) VirtualNetworkGatewayNatRuleId { + return VirtualNetworkGatewayNatRuleId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualNetworkGatewayName: virtualNetworkGatewayName, + NatRuleName: natRuleName, + } +} + +// ParseVirtualNetworkGatewayNatRuleID parses 'input' into a VirtualNetworkGatewayNatRuleId +func ParseVirtualNetworkGatewayNatRuleID(input string) (*VirtualNetworkGatewayNatRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualNetworkGatewayNatRuleId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualNetworkGatewayNatRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVirtualNetworkGatewayNatRuleIDInsensitively parses 'input' case-insensitively into a VirtualNetworkGatewayNatRuleId +// note: this method should only be used for API response data and not user input +func ParseVirtualNetworkGatewayNatRuleIDInsensitively(input string) (*VirtualNetworkGatewayNatRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualNetworkGatewayNatRuleId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualNetworkGatewayNatRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VirtualNetworkGatewayNatRuleId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualNetworkGatewayName, ok = input.Parsed["virtualNetworkGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualNetworkGatewayName", input) + } + + if id.NatRuleName, ok = input.Parsed["natRuleName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "natRuleName", input) + } + + return nil +} + +// ValidateVirtualNetworkGatewayNatRuleID checks that 'input' can be parsed as a Virtual Network Gateway Nat Rule ID +func ValidateVirtualNetworkGatewayNatRuleID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVirtualNetworkGatewayNatRuleID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Virtual Network Gateway Nat Rule ID +func (id VirtualNetworkGatewayNatRuleId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworkGateways/%s/natRules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualNetworkGatewayName, id.NatRuleName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Virtual Network Gateway Nat Rule ID +func (id VirtualNetworkGatewayNatRuleId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualNetworkGateways", "virtualNetworkGateways", "virtualNetworkGateways"), + resourceids.UserSpecifiedSegment("virtualNetworkGatewayName", "virtualNetworkGatewayName"), + resourceids.StaticSegment("staticNatRules", "natRules", "natRules"), + resourceids.UserSpecifiedSegment("natRuleName", "natRuleName"), + } +} + +// String returns a human-readable description of this Virtual Network Gateway Nat Rule ID +func (id VirtualNetworkGatewayNatRuleId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Network Gateway Name: %q", id.VirtualNetworkGatewayName), + fmt.Sprintf("Nat Rule Name: %q", id.NatRuleName), + } + return fmt.Sprintf("Virtual Network Gateway Nat Rule (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_createorupdate.go new file mode 100644 index 000000000000..1f22024e4a64 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_createorupdate.go @@ -0,0 +1,75 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetworkGateway +} + +// CreateOrUpdate ... +func (c VirtualNetworkGatewaysClient) CreateOrUpdate(ctx context.Context, id VirtualNetworkGatewayId, input VirtualNetworkGateway) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c VirtualNetworkGatewaysClient) CreateOrUpdateThenPoll(ctx context.Context, id VirtualNetworkGatewayId, input VirtualNetworkGateway) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_delete.go new file mode 100644 index 000000000000..06878f245a48 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_delete.go @@ -0,0 +1,71 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c VirtualNetworkGatewaysClient) Delete(ctx context.Context, id VirtualNetworkGatewayId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c VirtualNetworkGatewaysClient) DeleteThenPoll(ctx context.Context, id VirtualNetworkGatewayId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_disconnectvirtualnetworkgatewayvpnconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_disconnectvirtualnetworkgatewayvpnconnections.go new file mode 100644 index 000000000000..6a0589d67d68 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_disconnectvirtualnetworkgatewayvpnconnections.go @@ -0,0 +1,74 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DisconnectVirtualNetworkGatewayVpnConnectionsOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// DisconnectVirtualNetworkGatewayVpnConnections ... +func (c VirtualNetworkGatewaysClient) DisconnectVirtualNetworkGatewayVpnConnections(ctx context.Context, id VirtualNetworkGatewayId, input P2SVpnConnectionRequest) (result DisconnectVirtualNetworkGatewayVpnConnectionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/disconnectVirtualNetworkGatewayVpnConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DisconnectVirtualNetworkGatewayVpnConnectionsThenPoll performs DisconnectVirtualNetworkGatewayVpnConnections then polls until it's completed +func (c VirtualNetworkGatewaysClient) DisconnectVirtualNetworkGatewayVpnConnectionsThenPoll(ctx context.Context, id VirtualNetworkGatewayId, input P2SVpnConnectionRequest) error { + result, err := c.DisconnectVirtualNetworkGatewayVpnConnections(ctx, id, input) + if err != nil { + return fmt.Errorf("performing DisconnectVirtualNetworkGatewayVpnConnections: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after DisconnectVirtualNetworkGatewayVpnConnections: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_generatevpnclientpackage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_generatevpnclientpackage.go new file mode 100644 index 000000000000..a08869751a85 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_generatevpnclientpackage.go @@ -0,0 +1,75 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GeneratevpnclientpackageOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// Generatevpnclientpackage ... +func (c VirtualNetworkGatewaysClient) Generatevpnclientpackage(ctx context.Context, id VirtualNetworkGatewayId, input VpnClientParameters) (result GeneratevpnclientpackageOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/generatevpnclientpackage", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GeneratevpnclientpackageThenPoll performs Generatevpnclientpackage then polls until it's completed +func (c VirtualNetworkGatewaysClient) GeneratevpnclientpackageThenPoll(ctx context.Context, id VirtualNetworkGatewayId, input VpnClientParameters) error { + result, err := c.Generatevpnclientpackage(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Generatevpnclientpackage: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Generatevpnclientpackage: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_generatevpnprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_generatevpnprofile.go new file mode 100644 index 000000000000..3b9f9f9815ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_generatevpnprofile.go @@ -0,0 +1,75 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GenerateVpnProfileOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// GenerateVpnProfile ... +func (c VirtualNetworkGatewaysClient) GenerateVpnProfile(ctx context.Context, id VirtualNetworkGatewayId, input VpnClientParameters) (result GenerateVpnProfileOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/generatevpnprofile", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GenerateVpnProfileThenPoll performs GenerateVpnProfile then polls until it's completed +func (c VirtualNetworkGatewaysClient) GenerateVpnProfileThenPoll(ctx context.Context, id VirtualNetworkGatewayId, input VpnClientParameters) error { + result, err := c.GenerateVpnProfile(ctx, id, input) + if err != nil { + return fmt.Errorf("performing GenerateVpnProfile: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GenerateVpnProfile: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_get.go new file mode 100644 index 000000000000..403f9e12374f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_get.go @@ -0,0 +1,53 @@ +package virtualnetworkgateways + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetworkGateway +} + +// Get ... +func (c VirtualNetworkGatewaysClient) Get(ctx context.Context, id VirtualNetworkGatewayId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualNetworkGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getadvertisedroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getadvertisedroutes.go new file mode 100644 index 000000000000..969c71ee3172 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getadvertisedroutes.go @@ -0,0 +1,100 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetAdvertisedRoutesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *GatewayRouteListResult +} + +type GetAdvertisedRoutesOperationOptions struct { + Peer *string +} + +func DefaultGetAdvertisedRoutesOperationOptions() GetAdvertisedRoutesOperationOptions { + return GetAdvertisedRoutesOperationOptions{} +} + +func (o GetAdvertisedRoutesOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetAdvertisedRoutesOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetAdvertisedRoutesOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Peer != nil { + out.Append("peer", fmt.Sprintf("%v", *o.Peer)) + } + return &out +} + +// GetAdvertisedRoutes ... +func (c VirtualNetworkGatewaysClient) GetAdvertisedRoutes(ctx context.Context, id VirtualNetworkGatewayId, options GetAdvertisedRoutesOperationOptions) (result GetAdvertisedRoutesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + OptionsObject: options, + Path: fmt.Sprintf("%s/getAdvertisedRoutes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetAdvertisedRoutesThenPoll performs GetAdvertisedRoutes then polls until it's completed +func (c VirtualNetworkGatewaysClient) GetAdvertisedRoutesThenPoll(ctx context.Context, id VirtualNetworkGatewayId, options GetAdvertisedRoutesOperationOptions) error { + result, err := c.GetAdvertisedRoutes(ctx, id, options) + if err != nil { + return fmt.Errorf("performing GetAdvertisedRoutes: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetAdvertisedRoutes: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getbgppeerstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getbgppeerstatus.go new file mode 100644 index 000000000000..33e243af246e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getbgppeerstatus.go @@ -0,0 +1,100 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetBgpPeerStatusOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *BgpPeerStatusListResult +} + +type GetBgpPeerStatusOperationOptions struct { + Peer *string +} + +func DefaultGetBgpPeerStatusOperationOptions() GetBgpPeerStatusOperationOptions { + return GetBgpPeerStatusOperationOptions{} +} + +func (o GetBgpPeerStatusOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetBgpPeerStatusOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetBgpPeerStatusOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Peer != nil { + out.Append("peer", fmt.Sprintf("%v", *o.Peer)) + } + return &out +} + +// GetBgpPeerStatus ... +func (c VirtualNetworkGatewaysClient) GetBgpPeerStatus(ctx context.Context, id VirtualNetworkGatewayId, options GetBgpPeerStatusOperationOptions) (result GetBgpPeerStatusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + OptionsObject: options, + Path: fmt.Sprintf("%s/getBgpPeerStatus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetBgpPeerStatusThenPoll performs GetBgpPeerStatus then polls until it's completed +func (c VirtualNetworkGatewaysClient) GetBgpPeerStatusThenPoll(ctx context.Context, id VirtualNetworkGatewayId, options GetBgpPeerStatusOperationOptions) error { + result, err := c.GetBgpPeerStatus(ctx, id, options) + if err != nil { + return fmt.Errorf("performing GetBgpPeerStatus: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetBgpPeerStatus: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getlearnedroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getlearnedroutes.go new file mode 100644 index 000000000000..3cfd0aa16a88 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getlearnedroutes.go @@ -0,0 +1,71 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetLearnedRoutesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *GatewayRouteListResult +} + +// GetLearnedRoutes ... +func (c VirtualNetworkGatewaysClient) GetLearnedRoutes(ctx context.Context, id VirtualNetworkGatewayId) (result GetLearnedRoutesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/getLearnedRoutes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetLearnedRoutesThenPoll performs GetLearnedRoutes then polls until it's completed +func (c VirtualNetworkGatewaysClient) GetLearnedRoutesThenPoll(ctx context.Context, id VirtualNetworkGatewayId) error { + result, err := c.GetLearnedRoutes(ctx, id) + if err != nil { + return fmt.Errorf("performing GetLearnedRoutes: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetLearnedRoutes: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnclientconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnclientconnectionhealth.go new file mode 100644 index 000000000000..8b7f93d0b5cc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnclientconnectionhealth.go @@ -0,0 +1,71 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetVpnclientConnectionHealthOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnClientConnectionHealthDetailListResult +} + +// GetVpnclientConnectionHealth ... +func (c VirtualNetworkGatewaysClient) GetVpnclientConnectionHealth(ctx context.Context, id VirtualNetworkGatewayId) (result GetVpnclientConnectionHealthOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/getVpnClientConnectionHealth", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetVpnclientConnectionHealthThenPoll performs GetVpnclientConnectionHealth then polls until it's completed +func (c VirtualNetworkGatewaysClient) GetVpnclientConnectionHealthThenPoll(ctx context.Context, id VirtualNetworkGatewayId) error { + result, err := c.GetVpnclientConnectionHealth(ctx, id) + if err != nil { + return fmt.Errorf("performing GetVpnclientConnectionHealth: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetVpnclientConnectionHealth: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnclientipsecparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnclientipsecparameters.go new file mode 100644 index 000000000000..43dd02230dfd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnclientipsecparameters.go @@ -0,0 +1,70 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetVpnclientIPsecParametersOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnClientIPsecParameters +} + +// GetVpnclientIPsecParameters ... +func (c VirtualNetworkGatewaysClient) GetVpnclientIPsecParameters(ctx context.Context, id VirtualNetworkGatewayId) (result GetVpnclientIPsecParametersOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/getvpnclientipsecparameters", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetVpnclientIPsecParametersThenPoll performs GetVpnclientIPsecParameters then polls until it's completed +func (c VirtualNetworkGatewaysClient) GetVpnclientIPsecParametersThenPoll(ctx context.Context, id VirtualNetworkGatewayId) error { + result, err := c.GetVpnclientIPsecParameters(ctx, id) + if err != nil { + return fmt.Errorf("performing GetVpnclientIPsecParameters: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetVpnclientIPsecParameters: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnprofilepackageurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnprofilepackageurl.go new file mode 100644 index 000000000000..e814c6eff385 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnprofilepackageurl.go @@ -0,0 +1,71 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetVpnProfilePackageURLOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// GetVpnProfilePackageURL ... +func (c VirtualNetworkGatewaysClient) GetVpnProfilePackageURL(ctx context.Context, id VirtualNetworkGatewayId) (result GetVpnProfilePackageURLOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/getvpnprofilepackageurl", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetVpnProfilePackageURLThenPoll performs GetVpnProfilePackageURL then polls until it's completed +func (c VirtualNetworkGatewaysClient) GetVpnProfilePackageURLThenPoll(ctx context.Context, id VirtualNetworkGatewayId) error { + result, err := c.GetVpnProfilePackageURL(ctx, id) + if err != nil { + return fmt.Errorf("performing GetVpnProfilePackageURL: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetVpnProfilePackageURL: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_list.go new file mode 100644 index 000000000000..8266a51728d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_list.go @@ -0,0 +1,106 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualNetworkGateway +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualNetworkGateway +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c VirtualNetworkGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworkGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualNetworkGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c VirtualNetworkGatewaysClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, VirtualNetworkGatewayOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualNetworkGatewaysClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VirtualNetworkGatewayOperationPredicate) (result ListCompleteResult, err error) { + items := make([]VirtualNetworkGateway, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_listconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_listconnections.go new file mode 100644 index 000000000000..2f13ca7b97c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_listconnections.go @@ -0,0 +1,105 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListConnectionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualNetworkGatewayConnectionListEntity +} + +type ListConnectionsCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualNetworkGatewayConnectionListEntity +} + +type ListConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListConnections ... +func (c VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, id VirtualNetworkGatewayId) (result ListConnectionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListConnectionsCustomPager{}, + Path: fmt.Sprintf("%s/connections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualNetworkGatewayConnectionListEntity `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListConnectionsComplete retrieves all the results into a single object +func (c VirtualNetworkGatewaysClient) ListConnectionsComplete(ctx context.Context, id VirtualNetworkGatewayId) (ListConnectionsCompleteResult, error) { + return c.ListConnectionsCompleteMatchingPredicate(ctx, id, VirtualNetworkGatewayConnectionListEntityOperationPredicate{}) +} + +// ListConnectionsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualNetworkGatewaysClient) ListConnectionsCompleteMatchingPredicate(ctx context.Context, id VirtualNetworkGatewayId, predicate VirtualNetworkGatewayConnectionListEntityOperationPredicate) (result ListConnectionsCompleteResult, err error) { + items := make([]VirtualNetworkGatewayConnectionListEntity, 0) + + resp, err := c.ListConnections(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListConnectionsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_reset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_reset.go new file mode 100644 index 000000000000..fb6210d0c1ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_reset.go @@ -0,0 +1,100 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResetOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetworkGateway +} + +type ResetOperationOptions struct { + GatewayVip *string +} + +func DefaultResetOperationOptions() ResetOperationOptions { + return ResetOperationOptions{} +} + +func (o ResetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ResetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ResetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.GatewayVip != nil { + out.Append("gatewayVip", fmt.Sprintf("%v", *o.GatewayVip)) + } + return &out +} + +// Reset ... +func (c VirtualNetworkGatewaysClient) Reset(ctx context.Context, id VirtualNetworkGatewayId, options ResetOperationOptions) (result ResetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + OptionsObject: options, + Path: fmt.Sprintf("%s/reset", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ResetThenPoll performs Reset then polls until it's completed +func (c VirtualNetworkGatewaysClient) ResetThenPoll(ctx context.Context, id VirtualNetworkGatewayId, options ResetOperationOptions) error { + result, err := c.Reset(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Reset: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Reset: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_resetvpnclientsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_resetvpnclientsharedkey.go new file mode 100644 index 000000000000..3e10b92aa051 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_resetvpnclientsharedkey.go @@ -0,0 +1,70 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResetVpnClientSharedKeyOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// ResetVpnClientSharedKey ... +func (c VirtualNetworkGatewaysClient) ResetVpnClientSharedKey(ctx context.Context, id VirtualNetworkGatewayId) (result ResetVpnClientSharedKeyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/resetvpnclientsharedkey", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ResetVpnClientSharedKeyThenPoll performs ResetVpnClientSharedKey then polls until it's completed +func (c VirtualNetworkGatewaysClient) ResetVpnClientSharedKeyThenPoll(ctx context.Context, id VirtualNetworkGatewayId) error { + result, err := c.ResetVpnClientSharedKey(ctx, id) + if err != nil { + return fmt.Errorf("performing ResetVpnClientSharedKey: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ResetVpnClientSharedKey: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_setvpnclientipsecparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_setvpnclientipsecparameters.go new file mode 100644 index 000000000000..c6ce6809b832 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_setvpnclientipsecparameters.go @@ -0,0 +1,75 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SetVpnclientIPsecParametersOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnClientIPsecParameters +} + +// SetVpnclientIPsecParameters ... +func (c VirtualNetworkGatewaysClient) SetVpnclientIPsecParameters(ctx context.Context, id VirtualNetworkGatewayId, input VpnClientIPsecParameters) (result SetVpnclientIPsecParametersOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/setvpnclientipsecparameters", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// SetVpnclientIPsecParametersThenPoll performs SetVpnclientIPsecParameters then polls until it's completed +func (c VirtualNetworkGatewaysClient) SetVpnclientIPsecParametersThenPoll(ctx context.Context, id VirtualNetworkGatewayId, input VpnClientIPsecParameters) error { + result, err := c.SetVpnclientIPsecParameters(ctx, id, input) + if err != nil { + return fmt.Errorf("performing SetVpnclientIPsecParameters: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after SetVpnclientIPsecParameters: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_startpacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_startpacketcapture.go new file mode 100644 index 000000000000..6aae280247b1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_startpacketcapture.go @@ -0,0 +1,75 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartPacketCaptureOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// StartPacketCapture ... +func (c VirtualNetworkGatewaysClient) StartPacketCapture(ctx context.Context, id VirtualNetworkGatewayId, input VpnPacketCaptureStartParameters) (result StartPacketCaptureOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/startPacketCapture", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StartPacketCaptureThenPoll performs StartPacketCapture then polls until it's completed +func (c VirtualNetworkGatewaysClient) StartPacketCaptureThenPoll(ctx context.Context, id VirtualNetworkGatewayId, input VpnPacketCaptureStartParameters) error { + result, err := c.StartPacketCapture(ctx, id, input) + if err != nil { + return fmt.Errorf("performing StartPacketCapture: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after StartPacketCapture: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_stoppacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_stoppacketcapture.go new file mode 100644 index 000000000000..b193430e4311 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_stoppacketcapture.go @@ -0,0 +1,75 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopPacketCaptureOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// StopPacketCapture ... +func (c VirtualNetworkGatewaysClient) StopPacketCapture(ctx context.Context, id VirtualNetworkGatewayId, input VpnPacketCaptureStopParameters) (result StopPacketCaptureOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stopPacketCapture", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StopPacketCaptureThenPoll performs StopPacketCapture then polls until it's completed +func (c VirtualNetworkGatewaysClient) StopPacketCaptureThenPoll(ctx context.Context, id VirtualNetworkGatewayId, input VpnPacketCaptureStopParameters) error { + result, err := c.StopPacketCapture(ctx, id, input) + if err != nil { + return fmt.Errorf("performing StopPacketCapture: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after StopPacketCapture: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_supportedvpndevices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_supportedvpndevices.go new file mode 100644 index 000000000000..7b81cd2d32c4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_supportedvpndevices.go @@ -0,0 +1,54 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SupportedVpnDevicesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// SupportedVpnDevices ... +func (c VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Context, id VirtualNetworkGatewayId) (result SupportedVpnDevicesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/supportedvpndevices", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model string + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_updatetags.go new file mode 100644 index 000000000000..a374667f9a3e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_updatetags.go @@ -0,0 +1,75 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetworkGateway +} + +// UpdateTags ... +func (c VirtualNetworkGatewaysClient) UpdateTags(ctx context.Context, id VirtualNetworkGatewayId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateTagsThenPoll performs UpdateTags then polls until it's completed +func (c VirtualNetworkGatewaysClient) UpdateTagsThenPoll(ctx context.Context, id VirtualNetworkGatewayId, input TagsObject) error { + result, err := c.UpdateTags(ctx, id, input) + if err != nil { + return fmt.Errorf("performing UpdateTags: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after UpdateTags: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulescreateorupdate.go new file mode 100644 index 000000000000..b68cd3bf17c3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulescreateorupdate.go @@ -0,0 +1,75 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayNatRulesCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetworkGatewayNatRule +} + +// VirtualNetworkGatewayNatRulesCreateOrUpdate ... +func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesCreateOrUpdate(ctx context.Context, id VirtualNetworkGatewayNatRuleId, input VirtualNetworkGatewayNatRule) (result VirtualNetworkGatewayNatRulesCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualNetworkGatewayNatRulesCreateOrUpdateThenPoll performs VirtualNetworkGatewayNatRulesCreateOrUpdate then polls until it's completed +func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesCreateOrUpdateThenPoll(ctx context.Context, id VirtualNetworkGatewayNatRuleId, input VirtualNetworkGatewayNatRule) error { + result, err := c.VirtualNetworkGatewayNatRulesCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualNetworkGatewayNatRulesCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualNetworkGatewayNatRulesCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesdelete.go new file mode 100644 index 000000000000..4d041050bd26 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesdelete.go @@ -0,0 +1,71 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayNatRulesDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VirtualNetworkGatewayNatRulesDelete ... +func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesDelete(ctx context.Context, id VirtualNetworkGatewayNatRuleId) (result VirtualNetworkGatewayNatRulesDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualNetworkGatewayNatRulesDeleteThenPoll performs VirtualNetworkGatewayNatRulesDelete then polls until it's completed +func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesDeleteThenPoll(ctx context.Context, id VirtualNetworkGatewayNatRuleId) error { + result, err := c.VirtualNetworkGatewayNatRulesDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VirtualNetworkGatewayNatRulesDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualNetworkGatewayNatRulesDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesget.go new file mode 100644 index 000000000000..10dc0fac1a6a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesget.go @@ -0,0 +1,53 @@ +package virtualnetworkgateways + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayNatRulesGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetworkGatewayNatRule +} + +// VirtualNetworkGatewayNatRulesGet ... +func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesGet(ctx context.Context, id VirtualNetworkGatewayNatRuleId) (result VirtualNetworkGatewayNatRulesGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualNetworkGatewayNatRule + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go new file mode 100644 index 000000000000..ce8ee5c49659 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go @@ -0,0 +1,105 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualNetworkGatewayNatRule +} + +type VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualNetworkGatewayNatRule +} + +type VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway ... +func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway(ctx context.Context, id VirtualNetworkGatewayId) (result VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager{}, + Path: fmt.Sprintf("%s/natRules", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualNetworkGatewayNatRule `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayComplete retrieves all the results into a single object +func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayComplete(ctx context.Context, id VirtualNetworkGatewayId) (VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteResult, error) { + return c.VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteMatchingPredicate(ctx, id, VirtualNetworkGatewayNatRuleOperationPredicate{}) +} + +// VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteMatchingPredicate(ctx context.Context, id VirtualNetworkGatewayId, predicate VirtualNetworkGatewayNatRuleOperationPredicate) (result VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteResult, err error) { + items := make([]VirtualNetworkGatewayNatRule, 0) + + resp, err := c.VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_vpndeviceconfigurationscript.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_vpndeviceconfigurationscript.go new file mode 100644 index 000000000000..0dbfcf3f88f2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_vpndeviceconfigurationscript.go @@ -0,0 +1,58 @@ +package virtualnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnDeviceConfigurationScriptOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// VpnDeviceConfigurationScript ... +func (c VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx context.Context, id ConnectionId, input VpnDeviceScriptParameters) (result VpnDeviceConfigurationScriptOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/vpndeviceconfigurationscript", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model string + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_addressspace.go new file mode 100644 index 000000000000..8ec4b3f0b7dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_addressspace.go @@ -0,0 +1,8 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressSpace struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgppeerstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgppeerstatus.go new file mode 100644 index 000000000000..8b54be7d7ae5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgppeerstatus.go @@ -0,0 +1,15 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BgpPeerStatus struct { + Asn *int64 `json:"asn,omitempty"` + ConnectedDuration *string `json:"connectedDuration,omitempty"` + LocalAddress *string `json:"localAddress,omitempty"` + MessagesReceived *int64 `json:"messagesReceived,omitempty"` + MessagesSent *int64 `json:"messagesSent,omitempty"` + Neighbor *string `json:"neighbor,omitempty"` + RoutesReceived *int64 `json:"routesReceived,omitempty"` + State *BgpPeerState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgppeerstatuslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgppeerstatuslistresult.go new file mode 100644 index 000000000000..4affff1a3091 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgppeerstatuslistresult.go @@ -0,0 +1,8 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BgpPeerStatusListResult struct { + Value *[]BgpPeerStatus `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgpsettings.go new file mode 100644 index 000000000000..38b1165bfa12 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgpsettings.go @@ -0,0 +1,11 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BgpSettings struct { + Asn *int64 `json:"asn,omitempty"` + BgpPeeringAddress *string `json:"bgpPeeringAddress,omitempty"` + BgpPeeringAddresses *[]IPConfigurationBgpPeeringAddress `json:"bgpPeeringAddresses,omitempty"` + PeerWeight *int64 `json:"peerWeight,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewaycustombgpipaddressipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewaycustombgpipaddressipconfiguration.go new file mode 100644 index 000000000000..6bb7f5aa0553 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewaycustombgpipaddressipconfiguration.go @@ -0,0 +1,9 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayCustomBgpIPAddressIPConfiguration struct { + CustomBgpIPAddress string `json:"customBgpIpAddress"` + IPConfigurationId string `json:"ipConfigurationId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewayroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewayroute.go new file mode 100644 index 000000000000..038e61f22d32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewayroute.go @@ -0,0 +1,14 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayRoute struct { + AsPath *string `json:"asPath,omitempty"` + LocalAddress *string `json:"localAddress,omitempty"` + Network *string `json:"network,omitempty"` + NextHop *string `json:"nextHop,omitempty"` + Origin *string `json:"origin,omitempty"` + SourcePeer *string `json:"sourcePeer,omitempty"` + Weight *int64 `json:"weight,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewayroutelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewayroutelistresult.go new file mode 100644 index 000000000000..d0ab95ca8fb4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewayroutelistresult.go @@ -0,0 +1,8 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayRouteListResult struct { + Value *[]GatewayRoute `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_ipconfigurationbgppeeringaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_ipconfigurationbgppeeringaddress.go new file mode 100644 index 000000000000..bfda111f40fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_ipconfigurationbgppeeringaddress.go @@ -0,0 +1,11 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationBgpPeeringAddress struct { + CustomBgpIPAddresses *[]string `json:"customBgpIpAddresses,omitempty"` + DefaultBgpIPAddresses *[]string `json:"defaultBgpIpAddresses,omitempty"` + IPconfigurationId *string `json:"ipconfigurationId,omitempty"` + TunnelIPAddresses *[]string `json:"tunnelIpAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_ipsecpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_ipsecpolicy.go new file mode 100644 index 000000000000..6db4ac44425e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_ipsecpolicy.go @@ -0,0 +1,15 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPsecPolicy struct { + DhGroup DhGroup `json:"dhGroup"` + IPsecEncryption IPsecEncryption `json:"ipsecEncryption"` + IPsecIntegrity IPsecIntegrity `json:"ipsecIntegrity"` + IkeEncryption IkeEncryption `json:"ikeEncryption"` + IkeIntegrity IkeIntegrity `json:"ikeIntegrity"` + PfsGroup PfsGroup `json:"pfsGroup"` + SaDataSizeKilobytes int64 `json:"saDataSizeKilobytes"` + SaLifeTimeSeconds int64 `json:"saLifeTimeSeconds"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_p2svpnconnectionrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_p2svpnconnectionrequest.go new file mode 100644 index 000000000000..dafc643bcef2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_p2svpnconnectionrequest.go @@ -0,0 +1,8 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2SVpnConnectionRequest struct { + VpnConnectionIds *[]string `json:"vpnConnectionIds,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_radiusserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_radiusserver.go new file mode 100644 index 000000000000..eb8912469916 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_radiusserver.go @@ -0,0 +1,10 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RadiusServer struct { + RadiusServerAddress string `json:"radiusServerAddress"` + RadiusServerScore *int64 `json:"radiusServerScore,omitempty"` + RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_subresource.go new file mode 100644 index 000000000000..5e20a09efb4a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_subresource.go @@ -0,0 +1,8 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_tagsobject.go new file mode 100644 index 000000000000..1208ffee7ebd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_tagsobject.go @@ -0,0 +1,8 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_trafficselectorpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_trafficselectorpolicy.go new file mode 100644 index 000000000000..6dbeefcf439d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_trafficselectorpolicy.go @@ -0,0 +1,9 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficSelectorPolicy struct { + LocalAddressRanges []string `json:"localAddressRanges"` + RemoteAddressRanges []string `json:"remoteAddressRanges"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_tunnelconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_tunnelconnectionhealth.go new file mode 100644 index 000000000000..786b87303635 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_tunnelconnectionhealth.go @@ -0,0 +1,12 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TunnelConnectionHealth struct { + ConnectionStatus *VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty"` + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` + Tunnel *string `json:"tunnel,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkconnectiongatewayreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkconnectiongatewayreference.go new file mode 100644 index 000000000000..f9ddd43a0b5b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkconnectiongatewayreference.go @@ -0,0 +1,8 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkConnectionGatewayReference struct { + Id string `json:"id"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgateway.go new file mode 100644 index 000000000000..09ed1954ed64 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgateway.go @@ -0,0 +1,21 @@ +package virtualnetworkgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGateway struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties VirtualNetworkGatewayPropertiesFormat `json:"properties"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscalebounds.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscalebounds.go new file mode 100644 index 000000000000..ba8082fea07d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscalebounds.go @@ -0,0 +1,9 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayAutoScaleBounds struct { + Max *int64 `json:"max,omitempty"` + Min *int64 `json:"min,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscaleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscaleconfiguration.go new file mode 100644 index 000000000000..c2bf005d0677 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscaleconfiguration.go @@ -0,0 +1,8 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayAutoScaleConfiguration struct { + Bounds *VirtualNetworkGatewayAutoScaleBounds `json:"bounds,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentity.go new file mode 100644 index 000000000000..fc88052ded90 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentity.go @@ -0,0 +1,14 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayConnectionListEntity struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties VirtualNetworkGatewayConnectionListEntityPropertiesFormat `json:"properties"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentitypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentitypropertiesformat.go new file mode 100644 index 000000000000..ad063d3db470 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentitypropertiesformat.go @@ -0,0 +1,30 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayConnectionListEntityPropertiesFormat struct { + AuthorizationKey *string `json:"authorizationKey,omitempty"` + ConnectionMode *VirtualNetworkGatewayConnectionMode `json:"connectionMode,omitempty"` + ConnectionProtocol *VirtualNetworkGatewayConnectionProtocol `json:"connectionProtocol,omitempty"` + ConnectionStatus *VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty"` + ConnectionType VirtualNetworkGatewayConnectionType `json:"connectionType"` + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + EnableBgp *bool `json:"enableBgp,omitempty"` + EnablePrivateLinkFastPath *bool `json:"enablePrivateLinkFastPath,omitempty"` + ExpressRouteGatewayBypass *bool `json:"expressRouteGatewayBypass,omitempty"` + GatewayCustomBgpIPAddresses *[]GatewayCustomBgpIPAddressIPConfiguration `json:"gatewayCustomBgpIpAddresses,omitempty"` + IPsecPolicies *[]IPsecPolicy `json:"ipsecPolicies,omitempty"` + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + LocalNetworkGateway2 *VirtualNetworkConnectionGatewayReference `json:"localNetworkGateway2,omitempty"` + Peer *SubResource `json:"peer,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + RoutingWeight *int64 `json:"routingWeight,omitempty"` + SharedKey *string `json:"sharedKey,omitempty"` + TrafficSelectorPolicies *[]TrafficSelectorPolicy `json:"trafficSelectorPolicies,omitempty"` + TunnelConnectionStatus *[]TunnelConnectionHealth `json:"tunnelConnectionStatus,omitempty"` + UsePolicyBasedTrafficSelectors *bool `json:"usePolicyBasedTrafficSelectors,omitempty"` + VirtualNetworkGateway1 VirtualNetworkConnectionGatewayReference `json:"virtualNetworkGateway1"` + VirtualNetworkGateway2 *VirtualNetworkConnectionGatewayReference `json:"virtualNetworkGateway2,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfiguration.go new file mode 100644 index 000000000000..b0f988e9a2c6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfiguration.go @@ -0,0 +1,11 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..f4396964e0ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayIPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaynatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaynatrule.go new file mode 100644 index 000000000000..f8d6791d1700 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaynatrule.go @@ -0,0 +1,12 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkGatewayNatRuleProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaynatruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaynatruleproperties.go new file mode 100644 index 000000000000..6227a89e253e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaynatruleproperties.go @@ -0,0 +1,13 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayNatRuleProperties struct { + ExternalMappings *[]VpnNatRuleMapping `json:"externalMappings,omitempty"` + IPConfigurationId *string `json:"ipConfigurationId,omitempty"` + InternalMappings *[]VpnNatRuleMapping `json:"internalMappings,omitempty"` + Mode *VpnNatRuleMode `json:"mode,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Type *VpnNatRuleType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroup.go new file mode 100644 index 000000000000..ebd198d261ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroup.go @@ -0,0 +1,11 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayPolicyGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkGatewayPolicyGroupProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupmember.go new file mode 100644 index 000000000000..466e643ddd80 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupmember.go @@ -0,0 +1,10 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayPolicyGroupMember struct { + AttributeType *VpnPolicyMemberAttributeType `json:"attributeType,omitempty"` + AttributeValue *string `json:"attributeValue,omitempty"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupproperties.go new file mode 100644 index 000000000000..ab108714ff31 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupproperties.go @@ -0,0 +1,12 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayPolicyGroupProperties struct { + IsDefault bool `json:"isDefault"` + PolicyMembers []VirtualNetworkGatewayPolicyGroupMember `json:"policyMembers"` + Priority int64 `json:"priority"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VngClientConnectionConfigurations *[]SubResource `json:"vngClientConnectionConfigurations,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypropertiesformat.go new file mode 100644 index 000000000000..d371f8bea657 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypropertiesformat.go @@ -0,0 +1,33 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayPropertiesFormat struct { + ActiveActive *bool `json:"activeActive,omitempty"` + AdminState *AdminState `json:"adminState,omitempty"` + AllowRemoteVnetTraffic *bool `json:"allowRemoteVnetTraffic,omitempty"` + AllowVirtualWanTraffic *bool `json:"allowVirtualWanTraffic,omitempty"` + AutoScaleConfiguration *VirtualNetworkGatewayAutoScaleConfiguration `json:"autoScaleConfiguration,omitempty"` + BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` + CustomRoutes *AddressSpace `json:"customRoutes,omitempty"` + DisableIPSecReplayProtection *bool `json:"disableIPSecReplayProtection,omitempty"` + EnableBgp *bool `json:"enableBgp,omitempty"` + EnableBgpRouteTranslationForNat *bool `json:"enableBgpRouteTranslationForNat,omitempty"` + EnableDnsForwarding *bool `json:"enableDnsForwarding,omitempty"` + EnablePrivateIPAddress *bool `json:"enablePrivateIpAddress,omitempty"` + GatewayDefaultSite *SubResource `json:"gatewayDefaultSite,omitempty"` + GatewayType *VirtualNetworkGatewayType `json:"gatewayType,omitempty"` + IPConfigurations *[]VirtualNetworkGatewayIPConfiguration `json:"ipConfigurations,omitempty"` + InboundDnsForwardingEndpoint *string `json:"inboundDnsForwardingEndpoint,omitempty"` + NatRules *[]VirtualNetworkGatewayNatRule `json:"natRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResiliencyModel *ResiliencyModel `json:"resiliencyModel,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Sku *VirtualNetworkGatewaySku `json:"sku,omitempty"` + VNetExtendedLocationResourceId *string `json:"vNetExtendedLocationResourceId,omitempty"` + VirtualNetworkGatewayPolicyGroups *[]VirtualNetworkGatewayPolicyGroup `json:"virtualNetworkGatewayPolicyGroups,omitempty"` + VpnClientConfiguration *VpnClientConfiguration `json:"vpnClientConfiguration,omitempty"` + VpnGatewayGeneration *VpnGatewayGeneration `json:"vpnGatewayGeneration,omitempty"` + VpnType *VpnType `json:"vpnType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaysku.go new file mode 100644 index 000000000000..b96386d7651a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaysku.go @@ -0,0 +1,10 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewaySku struct { + Capacity *int64 `json:"capacity,omitempty"` + Name *VirtualNetworkGatewaySkuName `json:"name,omitempty"` + Tier *VirtualNetworkGatewaySkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vngclientconnectionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vngclientconnectionconfiguration.go new file mode 100644 index 000000000000..44c61c021674 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vngclientconnectionconfiguration.go @@ -0,0 +1,11 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VngClientConnectionConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VngClientConnectionConfigurationProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vngclientconnectionconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vngclientconnectionconfigurationproperties.go new file mode 100644 index 000000000000..8bf37c29734f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vngclientconnectionconfigurationproperties.go @@ -0,0 +1,10 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VngClientConnectionConfigurationProperties struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkGatewayPolicyGroups []SubResource `json:"virtualNetworkGatewayPolicyGroups"` + VpnClientAddressPool AddressSpace `json:"vpnClientAddressPool"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconfiguration.go new file mode 100644 index 000000000000..947582e3da99 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconfiguration.go @@ -0,0 +1,20 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientConfiguration struct { + AadAudience *string `json:"aadAudience,omitempty"` + AadIssuer *string `json:"aadIssuer,omitempty"` + AadTenant *string `json:"aadTenant,omitempty"` + RadiusServerAddress *string `json:"radiusServerAddress,omitempty"` + RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` + RadiusServers *[]RadiusServer `json:"radiusServers,omitempty"` + VngClientConnectionConfigurations *[]VngClientConnectionConfiguration `json:"vngClientConnectionConfigurations,omitempty"` + VpnAuthenticationTypes *[]VpnAuthenticationType `json:"vpnAuthenticationTypes,omitempty"` + VpnClientAddressPool *AddressSpace `json:"vpnClientAddressPool,omitempty"` + VpnClientIPsecPolicies *[]IPsecPolicy `json:"vpnClientIpsecPolicies,omitempty"` + VpnClientProtocols *[]VpnClientProtocol `json:"vpnClientProtocols,omitempty"` + VpnClientRevokedCertificates *[]VpnClientRevokedCertificate `json:"vpnClientRevokedCertificates,omitempty"` + VpnClientRootCertificates *[]VpnClientRootCertificate `json:"vpnClientRootCertificates,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetail.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetail.go new file mode 100644 index 000000000000..c1bd5bd01b89 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetail.go @@ -0,0 +1,19 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientConnectionHealthDetail struct { + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + EgressPacketsTransferred *int64 `json:"egressPacketsTransferred,omitempty"` + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + IngressPacketsTransferred *int64 `json:"ingressPacketsTransferred,omitempty"` + MaxBandwidth *int64 `json:"maxBandwidth,omitempty"` + MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` + PrivateIPAddress *string `json:"privateIpAddress,omitempty"` + PublicIPAddress *string `json:"publicIpAddress,omitempty"` + VpnConnectionDuration *int64 `json:"vpnConnectionDuration,omitempty"` + VpnConnectionId *string `json:"vpnConnectionId,omitempty"` + VpnConnectionTime *string `json:"vpnConnectionTime,omitempty"` + VpnUserName *string `json:"vpnUserName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetaillistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetaillistresult.go new file mode 100644 index 000000000000..d0c7c1a3f220 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetaillistresult.go @@ -0,0 +1,8 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientConnectionHealthDetailListResult struct { + Value *[]VpnClientConnectionHealthDetail `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientipsecparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientipsecparameters.go new file mode 100644 index 000000000000..d972e45d72ed --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientipsecparameters.go @@ -0,0 +1,15 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientIPsecParameters struct { + DhGroup DhGroup `json:"dhGroup"` + IPsecEncryption IPsecEncryption `json:"ipsecEncryption"` + IPsecIntegrity IPsecIntegrity `json:"ipsecIntegrity"` + IkeEncryption IkeEncryption `json:"ikeEncryption"` + IkeIntegrity IkeIntegrity `json:"ikeIntegrity"` + PfsGroup PfsGroup `json:"pfsGroup"` + SaDataSizeKilobytes int64 `json:"saDataSizeKilobytes"` + SaLifeTimeSeconds int64 `json:"saLifeTimeSeconds"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientparameters.go new file mode 100644 index 000000000000..dbfa84e1c677 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientparameters.go @@ -0,0 +1,11 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientParameters struct { + AuthenticationMethod *AuthenticationMethod `json:"authenticationMethod,omitempty"` + ClientRootCertificates *[]string `json:"clientRootCertificates,omitempty"` + ProcessorArchitecture *ProcessorArchitecture `json:"processorArchitecture,omitempty"` + RadiusServerAuthCertificate *string `json:"radiusServerAuthCertificate,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrevokedcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrevokedcertificate.go new file mode 100644 index 000000000000..2151e3bf02b9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrevokedcertificate.go @@ -0,0 +1,11 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientRevokedCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnClientRevokedCertificatePropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrevokedcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrevokedcertificatepropertiesformat.go new file mode 100644 index 000000000000..9a5fb25ca9bd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrevokedcertificatepropertiesformat.go @@ -0,0 +1,9 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientRevokedCertificatePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Thumbprint *string `json:"thumbprint,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrootcertificate.go new file mode 100644 index 000000000000..db4850a95ff8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrootcertificate.go @@ -0,0 +1,11 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientRootCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties VpnClientRootCertificatePropertiesFormat `json:"properties"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrootcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrootcertificatepropertiesformat.go new file mode 100644 index 000000000000..4a44a811b2a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrootcertificatepropertiesformat.go @@ -0,0 +1,9 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientRootCertificatePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicCertData string `json:"publicCertData"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpndevicescriptparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpndevicescriptparameters.go new file mode 100644 index 000000000000..61ec4f46b54c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpndevicescriptparameters.go @@ -0,0 +1,10 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnDeviceScriptParameters struct { + DeviceFamily *string `json:"deviceFamily,omitempty"` + FirmwareVersion *string `json:"firmwareVersion,omitempty"` + Vendor *string `json:"vendor,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnnatrulemapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnnatrulemapping.go new file mode 100644 index 000000000000..d903f625a584 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnnatrulemapping.go @@ -0,0 +1,9 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnNatRuleMapping struct { + AddressSpace *string `json:"addressSpace,omitempty"` + PortRange *string `json:"portRange,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnpacketcapturestartparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnpacketcapturestartparameters.go new file mode 100644 index 000000000000..014f699e4367 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnpacketcapturestartparameters.go @@ -0,0 +1,8 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnPacketCaptureStartParameters struct { + FilterData *string `json:"filterData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnpacketcapturestopparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnpacketcapturestopparameters.go new file mode 100644 index 000000000000..25f6fba8d559 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnpacketcapturestopparameters.go @@ -0,0 +1,8 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnPacketCaptureStopParameters struct { + SasURL *string `json:"sasUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/predicates.go new file mode 100644 index 000000000000..e03cad8f7b63 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/predicates.go @@ -0,0 +1,98 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p VirtualNetworkGatewayOperationPredicate) Matches(input VirtualNetworkGateway) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VirtualNetworkGatewayConnectionListEntityOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p VirtualNetworkGatewayConnectionListEntityOperationPredicate) Matches(input VirtualNetworkGatewayConnectionListEntity) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VirtualNetworkGatewayNatRuleOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p VirtualNetworkGatewayNatRuleOperationPredicate) Matches(input VirtualNetworkGatewayNatRule) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/version.go new file mode 100644 index 000000000000..94d4b52b0d45 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/version.go @@ -0,0 +1,10 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/virtualnetworkgateways/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/README.md new file mode 100644 index 000000000000..83eedf629c49 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/README.md @@ -0,0 +1,83 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings` Documentation + +The `virtualnetworkpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings" +``` + + +### Client Initialization + +```go +client := virtualnetworkpeerings.NewVirtualNetworkPeeringsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VirtualNetworkPeeringsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "virtualNetworkPeeringName") + +payload := virtualnetworkpeerings.VirtualNetworkPeering{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload, virtualnetworkpeerings.DefaultCreateOrUpdateOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkPeeringsClient.Delete` + +```go +ctx := context.TODO() +id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "virtualNetworkPeeringName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkPeeringsClient.Get` + +```go +ctx := context.TODO() +id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "virtualNetworkPeeringName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworkPeeringsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/client.go new file mode 100644 index 000000000000..a8632e2ec55e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/client.go @@ -0,0 +1,26 @@ +package virtualnetworkpeerings + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkPeeringsClient struct { + Client *resourcemanager.Client +} + +func NewVirtualNetworkPeeringsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworkPeeringsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworkpeerings", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating VirtualNetworkPeeringsClient: %+v", err) + } + + return &VirtualNetworkPeeringsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/constants.go new file mode 100644 index 000000000000..0cb41da70fc9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/constants.go @@ -0,0 +1,227 @@ +package virtualnetworkpeerings + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type SyncRemoteAddressSpace string + +const ( + SyncRemoteAddressSpaceTrue SyncRemoteAddressSpace = "true" +) + +func PossibleValuesForSyncRemoteAddressSpace() []string { + return []string{ + string(SyncRemoteAddressSpaceTrue), + } +} + +func (s *SyncRemoteAddressSpace) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncRemoteAddressSpace(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncRemoteAddressSpace(input string) (*SyncRemoteAddressSpace, error) { + vals := map[string]SyncRemoteAddressSpace{ + "true": SyncRemoteAddressSpaceTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncRemoteAddressSpace(input) + return &out, nil +} + +type VirtualNetworkEncryptionEnforcement string + +const ( + VirtualNetworkEncryptionEnforcementAllowUnencrypted VirtualNetworkEncryptionEnforcement = "AllowUnencrypted" + VirtualNetworkEncryptionEnforcementDropUnencrypted VirtualNetworkEncryptionEnforcement = "DropUnencrypted" +) + +func PossibleValuesForVirtualNetworkEncryptionEnforcement() []string { + return []string{ + string(VirtualNetworkEncryptionEnforcementAllowUnencrypted), + string(VirtualNetworkEncryptionEnforcementDropUnencrypted), + } +} + +func (s *VirtualNetworkEncryptionEnforcement) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkEncryptionEnforcement(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkEncryptionEnforcement(input string) (*VirtualNetworkEncryptionEnforcement, error) { + vals := map[string]VirtualNetworkEncryptionEnforcement{ + "allowunencrypted": VirtualNetworkEncryptionEnforcementAllowUnencrypted, + "dropunencrypted": VirtualNetworkEncryptionEnforcementDropUnencrypted, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkEncryptionEnforcement(input) + return &out, nil +} + +type VirtualNetworkPeeringLevel string + +const ( + VirtualNetworkPeeringLevelFullyInSync VirtualNetworkPeeringLevel = "FullyInSync" + VirtualNetworkPeeringLevelLocalAndRemoteNotInSync VirtualNetworkPeeringLevel = "LocalAndRemoteNotInSync" + VirtualNetworkPeeringLevelLocalNotInSync VirtualNetworkPeeringLevel = "LocalNotInSync" + VirtualNetworkPeeringLevelRemoteNotInSync VirtualNetworkPeeringLevel = "RemoteNotInSync" +) + +func PossibleValuesForVirtualNetworkPeeringLevel() []string { + return []string{ + string(VirtualNetworkPeeringLevelFullyInSync), + string(VirtualNetworkPeeringLevelLocalAndRemoteNotInSync), + string(VirtualNetworkPeeringLevelLocalNotInSync), + string(VirtualNetworkPeeringLevelRemoteNotInSync), + } +} + +func (s *VirtualNetworkPeeringLevel) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPeeringLevel(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPeeringLevel(input string) (*VirtualNetworkPeeringLevel, error) { + vals := map[string]VirtualNetworkPeeringLevel{ + "fullyinsync": VirtualNetworkPeeringLevelFullyInSync, + "localandremotenotinsync": VirtualNetworkPeeringLevelLocalAndRemoteNotInSync, + "localnotinsync": VirtualNetworkPeeringLevelLocalNotInSync, + "remotenotinsync": VirtualNetworkPeeringLevelRemoteNotInSync, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPeeringLevel(input) + return &out, nil +} + +type VirtualNetworkPeeringState string + +const ( + VirtualNetworkPeeringStateConnected VirtualNetworkPeeringState = "Connected" + VirtualNetworkPeeringStateDisconnected VirtualNetworkPeeringState = "Disconnected" + VirtualNetworkPeeringStateInitiated VirtualNetworkPeeringState = "Initiated" +) + +func PossibleValuesForVirtualNetworkPeeringState() []string { + return []string{ + string(VirtualNetworkPeeringStateConnected), + string(VirtualNetworkPeeringStateDisconnected), + string(VirtualNetworkPeeringStateInitiated), + } +} + +func (s *VirtualNetworkPeeringState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPeeringState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPeeringState(input string) (*VirtualNetworkPeeringState, error) { + vals := map[string]VirtualNetworkPeeringState{ + "connected": VirtualNetworkPeeringStateConnected, + "disconnected": VirtualNetworkPeeringStateDisconnected, + "initiated": VirtualNetworkPeeringStateInitiated, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPeeringState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/id_virtualnetworkpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/id_virtualnetworkpeering.go new file mode 100644 index 000000000000..03298e7f7068 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/id_virtualnetworkpeering.go @@ -0,0 +1,139 @@ +package virtualnetworkpeerings + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VirtualNetworkPeeringId{}) +} + +var _ resourceids.ResourceId = &VirtualNetworkPeeringId{} + +// VirtualNetworkPeeringId is a struct representing the Resource ID for a Virtual Network Peering +type VirtualNetworkPeeringId struct { + SubscriptionId string + ResourceGroupName string + VirtualNetworkName string + VirtualNetworkPeeringName string +} + +// NewVirtualNetworkPeeringID returns a new VirtualNetworkPeeringId struct +func NewVirtualNetworkPeeringID(subscriptionId string, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) VirtualNetworkPeeringId { + return VirtualNetworkPeeringId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualNetworkName: virtualNetworkName, + VirtualNetworkPeeringName: virtualNetworkPeeringName, + } +} + +// ParseVirtualNetworkPeeringID parses 'input' into a VirtualNetworkPeeringId +func ParseVirtualNetworkPeeringID(input string) (*VirtualNetworkPeeringId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualNetworkPeeringId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualNetworkPeeringId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVirtualNetworkPeeringIDInsensitively parses 'input' case-insensitively into a VirtualNetworkPeeringId +// note: this method should only be used for API response data and not user input +func ParseVirtualNetworkPeeringIDInsensitively(input string) (*VirtualNetworkPeeringId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualNetworkPeeringId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualNetworkPeeringId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VirtualNetworkPeeringId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualNetworkName, ok = input.Parsed["virtualNetworkName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualNetworkName", input) + } + + if id.VirtualNetworkPeeringName, ok = input.Parsed["virtualNetworkPeeringName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualNetworkPeeringName", input) + } + + return nil +} + +// ValidateVirtualNetworkPeeringID checks that 'input' can be parsed as a Virtual Network Peering ID +func ValidateVirtualNetworkPeeringID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVirtualNetworkPeeringID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Virtual Network Peering ID +func (id VirtualNetworkPeeringId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworks/%s/virtualNetworkPeerings/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualNetworkName, id.VirtualNetworkPeeringName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Virtual Network Peering ID +func (id VirtualNetworkPeeringId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualNetworks", "virtualNetworks", "virtualNetworks"), + resourceids.UserSpecifiedSegment("virtualNetworkName", "virtualNetworkName"), + resourceids.StaticSegment("staticVirtualNetworkPeerings", "virtualNetworkPeerings", "virtualNetworkPeerings"), + resourceids.UserSpecifiedSegment("virtualNetworkPeeringName", "virtualNetworkPeeringName"), + } +} + +// String returns a human-readable description of this Virtual Network Peering ID +func (id VirtualNetworkPeeringId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Network Name: %q", id.VirtualNetworkName), + fmt.Sprintf("Virtual Network Peering Name: %q", id.VirtualNetworkPeeringName), + } + return fmt.Sprintf("Virtual Network Peering (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_createorupdate.go new file mode 100644 index 000000000000..950797b73028 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_createorupdate.go @@ -0,0 +1,104 @@ +package virtualnetworkpeerings + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetworkPeering +} + +type CreateOrUpdateOperationOptions struct { + SyncRemoteAddressSpace *SyncRemoteAddressSpace +} + +func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions { + return CreateOrUpdateOperationOptions{} +} + +func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.SyncRemoteAddressSpace != nil { + out.Append("syncRemoteAddressSpace", fmt.Sprintf("%v", *o.SyncRemoteAddressSpace)) + } + return &out +} + +// CreateOrUpdate ... +func (c VirtualNetworkPeeringsClient) CreateOrUpdate(ctx context.Context, id VirtualNetworkPeeringId, input VirtualNetworkPeering, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c VirtualNetworkPeeringsClient) CreateOrUpdateThenPoll(ctx context.Context, id VirtualNetworkPeeringId, input VirtualNetworkPeering, options CreateOrUpdateOperationOptions) error { + result, err := c.CreateOrUpdate(ctx, id, input, options) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_delete.go new file mode 100644 index 000000000000..0d0ded252a4e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_delete.go @@ -0,0 +1,71 @@ +package virtualnetworkpeerings + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c VirtualNetworkPeeringsClient) Delete(ctx context.Context, id VirtualNetworkPeeringId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c VirtualNetworkPeeringsClient) DeleteThenPoll(ctx context.Context, id VirtualNetworkPeeringId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_get.go new file mode 100644 index 000000000000..8bc92358897c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_get.go @@ -0,0 +1,53 @@ +package virtualnetworkpeerings + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetworkPeering +} + +// Get ... +func (c VirtualNetworkPeeringsClient) Get(ctx context.Context, id VirtualNetworkPeeringId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualNetworkPeering + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_list.go new file mode 100644 index 000000000000..a18c0885cc90 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_list.go @@ -0,0 +1,106 @@ +package virtualnetworkpeerings + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualNetworkPeering +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualNetworkPeering +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c VirtualNetworkPeeringsClient) List(ctx context.Context, id commonids.VirtualNetworkId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/virtualNetworkPeerings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualNetworkPeering `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c VirtualNetworkPeeringsClient) ListComplete(ctx context.Context, id commonids.VirtualNetworkId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, VirtualNetworkPeeringOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualNetworkPeeringsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.VirtualNetworkId, predicate VirtualNetworkPeeringOperationPredicate) (result ListCompleteResult, err error) { + items := make([]VirtualNetworkPeering, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_addressspace.go new file mode 100644 index 000000000000..dadfe5be0b5b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_addressspace.go @@ -0,0 +1,8 @@ +package virtualnetworkpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressSpace struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_subresource.go new file mode 100644 index 000000000000..07cc63aadbb4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_subresource.go @@ -0,0 +1,8 @@ +package virtualnetworkpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkbgpcommunities.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkbgpcommunities.go new file mode 100644 index 000000000000..a1302f81779d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkbgpcommunities.go @@ -0,0 +1,9 @@ +package virtualnetworkpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkBgpCommunities struct { + RegionalCommunity *string `json:"regionalCommunity,omitempty"` + VirtualNetworkCommunity string `json:"virtualNetworkCommunity"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkencryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkencryption.go new file mode 100644 index 000000000000..82989ac5992a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkencryption.go @@ -0,0 +1,9 @@ +package virtualnetworkpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkEncryption struct { + Enabled bool `json:"enabled"` + Enforcement *VirtualNetworkEncryptionEnforcement `json:"enforcement,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkpeering.go new file mode 100644 index 000000000000..4b0c5a50abf8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkpeering.go @@ -0,0 +1,12 @@ +package virtualnetworkpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkPeering struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkPeeringPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkpeeringpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkpeeringpropertiesformat.go new file mode 100644 index 000000000000..4081538e08fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkpeeringpropertiesformat.go @@ -0,0 +1,27 @@ +package virtualnetworkpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkPeeringPropertiesFormat struct { + AllowForwardedTraffic *bool `json:"allowForwardedTraffic,omitempty"` + AllowGatewayTransit *bool `json:"allowGatewayTransit,omitempty"` + AllowVirtualNetworkAccess *bool `json:"allowVirtualNetworkAccess,omitempty"` + DoNotVerifyRemoteGateways *bool `json:"doNotVerifyRemoteGateways,omitempty"` + EnableOnlyIPv6Peering *bool `json:"enableOnlyIPv6Peering,omitempty"` + LocalAddressSpace *AddressSpace `json:"localAddressSpace,omitempty"` + LocalSubnetNames *[]string `json:"localSubnetNames,omitempty"` + LocalVirtualNetworkAddressSpace *AddressSpace `json:"localVirtualNetworkAddressSpace,omitempty"` + PeerCompleteVnets *bool `json:"peerCompleteVnets,omitempty"` + PeeringState *VirtualNetworkPeeringState `json:"peeringState,omitempty"` + PeeringSyncLevel *VirtualNetworkPeeringLevel `json:"peeringSyncLevel,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RemoteAddressSpace *AddressSpace `json:"remoteAddressSpace,omitempty"` + RemoteBgpCommunities *VirtualNetworkBgpCommunities `json:"remoteBgpCommunities,omitempty"` + RemoteSubnetNames *[]string `json:"remoteSubnetNames,omitempty"` + RemoteVirtualNetwork *SubResource `json:"remoteVirtualNetwork,omitempty"` + RemoteVirtualNetworkAddressSpace *AddressSpace `json:"remoteVirtualNetworkAddressSpace,omitempty"` + RemoteVirtualNetworkEncryption *VirtualNetworkEncryption `json:"remoteVirtualNetworkEncryption,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + UseRemoteGateways *bool `json:"useRemoteGateways,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/predicates.go new file mode 100644 index 000000000000..a945839e0b29 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/predicates.go @@ -0,0 +1,32 @@ +package virtualnetworkpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkPeeringOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p VirtualNetworkPeeringOperationPredicate) Matches(input VirtualNetworkPeering) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/version.go new file mode 100644 index 000000000000..8ddc05448ba7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/version.go @@ -0,0 +1,10 @@ +package virtualnetworkpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/virtualnetworkpeerings/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/README.md new file mode 100644 index 000000000000..5a064f325f1a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/README.md @@ -0,0 +1,239 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks` Documentation + +The `virtualnetworks` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" +``` + + +### Client Initialization + +```go +client := virtualnetworks.NewVirtualNetworksClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VirtualNetworksClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +payload := virtualnetworks.VirtualNetwork{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworksClient.Delete` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworksClient.Get` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +read, err := client.Get(ctx, id, virtualnetworks.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworksClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworksClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworksClient.ResourceNavigationLinksList` + +```go +ctx := context.TODO() +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") + +// alternatively `client.ResourceNavigationLinksList(ctx, id)` can be used to do batched pagination +items, err := client.ResourceNavigationLinksListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworksClient.ServiceAssociationLinksList` + +```go +ctx := context.TODO() +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") + +// alternatively `client.ServiceAssociationLinksList(ctx, id)` can be used to do batched pagination +items, err := client.ServiceAssociationLinksListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworksClient.SubnetsPrepareNetworkPolicies` + +```go +ctx := context.TODO() +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") + +payload := virtualnetworks.PrepareNetworkPoliciesRequest{ + // ... +} + + +if err := client.SubnetsPrepareNetworkPoliciesThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworksClient.SubnetsUnprepareNetworkPolicies` + +```go +ctx := context.TODO() +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") + +payload := virtualnetworks.UnprepareNetworkPoliciesRequest{ + // ... +} + + +if err := client.SubnetsUnprepareNetworkPoliciesThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworksClient.UpdateTags` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +payload := virtualnetworks.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworksClient.VirtualNetworksCheckIPAddressAvailability` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +read, err := client.VirtualNetworksCheckIPAddressAvailability(ctx, id, virtualnetworks.DefaultVirtualNetworksCheckIPAddressAvailabilityOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworksClient.VirtualNetworksListDdosProtectionStatus` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +// alternatively `client.VirtualNetworksListDdosProtectionStatus(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions())` can be used to do batched pagination +items, err := client.VirtualNetworksListDdosProtectionStatusComplete(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworksClient.VirtualNetworksListUsage` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +// alternatively `client.VirtualNetworksListUsage(ctx, id)` can be used to do batched pagination +items, err := client.VirtualNetworksListUsageComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/client.go new file mode 100644 index 000000000000..9acbb6c10272 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/client.go @@ -0,0 +1,26 @@ +package virtualnetworks + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworksClient struct { + Client *resourcemanager.Client +} + +func NewVirtualNetworksClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworksClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworks", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating VirtualNetworksClient: %+v", err) + } + + return &VirtualNetworksClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/constants.go new file mode 100644 index 000000000000..d9b7a0f33901 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/constants.go @@ -0,0 +1,1412 @@ +package virtualnetworks + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type IsWorkloadProtected string + +const ( + IsWorkloadProtectedFalse IsWorkloadProtected = "False" + IsWorkloadProtectedTrue IsWorkloadProtected = "True" +) + +func PossibleValuesForIsWorkloadProtected() []string { + return []string{ + string(IsWorkloadProtectedFalse), + string(IsWorkloadProtectedTrue), + } +} + +func (s *IsWorkloadProtected) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIsWorkloadProtected(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIsWorkloadProtected(input string) (*IsWorkloadProtected, error) { + vals := map[string]IsWorkloadProtected{ + "false": IsWorkloadProtectedFalse, + "true": IsWorkloadProtectedTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IsWorkloadProtected(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type PrivateEndpointVNetPolicies string + +const ( + PrivateEndpointVNetPoliciesBasic PrivateEndpointVNetPolicies = "Basic" + PrivateEndpointVNetPoliciesDisabled PrivateEndpointVNetPolicies = "Disabled" +) + +func PossibleValuesForPrivateEndpointVNetPolicies() []string { + return []string{ + string(PrivateEndpointVNetPoliciesBasic), + string(PrivateEndpointVNetPoliciesDisabled), + } +} + +func (s *PrivateEndpointVNetPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePrivateEndpointVNetPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePrivateEndpointVNetPolicies(input string) (*PrivateEndpointVNetPolicies, error) { + vals := map[string]PrivateEndpointVNetPolicies{ + "basic": PrivateEndpointVNetPoliciesBasic, + "disabled": PrivateEndpointVNetPoliciesDisabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PrivateEndpointVNetPolicies(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkEncryptionEnforcement string + +const ( + VirtualNetworkEncryptionEnforcementAllowUnencrypted VirtualNetworkEncryptionEnforcement = "AllowUnencrypted" + VirtualNetworkEncryptionEnforcementDropUnencrypted VirtualNetworkEncryptionEnforcement = "DropUnencrypted" +) + +func PossibleValuesForVirtualNetworkEncryptionEnforcement() []string { + return []string{ + string(VirtualNetworkEncryptionEnforcementAllowUnencrypted), + string(VirtualNetworkEncryptionEnforcementDropUnencrypted), + } +} + +func (s *VirtualNetworkEncryptionEnforcement) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkEncryptionEnforcement(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkEncryptionEnforcement(input string) (*VirtualNetworkEncryptionEnforcement, error) { + vals := map[string]VirtualNetworkEncryptionEnforcement{ + "allowunencrypted": VirtualNetworkEncryptionEnforcementAllowUnencrypted, + "dropunencrypted": VirtualNetworkEncryptionEnforcementDropUnencrypted, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkEncryptionEnforcement(input) + return &out, nil +} + +type VirtualNetworkPeeringLevel string + +const ( + VirtualNetworkPeeringLevelFullyInSync VirtualNetworkPeeringLevel = "FullyInSync" + VirtualNetworkPeeringLevelLocalAndRemoteNotInSync VirtualNetworkPeeringLevel = "LocalAndRemoteNotInSync" + VirtualNetworkPeeringLevelLocalNotInSync VirtualNetworkPeeringLevel = "LocalNotInSync" + VirtualNetworkPeeringLevelRemoteNotInSync VirtualNetworkPeeringLevel = "RemoteNotInSync" +) + +func PossibleValuesForVirtualNetworkPeeringLevel() []string { + return []string{ + string(VirtualNetworkPeeringLevelFullyInSync), + string(VirtualNetworkPeeringLevelLocalAndRemoteNotInSync), + string(VirtualNetworkPeeringLevelLocalNotInSync), + string(VirtualNetworkPeeringLevelRemoteNotInSync), + } +} + +func (s *VirtualNetworkPeeringLevel) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPeeringLevel(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPeeringLevel(input string) (*VirtualNetworkPeeringLevel, error) { + vals := map[string]VirtualNetworkPeeringLevel{ + "fullyinsync": VirtualNetworkPeeringLevelFullyInSync, + "localandremotenotinsync": VirtualNetworkPeeringLevelLocalAndRemoteNotInSync, + "localnotinsync": VirtualNetworkPeeringLevelLocalNotInSync, + "remotenotinsync": VirtualNetworkPeeringLevelRemoteNotInSync, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPeeringLevel(input) + return &out, nil +} + +type VirtualNetworkPeeringState string + +const ( + VirtualNetworkPeeringStateConnected VirtualNetworkPeeringState = "Connected" + VirtualNetworkPeeringStateDisconnected VirtualNetworkPeeringState = "Disconnected" + VirtualNetworkPeeringStateInitiated VirtualNetworkPeeringState = "Initiated" +) + +func PossibleValuesForVirtualNetworkPeeringState() []string { + return []string{ + string(VirtualNetworkPeeringStateConnected), + string(VirtualNetworkPeeringStateDisconnected), + string(VirtualNetworkPeeringStateInitiated), + } +} + +func (s *VirtualNetworkPeeringState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPeeringState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPeeringState(input string) (*VirtualNetworkPeeringState, error) { + vals := map[string]VirtualNetworkPeeringState{ + "connected": VirtualNetworkPeeringStateConnected, + "disconnected": VirtualNetworkPeeringStateDisconnected, + "initiated": VirtualNetworkPeeringStateInitiated, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPeeringState(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_createorupdate.go new file mode 100644 index 000000000000..fb27efb9d4b8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_createorupdate.go @@ -0,0 +1,76 @@ +package virtualnetworks + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetwork +} + +// CreateOrUpdate ... +func (c VirtualNetworksClient) CreateOrUpdate(ctx context.Context, id commonids.VirtualNetworkId, input VirtualNetwork) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c VirtualNetworksClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.VirtualNetworkId, input VirtualNetwork) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_delete.go new file mode 100644 index 000000000000..53212cd5aba3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_delete.go @@ -0,0 +1,72 @@ +package virtualnetworks + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c VirtualNetworksClient) Delete(ctx context.Context, id commonids.VirtualNetworkId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c VirtualNetworksClient) DeleteThenPoll(ctx context.Context, id commonids.VirtualNetworkId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_get.go new file mode 100644 index 000000000000..db1b8807d3eb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_get.go @@ -0,0 +1,84 @@ +package virtualnetworks + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetwork +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c VirtualNetworksClient) Get(ctx context.Context, id commonids.VirtualNetworkId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualNetwork + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_list.go new file mode 100644 index 000000000000..e540706223ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_list.go @@ -0,0 +1,106 @@ +package virtualnetworks + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualNetwork +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualNetwork +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c VirtualNetworksClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworks", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualNetwork `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c VirtualNetworksClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, VirtualNetworkOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualNetworksClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VirtualNetworkOperationPredicate) (result ListCompleteResult, err error) { + items := make([]VirtualNetwork, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_listall.go new file mode 100644 index 000000000000..e91f96c1cf38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_listall.go @@ -0,0 +1,106 @@ +package virtualnetworks + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualNetwork +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualNetwork +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c VirtualNetworksClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworks", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualNetwork `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c VirtualNetworksClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, VirtualNetworkOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualNetworksClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VirtualNetworkOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]VirtualNetwork, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_resourcenavigationlinkslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_resourcenavigationlinkslist.go new file mode 100644 index 000000000000..16f353bcd4ee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_resourcenavigationlinkslist.go @@ -0,0 +1,106 @@ +package virtualnetworks + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinksListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ResourceNavigationLink +} + +type ResourceNavigationLinksListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ResourceNavigationLink +} + +type ResourceNavigationLinksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourceNavigationLinksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ResourceNavigationLinksList ... +func (c VirtualNetworksClient) ResourceNavigationLinksList(ctx context.Context, id commonids.SubnetId) (result ResourceNavigationLinksListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ResourceNavigationLinksListCustomPager{}, + Path: fmt.Sprintf("%s/resourceNavigationLinks", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ResourceNavigationLink `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ResourceNavigationLinksListComplete retrieves all the results into a single object +func (c VirtualNetworksClient) ResourceNavigationLinksListComplete(ctx context.Context, id commonids.SubnetId) (ResourceNavigationLinksListCompleteResult, error) { + return c.ResourceNavigationLinksListCompleteMatchingPredicate(ctx, id, ResourceNavigationLinkOperationPredicate{}) +} + +// ResourceNavigationLinksListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualNetworksClient) ResourceNavigationLinksListCompleteMatchingPredicate(ctx context.Context, id commonids.SubnetId, predicate ResourceNavigationLinkOperationPredicate) (result ResourceNavigationLinksListCompleteResult, err error) { + items := make([]ResourceNavigationLink, 0) + + resp, err := c.ResourceNavigationLinksList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ResourceNavigationLinksListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_serviceassociationlinkslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_serviceassociationlinkslist.go new file mode 100644 index 000000000000..c246c98a15b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_serviceassociationlinkslist.go @@ -0,0 +1,106 @@ +package virtualnetworks + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinksListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ServiceAssociationLink +} + +type ServiceAssociationLinksListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ServiceAssociationLink +} + +type ServiceAssociationLinksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceAssociationLinksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ServiceAssociationLinksList ... +func (c VirtualNetworksClient) ServiceAssociationLinksList(ctx context.Context, id commonids.SubnetId) (result ServiceAssociationLinksListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ServiceAssociationLinksListCustomPager{}, + Path: fmt.Sprintf("%s/serviceAssociationLinks", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ServiceAssociationLink `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ServiceAssociationLinksListComplete retrieves all the results into a single object +func (c VirtualNetworksClient) ServiceAssociationLinksListComplete(ctx context.Context, id commonids.SubnetId) (ServiceAssociationLinksListCompleteResult, error) { + return c.ServiceAssociationLinksListCompleteMatchingPredicate(ctx, id, ServiceAssociationLinkOperationPredicate{}) +} + +// ServiceAssociationLinksListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualNetworksClient) ServiceAssociationLinksListCompleteMatchingPredicate(ctx context.Context, id commonids.SubnetId, predicate ServiceAssociationLinkOperationPredicate) (result ServiceAssociationLinksListCompleteResult, err error) { + items := make([]ServiceAssociationLink, 0) + + resp, err := c.ServiceAssociationLinksList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ServiceAssociationLinksListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_subnetspreparenetworkpolicies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_subnetspreparenetworkpolicies.go new file mode 100644 index 000000000000..b42b121f904e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_subnetspreparenetworkpolicies.go @@ -0,0 +1,75 @@ +package virtualnetworks + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetsPrepareNetworkPoliciesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// SubnetsPrepareNetworkPolicies ... +func (c VirtualNetworksClient) SubnetsPrepareNetworkPolicies(ctx context.Context, id commonids.SubnetId, input PrepareNetworkPoliciesRequest) (result SubnetsPrepareNetworkPoliciesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/prepareNetworkPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// SubnetsPrepareNetworkPoliciesThenPoll performs SubnetsPrepareNetworkPolicies then polls until it's completed +func (c VirtualNetworksClient) SubnetsPrepareNetworkPoliciesThenPoll(ctx context.Context, id commonids.SubnetId, input PrepareNetworkPoliciesRequest) error { + result, err := c.SubnetsPrepareNetworkPolicies(ctx, id, input) + if err != nil { + return fmt.Errorf("performing SubnetsPrepareNetworkPolicies: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after SubnetsPrepareNetworkPolicies: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_subnetsunpreparenetworkpolicies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_subnetsunpreparenetworkpolicies.go new file mode 100644 index 000000000000..69a0e33a2c87 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_subnetsunpreparenetworkpolicies.go @@ -0,0 +1,75 @@ +package virtualnetworks + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetsUnprepareNetworkPoliciesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// SubnetsUnprepareNetworkPolicies ... +func (c VirtualNetworksClient) SubnetsUnprepareNetworkPolicies(ctx context.Context, id commonids.SubnetId, input UnprepareNetworkPoliciesRequest) (result SubnetsUnprepareNetworkPoliciesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/unprepareNetworkPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// SubnetsUnprepareNetworkPoliciesThenPoll performs SubnetsUnprepareNetworkPolicies then polls until it's completed +func (c VirtualNetworksClient) SubnetsUnprepareNetworkPoliciesThenPoll(ctx context.Context, id commonids.SubnetId, input UnprepareNetworkPoliciesRequest) error { + result, err := c.SubnetsUnprepareNetworkPolicies(ctx, id, input) + if err != nil { + return fmt.Errorf("performing SubnetsUnprepareNetworkPolicies: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after SubnetsUnprepareNetworkPolicies: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_updatetags.go new file mode 100644 index 000000000000..3e63f83e2a68 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_updatetags.go @@ -0,0 +1,58 @@ +package virtualnetworks + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetwork +} + +// UpdateTags ... +func (c VirtualNetworksClient) UpdateTags(ctx context.Context, id commonids.VirtualNetworkId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualNetwork + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go new file mode 100644 index 000000000000..bcd41a4d5518 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go @@ -0,0 +1,84 @@ +package virtualnetworks + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworksCheckIPAddressAvailabilityOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *IPAddressAvailabilityResult +} + +type VirtualNetworksCheckIPAddressAvailabilityOperationOptions struct { + IPAddress *string +} + +func DefaultVirtualNetworksCheckIPAddressAvailabilityOperationOptions() VirtualNetworksCheckIPAddressAvailabilityOperationOptions { + return VirtualNetworksCheckIPAddressAvailabilityOperationOptions{} +} + +func (o VirtualNetworksCheckIPAddressAvailabilityOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o VirtualNetworksCheckIPAddressAvailabilityOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o VirtualNetworksCheckIPAddressAvailabilityOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.IPAddress != nil { + out.Append("ipAddress", fmt.Sprintf("%v", *o.IPAddress)) + } + return &out +} + +// VirtualNetworksCheckIPAddressAvailability ... +func (c VirtualNetworksClient) VirtualNetworksCheckIPAddressAvailability(ctx context.Context, id commonids.VirtualNetworkId, options VirtualNetworksCheckIPAddressAvailabilityOperationOptions) (result VirtualNetworksCheckIPAddressAvailabilityOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: fmt.Sprintf("%s/checkIPAddressAvailability", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model IPAddressAvailabilityResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go new file mode 100644 index 000000000000..cfc2cb53d45d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go @@ -0,0 +1,123 @@ +package virtualnetworks + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworksListDdosProtectionStatusOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *[]PublicIPDdosProtectionStatusResult +} + +type VirtualNetworksListDdosProtectionStatusCompleteResult struct { + LatestHttpResponse *http.Response + Items []PublicIPDdosProtectionStatusResult +} + +type VirtualNetworksListDdosProtectionStatusOperationOptions struct { + SkipToken *string + Top *int64 +} + +func DefaultVirtualNetworksListDdosProtectionStatusOperationOptions() VirtualNetworksListDdosProtectionStatusOperationOptions { + return VirtualNetworksListDdosProtectionStatusOperationOptions{} +} + +func (o VirtualNetworksListDdosProtectionStatusOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o VirtualNetworksListDdosProtectionStatusOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o VirtualNetworksListDdosProtectionStatusOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.SkipToken != nil { + out.Append("skipToken", fmt.Sprintf("%v", *o.SkipToken)) + } + if o.Top != nil { + out.Append("top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type VirtualNetworksListDdosProtectionStatusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualNetworksListDdosProtectionStatusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualNetworksListDdosProtectionStatus ... +func (c VirtualNetworksClient) VirtualNetworksListDdosProtectionStatus(ctx context.Context, id commonids.VirtualNetworkId, options VirtualNetworksListDdosProtectionStatusOperationOptions) (result VirtualNetworksListDdosProtectionStatusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + OptionsObject: options, + Pager: &VirtualNetworksListDdosProtectionStatusCustomPager{}, + Path: fmt.Sprintf("%s/ddosProtectionStatus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualNetworksListDdosProtectionStatusThenPoll performs VirtualNetworksListDdosProtectionStatus then polls until it's completed +func (c VirtualNetworksClient) VirtualNetworksListDdosProtectionStatusThenPoll(ctx context.Context, id commonids.VirtualNetworkId, options VirtualNetworksListDdosProtectionStatusOperationOptions) error { + result, err := c.VirtualNetworksListDdosProtectionStatus(ctx, id, options) + if err != nil { + return fmt.Errorf("performing VirtualNetworksListDdosProtectionStatus: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualNetworksListDdosProtectionStatus: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkslistusage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkslistusage.go new file mode 100644 index 000000000000..cfc1a239a938 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkslistusage.go @@ -0,0 +1,106 @@ +package virtualnetworks + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworksListUsageOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualNetworkUsage +} + +type VirtualNetworksListUsageCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualNetworkUsage +} + +type VirtualNetworksListUsageCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualNetworksListUsageCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualNetworksListUsage ... +func (c VirtualNetworksClient) VirtualNetworksListUsage(ctx context.Context, id commonids.VirtualNetworkId) (result VirtualNetworksListUsageOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VirtualNetworksListUsageCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualNetworkUsage `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VirtualNetworksListUsageComplete retrieves all the results into a single object +func (c VirtualNetworksClient) VirtualNetworksListUsageComplete(ctx context.Context, id commonids.VirtualNetworkId) (VirtualNetworksListUsageCompleteResult, error) { + return c.VirtualNetworksListUsageCompleteMatchingPredicate(ctx, id, VirtualNetworkUsageOperationPredicate{}) +} + +// VirtualNetworksListUsageCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualNetworksClient) VirtualNetworksListUsageCompleteMatchingPredicate(ctx context.Context, id commonids.VirtualNetworkId, predicate VirtualNetworkUsageOperationPredicate) (result VirtualNetworksListUsageCompleteResult, err error) { + items := make([]VirtualNetworkUsage, 0) + + resp, err := c.VirtualNetworksListUsage(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VirtualNetworksListUsageCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_addressspace.go new file mode 100644 index 000000000000..9e0e23e9145d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_addressspace.go @@ -0,0 +1,8 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressSpace struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..3f9607979a8e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..6f399a7bf5dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..953789d1f3ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..3da3cb7d9c8f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..d9d39242c2b3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..8069aeaaf358 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..29a50229369b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_backendaddresspool.go new file mode 100644 index 000000000000..dca54b5ff449 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..b5357aa1b586 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..4608979dcd28 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ddossettings.go new file mode 100644 index 000000000000..1a0ce5cf3aab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ddossettings.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_delegation.go new file mode 100644 index 000000000000..a8d0d2430172 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_delegation.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_dhcpoptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_dhcpoptions.go new file mode 100644 index 000000000000..2e389bf95035 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_dhcpoptions.go @@ -0,0 +1,8 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DhcpOptions struct { + DnsServers *[]string `json:"dnsServers,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlog.go new file mode 100644 index 000000000000..99a08c9552f9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlog.go @@ -0,0 +1,19 @@ +package virtualnetworks + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlogformatparameters.go new file mode 100644 index 000000000000..62b8c967d598 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..85dd6159153f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_frontendipconfiguration.go new file mode 100644 index 000000000000..4b7f7549a8a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package virtualnetworks + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..7f51afc745f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..ef3318f49d48 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_inboundnatrule.go new file mode 100644 index 000000000000..20f0e56c9667 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..8ca3d3cee595 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipaddressavailabilityresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipaddressavailabilityresult.go new file mode 100644 index 000000000000..2db5fbd90fa7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipaddressavailabilityresult.go @@ -0,0 +1,10 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPAddressAvailabilityResult struct { + Available *bool `json:"available,omitempty"` + AvailableIPAddresses *[]string `json:"availableIPAddresses,omitempty"` + IsPlatformReserved *bool `json:"isPlatformReserved,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfiguration.go new file mode 100644 index 000000000000..7fc81013c873 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..246a7d2784a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..1c15860eaa40 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..5f7e978b3729 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_iptag.go new file mode 100644 index 000000000000..5f312015c16b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_iptag.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..f84e63940987 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..5b16669363af --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgateway.go new file mode 100644 index 000000000000..e2a2c9ea1aa7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgateway.go @@ -0,0 +1,20 @@ +package virtualnetworks + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..11bdb034e9d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgatewaysku.go new file mode 100644 index 000000000000..3375ec206252 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natruleportmapping.go new file mode 100644 index 000000000000..c1f6eb9d2642 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkintentpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkintentpolicy.go new file mode 100644 index 000000000000..565f4c702ee9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkintentpolicy.go @@ -0,0 +1,13 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkIntentPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkintentpolicyconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkintentpolicyconfiguration.go new file mode 100644 index 000000000000..3f3080bf421c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkintentpolicyconfiguration.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkIntentPolicyConfiguration struct { + NetworkIntentPolicyName *string `json:"networkIntentPolicyName,omitempty"` + SourceNetworkIntentPolicy *NetworkIntentPolicy `json:"sourceNetworkIntentPolicy,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterface.go new file mode 100644 index 000000000000..51266c314dbe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterface.go @@ -0,0 +1,19 @@ +package virtualnetworks + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..35b796d58ea0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..e4fe127f68f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..0cf1411b04e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..f8d381013964 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..f38dee01e751 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..7ee2c196852d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..f37548acc09f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networksecuritygroup.go new file mode 100644 index 000000000000..c6ffd2de200a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..bdaff37d6ece --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_preparenetworkpoliciesrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_preparenetworkpoliciesrequest.go new file mode 100644 index 000000000000..af5d6a6061cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_preparenetworkpoliciesrequest.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrepareNetworkPoliciesRequest struct { + NetworkIntentPolicyConfigurations *[]NetworkIntentPolicyConfiguration `json:"networkIntentPolicyConfigurations,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpoint.go new file mode 100644 index 000000000000..a21e2003c7b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpoint.go @@ -0,0 +1,19 @@ +package virtualnetworks + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointconnection.go new file mode 100644 index 000000000000..03c0943acbec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..badbc227dee1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..b8c8c0e51e26 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..0e1ea69495ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointproperties.go new file mode 100644 index 000000000000..c204c6f06f5b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkservice.go new file mode 100644 index 000000000000..ea60905675db --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package virtualnetworks + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..45640ebd97ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..ece1141c4d0b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..498d4f92f9a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..b637ed217b55 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..7c3080b30c17 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..76256f1d4164 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddress.go new file mode 100644 index 000000000000..5eef47c77e3e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddress.go @@ -0,0 +1,22 @@ +package virtualnetworks + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..1e10d9bb32a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..f38386b9fd01 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddresssku.go new file mode 100644 index 000000000000..f080c20b33e5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipddosprotectionstatusresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipddosprotectionstatusresult.go new file mode 100644 index 000000000000..ca0f8cc894fd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipddosprotectionstatusresult.go @@ -0,0 +1,11 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPDdosProtectionStatusResult struct { + DdosProtectionPlanId *string `json:"ddosProtectionPlanId,omitempty"` + IsWorkloadProtected *IsWorkloadProtected `json:"isWorkloadProtected,omitempty"` + PublicIPAddress *string `json:"publicIpAddress,omitempty"` + PublicIPAddressId *string `json:"publicIpAddressId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourcenavigationlink.go new file mode 100644 index 000000000000..e26d27c77847 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..5c0bb30457ed --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourceset.go new file mode 100644 index 000000000000..3f176c096e67 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourceset.go @@ -0,0 +1,8 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..b8a74239a260 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_route.go new file mode 100644 index 000000000000..d76eb9ceeec8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_route.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routepropertiesformat.go new file mode 100644 index 000000000000..e52a5de8ca6a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routetable.go new file mode 100644 index 000000000000..2e233c020e37 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routetable.go @@ -0,0 +1,14 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..69015d574032 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_securityrule.go new file mode 100644 index 000000000000..f7ed0f51115e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_securityrule.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..af160e60e64d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceassociationlink.go new file mode 100644 index 000000000000..77039ca3b739 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..d6ef1f15de12 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..82eb0f31d43e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..d50c20ce576d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..4d2ebe5ac462 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..b221dd2c3192 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..00a9c1e56621 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..8c3d42e8afcb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subnet.go new file mode 100644 index 000000000000..7b3d4ff10c84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subnet.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..24216334abbb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subresource.go new file mode 100644 index 000000000000..ecd84dace182 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subresource.go @@ -0,0 +1,8 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_tagsobject.go new file mode 100644 index 000000000000..9ac4400ec752 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_tagsobject.go @@ -0,0 +1,8 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..ce47549e2b92 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..26812782cc83 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_unpreparenetworkpoliciesrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_unpreparenetworkpoliciesrequest.go new file mode 100644 index 000000000000..84b1fedbc2b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_unpreparenetworkpoliciesrequest.go @@ -0,0 +1,8 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UnprepareNetworkPoliciesRequest struct { + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetwork.go new file mode 100644 index 000000000000..01f2a07994e4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetwork.go @@ -0,0 +1,19 @@ +package virtualnetworks + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetwork struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkbgpcommunities.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkbgpcommunities.go new file mode 100644 index 000000000000..ecb655fd2343 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkbgpcommunities.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkBgpCommunities struct { + RegionalCommunity *string `json:"regionalCommunity,omitempty"` + VirtualNetworkCommunity string `json:"virtualNetworkCommunity"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkencryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkencryption.go new file mode 100644 index 000000000000..a0d8e13fe3a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkencryption.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkEncryption struct { + Enabled bool `json:"enabled"` + Enforcement *VirtualNetworkEncryptionEnforcement `json:"enforcement,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpeering.go new file mode 100644 index 000000000000..85b7fe9183a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpeering.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkPeering struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkPeeringPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpeeringpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpeeringpropertiesformat.go new file mode 100644 index 000000000000..41ebdc1a88a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpeeringpropertiesformat.go @@ -0,0 +1,27 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkPeeringPropertiesFormat struct { + AllowForwardedTraffic *bool `json:"allowForwardedTraffic,omitempty"` + AllowGatewayTransit *bool `json:"allowGatewayTransit,omitempty"` + AllowVirtualNetworkAccess *bool `json:"allowVirtualNetworkAccess,omitempty"` + DoNotVerifyRemoteGateways *bool `json:"doNotVerifyRemoteGateways,omitempty"` + EnableOnlyIPv6Peering *bool `json:"enableOnlyIPv6Peering,omitempty"` + LocalAddressSpace *AddressSpace `json:"localAddressSpace,omitempty"` + LocalSubnetNames *[]string `json:"localSubnetNames,omitempty"` + LocalVirtualNetworkAddressSpace *AddressSpace `json:"localVirtualNetworkAddressSpace,omitempty"` + PeerCompleteVnets *bool `json:"peerCompleteVnets,omitempty"` + PeeringState *VirtualNetworkPeeringState `json:"peeringState,omitempty"` + PeeringSyncLevel *VirtualNetworkPeeringLevel `json:"peeringSyncLevel,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RemoteAddressSpace *AddressSpace `json:"remoteAddressSpace,omitempty"` + RemoteBgpCommunities *VirtualNetworkBgpCommunities `json:"remoteBgpCommunities,omitempty"` + RemoteSubnetNames *[]string `json:"remoteSubnetNames,omitempty"` + RemoteVirtualNetwork *SubResource `json:"remoteVirtualNetwork,omitempty"` + RemoteVirtualNetworkAddressSpace *AddressSpace `json:"remoteVirtualNetworkAddressSpace,omitempty"` + RemoteVirtualNetworkEncryption *VirtualNetworkEncryption `json:"remoteVirtualNetworkEncryption,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + UseRemoteGateways *bool `json:"useRemoteGateways,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpropertiesformat.go new file mode 100644 index 000000000000..d4dcb1689d67 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpropertiesformat.go @@ -0,0 +1,22 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkPropertiesFormat struct { + AddressSpace *AddressSpace `json:"addressSpace,omitempty"` + BgpCommunities *VirtualNetworkBgpCommunities `json:"bgpCommunities,omitempty"` + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + DhcpOptions *DhcpOptions `json:"dhcpOptions,omitempty"` + EnableDdosProtection *bool `json:"enableDdosProtection,omitempty"` + EnableVMProtection *bool `json:"enableVmProtection,omitempty"` + Encryption *VirtualNetworkEncryption `json:"encryption,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlowTimeoutInMinutes *int64 `json:"flowTimeoutInMinutes,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + PrivateEndpointVNetPolicies *PrivateEndpointVNetPolicies `json:"privateEndpointVNetPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` + VirtualNetworkPeerings *[]VirtualNetworkPeering `json:"virtualNetworkPeerings,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworktap.go new file mode 100644 index 000000000000..d1b3faf41001 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..4c2bb1fad6c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkusage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkusage.go new file mode 100644 index 000000000000..470dd6b34f83 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkusage.go @@ -0,0 +1,12 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkUsage struct { + CurrentValue *float64 `json:"currentValue,omitempty"` + Id *string `json:"id,omitempty"` + Limit *float64 `json:"limit,omitempty"` + Name *VirtualNetworkUsageName `json:"name,omitempty"` + Unit *string `json:"unit,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkusagename.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkusagename.go new file mode 100644 index 000000000000..f3156ce6be82 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkusagename.go @@ -0,0 +1,9 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkUsageName struct { + LocalizedValue *string `json:"localizedValue,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/predicates.go new file mode 100644 index 000000000000..ae9763861542 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/predicates.go @@ -0,0 +1,144 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPDdosProtectionStatusResultOperationPredicate struct { + DdosProtectionPlanId *string + PublicIPAddress *string + PublicIPAddressId *string +} + +func (p PublicIPDdosProtectionStatusResultOperationPredicate) Matches(input PublicIPDdosProtectionStatusResult) bool { + + if p.DdosProtectionPlanId != nil && (input.DdosProtectionPlanId == nil || *p.DdosProtectionPlanId != *input.DdosProtectionPlanId) { + return false + } + + if p.PublicIPAddress != nil && (input.PublicIPAddress == nil || *p.PublicIPAddress != *input.PublicIPAddress) { + return false + } + + if p.PublicIPAddressId != nil && (input.PublicIPAddressId == nil || *p.PublicIPAddressId != *input.PublicIPAddressId) { + return false + } + + return true +} + +type ResourceNavigationLinkOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p ResourceNavigationLinkOperationPredicate) Matches(input ResourceNavigationLink) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type ServiceAssociationLinkOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p ServiceAssociationLinkOperationPredicate) Matches(input ServiceAssociationLink) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VirtualNetworkOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p VirtualNetworkOperationPredicate) Matches(input VirtualNetwork) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VirtualNetworkUsageOperationPredicate struct { + CurrentValue *float64 + Id *string + Limit *float64 + Unit *string +} + +func (p VirtualNetworkUsageOperationPredicate) Matches(input VirtualNetworkUsage) bool { + + if p.CurrentValue != nil && (input.CurrentValue == nil || *p.CurrentValue != *input.CurrentValue) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Limit != nil && (input.Limit == nil || *p.Limit != *input.Limit) { + return false + } + + if p.Unit != nil && (input.Unit == nil || *p.Unit != *input.Unit) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/version.go new file mode 100644 index 000000000000..6081d7e5aadc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/version.go @@ -0,0 +1,10 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/virtualnetworks/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/README.md index 979acc878093..f3c65cd3f138 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap` Documentation -The `virtualnetworktap` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `virtualnetworktap` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/id_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/id_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/id_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/id_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlog.go new file mode 100644 index 000000000000..d3c755b3dbf3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlog.go @@ -0,0 +1,19 @@ +package virtualnetworktap + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlogpropertiesformat.go similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_flowlogpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlogpropertiesformat.go index 64eb8ac4566b..5fe09758a9c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_flowlogpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlogpropertiesformat.go @@ -5,6 +5,7 @@ package virtualnetworktap type FlowLogPropertiesFormat struct { Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` Format *FlowLogFormatParameters `json:"format,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceproperties.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceproperties.go index cbafd8f49675..47cc3c1264ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceproperties.go @@ -6,6 +6,7 @@ package virtualnetworktap type PrivateLinkServiceProperties struct { Alias *string `json:"alias,omitempty"` AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` Fqdns *[]string `json:"fqdns,omitempty"` IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpropertiesformat.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpropertiesformat.go index 6da43c107d77..13911877fe3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpropertiesformat.go @@ -5,6 +5,7 @@ package virtualnetworktap type ServiceEndpointPropertiesFormat struct { Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Service *string `json:"service,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/version.go index e715032dda2a..fa21c3a80162 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/version.go @@ -3,8 +3,8 @@ package virtualnetworktap // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/virtualnetworktap/2023-11-01" + return "hashicorp/go-azure-sdk/virtualnetworktap/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/README.md similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/README.md index fe8923048d37..b3bff9a8c929 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps` Documentation -The `virtualnetworktaps` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `virtualnetworktaps` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/method_listall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/method_listall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/method_listall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlog.go new file mode 100644 index 000000000000..0247c5761156 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlog.go @@ -0,0 +1,19 @@ +package virtualnetworktaps + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlogpropertiesformat.go similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlogpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlogpropertiesformat.go index 6fc887f80102..9393798b4c10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlogpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlogpropertiesformat.go @@ -5,6 +5,7 @@ package virtualnetworktaps type FlowLogPropertiesFormat struct { Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` Format *FlowLogFormatParameters `json:"format,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceproperties.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceproperties.go index 9e5885610f52..981091123030 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceproperties.go @@ -6,6 +6,7 @@ package virtualnetworktaps type PrivateLinkServiceProperties struct { Alias *string `json:"alias,omitempty"` AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` Fqdns *[]string `json:"fqdns,omitempty"` IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpropertiesformat.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpropertiesformat.go index c5085da61db6..bf27483e5ab5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpropertiesformat.go @@ -5,6 +5,7 @@ package virtualnetworktaps type ServiceEndpointPropertiesFormat struct { Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Service *string `json:"service,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/version.go index 52ec91fec734..9340b39dc17c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/version.go @@ -3,8 +3,8 @@ package virtualnetworktaps // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/virtualnetworktaps/2023-11-01" + return "hashicorp/go-azure-sdk/virtualnetworktaps/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/README.md index 5120cb7e36dc..61790bc076e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings` Documentation -The `virtualrouterpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `virtualrouterpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/id_virtualrouter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/id_virtualrouter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/id_virtualrouter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/id_virtualrouter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/model_virtualrouterpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/model_virtualrouterpeering.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/model_virtualrouterpeering.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/model_virtualrouterpeering.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/model_virtualrouterpeeringproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/model_virtualrouterpeeringproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/model_virtualrouterpeeringproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/model_virtualrouterpeeringproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/version.go index d166e98ed83b..d093d5e27a9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/version.go @@ -3,8 +3,8 @@ package virtualrouterpeerings // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/virtualrouterpeerings/2023-11-01" + return "hashicorp/go-azure-sdk/virtualrouterpeerings/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/README.md index 8cb0d81d80f0..39ca47074143 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters` Documentation -The `virtualrouters` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `virtualrouters` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/id_virtualrouter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/id_virtualrouter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/id_virtualrouter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/id_virtualrouter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/model_virtualrouter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/model_virtualrouter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/model_virtualrouter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/model_virtualrouter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/model_virtualrouterpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/model_virtualrouterpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/model_virtualrouterpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/model_virtualrouterpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/version.go index 7218d712615a..0992ca8e9f8a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/version.go @@ -3,8 +3,8 @@ package virtualrouters // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/virtualrouters/2023-11-01" + return "hashicorp/go-azure-sdk/virtualrouters/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/README.md new file mode 100644 index 000000000000..e240763e9529 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/README.md @@ -0,0 +1,1534 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans` Documentation + +The `virtualwans` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" +``` + + +### Client Initialization + +```go +client := virtualwans.NewVirtualWANsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VirtualWANsClient.ConfigurationPolicyGroupsCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName", "configurationPolicyGroupName") + +payload := virtualwans.VpnServerConfigurationPolicyGroup{ + // ... +} + + +if err := client.ConfigurationPolicyGroupsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.ConfigurationPolicyGroupsDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName", "configurationPolicyGroupName") + +if err := client.ConfigurationPolicyGroupsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.ConfigurationPolicyGroupsGet` + +```go +ctx := context.TODO() +id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName", "configurationPolicyGroupName") + +read, err := client.ConfigurationPolicyGroupsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.ConfigurationPolicyGroupsListByVpnServerConfiguration` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") + +// alternatively `client.ConfigurationPolicyGroupsListByVpnServerConfiguration(ctx, id)` can be used to do batched pagination +items, err := client.ConfigurationPolicyGroupsListByVpnServerConfigurationComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.Generatevirtualwanvpnserverconfigurationvpnprofile` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanName") + +payload := virtualwans.VirtualWanVpnProfileParameters{ + // ... +} + + +if err := client.GeneratevirtualwanvpnserverconfigurationvpnprofileThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.HubRouteTablesCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "hubRouteTableName") + +payload := virtualwans.HubRouteTable{ + // ... +} + + +if err := client.HubRouteTablesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.HubRouteTablesDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "hubRouteTableName") + +if err := client.HubRouteTablesDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.HubRouteTablesGet` + +```go +ctx := context.TODO() +id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "hubRouteTableName") + +read, err := client.HubRouteTablesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.HubRouteTablesList` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +// alternatively `client.HubRouteTablesList(ctx, id)` can be used to do batched pagination +items, err := client.HubRouteTablesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.HubVirtualNetworkConnectionsCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "hubVirtualNetworkConnectionName") + +payload := virtualwans.HubVirtualNetworkConnection{ + // ... +} + + +if err := client.HubVirtualNetworkConnectionsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.HubVirtualNetworkConnectionsDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "hubVirtualNetworkConnectionName") + +if err := client.HubVirtualNetworkConnectionsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.HubVirtualNetworkConnectionsGet` + +```go +ctx := context.TODO() +id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "hubVirtualNetworkConnectionName") + +read, err := client.HubVirtualNetworkConnectionsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.HubVirtualNetworkConnectionsList` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +// alternatively `client.HubVirtualNetworkConnectionsList(ctx, id)` can be used to do batched pagination +items, err := client.HubVirtualNetworkConnectionsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.NatRulesCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "natRuleName") + +payload := virtualwans.VpnGatewayNatRule{ + // ... +} + + +if err := client.NatRulesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.NatRulesDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "natRuleName") + +if err := client.NatRulesDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.NatRulesGet` + +```go +ctx := context.TODO() +id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "natRuleName") + +read, err := client.NatRulesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.NatRulesListByVpnGateway` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") + +// alternatively `client.NatRulesListByVpnGateway(ctx, id)` can be used to do batched pagination +items, err := client.NatRulesListByVpnGatewayComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.NetworkVirtualApplianceConnectionsCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "networkVirtualApplianceConnectionName") + +payload := virtualwans.NetworkVirtualApplianceConnection{ + // ... +} + + +if err := client.NetworkVirtualApplianceConnectionsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.NetworkVirtualApplianceConnectionsDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "networkVirtualApplianceConnectionName") + +if err := client.NetworkVirtualApplianceConnectionsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.NetworkVirtualApplianceConnectionsGet` + +```go +ctx := context.TODO() +id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "networkVirtualApplianceConnectionName") + +read, err := client.NetworkVirtualApplianceConnectionsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.NetworkVirtualApplianceConnectionsList` + +```go +ctx := context.TODO() +id := virtualwans.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") + +// alternatively `client.NetworkVirtualApplianceConnectionsList(ctx, id)` can be used to do batched pagination +items, err := client.NetworkVirtualApplianceConnectionsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.P2sVpnGatewaysCreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") + +payload := virtualwans.P2SVpnGateway{ + // ... +} + + +if err := client.P2sVpnGatewaysCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.P2sVpnGatewaysDelete` + +```go +ctx := context.TODO() +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") + +if err := client.P2sVpnGatewaysDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.P2sVpnGatewaysGet` + +```go +ctx := context.TODO() +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") + +read, err := client.P2sVpnGatewaysGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.P2sVpnGatewaysList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.P2sVpnGatewaysList(ctx, id)` can be used to do batched pagination +items, err := client.P2sVpnGatewaysListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.P2sVpnGatewaysListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.P2sVpnGatewaysListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.P2sVpnGatewaysListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.RouteMapsCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeMapName") + +payload := virtualwans.RouteMap{ + // ... +} + + +if err := client.RouteMapsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.RouteMapsDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeMapName") + +if err := client.RouteMapsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.RouteMapsGet` + +```go +ctx := context.TODO() +id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeMapName") + +read, err := client.RouteMapsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.RouteMapsList` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +// alternatively `client.RouteMapsList(ctx, id)` can be used to do batched pagination +items, err := client.RouteMapsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.RoutingIntentCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routingIntentName") + +payload := virtualwans.RoutingIntent{ + // ... +} + + +if err := client.RoutingIntentCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.RoutingIntentDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routingIntentName") + +if err := client.RoutingIntentDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.RoutingIntentGet` + +```go +ctx := context.TODO() +id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routingIntentName") + +read, err := client.RoutingIntentGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.RoutingIntentList` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +// alternatively `client.RoutingIntentList(ctx, id)` can be used to do batched pagination +items, err := client.RoutingIntentListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.SupportedSecurityProviders` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanName") + +read, err := client.SupportedSecurityProviders(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.UpdateTags` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanName") + +payload := virtualwans.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubBgpConnectionCreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "bgpConnectionName") + +payload := virtualwans.BgpConnection{ + // ... +} + + +if err := client.VirtualHubBgpConnectionCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubBgpConnectionDelete` + +```go +ctx := context.TODO() +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "bgpConnectionName") + +if err := client.VirtualHubBgpConnectionDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubBgpConnectionGet` + +```go +ctx := context.TODO() +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "bgpConnectionName") + +read, err := client.VirtualHubBgpConnectionGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubBgpConnectionsList` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +// alternatively `client.VirtualHubBgpConnectionsList(ctx, id)` can be used to do batched pagination +items, err := client.VirtualHubBgpConnectionsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubBgpConnectionsListAdvertisedRoutes` + +```go +ctx := context.TODO() +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "bgpConnectionName") + +if err := client.VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubBgpConnectionsListLearnedRoutes` + +```go +ctx := context.TODO() +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "bgpConnectionName") + +if err := client.VirtualHubBgpConnectionsListLearnedRoutesThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubIPConfigurationCreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "ipConfigurationName") + +payload := virtualwans.HubIPConfiguration{ + // ... +} + + +if err := client.VirtualHubIPConfigurationCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubIPConfigurationDelete` + +```go +ctx := context.TODO() +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "ipConfigurationName") + +if err := client.VirtualHubIPConfigurationDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubIPConfigurationGet` + +```go +ctx := context.TODO() +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "ipConfigurationName") + +read, err := client.VirtualHubIPConfigurationGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubIPConfigurationList` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +// alternatively `client.VirtualHubIPConfigurationList(ctx, id)` can be used to do batched pagination +items, err := client.VirtualHubIPConfigurationListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubRouteTableV2sCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") + +payload := virtualwans.VirtualHubRouteTableV2{ + // ... +} + + +if err := client.VirtualHubRouteTableV2sCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubRouteTableV2sDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") + +if err := client.VirtualHubRouteTableV2sDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubRouteTableV2sGet` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") + +read, err := client.VirtualHubRouteTableV2sGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubRouteTableV2sList` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +// alternatively `client.VirtualHubRouteTableV2sList(ctx, id)` can be used to do batched pagination +items, err := client.VirtualHubRouteTableV2sListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +payload := virtualwans.VirtualHub{ + // ... +} + + +if err := client.VirtualHubsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +if err := client.VirtualHubsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsGet` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +read, err := client.VirtualHubsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsGetEffectiveVirtualHubRoutes` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +payload := virtualwans.EffectiveRoutesParameters{ + // ... +} + + +if err := client.VirtualHubsGetEffectiveVirtualHubRoutesThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsGetInboundRoutes` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +payload := virtualwans.GetInboundRoutesParameters{ + // ... +} + + +if err := client.VirtualHubsGetInboundRoutesThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsGetOutboundRoutes` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +payload := virtualwans.GetOutboundRoutesParameters{ + // ... +} + + +if err := client.VirtualHubsGetOutboundRoutesThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.VirtualHubsList(ctx, id)` can be used to do batched pagination +items, err := client.VirtualHubsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.VirtualHubsListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.VirtualHubsListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsUpdateTags` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +payload := virtualwans.TagsObject{ + // ... +} + + +read, err := client.VirtualHubsUpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualWansCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanName") + +payload := virtualwans.VirtualWAN{ + // ... +} + + +if err := client.VirtualWansCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualWansDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanName") + +if err := client.VirtualWansDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualWansGet` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanName") + +read, err := client.VirtualWansGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualWansList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.VirtualWansList(ctx, id)` can be used to do batched pagination +items, err := client.VirtualWansListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualWansListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.VirtualWansListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.VirtualWansListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnConnectionsCreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName") + +payload := virtualwans.VpnConnection{ + // ... +} + + +if err := client.VpnConnectionsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnConnectionsDelete` + +```go +ctx := context.TODO() +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName") + +if err := client.VpnConnectionsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnConnectionsGet` + +```go +ctx := context.TODO() +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName") + +read, err := client.VpnConnectionsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VpnConnectionsListByVpnGateway` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") + +// alternatively `client.VpnConnectionsListByVpnGateway(ctx, id)` can be used to do batched pagination +items, err := client.VpnConnectionsListByVpnGatewayComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnConnectionsStartPacketCapture` + +```go +ctx := context.TODO() +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName") + +payload := virtualwans.VpnConnectionPacketCaptureStartParameters{ + // ... +} + + +if err := client.VpnConnectionsStartPacketCaptureThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnConnectionsStopPacketCapture` + +```go +ctx := context.TODO() +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName") + +payload := virtualwans.VpnConnectionPacketCaptureStopParameters{ + // ... +} + + +if err := client.VpnConnectionsStopPacketCaptureThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnGatewaysCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") + +payload := virtualwans.VpnGateway{ + // ... +} + + +if err := client.VpnGatewaysCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnGatewaysDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") + +if err := client.VpnGatewaysDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnGatewaysGet` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") + +read, err := client.VpnGatewaysGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VpnGatewaysList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.VpnGatewaysList(ctx, id)` can be used to do batched pagination +items, err := client.VpnGatewaysListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnGatewaysListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.VpnGatewaysListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.VpnGatewaysListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnLinkConnectionsGetAllSharedKeys` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName", "vpnLinkConnectionName") + +// alternatively `client.VpnLinkConnectionsGetAllSharedKeys(ctx, id)` can be used to do batched pagination +items, err := client.VpnLinkConnectionsGetAllSharedKeysComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnLinkConnectionsGetDefaultSharedKey` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName", "vpnLinkConnectionName") + +read, err := client.VpnLinkConnectionsGetDefaultSharedKey(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VpnLinkConnectionsGetIkeSas` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName", "vpnLinkConnectionName") + +if err := client.VpnLinkConnectionsGetIkeSasThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnLinkConnectionsListByVpnConnection` + +```go +ctx := context.TODO() +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName") + +// alternatively `client.VpnLinkConnectionsListByVpnConnection(ctx, id)` can be used to do batched pagination +items, err := client.VpnLinkConnectionsListByVpnConnectionComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnLinkConnectionsListDefaultSharedKey` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName", "vpnLinkConnectionName") + +read, err := client.VpnLinkConnectionsListDefaultSharedKey(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VpnLinkConnectionsSetOrInitDefaultSharedKey` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName", "vpnLinkConnectionName") + +payload := virtualwans.ConnectionSharedKeyResult{ + // ... +} + + +if err := client.VpnLinkConnectionsSetOrInitDefaultSharedKeyThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnServerConfigurationsAssociatedWithVirtualWanList` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanName") + +if err := client.VpnServerConfigurationsAssociatedWithVirtualWanListThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnServerConfigurationsCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") + +payload := virtualwans.VpnServerConfiguration{ + // ... +} + + +if err := client.VpnServerConfigurationsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnServerConfigurationsDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") + +if err := client.VpnServerConfigurationsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnServerConfigurationsGet` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") + +read, err := client.VpnServerConfigurationsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VpnServerConfigurationsList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.VpnServerConfigurationsList(ctx, id)` can be used to do batched pagination +items, err := client.VpnServerConfigurationsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnServerConfigurationsListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.VpnServerConfigurationsListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.VpnServerConfigurationsListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSiteLinkConnectionsGet` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName", "vpnLinkConnectionName") + +read, err := client.VpnSiteLinkConnectionsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSiteLinksGet` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnSiteLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName", "vpnSiteLinkName") + +read, err := client.VpnSiteLinksGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSiteLinksListByVpnSite` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") + +// alternatively `client.VpnSiteLinksListByVpnSite(ctx, id)` can be used to do batched pagination +items, err := client.VpnSiteLinksListByVpnSiteComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSitesConfigurationDownload` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanName") + +payload := virtualwans.GetVpnSitesConfigurationRequest{ + // ... +} + + +if err := client.VpnSitesConfigurationDownloadThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSitesCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") + +payload := virtualwans.VpnSite{ + // ... +} + + +if err := client.VpnSitesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSitesDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") + +if err := client.VpnSitesDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSitesGet` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") + +read, err := client.VpnSitesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSitesList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.VpnSitesList(ctx, id)` can be used to do batched pagination +items, err := client.VpnSitesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSitesListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.VpnSitesListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.VpnSitesListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/client.go new file mode 100644 index 000000000000..0d7276430725 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/client.go @@ -0,0 +1,26 @@ +package virtualwans + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWANsClient struct { + Client *resourcemanager.Client +} + +func NewVirtualWANsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualWANsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "virtualwans", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating VirtualWANsClient: %+v", err) + } + + return &VirtualWANsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/constants.go new file mode 100644 index 000000000000..f620ae04a845 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/constants.go @@ -0,0 +1,2382 @@ +package virtualwans + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AuthenticationMethod string + +const ( + AuthenticationMethodEAPMSCHAPvTwo AuthenticationMethod = "EAPMSCHAPv2" + AuthenticationMethodEAPTLS AuthenticationMethod = "EAPTLS" +) + +func PossibleValuesForAuthenticationMethod() []string { + return []string{ + string(AuthenticationMethodEAPMSCHAPvTwo), + string(AuthenticationMethodEAPTLS), + } +} + +func (s *AuthenticationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAuthenticationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAuthenticationMethod(input string) (*AuthenticationMethod, error) { + vals := map[string]AuthenticationMethod{ + "eapmschapv2": AuthenticationMethodEAPMSCHAPvTwo, + "eaptls": AuthenticationMethodEAPTLS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AuthenticationMethod(input) + return &out, nil +} + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type DhGroup string + +const ( + DhGroupDHGroupOne DhGroup = "DHGroup1" + DhGroupDHGroupOneFour DhGroup = "DHGroup14" + DhGroupDHGroupTwo DhGroup = "DHGroup2" + DhGroupDHGroupTwoFour DhGroup = "DHGroup24" + DhGroupDHGroupTwoZeroFourEight DhGroup = "DHGroup2048" + DhGroupECPThreeEightFour DhGroup = "ECP384" + DhGroupECPTwoFiveSix DhGroup = "ECP256" + DhGroupNone DhGroup = "None" +) + +func PossibleValuesForDhGroup() []string { + return []string{ + string(DhGroupDHGroupOne), + string(DhGroupDHGroupOneFour), + string(DhGroupDHGroupTwo), + string(DhGroupDHGroupTwoFour), + string(DhGroupDHGroupTwoZeroFourEight), + string(DhGroupECPThreeEightFour), + string(DhGroupECPTwoFiveSix), + string(DhGroupNone), + } +} + +func (s *DhGroup) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDhGroup(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDhGroup(input string) (*DhGroup, error) { + vals := map[string]DhGroup{ + "dhgroup1": DhGroupDHGroupOne, + "dhgroup14": DhGroupDHGroupOneFour, + "dhgroup2": DhGroupDHGroupTwo, + "dhgroup24": DhGroupDHGroupTwoFour, + "dhgroup2048": DhGroupDHGroupTwoZeroFourEight, + "ecp384": DhGroupECPThreeEightFour, + "ecp256": DhGroupECPTwoFiveSix, + "none": DhGroupNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DhGroup(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type HubBgpConnectionStatus string + +const ( + HubBgpConnectionStatusConnected HubBgpConnectionStatus = "Connected" + HubBgpConnectionStatusConnecting HubBgpConnectionStatus = "Connecting" + HubBgpConnectionStatusNotConnected HubBgpConnectionStatus = "NotConnected" + HubBgpConnectionStatusUnknown HubBgpConnectionStatus = "Unknown" +) + +func PossibleValuesForHubBgpConnectionStatus() []string { + return []string{ + string(HubBgpConnectionStatusConnected), + string(HubBgpConnectionStatusConnecting), + string(HubBgpConnectionStatusNotConnected), + string(HubBgpConnectionStatusUnknown), + } +} + +func (s *HubBgpConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseHubBgpConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseHubBgpConnectionStatus(input string) (*HubBgpConnectionStatus, error) { + vals := map[string]HubBgpConnectionStatus{ + "connected": HubBgpConnectionStatusConnected, + "connecting": HubBgpConnectionStatusConnecting, + "notconnected": HubBgpConnectionStatusNotConnected, + "unknown": HubBgpConnectionStatusUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := HubBgpConnectionStatus(input) + return &out, nil +} + +type HubRoutingPreference string + +const ( + HubRoutingPreferenceASPath HubRoutingPreference = "ASPath" + HubRoutingPreferenceExpressRoute HubRoutingPreference = "ExpressRoute" + HubRoutingPreferenceVpnGateway HubRoutingPreference = "VpnGateway" +) + +func PossibleValuesForHubRoutingPreference() []string { + return []string{ + string(HubRoutingPreferenceASPath), + string(HubRoutingPreferenceExpressRoute), + string(HubRoutingPreferenceVpnGateway), + } +} + +func (s *HubRoutingPreference) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseHubRoutingPreference(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseHubRoutingPreference(input string) (*HubRoutingPreference, error) { + vals := map[string]HubRoutingPreference{ + "aspath": HubRoutingPreferenceASPath, + "expressroute": HubRoutingPreferenceExpressRoute, + "vpngateway": HubRoutingPreferenceVpnGateway, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := HubRoutingPreference(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type IPsecEncryption string + +const ( + IPsecEncryptionAESOneNineTwo IPsecEncryption = "AES192" + IPsecEncryptionAESOneTwoEight IPsecEncryption = "AES128" + IPsecEncryptionAESTwoFiveSix IPsecEncryption = "AES256" + IPsecEncryptionDES IPsecEncryption = "DES" + IPsecEncryptionDESThree IPsecEncryption = "DES3" + IPsecEncryptionGCMAESOneNineTwo IPsecEncryption = "GCMAES192" + IPsecEncryptionGCMAESOneTwoEight IPsecEncryption = "GCMAES128" + IPsecEncryptionGCMAESTwoFiveSix IPsecEncryption = "GCMAES256" + IPsecEncryptionNone IPsecEncryption = "None" +) + +func PossibleValuesForIPsecEncryption() []string { + return []string{ + string(IPsecEncryptionAESOneNineTwo), + string(IPsecEncryptionAESOneTwoEight), + string(IPsecEncryptionAESTwoFiveSix), + string(IPsecEncryptionDES), + string(IPsecEncryptionDESThree), + string(IPsecEncryptionGCMAESOneNineTwo), + string(IPsecEncryptionGCMAESOneTwoEight), + string(IPsecEncryptionGCMAESTwoFiveSix), + string(IPsecEncryptionNone), + } +} + +func (s *IPsecEncryption) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPsecEncryption(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPsecEncryption(input string) (*IPsecEncryption, error) { + vals := map[string]IPsecEncryption{ + "aes192": IPsecEncryptionAESOneNineTwo, + "aes128": IPsecEncryptionAESOneTwoEight, + "aes256": IPsecEncryptionAESTwoFiveSix, + "des": IPsecEncryptionDES, + "des3": IPsecEncryptionDESThree, + "gcmaes192": IPsecEncryptionGCMAESOneNineTwo, + "gcmaes128": IPsecEncryptionGCMAESOneTwoEight, + "gcmaes256": IPsecEncryptionGCMAESTwoFiveSix, + "none": IPsecEncryptionNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPsecEncryption(input) + return &out, nil +} + +type IPsecIntegrity string + +const ( + IPsecIntegrityGCMAESOneNineTwo IPsecIntegrity = "GCMAES192" + IPsecIntegrityGCMAESOneTwoEight IPsecIntegrity = "GCMAES128" + IPsecIntegrityGCMAESTwoFiveSix IPsecIntegrity = "GCMAES256" + IPsecIntegrityMDFive IPsecIntegrity = "MD5" + IPsecIntegritySHAOne IPsecIntegrity = "SHA1" + IPsecIntegritySHATwoFiveSix IPsecIntegrity = "SHA256" +) + +func PossibleValuesForIPsecIntegrity() []string { + return []string{ + string(IPsecIntegrityGCMAESOneNineTwo), + string(IPsecIntegrityGCMAESOneTwoEight), + string(IPsecIntegrityGCMAESTwoFiveSix), + string(IPsecIntegrityMDFive), + string(IPsecIntegritySHAOne), + string(IPsecIntegritySHATwoFiveSix), + } +} + +func (s *IPsecIntegrity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPsecIntegrity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPsecIntegrity(input string) (*IPsecIntegrity, error) { + vals := map[string]IPsecIntegrity{ + "gcmaes192": IPsecIntegrityGCMAESOneNineTwo, + "gcmaes128": IPsecIntegrityGCMAESOneTwoEight, + "gcmaes256": IPsecIntegrityGCMAESTwoFiveSix, + "md5": IPsecIntegrityMDFive, + "sha1": IPsecIntegritySHAOne, + "sha256": IPsecIntegritySHATwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPsecIntegrity(input) + return &out, nil +} + +type IkeEncryption string + +const ( + IkeEncryptionAESOneNineTwo IkeEncryption = "AES192" + IkeEncryptionAESOneTwoEight IkeEncryption = "AES128" + IkeEncryptionAESTwoFiveSix IkeEncryption = "AES256" + IkeEncryptionDES IkeEncryption = "DES" + IkeEncryptionDESThree IkeEncryption = "DES3" + IkeEncryptionGCMAESOneTwoEight IkeEncryption = "GCMAES128" + IkeEncryptionGCMAESTwoFiveSix IkeEncryption = "GCMAES256" +) + +func PossibleValuesForIkeEncryption() []string { + return []string{ + string(IkeEncryptionAESOneNineTwo), + string(IkeEncryptionAESOneTwoEight), + string(IkeEncryptionAESTwoFiveSix), + string(IkeEncryptionDES), + string(IkeEncryptionDESThree), + string(IkeEncryptionGCMAESOneTwoEight), + string(IkeEncryptionGCMAESTwoFiveSix), + } +} + +func (s *IkeEncryption) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIkeEncryption(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIkeEncryption(input string) (*IkeEncryption, error) { + vals := map[string]IkeEncryption{ + "aes192": IkeEncryptionAESOneNineTwo, + "aes128": IkeEncryptionAESOneTwoEight, + "aes256": IkeEncryptionAESTwoFiveSix, + "des": IkeEncryptionDES, + "des3": IkeEncryptionDESThree, + "gcmaes128": IkeEncryptionGCMAESOneTwoEight, + "gcmaes256": IkeEncryptionGCMAESTwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IkeEncryption(input) + return &out, nil +} + +type IkeIntegrity string + +const ( + IkeIntegrityGCMAESOneTwoEight IkeIntegrity = "GCMAES128" + IkeIntegrityGCMAESTwoFiveSix IkeIntegrity = "GCMAES256" + IkeIntegrityMDFive IkeIntegrity = "MD5" + IkeIntegritySHAOne IkeIntegrity = "SHA1" + IkeIntegritySHAThreeEightFour IkeIntegrity = "SHA384" + IkeIntegritySHATwoFiveSix IkeIntegrity = "SHA256" +) + +func PossibleValuesForIkeIntegrity() []string { + return []string{ + string(IkeIntegrityGCMAESOneTwoEight), + string(IkeIntegrityGCMAESTwoFiveSix), + string(IkeIntegrityMDFive), + string(IkeIntegritySHAOne), + string(IkeIntegritySHAThreeEightFour), + string(IkeIntegritySHATwoFiveSix), + } +} + +func (s *IkeIntegrity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIkeIntegrity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIkeIntegrity(input string) (*IkeIntegrity, error) { + vals := map[string]IkeIntegrity{ + "gcmaes128": IkeIntegrityGCMAESOneTwoEight, + "gcmaes256": IkeIntegrityGCMAESTwoFiveSix, + "md5": IkeIntegrityMDFive, + "sha1": IkeIntegritySHAOne, + "sha384": IkeIntegritySHAThreeEightFour, + "sha256": IkeIntegritySHATwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IkeIntegrity(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type NextStep string + +const ( + NextStepContinue NextStep = "Continue" + NextStepTerminate NextStep = "Terminate" + NextStepUnknown NextStep = "Unknown" +) + +func PossibleValuesForNextStep() []string { + return []string{ + string(NextStepContinue), + string(NextStepTerminate), + string(NextStepUnknown), + } +} + +func (s *NextStep) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNextStep(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNextStep(input string) (*NextStep, error) { + vals := map[string]NextStep{ + "continue": NextStepContinue, + "terminate": NextStepTerminate, + "unknown": NextStepUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NextStep(input) + return &out, nil +} + +type OfficeTrafficCategory string + +const ( + OfficeTrafficCategoryAll OfficeTrafficCategory = "All" + OfficeTrafficCategoryNone OfficeTrafficCategory = "None" + OfficeTrafficCategoryOptimize OfficeTrafficCategory = "Optimize" + OfficeTrafficCategoryOptimizeAndAllow OfficeTrafficCategory = "OptimizeAndAllow" +) + +func PossibleValuesForOfficeTrafficCategory() []string { + return []string{ + string(OfficeTrafficCategoryAll), + string(OfficeTrafficCategoryNone), + string(OfficeTrafficCategoryOptimize), + string(OfficeTrafficCategoryOptimizeAndAllow), + } +} + +func (s *OfficeTrafficCategory) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseOfficeTrafficCategory(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseOfficeTrafficCategory(input string) (*OfficeTrafficCategory, error) { + vals := map[string]OfficeTrafficCategory{ + "all": OfficeTrafficCategoryAll, + "none": OfficeTrafficCategoryNone, + "optimize": OfficeTrafficCategoryOptimize, + "optimizeandallow": OfficeTrafficCategoryOptimizeAndAllow, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := OfficeTrafficCategory(input) + return &out, nil +} + +type PfsGroup string + +const ( + PfsGroupECPThreeEightFour PfsGroup = "ECP384" + PfsGroupECPTwoFiveSix PfsGroup = "ECP256" + PfsGroupNone PfsGroup = "None" + PfsGroupPFSMM PfsGroup = "PFSMM" + PfsGroupPFSOne PfsGroup = "PFS1" + PfsGroupPFSOneFour PfsGroup = "PFS14" + PfsGroupPFSTwo PfsGroup = "PFS2" + PfsGroupPFSTwoFour PfsGroup = "PFS24" + PfsGroupPFSTwoZeroFourEight PfsGroup = "PFS2048" +) + +func PossibleValuesForPfsGroup() []string { + return []string{ + string(PfsGroupECPThreeEightFour), + string(PfsGroupECPTwoFiveSix), + string(PfsGroupNone), + string(PfsGroupPFSMM), + string(PfsGroupPFSOne), + string(PfsGroupPFSOneFour), + string(PfsGroupPFSTwo), + string(PfsGroupPFSTwoFour), + string(PfsGroupPFSTwoZeroFourEight), + } +} + +func (s *PfsGroup) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePfsGroup(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePfsGroup(input string) (*PfsGroup, error) { + vals := map[string]PfsGroup{ + "ecp384": PfsGroupECPThreeEightFour, + "ecp256": PfsGroupECPTwoFiveSix, + "none": PfsGroupNone, + "pfsmm": PfsGroupPFSMM, + "pfs1": PfsGroupPFSOne, + "pfs14": PfsGroupPFSOneFour, + "pfs2": PfsGroupPFSTwo, + "pfs24": PfsGroupPFSTwoFour, + "pfs2048": PfsGroupPFSTwoZeroFourEight, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PfsGroup(input) + return &out, nil +} + +type PreferredRoutingGateway string + +const ( + PreferredRoutingGatewayExpressRoute PreferredRoutingGateway = "ExpressRoute" + PreferredRoutingGatewayNone PreferredRoutingGateway = "None" + PreferredRoutingGatewayVpnGateway PreferredRoutingGateway = "VpnGateway" +) + +func PossibleValuesForPreferredRoutingGateway() []string { + return []string{ + string(PreferredRoutingGatewayExpressRoute), + string(PreferredRoutingGatewayNone), + string(PreferredRoutingGatewayVpnGateway), + } +} + +func (s *PreferredRoutingGateway) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePreferredRoutingGateway(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePreferredRoutingGateway(input string) (*PreferredRoutingGateway, error) { + vals := map[string]PreferredRoutingGateway{ + "expressroute": PreferredRoutingGatewayExpressRoute, + "none": PreferredRoutingGatewayNone, + "vpngateway": PreferredRoutingGatewayVpnGateway, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PreferredRoutingGateway(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteMapActionType string + +const ( + RouteMapActionTypeAdd RouteMapActionType = "Add" + RouteMapActionTypeDrop RouteMapActionType = "Drop" + RouteMapActionTypeRemove RouteMapActionType = "Remove" + RouteMapActionTypeReplace RouteMapActionType = "Replace" + RouteMapActionTypeUnknown RouteMapActionType = "Unknown" +) + +func PossibleValuesForRouteMapActionType() []string { + return []string{ + string(RouteMapActionTypeAdd), + string(RouteMapActionTypeDrop), + string(RouteMapActionTypeRemove), + string(RouteMapActionTypeReplace), + string(RouteMapActionTypeUnknown), + } +} + +func (s *RouteMapActionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteMapActionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteMapActionType(input string) (*RouteMapActionType, error) { + vals := map[string]RouteMapActionType{ + "add": RouteMapActionTypeAdd, + "drop": RouteMapActionTypeDrop, + "remove": RouteMapActionTypeRemove, + "replace": RouteMapActionTypeReplace, + "unknown": RouteMapActionTypeUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteMapActionType(input) + return &out, nil +} + +type RouteMapMatchCondition string + +const ( + RouteMapMatchConditionContains RouteMapMatchCondition = "Contains" + RouteMapMatchConditionEquals RouteMapMatchCondition = "Equals" + RouteMapMatchConditionNotContains RouteMapMatchCondition = "NotContains" + RouteMapMatchConditionNotEquals RouteMapMatchCondition = "NotEquals" + RouteMapMatchConditionUnknown RouteMapMatchCondition = "Unknown" +) + +func PossibleValuesForRouteMapMatchCondition() []string { + return []string{ + string(RouteMapMatchConditionContains), + string(RouteMapMatchConditionEquals), + string(RouteMapMatchConditionNotContains), + string(RouteMapMatchConditionNotEquals), + string(RouteMapMatchConditionUnknown), + } +} + +func (s *RouteMapMatchCondition) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteMapMatchCondition(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteMapMatchCondition(input string) (*RouteMapMatchCondition, error) { + vals := map[string]RouteMapMatchCondition{ + "contains": RouteMapMatchConditionContains, + "equals": RouteMapMatchConditionEquals, + "notcontains": RouteMapMatchConditionNotContains, + "notequals": RouteMapMatchConditionNotEquals, + "unknown": RouteMapMatchConditionUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteMapMatchCondition(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type RoutingState string + +const ( + RoutingStateFailed RoutingState = "Failed" + RoutingStateNone RoutingState = "None" + RoutingStateProvisioned RoutingState = "Provisioned" + RoutingStateProvisioning RoutingState = "Provisioning" +) + +func PossibleValuesForRoutingState() []string { + return []string{ + string(RoutingStateFailed), + string(RoutingStateNone), + string(RoutingStateProvisioned), + string(RoutingStateProvisioning), + } +} + +func (s *RoutingState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRoutingState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRoutingState(input string) (*RoutingState, error) { + vals := map[string]RoutingState{ + "failed": RoutingStateFailed, + "none": RoutingStateNone, + "provisioned": RoutingStateProvisioned, + "provisioning": RoutingStateProvisioning, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RoutingState(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionProtocol string + +const ( + VirtualNetworkGatewayConnectionProtocolIKEvOne VirtualNetworkGatewayConnectionProtocol = "IKEv1" + VirtualNetworkGatewayConnectionProtocolIKEvTwo VirtualNetworkGatewayConnectionProtocol = "IKEv2" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionProtocol() []string { + return []string{ + string(VirtualNetworkGatewayConnectionProtocolIKEvOne), + string(VirtualNetworkGatewayConnectionProtocolIKEvTwo), + } +} + +func (s *VirtualNetworkGatewayConnectionProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionProtocol(input string) (*VirtualNetworkGatewayConnectionProtocol, error) { + vals := map[string]VirtualNetworkGatewayConnectionProtocol{ + "ikev1": VirtualNetworkGatewayConnectionProtocolIKEvOne, + "ikev2": VirtualNetworkGatewayConnectionProtocolIKEvTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} + +type VirtualWanSecurityProviderType string + +const ( + VirtualWanSecurityProviderTypeExternal VirtualWanSecurityProviderType = "External" + VirtualWanSecurityProviderTypeNative VirtualWanSecurityProviderType = "Native" +) + +func PossibleValuesForVirtualWanSecurityProviderType() []string { + return []string{ + string(VirtualWanSecurityProviderTypeExternal), + string(VirtualWanSecurityProviderTypeNative), + } +} + +func (s *VirtualWanSecurityProviderType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualWanSecurityProviderType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualWanSecurityProviderType(input string) (*VirtualWanSecurityProviderType, error) { + vals := map[string]VirtualWanSecurityProviderType{ + "external": VirtualWanSecurityProviderTypeExternal, + "native": VirtualWanSecurityProviderTypeNative, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualWanSecurityProviderType(input) + return &out, nil +} + +type VnetLocalRouteOverrideCriteria string + +const ( + VnetLocalRouteOverrideCriteriaContains VnetLocalRouteOverrideCriteria = "Contains" + VnetLocalRouteOverrideCriteriaEqual VnetLocalRouteOverrideCriteria = "Equal" +) + +func PossibleValuesForVnetLocalRouteOverrideCriteria() []string { + return []string{ + string(VnetLocalRouteOverrideCriteriaContains), + string(VnetLocalRouteOverrideCriteriaEqual), + } +} + +func (s *VnetLocalRouteOverrideCriteria) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVnetLocalRouteOverrideCriteria(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVnetLocalRouteOverrideCriteria(input string) (*VnetLocalRouteOverrideCriteria, error) { + vals := map[string]VnetLocalRouteOverrideCriteria{ + "contains": VnetLocalRouteOverrideCriteriaContains, + "equal": VnetLocalRouteOverrideCriteriaEqual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VnetLocalRouteOverrideCriteria(input) + return &out, nil +} + +type VpnAuthenticationType string + +const ( + VpnAuthenticationTypeAAD VpnAuthenticationType = "AAD" + VpnAuthenticationTypeCertificate VpnAuthenticationType = "Certificate" + VpnAuthenticationTypeRadius VpnAuthenticationType = "Radius" +) + +func PossibleValuesForVpnAuthenticationType() []string { + return []string{ + string(VpnAuthenticationTypeAAD), + string(VpnAuthenticationTypeCertificate), + string(VpnAuthenticationTypeRadius), + } +} + +func (s *VpnAuthenticationType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnAuthenticationType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnAuthenticationType(input string) (*VpnAuthenticationType, error) { + vals := map[string]VpnAuthenticationType{ + "aad": VpnAuthenticationTypeAAD, + "certificate": VpnAuthenticationTypeCertificate, + "radius": VpnAuthenticationTypeRadius, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnAuthenticationType(input) + return &out, nil +} + +type VpnConnectionStatus string + +const ( + VpnConnectionStatusConnected VpnConnectionStatus = "Connected" + VpnConnectionStatusConnecting VpnConnectionStatus = "Connecting" + VpnConnectionStatusNotConnected VpnConnectionStatus = "NotConnected" + VpnConnectionStatusUnknown VpnConnectionStatus = "Unknown" +) + +func PossibleValuesForVpnConnectionStatus() []string { + return []string{ + string(VpnConnectionStatusConnected), + string(VpnConnectionStatusConnecting), + string(VpnConnectionStatusNotConnected), + string(VpnConnectionStatusUnknown), + } +} + +func (s *VpnConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnConnectionStatus(input string) (*VpnConnectionStatus, error) { + vals := map[string]VpnConnectionStatus{ + "connected": VpnConnectionStatusConnected, + "connecting": VpnConnectionStatusConnecting, + "notconnected": VpnConnectionStatusNotConnected, + "unknown": VpnConnectionStatusUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnConnectionStatus(input) + return &out, nil +} + +type VpnGatewayTunnelingProtocol string + +const ( + VpnGatewayTunnelingProtocolIkeVTwo VpnGatewayTunnelingProtocol = "IkeV2" + VpnGatewayTunnelingProtocolOpenVPN VpnGatewayTunnelingProtocol = "OpenVPN" +) + +func PossibleValuesForVpnGatewayTunnelingProtocol() []string { + return []string{ + string(VpnGatewayTunnelingProtocolIkeVTwo), + string(VpnGatewayTunnelingProtocolOpenVPN), + } +} + +func (s *VpnGatewayTunnelingProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnGatewayTunnelingProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnGatewayTunnelingProtocol(input string) (*VpnGatewayTunnelingProtocol, error) { + vals := map[string]VpnGatewayTunnelingProtocol{ + "ikev2": VpnGatewayTunnelingProtocolIkeVTwo, + "openvpn": VpnGatewayTunnelingProtocolOpenVPN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnGatewayTunnelingProtocol(input) + return &out, nil +} + +type VpnLinkConnectionMode string + +const ( + VpnLinkConnectionModeDefault VpnLinkConnectionMode = "Default" + VpnLinkConnectionModeInitiatorOnly VpnLinkConnectionMode = "InitiatorOnly" + VpnLinkConnectionModeResponderOnly VpnLinkConnectionMode = "ResponderOnly" +) + +func PossibleValuesForVpnLinkConnectionMode() []string { + return []string{ + string(VpnLinkConnectionModeDefault), + string(VpnLinkConnectionModeInitiatorOnly), + string(VpnLinkConnectionModeResponderOnly), + } +} + +func (s *VpnLinkConnectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnLinkConnectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnLinkConnectionMode(input string) (*VpnLinkConnectionMode, error) { + vals := map[string]VpnLinkConnectionMode{ + "default": VpnLinkConnectionModeDefault, + "initiatoronly": VpnLinkConnectionModeInitiatorOnly, + "responderonly": VpnLinkConnectionModeResponderOnly, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnLinkConnectionMode(input) + return &out, nil +} + +type VpnNatRuleMode string + +const ( + VpnNatRuleModeEgressSnat VpnNatRuleMode = "EgressSnat" + VpnNatRuleModeIngressSnat VpnNatRuleMode = "IngressSnat" +) + +func PossibleValuesForVpnNatRuleMode() []string { + return []string{ + string(VpnNatRuleModeEgressSnat), + string(VpnNatRuleModeIngressSnat), + } +} + +func (s *VpnNatRuleMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnNatRuleMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnNatRuleMode(input string) (*VpnNatRuleMode, error) { + vals := map[string]VpnNatRuleMode{ + "egresssnat": VpnNatRuleModeEgressSnat, + "ingresssnat": VpnNatRuleModeIngressSnat, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnNatRuleMode(input) + return &out, nil +} + +type VpnNatRuleType string + +const ( + VpnNatRuleTypeDynamic VpnNatRuleType = "Dynamic" + VpnNatRuleTypeStatic VpnNatRuleType = "Static" +) + +func PossibleValuesForVpnNatRuleType() []string { + return []string{ + string(VpnNatRuleTypeDynamic), + string(VpnNatRuleTypeStatic), + } +} + +func (s *VpnNatRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnNatRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnNatRuleType(input string) (*VpnNatRuleType, error) { + vals := map[string]VpnNatRuleType{ + "dynamic": VpnNatRuleTypeDynamic, + "static": VpnNatRuleTypeStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnNatRuleType(input) + return &out, nil +} + +type VpnPolicyMemberAttributeType string + +const ( + VpnPolicyMemberAttributeTypeAADGroupId VpnPolicyMemberAttributeType = "AADGroupId" + VpnPolicyMemberAttributeTypeCertificateGroupId VpnPolicyMemberAttributeType = "CertificateGroupId" + VpnPolicyMemberAttributeTypeRadiusAzureGroupId VpnPolicyMemberAttributeType = "RadiusAzureGroupId" +) + +func PossibleValuesForVpnPolicyMemberAttributeType() []string { + return []string{ + string(VpnPolicyMemberAttributeTypeAADGroupId), + string(VpnPolicyMemberAttributeTypeCertificateGroupId), + string(VpnPolicyMemberAttributeTypeRadiusAzureGroupId), + } +} + +func (s *VpnPolicyMemberAttributeType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnPolicyMemberAttributeType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnPolicyMemberAttributeType(input string) (*VpnPolicyMemberAttributeType, error) { + vals := map[string]VpnPolicyMemberAttributeType{ + "aadgroupid": VpnPolicyMemberAttributeTypeAADGroupId, + "certificategroupid": VpnPolicyMemberAttributeTypeCertificateGroupId, + "radiusazuregroupid": VpnPolicyMemberAttributeTypeRadiusAzureGroupId, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnPolicyMemberAttributeType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_configurationpolicygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_configurationpolicygroup.go new file mode 100644 index 000000000000..058775a50d01 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_configurationpolicygroup.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ConfigurationPolicyGroupId{}) +} + +var _ resourceids.ResourceId = &ConfigurationPolicyGroupId{} + +// ConfigurationPolicyGroupId is a struct representing the Resource ID for a Configuration Policy Group +type ConfigurationPolicyGroupId struct { + SubscriptionId string + ResourceGroupName string + VpnServerConfigurationName string + ConfigurationPolicyGroupName string +} + +// NewConfigurationPolicyGroupID returns a new ConfigurationPolicyGroupId struct +func NewConfigurationPolicyGroupID(subscriptionId string, resourceGroupName string, vpnServerConfigurationName string, configurationPolicyGroupName string) ConfigurationPolicyGroupId { + return ConfigurationPolicyGroupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VpnServerConfigurationName: vpnServerConfigurationName, + ConfigurationPolicyGroupName: configurationPolicyGroupName, + } +} + +// ParseConfigurationPolicyGroupID parses 'input' into a ConfigurationPolicyGroupId +func ParseConfigurationPolicyGroupID(input string) (*ConfigurationPolicyGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&ConfigurationPolicyGroupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConfigurationPolicyGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseConfigurationPolicyGroupIDInsensitively parses 'input' case-insensitively into a ConfigurationPolicyGroupId +// note: this method should only be used for API response data and not user input +func ParseConfigurationPolicyGroupIDInsensitively(input string) (*ConfigurationPolicyGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&ConfigurationPolicyGroupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConfigurationPolicyGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ConfigurationPolicyGroupId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VpnServerConfigurationName, ok = input.Parsed["vpnServerConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnServerConfigurationName", input) + } + + if id.ConfigurationPolicyGroupName, ok = input.Parsed["configurationPolicyGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "configurationPolicyGroupName", input) + } + + return nil +} + +// ValidateConfigurationPolicyGroupID checks that 'input' can be parsed as a Configuration Policy Group ID +func ValidateConfigurationPolicyGroupID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseConfigurationPolicyGroupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Configuration Policy Group ID +func (id ConfigurationPolicyGroupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/vpnServerConfigurations/%s/configurationPolicyGroups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VpnServerConfigurationName, id.ConfigurationPolicyGroupName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Configuration Policy Group ID +func (id ConfigurationPolicyGroupId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVpnServerConfigurations", "vpnServerConfigurations", "vpnServerConfigurations"), + resourceids.UserSpecifiedSegment("vpnServerConfigurationName", "vpnServerConfigurationName"), + resourceids.StaticSegment("staticConfigurationPolicyGroups", "configurationPolicyGroups", "configurationPolicyGroups"), + resourceids.UserSpecifiedSegment("configurationPolicyGroupName", "configurationPolicyGroupName"), + } +} + +// String returns a human-readable description of this Configuration Policy Group ID +func (id ConfigurationPolicyGroupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Vpn Server Configuration Name: %q", id.VpnServerConfigurationName), + fmt.Sprintf("Configuration Policy Group Name: %q", id.ConfigurationPolicyGroupName), + } + return fmt.Sprintf("Configuration Policy Group (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_hubroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_hubroutetable.go new file mode 100644 index 000000000000..12d932e8523c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_hubroutetable.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&HubRouteTableId{}) +} + +var _ resourceids.ResourceId = &HubRouteTableId{} + +// HubRouteTableId is a struct representing the Resource ID for a Hub Route Table +type HubRouteTableId struct { + SubscriptionId string + ResourceGroupName string + VirtualHubName string + HubRouteTableName string +} + +// NewHubRouteTableID returns a new HubRouteTableId struct +func NewHubRouteTableID(subscriptionId string, resourceGroupName string, virtualHubName string, hubRouteTableName string) HubRouteTableId { + return HubRouteTableId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualHubName: virtualHubName, + HubRouteTableName: hubRouteTableName, + } +} + +// ParseHubRouteTableID parses 'input' into a HubRouteTableId +func ParseHubRouteTableID(input string) (*HubRouteTableId, error) { + parser := resourceids.NewParserFromResourceIdType(&HubRouteTableId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HubRouteTableId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseHubRouteTableIDInsensitively parses 'input' case-insensitively into a HubRouteTableId +// note: this method should only be used for API response data and not user input +func ParseHubRouteTableIDInsensitively(input string) (*HubRouteTableId, error) { + parser := resourceids.NewParserFromResourceIdType(&HubRouteTableId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HubRouteTableId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *HubRouteTableId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualHubName, ok = input.Parsed["virtualHubName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualHubName", input) + } + + if id.HubRouteTableName, ok = input.Parsed["hubRouteTableName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "hubRouteTableName", input) + } + + return nil +} + +// ValidateHubRouteTableID checks that 'input' can be parsed as a Hub Route Table ID +func ValidateHubRouteTableID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseHubRouteTableID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Hub Route Table ID +func (id HubRouteTableId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualHubs/%s/hubRouteTables/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualHubName, id.HubRouteTableName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Hub Route Table ID +func (id HubRouteTableId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), + resourceids.StaticSegment("staticHubRouteTables", "hubRouteTables", "hubRouteTables"), + resourceids.UserSpecifiedSegment("hubRouteTableName", "hubRouteTableName"), + } +} + +// String returns a human-readable description of this Hub Route Table ID +func (id HubRouteTableId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Hub Name: %q", id.VirtualHubName), + fmt.Sprintf("Hub Route Table Name: %q", id.HubRouteTableName), + } + return fmt.Sprintf("Hub Route Table (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_hubvirtualnetworkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_hubvirtualnetworkconnection.go new file mode 100644 index 000000000000..17eee4937ebc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_hubvirtualnetworkconnection.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&HubVirtualNetworkConnectionId{}) +} + +var _ resourceids.ResourceId = &HubVirtualNetworkConnectionId{} + +// HubVirtualNetworkConnectionId is a struct representing the Resource ID for a Hub Virtual Network Connection +type HubVirtualNetworkConnectionId struct { + SubscriptionId string + ResourceGroupName string + VirtualHubName string + HubVirtualNetworkConnectionName string +} + +// NewHubVirtualNetworkConnectionID returns a new HubVirtualNetworkConnectionId struct +func NewHubVirtualNetworkConnectionID(subscriptionId string, resourceGroupName string, virtualHubName string, hubVirtualNetworkConnectionName string) HubVirtualNetworkConnectionId { + return HubVirtualNetworkConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualHubName: virtualHubName, + HubVirtualNetworkConnectionName: hubVirtualNetworkConnectionName, + } +} + +// ParseHubVirtualNetworkConnectionID parses 'input' into a HubVirtualNetworkConnectionId +func ParseHubVirtualNetworkConnectionID(input string) (*HubVirtualNetworkConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&HubVirtualNetworkConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HubVirtualNetworkConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseHubVirtualNetworkConnectionIDInsensitively parses 'input' case-insensitively into a HubVirtualNetworkConnectionId +// note: this method should only be used for API response data and not user input +func ParseHubVirtualNetworkConnectionIDInsensitively(input string) (*HubVirtualNetworkConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&HubVirtualNetworkConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HubVirtualNetworkConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *HubVirtualNetworkConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualHubName, ok = input.Parsed["virtualHubName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualHubName", input) + } + + if id.HubVirtualNetworkConnectionName, ok = input.Parsed["hubVirtualNetworkConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "hubVirtualNetworkConnectionName", input) + } + + return nil +} + +// ValidateHubVirtualNetworkConnectionID checks that 'input' can be parsed as a Hub Virtual Network Connection ID +func ValidateHubVirtualNetworkConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseHubVirtualNetworkConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Hub Virtual Network Connection ID +func (id HubVirtualNetworkConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualHubs/%s/hubVirtualNetworkConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualHubName, id.HubVirtualNetworkConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Hub Virtual Network Connection ID +func (id HubVirtualNetworkConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), + resourceids.StaticSegment("staticHubVirtualNetworkConnections", "hubVirtualNetworkConnections", "hubVirtualNetworkConnections"), + resourceids.UserSpecifiedSegment("hubVirtualNetworkConnectionName", "hubVirtualNetworkConnectionName"), + } +} + +// String returns a human-readable description of this Hub Virtual Network Connection ID +func (id HubVirtualNetworkConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Hub Name: %q", id.VirtualHubName), + fmt.Sprintf("Hub Virtual Network Connection Name: %q", id.HubVirtualNetworkConnectionName), + } + return fmt.Sprintf("Hub Virtual Network Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_natrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_natrule.go new file mode 100644 index 000000000000..ab096bb8e61f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_natrule.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NatRuleId{}) +} + +var _ resourceids.ResourceId = &NatRuleId{} + +// NatRuleId is a struct representing the Resource ID for a Nat Rule +type NatRuleId struct { + SubscriptionId string + ResourceGroupName string + VpnGatewayName string + NatRuleName string +} + +// NewNatRuleID returns a new NatRuleId struct +func NewNatRuleID(subscriptionId string, resourceGroupName string, vpnGatewayName string, natRuleName string) NatRuleId { + return NatRuleId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VpnGatewayName: vpnGatewayName, + NatRuleName: natRuleName, + } +} + +// ParseNatRuleID parses 'input' into a NatRuleId +func ParseNatRuleID(input string) (*NatRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&NatRuleId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NatRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNatRuleIDInsensitively parses 'input' case-insensitively into a NatRuleId +// note: this method should only be used for API response data and not user input +func ParseNatRuleIDInsensitively(input string) (*NatRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&NatRuleId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NatRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NatRuleId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VpnGatewayName, ok = input.Parsed["vpnGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnGatewayName", input) + } + + if id.NatRuleName, ok = input.Parsed["natRuleName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "natRuleName", input) + } + + return nil +} + +// ValidateNatRuleID checks that 'input' can be parsed as a Nat Rule ID +func ValidateNatRuleID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNatRuleID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Nat Rule ID +func (id NatRuleId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/vpnGateways/%s/natRules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VpnGatewayName, id.NatRuleName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Nat Rule ID +func (id NatRuleId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVpnGateways", "vpnGateways", "vpnGateways"), + resourceids.UserSpecifiedSegment("vpnGatewayName", "vpnGatewayName"), + resourceids.StaticSegment("staticNatRules", "natRules", "natRules"), + resourceids.UserSpecifiedSegment("natRuleName", "natRuleName"), + } +} + +// String returns a human-readable description of this Nat Rule ID +func (id NatRuleId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Vpn Gateway Name: %q", id.VpnGatewayName), + fmt.Sprintf("Nat Rule Name: %q", id.NatRuleName), + } + return fmt.Sprintf("Nat Rule (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_networkvirtualappliance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_networkvirtualappliance.go new file mode 100644 index 000000000000..3b7e0a17a90f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_networkvirtualappliance.go @@ -0,0 +1,130 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkVirtualApplianceId{}) +} + +var _ resourceids.ResourceId = &NetworkVirtualApplianceId{} + +// NetworkVirtualApplianceId is a struct representing the Resource ID for a Network Virtual Appliance +type NetworkVirtualApplianceId struct { + SubscriptionId string + ResourceGroupName string + NetworkVirtualApplianceName string +} + +// NewNetworkVirtualApplianceID returns a new NetworkVirtualApplianceId struct +func NewNetworkVirtualApplianceID(subscriptionId string, resourceGroupName string, networkVirtualApplianceName string) NetworkVirtualApplianceId { + return NetworkVirtualApplianceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkVirtualApplianceName: networkVirtualApplianceName, + } +} + +// ParseNetworkVirtualApplianceID parses 'input' into a NetworkVirtualApplianceId +func ParseNetworkVirtualApplianceID(input string) (*NetworkVirtualApplianceId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkVirtualApplianceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkVirtualApplianceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkVirtualApplianceIDInsensitively parses 'input' case-insensitively into a NetworkVirtualApplianceId +// note: this method should only be used for API response data and not user input +func ParseNetworkVirtualApplianceIDInsensitively(input string) (*NetworkVirtualApplianceId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkVirtualApplianceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkVirtualApplianceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkVirtualApplianceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkVirtualApplianceName, ok = input.Parsed["networkVirtualApplianceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkVirtualApplianceName", input) + } + + return nil +} + +// ValidateNetworkVirtualApplianceID checks that 'input' can be parsed as a Network Virtual Appliance ID +func ValidateNetworkVirtualApplianceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkVirtualApplianceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Virtual Appliance ID +func (id NetworkVirtualApplianceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkVirtualAppliances/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkVirtualApplianceName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Virtual Appliance ID +func (id NetworkVirtualApplianceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), + } +} + +// String returns a human-readable description of this Network Virtual Appliance ID +func (id NetworkVirtualApplianceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Virtual Appliance Name: %q", id.NetworkVirtualApplianceName), + } + return fmt.Sprintf("Network Virtual Appliance (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_networkvirtualapplianceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_networkvirtualapplianceconnection.go new file mode 100644 index 000000000000..fbbc66efaec7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_networkvirtualapplianceconnection.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkVirtualApplianceConnectionId{}) +} + +var _ resourceids.ResourceId = &NetworkVirtualApplianceConnectionId{} + +// NetworkVirtualApplianceConnectionId is a struct representing the Resource ID for a Network Virtual Appliance Connection +type NetworkVirtualApplianceConnectionId struct { + SubscriptionId string + ResourceGroupName string + NetworkVirtualApplianceName string + NetworkVirtualApplianceConnectionName string +} + +// NewNetworkVirtualApplianceConnectionID returns a new NetworkVirtualApplianceConnectionId struct +func NewNetworkVirtualApplianceConnectionID(subscriptionId string, resourceGroupName string, networkVirtualApplianceName string, networkVirtualApplianceConnectionName string) NetworkVirtualApplianceConnectionId { + return NetworkVirtualApplianceConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkVirtualApplianceName: networkVirtualApplianceName, + NetworkVirtualApplianceConnectionName: networkVirtualApplianceConnectionName, + } +} + +// ParseNetworkVirtualApplianceConnectionID parses 'input' into a NetworkVirtualApplianceConnectionId +func ParseNetworkVirtualApplianceConnectionID(input string) (*NetworkVirtualApplianceConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkVirtualApplianceConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkVirtualApplianceConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkVirtualApplianceConnectionIDInsensitively parses 'input' case-insensitively into a NetworkVirtualApplianceConnectionId +// note: this method should only be used for API response data and not user input +func ParseNetworkVirtualApplianceConnectionIDInsensitively(input string) (*NetworkVirtualApplianceConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkVirtualApplianceConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkVirtualApplianceConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkVirtualApplianceConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkVirtualApplianceName, ok = input.Parsed["networkVirtualApplianceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkVirtualApplianceName", input) + } + + if id.NetworkVirtualApplianceConnectionName, ok = input.Parsed["networkVirtualApplianceConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkVirtualApplianceConnectionName", input) + } + + return nil +} + +// ValidateNetworkVirtualApplianceConnectionID checks that 'input' can be parsed as a Network Virtual Appliance Connection ID +func ValidateNetworkVirtualApplianceConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkVirtualApplianceConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Virtual Appliance Connection ID +func (id NetworkVirtualApplianceConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkVirtualAppliances/%s/networkVirtualApplianceConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkVirtualApplianceName, id.NetworkVirtualApplianceConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Virtual Appliance Connection ID +func (id NetworkVirtualApplianceConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), + resourceids.StaticSegment("staticNetworkVirtualApplianceConnections", "networkVirtualApplianceConnections", "networkVirtualApplianceConnections"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceConnectionName", "networkVirtualApplianceConnectionName"), + } +} + +// String returns a human-readable description of this Network Virtual Appliance Connection ID +func (id NetworkVirtualApplianceConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Virtual Appliance Name: %q", id.NetworkVirtualApplianceName), + fmt.Sprintf("Network Virtual Appliance Connection Name: %q", id.NetworkVirtualApplianceConnectionName), + } + return fmt.Sprintf("Network Virtual Appliance Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_routemap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_routemap.go new file mode 100644 index 000000000000..cf9525f1046b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_routemap.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RouteMapId{}) +} + +var _ resourceids.ResourceId = &RouteMapId{} + +// RouteMapId is a struct representing the Resource ID for a Route Map +type RouteMapId struct { + SubscriptionId string + ResourceGroupName string + VirtualHubName string + RouteMapName string +} + +// NewRouteMapID returns a new RouteMapId struct +func NewRouteMapID(subscriptionId string, resourceGroupName string, virtualHubName string, routeMapName string) RouteMapId { + return RouteMapId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualHubName: virtualHubName, + RouteMapName: routeMapName, + } +} + +// ParseRouteMapID parses 'input' into a RouteMapId +func ParseRouteMapID(input string) (*RouteMapId, error) { + parser := resourceids.NewParserFromResourceIdType(&RouteMapId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RouteMapId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRouteMapIDInsensitively parses 'input' case-insensitively into a RouteMapId +// note: this method should only be used for API response data and not user input +func ParseRouteMapIDInsensitively(input string) (*RouteMapId, error) { + parser := resourceids.NewParserFromResourceIdType(&RouteMapId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RouteMapId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RouteMapId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualHubName, ok = input.Parsed["virtualHubName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualHubName", input) + } + + if id.RouteMapName, ok = input.Parsed["routeMapName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routeMapName", input) + } + + return nil +} + +// ValidateRouteMapID checks that 'input' can be parsed as a Route Map ID +func ValidateRouteMapID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRouteMapID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Route Map ID +func (id RouteMapId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualHubs/%s/routeMaps/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualHubName, id.RouteMapName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Route Map ID +func (id RouteMapId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), + resourceids.StaticSegment("staticRouteMaps", "routeMaps", "routeMaps"), + resourceids.UserSpecifiedSegment("routeMapName", "routeMapName"), + } +} + +// String returns a human-readable description of this Route Map ID +func (id RouteMapId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Hub Name: %q", id.VirtualHubName), + fmt.Sprintf("Route Map Name: %q", id.RouteMapName), + } + return fmt.Sprintf("Route Map (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_routingintent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_routingintent.go new file mode 100644 index 000000000000..cb05e57eb4ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_routingintent.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RoutingIntentId{}) +} + +var _ resourceids.ResourceId = &RoutingIntentId{} + +// RoutingIntentId is a struct representing the Resource ID for a Routing Intent +type RoutingIntentId struct { + SubscriptionId string + ResourceGroupName string + VirtualHubName string + RoutingIntentName string +} + +// NewRoutingIntentID returns a new RoutingIntentId struct +func NewRoutingIntentID(subscriptionId string, resourceGroupName string, virtualHubName string, routingIntentName string) RoutingIntentId { + return RoutingIntentId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualHubName: virtualHubName, + RoutingIntentName: routingIntentName, + } +} + +// ParseRoutingIntentID parses 'input' into a RoutingIntentId +func ParseRoutingIntentID(input string) (*RoutingIntentId, error) { + parser := resourceids.NewParserFromResourceIdType(&RoutingIntentId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RoutingIntentId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRoutingIntentIDInsensitively parses 'input' case-insensitively into a RoutingIntentId +// note: this method should only be used for API response data and not user input +func ParseRoutingIntentIDInsensitively(input string) (*RoutingIntentId, error) { + parser := resourceids.NewParserFromResourceIdType(&RoutingIntentId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RoutingIntentId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RoutingIntentId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualHubName, ok = input.Parsed["virtualHubName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualHubName", input) + } + + if id.RoutingIntentName, ok = input.Parsed["routingIntentName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routingIntentName", input) + } + + return nil +} + +// ValidateRoutingIntentID checks that 'input' can be parsed as a Routing Intent ID +func ValidateRoutingIntentID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRoutingIntentID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Routing Intent ID +func (id RoutingIntentId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualHubs/%s/routingIntent/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualHubName, id.RoutingIntentName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Routing Intent ID +func (id RoutingIntentId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), + resourceids.StaticSegment("staticRoutingIntent", "routingIntent", "routingIntent"), + resourceids.UserSpecifiedSegment("routingIntentName", "routingIntentName"), + } +} + +// String returns a human-readable description of this Routing Intent ID +func (id RoutingIntentId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Hub Name: %q", id.VirtualHubName), + fmt.Sprintf("Routing Intent Name: %q", id.RoutingIntentName), + } + return fmt.Sprintf("Routing Intent (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualhub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualhub.go new file mode 100644 index 000000000000..b406438486cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualhub.go @@ -0,0 +1,130 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VirtualHubId{}) +} + +var _ resourceids.ResourceId = &VirtualHubId{} + +// VirtualHubId is a struct representing the Resource ID for a Virtual Hub +type VirtualHubId struct { + SubscriptionId string + ResourceGroupName string + VirtualHubName string +} + +// NewVirtualHubID returns a new VirtualHubId struct +func NewVirtualHubID(subscriptionId string, resourceGroupName string, virtualHubName string) VirtualHubId { + return VirtualHubId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualHubName: virtualHubName, + } +} + +// ParseVirtualHubID parses 'input' into a VirtualHubId +func ParseVirtualHubID(input string) (*VirtualHubId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualHubId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualHubId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVirtualHubIDInsensitively parses 'input' case-insensitively into a VirtualHubId +// note: this method should only be used for API response data and not user input +func ParseVirtualHubIDInsensitively(input string) (*VirtualHubId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualHubId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualHubId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VirtualHubId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualHubName, ok = input.Parsed["virtualHubName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualHubName", input) + } + + return nil +} + +// ValidateVirtualHubID checks that 'input' can be parsed as a Virtual Hub ID +func ValidateVirtualHubID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVirtualHubID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Virtual Hub ID +func (id VirtualHubId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualHubs/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualHubName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Virtual Hub ID +func (id VirtualHubId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), + } +} + +// String returns a human-readable description of this Virtual Hub ID +func (id VirtualHubId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Hub Name: %q", id.VirtualHubName), + } + return fmt.Sprintf("Virtual Hub (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualhubroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualhubroutetable.go new file mode 100644 index 000000000000..db641540b540 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualhubroutetable.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VirtualHubRouteTableId{}) +} + +var _ resourceids.ResourceId = &VirtualHubRouteTableId{} + +// VirtualHubRouteTableId is a struct representing the Resource ID for a Virtual Hub Route Table +type VirtualHubRouteTableId struct { + SubscriptionId string + ResourceGroupName string + VirtualHubName string + RouteTableName string +} + +// NewVirtualHubRouteTableID returns a new VirtualHubRouteTableId struct +func NewVirtualHubRouteTableID(subscriptionId string, resourceGroupName string, virtualHubName string, routeTableName string) VirtualHubRouteTableId { + return VirtualHubRouteTableId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualHubName: virtualHubName, + RouteTableName: routeTableName, + } +} + +// ParseVirtualHubRouteTableID parses 'input' into a VirtualHubRouteTableId +func ParseVirtualHubRouteTableID(input string) (*VirtualHubRouteTableId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualHubRouteTableId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualHubRouteTableId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVirtualHubRouteTableIDInsensitively parses 'input' case-insensitively into a VirtualHubRouteTableId +// note: this method should only be used for API response data and not user input +func ParseVirtualHubRouteTableIDInsensitively(input string) (*VirtualHubRouteTableId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualHubRouteTableId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualHubRouteTableId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VirtualHubRouteTableId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualHubName, ok = input.Parsed["virtualHubName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualHubName", input) + } + + if id.RouteTableName, ok = input.Parsed["routeTableName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routeTableName", input) + } + + return nil +} + +// ValidateVirtualHubRouteTableID checks that 'input' can be parsed as a Virtual Hub Route Table ID +func ValidateVirtualHubRouteTableID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVirtualHubRouteTableID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Virtual Hub Route Table ID +func (id VirtualHubRouteTableId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualHubs/%s/routeTables/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualHubName, id.RouteTableName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Virtual Hub Route Table ID +func (id VirtualHubRouteTableId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), + resourceids.StaticSegment("staticRouteTables", "routeTables", "routeTables"), + resourceids.UserSpecifiedSegment("routeTableName", "routeTableName"), + } +} + +// String returns a human-readable description of this Virtual Hub Route Table ID +func (id VirtualHubRouteTableId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Hub Name: %q", id.VirtualHubName), + fmt.Sprintf("Route Table Name: %q", id.RouteTableName), + } + return fmt.Sprintf("Virtual Hub Route Table (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualwan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualwan.go new file mode 100644 index 000000000000..fa94d154c26d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualwan.go @@ -0,0 +1,130 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VirtualWANId{}) +} + +var _ resourceids.ResourceId = &VirtualWANId{} + +// VirtualWANId is a struct representing the Resource ID for a Virtual W A N +type VirtualWANId struct { + SubscriptionId string + ResourceGroupName string + VirtualWanName string +} + +// NewVirtualWANID returns a new VirtualWANId struct +func NewVirtualWANID(subscriptionId string, resourceGroupName string, virtualWanName string) VirtualWANId { + return VirtualWANId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualWanName: virtualWanName, + } +} + +// ParseVirtualWANID parses 'input' into a VirtualWANId +func ParseVirtualWANID(input string) (*VirtualWANId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualWANId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualWANId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVirtualWANIDInsensitively parses 'input' case-insensitively into a VirtualWANId +// note: this method should only be used for API response data and not user input +func ParseVirtualWANIDInsensitively(input string) (*VirtualWANId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualWANId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualWANId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VirtualWANId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualWanName, ok = input.Parsed["virtualWanName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualWanName", input) + } + + return nil +} + +// ValidateVirtualWANID checks that 'input' can be parsed as a Virtual W A N ID +func ValidateVirtualWANID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVirtualWANID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Virtual W A N ID +func (id VirtualWANId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualWans/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualWanName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Virtual W A N ID +func (id VirtualWANId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualWans", "virtualWans", "virtualWans"), + resourceids.UserSpecifiedSegment("virtualWanName", "virtualWanName"), + } +} + +// String returns a human-readable description of this Virtual W A N ID +func (id VirtualWANId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Wan Name: %q", id.VirtualWanName), + } + return fmt.Sprintf("Virtual W A N (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpngateway.go new file mode 100644 index 000000000000..4aac85c0d136 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpngateway.go @@ -0,0 +1,130 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VpnGatewayId{}) +} + +var _ resourceids.ResourceId = &VpnGatewayId{} + +// VpnGatewayId is a struct representing the Resource ID for a Vpn Gateway +type VpnGatewayId struct { + SubscriptionId string + ResourceGroupName string + VpnGatewayName string +} + +// NewVpnGatewayID returns a new VpnGatewayId struct +func NewVpnGatewayID(subscriptionId string, resourceGroupName string, vpnGatewayName string) VpnGatewayId { + return VpnGatewayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VpnGatewayName: vpnGatewayName, + } +} + +// ParseVpnGatewayID parses 'input' into a VpnGatewayId +func ParseVpnGatewayID(input string) (*VpnGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnGatewayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVpnGatewayIDInsensitively parses 'input' case-insensitively into a VpnGatewayId +// note: this method should only be used for API response data and not user input +func ParseVpnGatewayIDInsensitively(input string) (*VpnGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnGatewayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VpnGatewayId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VpnGatewayName, ok = input.Parsed["vpnGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnGatewayName", input) + } + + return nil +} + +// ValidateVpnGatewayID checks that 'input' can be parsed as a Vpn Gateway ID +func ValidateVpnGatewayID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVpnGatewayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Vpn Gateway ID +func (id VpnGatewayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/vpnGateways/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VpnGatewayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Vpn Gateway ID +func (id VpnGatewayId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVpnGateways", "vpnGateways", "vpnGateways"), + resourceids.UserSpecifiedSegment("vpnGatewayName", "vpnGatewayName"), + } +} + +// String returns a human-readable description of this Vpn Gateway ID +func (id VpnGatewayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Vpn Gateway Name: %q", id.VpnGatewayName), + } + return fmt.Sprintf("Vpn Gateway (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnlinkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnlinkconnection.go new file mode 100644 index 000000000000..98326bfe8428 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnlinkconnection.go @@ -0,0 +1,148 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VpnLinkConnectionId{}) +} + +var _ resourceids.ResourceId = &VpnLinkConnectionId{} + +// VpnLinkConnectionId is a struct representing the Resource ID for a Vpn Link Connection +type VpnLinkConnectionId struct { + SubscriptionId string + ResourceGroupName string + VpnGatewayName string + VpnConnectionName string + VpnLinkConnectionName string +} + +// NewVpnLinkConnectionID returns a new VpnLinkConnectionId struct +func NewVpnLinkConnectionID(subscriptionId string, resourceGroupName string, vpnGatewayName string, vpnConnectionName string, vpnLinkConnectionName string) VpnLinkConnectionId { + return VpnLinkConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VpnGatewayName: vpnGatewayName, + VpnConnectionName: vpnConnectionName, + VpnLinkConnectionName: vpnLinkConnectionName, + } +} + +// ParseVpnLinkConnectionID parses 'input' into a VpnLinkConnectionId +func ParseVpnLinkConnectionID(input string) (*VpnLinkConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnLinkConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnLinkConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVpnLinkConnectionIDInsensitively parses 'input' case-insensitively into a VpnLinkConnectionId +// note: this method should only be used for API response data and not user input +func ParseVpnLinkConnectionIDInsensitively(input string) (*VpnLinkConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnLinkConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnLinkConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VpnLinkConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VpnGatewayName, ok = input.Parsed["vpnGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnGatewayName", input) + } + + if id.VpnConnectionName, ok = input.Parsed["vpnConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnConnectionName", input) + } + + if id.VpnLinkConnectionName, ok = input.Parsed["vpnLinkConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnLinkConnectionName", input) + } + + return nil +} + +// ValidateVpnLinkConnectionID checks that 'input' can be parsed as a Vpn Link Connection ID +func ValidateVpnLinkConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVpnLinkConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Vpn Link Connection ID +func (id VpnLinkConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/vpnGateways/%s/vpnConnections/%s/vpnLinkConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VpnGatewayName, id.VpnConnectionName, id.VpnLinkConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Vpn Link Connection ID +func (id VpnLinkConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVpnGateways", "vpnGateways", "vpnGateways"), + resourceids.UserSpecifiedSegment("vpnGatewayName", "vpnGatewayName"), + resourceids.StaticSegment("staticVpnConnections", "vpnConnections", "vpnConnections"), + resourceids.UserSpecifiedSegment("vpnConnectionName", "vpnConnectionName"), + resourceids.StaticSegment("staticVpnLinkConnections", "vpnLinkConnections", "vpnLinkConnections"), + resourceids.UserSpecifiedSegment("vpnLinkConnectionName", "vpnLinkConnectionName"), + } +} + +// String returns a human-readable description of this Vpn Link Connection ID +func (id VpnLinkConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Vpn Gateway Name: %q", id.VpnGatewayName), + fmt.Sprintf("Vpn Connection Name: %q", id.VpnConnectionName), + fmt.Sprintf("Vpn Link Connection Name: %q", id.VpnLinkConnectionName), + } + return fmt.Sprintf("Vpn Link Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnserverconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnserverconfiguration.go new file mode 100644 index 000000000000..641107f1430f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnserverconfiguration.go @@ -0,0 +1,130 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VpnServerConfigurationId{}) +} + +var _ resourceids.ResourceId = &VpnServerConfigurationId{} + +// VpnServerConfigurationId is a struct representing the Resource ID for a Vpn Server Configuration +type VpnServerConfigurationId struct { + SubscriptionId string + ResourceGroupName string + VpnServerConfigurationName string +} + +// NewVpnServerConfigurationID returns a new VpnServerConfigurationId struct +func NewVpnServerConfigurationID(subscriptionId string, resourceGroupName string, vpnServerConfigurationName string) VpnServerConfigurationId { + return VpnServerConfigurationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VpnServerConfigurationName: vpnServerConfigurationName, + } +} + +// ParseVpnServerConfigurationID parses 'input' into a VpnServerConfigurationId +func ParseVpnServerConfigurationID(input string) (*VpnServerConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnServerConfigurationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnServerConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVpnServerConfigurationIDInsensitively parses 'input' case-insensitively into a VpnServerConfigurationId +// note: this method should only be used for API response data and not user input +func ParseVpnServerConfigurationIDInsensitively(input string) (*VpnServerConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnServerConfigurationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnServerConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VpnServerConfigurationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VpnServerConfigurationName, ok = input.Parsed["vpnServerConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnServerConfigurationName", input) + } + + return nil +} + +// ValidateVpnServerConfigurationID checks that 'input' can be parsed as a Vpn Server Configuration ID +func ValidateVpnServerConfigurationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVpnServerConfigurationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Vpn Server Configuration ID +func (id VpnServerConfigurationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/vpnServerConfigurations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VpnServerConfigurationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Vpn Server Configuration ID +func (id VpnServerConfigurationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVpnServerConfigurations", "vpnServerConfigurations", "vpnServerConfigurations"), + resourceids.UserSpecifiedSegment("vpnServerConfigurationName", "vpnServerConfigurationName"), + } +} + +// String returns a human-readable description of this Vpn Server Configuration ID +func (id VpnServerConfigurationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Vpn Server Configuration Name: %q", id.VpnServerConfigurationName), + } + return fmt.Sprintf("Vpn Server Configuration (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnsite.go new file mode 100644 index 000000000000..241994cde17e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnsite.go @@ -0,0 +1,130 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VpnSiteId{}) +} + +var _ resourceids.ResourceId = &VpnSiteId{} + +// VpnSiteId is a struct representing the Resource ID for a Vpn Site +type VpnSiteId struct { + SubscriptionId string + ResourceGroupName string + VpnSiteName string +} + +// NewVpnSiteID returns a new VpnSiteId struct +func NewVpnSiteID(subscriptionId string, resourceGroupName string, vpnSiteName string) VpnSiteId { + return VpnSiteId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VpnSiteName: vpnSiteName, + } +} + +// ParseVpnSiteID parses 'input' into a VpnSiteId +func ParseVpnSiteID(input string) (*VpnSiteId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnSiteId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnSiteId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVpnSiteIDInsensitively parses 'input' case-insensitively into a VpnSiteId +// note: this method should only be used for API response data and not user input +func ParseVpnSiteIDInsensitively(input string) (*VpnSiteId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnSiteId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnSiteId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VpnSiteId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VpnSiteName, ok = input.Parsed["vpnSiteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnSiteName", input) + } + + return nil +} + +// ValidateVpnSiteID checks that 'input' can be parsed as a Vpn Site ID +func ValidateVpnSiteID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVpnSiteID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Vpn Site ID +func (id VpnSiteId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/vpnSites/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VpnSiteName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Vpn Site ID +func (id VpnSiteId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVpnSites", "vpnSites", "vpnSites"), + resourceids.UserSpecifiedSegment("vpnSiteName", "vpnSiteName"), + } +} + +// String returns a human-readable description of this Vpn Site ID +func (id VpnSiteId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Vpn Site Name: %q", id.VpnSiteName), + } + return fmt.Sprintf("Vpn Site (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnsitelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnsitelink.go new file mode 100644 index 000000000000..fcfd5aa34ed5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnsitelink.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VpnSiteLinkId{}) +} + +var _ resourceids.ResourceId = &VpnSiteLinkId{} + +// VpnSiteLinkId is a struct representing the Resource ID for a Vpn Site Link +type VpnSiteLinkId struct { + SubscriptionId string + ResourceGroupName string + VpnSiteName string + VpnSiteLinkName string +} + +// NewVpnSiteLinkID returns a new VpnSiteLinkId struct +func NewVpnSiteLinkID(subscriptionId string, resourceGroupName string, vpnSiteName string, vpnSiteLinkName string) VpnSiteLinkId { + return VpnSiteLinkId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VpnSiteName: vpnSiteName, + VpnSiteLinkName: vpnSiteLinkName, + } +} + +// ParseVpnSiteLinkID parses 'input' into a VpnSiteLinkId +func ParseVpnSiteLinkID(input string) (*VpnSiteLinkId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnSiteLinkId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnSiteLinkId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVpnSiteLinkIDInsensitively parses 'input' case-insensitively into a VpnSiteLinkId +// note: this method should only be used for API response data and not user input +func ParseVpnSiteLinkIDInsensitively(input string) (*VpnSiteLinkId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnSiteLinkId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnSiteLinkId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VpnSiteLinkId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VpnSiteName, ok = input.Parsed["vpnSiteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnSiteName", input) + } + + if id.VpnSiteLinkName, ok = input.Parsed["vpnSiteLinkName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnSiteLinkName", input) + } + + return nil +} + +// ValidateVpnSiteLinkID checks that 'input' can be parsed as a Vpn Site Link ID +func ValidateVpnSiteLinkID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVpnSiteLinkID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Vpn Site Link ID +func (id VpnSiteLinkId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/vpnSites/%s/vpnSiteLinks/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VpnSiteName, id.VpnSiteLinkName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Vpn Site Link ID +func (id VpnSiteLinkId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVpnSites", "vpnSites", "vpnSites"), + resourceids.UserSpecifiedSegment("vpnSiteName", "vpnSiteName"), + resourceids.StaticSegment("staticVpnSiteLinks", "vpnSiteLinks", "vpnSiteLinks"), + resourceids.UserSpecifiedSegment("vpnSiteLinkName", "vpnSiteLinkName"), + } +} + +// String returns a human-readable description of this Vpn Site Link ID +func (id VpnSiteLinkId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Vpn Site Name: %q", id.VpnSiteName), + fmt.Sprintf("Vpn Site Link Name: %q", id.VpnSiteLinkName), + } + return fmt.Sprintf("Vpn Site Link (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupscreateorupdate.go new file mode 100644 index 000000000000..391d34a222ab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupscreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConfigurationPolicyGroupsCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnServerConfigurationPolicyGroup +} + +// ConfigurationPolicyGroupsCreateOrUpdate ... +func (c VirtualWANsClient) ConfigurationPolicyGroupsCreateOrUpdate(ctx context.Context, id ConfigurationPolicyGroupId, input VpnServerConfigurationPolicyGroup) (result ConfigurationPolicyGroupsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ConfigurationPolicyGroupsCreateOrUpdateThenPoll performs ConfigurationPolicyGroupsCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) ConfigurationPolicyGroupsCreateOrUpdateThenPoll(ctx context.Context, id ConfigurationPolicyGroupId, input VpnServerConfigurationPolicyGroup) error { + result, err := c.ConfigurationPolicyGroupsCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing ConfigurationPolicyGroupsCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ConfigurationPolicyGroupsCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupsdelete.go new file mode 100644 index 000000000000..faabc47e666a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupsdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConfigurationPolicyGroupsDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// ConfigurationPolicyGroupsDelete ... +func (c VirtualWANsClient) ConfigurationPolicyGroupsDelete(ctx context.Context, id ConfigurationPolicyGroupId) (result ConfigurationPolicyGroupsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ConfigurationPolicyGroupsDeleteThenPoll performs ConfigurationPolicyGroupsDelete then polls until it's completed +func (c VirtualWANsClient) ConfigurationPolicyGroupsDeleteThenPoll(ctx context.Context, id ConfigurationPolicyGroupId) error { + result, err := c.ConfigurationPolicyGroupsDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing ConfigurationPolicyGroupsDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ConfigurationPolicyGroupsDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupsget.go new file mode 100644 index 000000000000..d8feaa4f23ab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupsget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConfigurationPolicyGroupsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VpnServerConfigurationPolicyGroup +} + +// ConfigurationPolicyGroupsGet ... +func (c VirtualWANsClient) ConfigurationPolicyGroupsGet(ctx context.Context, id ConfigurationPolicyGroupId) (result ConfigurationPolicyGroupsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VpnServerConfigurationPolicyGroup + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go new file mode 100644 index 000000000000..d8055521e535 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConfigurationPolicyGroupsListByVpnServerConfigurationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnServerConfigurationPolicyGroup +} + +type ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnServerConfigurationPolicyGroup +} + +type ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ConfigurationPolicyGroupsListByVpnServerConfiguration ... +func (c VirtualWANsClient) ConfigurationPolicyGroupsListByVpnServerConfiguration(ctx context.Context, id VpnServerConfigurationId) (result ConfigurationPolicyGroupsListByVpnServerConfigurationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager{}, + Path: fmt.Sprintf("%s/configurationPolicyGroups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnServerConfigurationPolicyGroup `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ConfigurationPolicyGroupsListByVpnServerConfigurationComplete retrieves all the results into a single object +func (c VirtualWANsClient) ConfigurationPolicyGroupsListByVpnServerConfigurationComplete(ctx context.Context, id VpnServerConfigurationId) (ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteResult, error) { + return c.ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteMatchingPredicate(ctx, id, VpnServerConfigurationPolicyGroupOperationPredicate{}) +} + +// ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteMatchingPredicate(ctx context.Context, id VpnServerConfigurationId, predicate VpnServerConfigurationPolicyGroupOperationPredicate) (result ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteResult, err error) { + items := make([]VpnServerConfigurationPolicyGroup, 0) + + resp, err := c.ConfigurationPolicyGroupsListByVpnServerConfiguration(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_generatevirtualwanvpnserverconfigurationvpnprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_generatevirtualwanvpnserverconfigurationvpnprofile.go new file mode 100644 index 000000000000..aed56fdab187 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_generatevirtualwanvpnserverconfigurationvpnprofile.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GeneratevirtualwanvpnserverconfigurationvpnprofileOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnProfileResponse +} + +// Generatevirtualwanvpnserverconfigurationvpnprofile ... +func (c VirtualWANsClient) Generatevirtualwanvpnserverconfigurationvpnprofile(ctx context.Context, id VirtualWANId, input VirtualWanVpnProfileParameters) (result GeneratevirtualwanvpnserverconfigurationvpnprofileOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/generateVpnProfile", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GeneratevirtualwanvpnserverconfigurationvpnprofileThenPoll performs Generatevirtualwanvpnserverconfigurationvpnprofile then polls until it's completed +func (c VirtualWANsClient) GeneratevirtualwanvpnserverconfigurationvpnprofileThenPoll(ctx context.Context, id VirtualWANId, input VirtualWanVpnProfileParameters) error { + result, err := c.Generatevirtualwanvpnserverconfigurationvpnprofile(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Generatevirtualwanvpnserverconfigurationvpnprofile: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Generatevirtualwanvpnserverconfigurationvpnprofile: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablescreateorupdate.go new file mode 100644 index 000000000000..58545e66cc27 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablescreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubRouteTablesCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *HubRouteTable +} + +// HubRouteTablesCreateOrUpdate ... +func (c VirtualWANsClient) HubRouteTablesCreateOrUpdate(ctx context.Context, id HubRouteTableId, input HubRouteTable) (result HubRouteTablesCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// HubRouteTablesCreateOrUpdateThenPoll performs HubRouteTablesCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) HubRouteTablesCreateOrUpdateThenPoll(ctx context.Context, id HubRouteTableId, input HubRouteTable) error { + result, err := c.HubRouteTablesCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing HubRouteTablesCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after HubRouteTablesCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablesdelete.go new file mode 100644 index 000000000000..e51f251c7149 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablesdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubRouteTablesDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// HubRouteTablesDelete ... +func (c VirtualWANsClient) HubRouteTablesDelete(ctx context.Context, id HubRouteTableId) (result HubRouteTablesDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// HubRouteTablesDeleteThenPoll performs HubRouteTablesDelete then polls until it's completed +func (c VirtualWANsClient) HubRouteTablesDeleteThenPoll(ctx context.Context, id HubRouteTableId) error { + result, err := c.HubRouteTablesDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing HubRouteTablesDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after HubRouteTablesDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablesget.go new file mode 100644 index 000000000000..e714731e2bf1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablesget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubRouteTablesGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HubRouteTable +} + +// HubRouteTablesGet ... +func (c VirtualWANsClient) HubRouteTablesGet(ctx context.Context, id HubRouteTableId) (result HubRouteTablesGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model HubRouteTable + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetableslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetableslist.go new file mode 100644 index 000000000000..d36631c9289c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetableslist.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubRouteTablesListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]HubRouteTable +} + +type HubRouteTablesListCompleteResult struct { + LatestHttpResponse *http.Response + Items []HubRouteTable +} + +type HubRouteTablesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HubRouteTablesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// HubRouteTablesList ... +func (c VirtualWANsClient) HubRouteTablesList(ctx context.Context, id VirtualHubId) (result HubRouteTablesListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &HubRouteTablesListCustomPager{}, + Path: fmt.Sprintf("%s/hubRouteTables", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]HubRouteTable `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// HubRouteTablesListComplete retrieves all the results into a single object +func (c VirtualWANsClient) HubRouteTablesListComplete(ctx context.Context, id VirtualHubId) (HubRouteTablesListCompleteResult, error) { + return c.HubRouteTablesListCompleteMatchingPredicate(ctx, id, HubRouteTableOperationPredicate{}) +} + +// HubRouteTablesListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) HubRouteTablesListCompleteMatchingPredicate(ctx context.Context, id VirtualHubId, predicate HubRouteTableOperationPredicate) (result HubRouteTablesListCompleteResult, err error) { + items := make([]HubRouteTable, 0) + + resp, err := c.HubRouteTablesList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = HubRouteTablesListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionscreateorupdate.go new file mode 100644 index 000000000000..4353d1898c91 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionscreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubVirtualNetworkConnectionsCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *HubVirtualNetworkConnection +} + +// HubVirtualNetworkConnectionsCreateOrUpdate ... +func (c VirtualWANsClient) HubVirtualNetworkConnectionsCreateOrUpdate(ctx context.Context, id HubVirtualNetworkConnectionId, input HubVirtualNetworkConnection) (result HubVirtualNetworkConnectionsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// HubVirtualNetworkConnectionsCreateOrUpdateThenPoll performs HubVirtualNetworkConnectionsCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) HubVirtualNetworkConnectionsCreateOrUpdateThenPoll(ctx context.Context, id HubVirtualNetworkConnectionId, input HubVirtualNetworkConnection) error { + result, err := c.HubVirtualNetworkConnectionsCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing HubVirtualNetworkConnectionsCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after HubVirtualNetworkConnectionsCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionsdelete.go new file mode 100644 index 000000000000..d26ec8f61b84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionsdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubVirtualNetworkConnectionsDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// HubVirtualNetworkConnectionsDelete ... +func (c VirtualWANsClient) HubVirtualNetworkConnectionsDelete(ctx context.Context, id HubVirtualNetworkConnectionId) (result HubVirtualNetworkConnectionsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// HubVirtualNetworkConnectionsDeleteThenPoll performs HubVirtualNetworkConnectionsDelete then polls until it's completed +func (c VirtualWANsClient) HubVirtualNetworkConnectionsDeleteThenPoll(ctx context.Context, id HubVirtualNetworkConnectionId) error { + result, err := c.HubVirtualNetworkConnectionsDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing HubVirtualNetworkConnectionsDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after HubVirtualNetworkConnectionsDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionsget.go new file mode 100644 index 000000000000..f08f465d3c19 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionsget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubVirtualNetworkConnectionsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HubVirtualNetworkConnection +} + +// HubVirtualNetworkConnectionsGet ... +func (c VirtualWANsClient) HubVirtualNetworkConnectionsGet(ctx context.Context, id HubVirtualNetworkConnectionId) (result HubVirtualNetworkConnectionsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model HubVirtualNetworkConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionslist.go new file mode 100644 index 000000000000..9ba166e19d8a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionslist.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubVirtualNetworkConnectionsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]HubVirtualNetworkConnection +} + +type HubVirtualNetworkConnectionsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []HubVirtualNetworkConnection +} + +type HubVirtualNetworkConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HubVirtualNetworkConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// HubVirtualNetworkConnectionsList ... +func (c VirtualWANsClient) HubVirtualNetworkConnectionsList(ctx context.Context, id VirtualHubId) (result HubVirtualNetworkConnectionsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &HubVirtualNetworkConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/hubVirtualNetworkConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]HubVirtualNetworkConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// HubVirtualNetworkConnectionsListComplete retrieves all the results into a single object +func (c VirtualWANsClient) HubVirtualNetworkConnectionsListComplete(ctx context.Context, id VirtualHubId) (HubVirtualNetworkConnectionsListCompleteResult, error) { + return c.HubVirtualNetworkConnectionsListCompleteMatchingPredicate(ctx, id, HubVirtualNetworkConnectionOperationPredicate{}) +} + +// HubVirtualNetworkConnectionsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) HubVirtualNetworkConnectionsListCompleteMatchingPredicate(ctx context.Context, id VirtualHubId, predicate HubVirtualNetworkConnectionOperationPredicate) (result HubVirtualNetworkConnectionsListCompleteResult, err error) { + items := make([]HubVirtualNetworkConnection, 0) + + resp, err := c.HubVirtualNetworkConnectionsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = HubVirtualNetworkConnectionsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulescreateorupdate.go new file mode 100644 index 000000000000..168ea42291c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulescreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulesCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnGatewayNatRule +} + +// NatRulesCreateOrUpdate ... +func (c VirtualWANsClient) NatRulesCreateOrUpdate(ctx context.Context, id NatRuleId, input VpnGatewayNatRule) (result NatRulesCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// NatRulesCreateOrUpdateThenPoll performs NatRulesCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) NatRulesCreateOrUpdateThenPoll(ctx context.Context, id NatRuleId, input VpnGatewayNatRule) error { + result, err := c.NatRulesCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing NatRulesCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after NatRulesCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulesdelete.go new file mode 100644 index 000000000000..6908f8fa7a24 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulesdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulesDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// NatRulesDelete ... +func (c VirtualWANsClient) NatRulesDelete(ctx context.Context, id NatRuleId) (result NatRulesDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// NatRulesDeleteThenPoll performs NatRulesDelete then polls until it's completed +func (c VirtualWANsClient) NatRulesDeleteThenPoll(ctx context.Context, id NatRuleId) error { + result, err := c.NatRulesDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing NatRulesDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after NatRulesDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulesget.go new file mode 100644 index 000000000000..c81f0b6e89a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulesget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulesGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VpnGatewayNatRule +} + +// NatRulesGet ... +func (c VirtualWANsClient) NatRulesGet(ctx context.Context, id NatRuleId) (result NatRulesGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VpnGatewayNatRule + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natruleslistbyvpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natruleslistbyvpngateway.go new file mode 100644 index 000000000000..e5393de1385a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natruleslistbyvpngateway.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulesListByVpnGatewayOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnGatewayNatRule +} + +type NatRulesListByVpnGatewayCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnGatewayNatRule +} + +type NatRulesListByVpnGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NatRulesListByVpnGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// NatRulesListByVpnGateway ... +func (c VirtualWANsClient) NatRulesListByVpnGateway(ctx context.Context, id VpnGatewayId) (result NatRulesListByVpnGatewayOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &NatRulesListByVpnGatewayCustomPager{}, + Path: fmt.Sprintf("%s/natRules", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnGatewayNatRule `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// NatRulesListByVpnGatewayComplete retrieves all the results into a single object +func (c VirtualWANsClient) NatRulesListByVpnGatewayComplete(ctx context.Context, id VpnGatewayId) (NatRulesListByVpnGatewayCompleteResult, error) { + return c.NatRulesListByVpnGatewayCompleteMatchingPredicate(ctx, id, VpnGatewayNatRuleOperationPredicate{}) +} + +// NatRulesListByVpnGatewayCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) NatRulesListByVpnGatewayCompleteMatchingPredicate(ctx context.Context, id VpnGatewayId, predicate VpnGatewayNatRuleOperationPredicate) (result NatRulesListByVpnGatewayCompleteResult, err error) { + items := make([]VpnGatewayNatRule, 0) + + resp, err := c.NatRulesListByVpnGateway(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = NatRulesListByVpnGatewayCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionscreateorupdate.go new file mode 100644 index 000000000000..1bcdfbdee15e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionscreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualApplianceConnectionsCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *NetworkVirtualApplianceConnection +} + +// NetworkVirtualApplianceConnectionsCreateOrUpdate ... +func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsCreateOrUpdate(ctx context.Context, id NetworkVirtualApplianceConnectionId, input NetworkVirtualApplianceConnection) (result NetworkVirtualApplianceConnectionsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// NetworkVirtualApplianceConnectionsCreateOrUpdateThenPoll performs NetworkVirtualApplianceConnectionsCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsCreateOrUpdateThenPoll(ctx context.Context, id NetworkVirtualApplianceConnectionId, input NetworkVirtualApplianceConnection) error { + result, err := c.NetworkVirtualApplianceConnectionsCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing NetworkVirtualApplianceConnectionsCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after NetworkVirtualApplianceConnectionsCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionsdelete.go new file mode 100644 index 000000000000..38492cbbb119 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionsdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualApplianceConnectionsDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// NetworkVirtualApplianceConnectionsDelete ... +func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsDelete(ctx context.Context, id NetworkVirtualApplianceConnectionId) (result NetworkVirtualApplianceConnectionsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// NetworkVirtualApplianceConnectionsDeleteThenPoll performs NetworkVirtualApplianceConnectionsDelete then polls until it's completed +func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsDeleteThenPoll(ctx context.Context, id NetworkVirtualApplianceConnectionId) error { + result, err := c.NetworkVirtualApplianceConnectionsDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing NetworkVirtualApplianceConnectionsDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after NetworkVirtualApplianceConnectionsDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionsget.go new file mode 100644 index 000000000000..783b3251a6c0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionsget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualApplianceConnectionsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkVirtualApplianceConnection +} + +// NetworkVirtualApplianceConnectionsGet ... +func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsGet(ctx context.Context, id NetworkVirtualApplianceConnectionId) (result NetworkVirtualApplianceConnectionsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkVirtualApplianceConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionslist.go new file mode 100644 index 000000000000..72b22855ec41 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionslist.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualApplianceConnectionsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkVirtualApplianceConnection +} + +type NetworkVirtualApplianceConnectionsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkVirtualApplianceConnection +} + +type NetworkVirtualApplianceConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkVirtualApplianceConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// NetworkVirtualApplianceConnectionsList ... +func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsList(ctx context.Context, id NetworkVirtualApplianceId) (result NetworkVirtualApplianceConnectionsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &NetworkVirtualApplianceConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/networkVirtualApplianceConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkVirtualApplianceConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// NetworkVirtualApplianceConnectionsListComplete retrieves all the results into a single object +func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsListComplete(ctx context.Context, id NetworkVirtualApplianceId) (NetworkVirtualApplianceConnectionsListCompleteResult, error) { + return c.NetworkVirtualApplianceConnectionsListCompleteMatchingPredicate(ctx, id, NetworkVirtualApplianceConnectionOperationPredicate{}) +} + +// NetworkVirtualApplianceConnectionsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsListCompleteMatchingPredicate(ctx context.Context, id NetworkVirtualApplianceId, predicate NetworkVirtualApplianceConnectionOperationPredicate) (result NetworkVirtualApplianceConnectionsListCompleteResult, err error) { + items := make([]NetworkVirtualApplianceConnection, 0) + + resp, err := c.NetworkVirtualApplianceConnectionsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = NetworkVirtualApplianceConnectionsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayscreateorupdate.go new file mode 100644 index 000000000000..664698b3088f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayscreateorupdate.go @@ -0,0 +1,76 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2sVpnGatewaysCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *P2SVpnGateway +} + +// P2sVpnGatewaysCreateOrUpdate ... +func (c VirtualWANsClient) P2sVpnGatewaysCreateOrUpdate(ctx context.Context, id commonids.VirtualWANP2SVPNGatewayId, input P2SVpnGateway) (result P2sVpnGatewaysCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// P2sVpnGatewaysCreateOrUpdateThenPoll performs P2sVpnGatewaysCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) P2sVpnGatewaysCreateOrUpdateThenPoll(ctx context.Context, id commonids.VirtualWANP2SVPNGatewayId, input P2SVpnGateway) error { + result, err := c.P2sVpnGatewaysCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing P2sVpnGatewaysCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after P2sVpnGatewaysCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewaysdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewaysdelete.go new file mode 100644 index 000000000000..23ae30eaecd8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewaysdelete.go @@ -0,0 +1,72 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2sVpnGatewaysDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// P2sVpnGatewaysDelete ... +func (c VirtualWANsClient) P2sVpnGatewaysDelete(ctx context.Context, id commonids.VirtualWANP2SVPNGatewayId) (result P2sVpnGatewaysDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// P2sVpnGatewaysDeleteThenPoll performs P2sVpnGatewaysDelete then polls until it's completed +func (c VirtualWANsClient) P2sVpnGatewaysDeleteThenPoll(ctx context.Context, id commonids.VirtualWANP2SVPNGatewayId) error { + result, err := c.P2sVpnGatewaysDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing P2sVpnGatewaysDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after P2sVpnGatewaysDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewaysget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewaysget.go new file mode 100644 index 000000000000..ec7e18c347ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewaysget.go @@ -0,0 +1,54 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2sVpnGatewaysGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *P2SVpnGateway +} + +// P2sVpnGatewaysGet ... +func (c VirtualWANsClient) P2sVpnGatewaysGet(ctx context.Context, id commonids.VirtualWANP2SVPNGatewayId) (result P2sVpnGatewaysGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model P2SVpnGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayslist.go new file mode 100644 index 000000000000..b51053de49e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayslist.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2sVpnGatewaysListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]P2SVpnGateway +} + +type P2sVpnGatewaysListCompleteResult struct { + LatestHttpResponse *http.Response + Items []P2SVpnGateway +} + +type P2sVpnGatewaysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *P2sVpnGatewaysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// P2sVpnGatewaysList ... +func (c VirtualWANsClient) P2sVpnGatewaysList(ctx context.Context, id commonids.SubscriptionId) (result P2sVpnGatewaysListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &P2sVpnGatewaysListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/p2sVpnGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]P2SVpnGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// P2sVpnGatewaysListComplete retrieves all the results into a single object +func (c VirtualWANsClient) P2sVpnGatewaysListComplete(ctx context.Context, id commonids.SubscriptionId) (P2sVpnGatewaysListCompleteResult, error) { + return c.P2sVpnGatewaysListCompleteMatchingPredicate(ctx, id, P2SVpnGatewayOperationPredicate{}) +} + +// P2sVpnGatewaysListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) P2sVpnGatewaysListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate P2SVpnGatewayOperationPredicate) (result P2sVpnGatewaysListCompleteResult, err error) { + items := make([]P2SVpnGateway, 0) + + resp, err := c.P2sVpnGatewaysList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = P2sVpnGatewaysListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go new file mode 100644 index 000000000000..1c57fc684fa1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2sVpnGatewaysListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]P2SVpnGateway +} + +type P2sVpnGatewaysListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []P2SVpnGateway +} + +type P2sVpnGatewaysListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *P2sVpnGatewaysListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// P2sVpnGatewaysListByResourceGroup ... +func (c VirtualWANsClient) P2sVpnGatewaysListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result P2sVpnGatewaysListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &P2sVpnGatewaysListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/p2sVpnGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]P2SVpnGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// P2sVpnGatewaysListByResourceGroupComplete retrieves all the results into a single object +func (c VirtualWANsClient) P2sVpnGatewaysListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (P2sVpnGatewaysListByResourceGroupCompleteResult, error) { + return c.P2sVpnGatewaysListByResourceGroupCompleteMatchingPredicate(ctx, id, P2SVpnGatewayOperationPredicate{}) +} + +// P2sVpnGatewaysListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) P2sVpnGatewaysListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate P2SVpnGatewayOperationPredicate) (result P2sVpnGatewaysListByResourceGroupCompleteResult, err error) { + items := make([]P2SVpnGateway, 0) + + resp, err := c.P2sVpnGatewaysListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = P2sVpnGatewaysListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapscreateorupdate.go new file mode 100644 index 000000000000..ffcf789da292 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapscreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteMapsCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *RouteMap +} + +// RouteMapsCreateOrUpdate ... +func (c VirtualWANsClient) RouteMapsCreateOrUpdate(ctx context.Context, id RouteMapId, input RouteMap) (result RouteMapsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RouteMapsCreateOrUpdateThenPoll performs RouteMapsCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) RouteMapsCreateOrUpdateThenPoll(ctx context.Context, id RouteMapId, input RouteMap) error { + result, err := c.RouteMapsCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing RouteMapsCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after RouteMapsCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapsdelete.go new file mode 100644 index 000000000000..f89977d5d946 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapsdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteMapsDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// RouteMapsDelete ... +func (c VirtualWANsClient) RouteMapsDelete(ctx context.Context, id RouteMapId) (result RouteMapsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RouteMapsDeleteThenPoll performs RouteMapsDelete then polls until it's completed +func (c VirtualWANsClient) RouteMapsDeleteThenPoll(ctx context.Context, id RouteMapId) error { + result, err := c.RouteMapsDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing RouteMapsDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after RouteMapsDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapsget.go new file mode 100644 index 000000000000..c1db2c3033aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapsget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteMapsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RouteMap +} + +// RouteMapsGet ... +func (c VirtualWANsClient) RouteMapsGet(ctx context.Context, id RouteMapId) (result RouteMapsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RouteMap + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapslist.go new file mode 100644 index 000000000000..a9eddc11d95f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapslist.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteMapsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RouteMap +} + +type RouteMapsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []RouteMap +} + +type RouteMapsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RouteMapsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// RouteMapsList ... +func (c VirtualWANsClient) RouteMapsList(ctx context.Context, id VirtualHubId) (result RouteMapsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &RouteMapsListCustomPager{}, + Path: fmt.Sprintf("%s/routeMaps", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RouteMap `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// RouteMapsListComplete retrieves all the results into a single object +func (c VirtualWANsClient) RouteMapsListComplete(ctx context.Context, id VirtualHubId) (RouteMapsListCompleteResult, error) { + return c.RouteMapsListCompleteMatchingPredicate(ctx, id, RouteMapOperationPredicate{}) +} + +// RouteMapsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) RouteMapsListCompleteMatchingPredicate(ctx context.Context, id VirtualHubId, predicate RouteMapOperationPredicate) (result RouteMapsListCompleteResult, err error) { + items := make([]RouteMap, 0) + + resp, err := c.RouteMapsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = RouteMapsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentcreateorupdate.go new file mode 100644 index 000000000000..58de76624353 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentcreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingIntentCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *RoutingIntent +} + +// RoutingIntentCreateOrUpdate ... +func (c VirtualWANsClient) RoutingIntentCreateOrUpdate(ctx context.Context, id RoutingIntentId, input RoutingIntent) (result RoutingIntentCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RoutingIntentCreateOrUpdateThenPoll performs RoutingIntentCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) RoutingIntentCreateOrUpdateThenPoll(ctx context.Context, id RoutingIntentId, input RoutingIntent) error { + result, err := c.RoutingIntentCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing RoutingIntentCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after RoutingIntentCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentdelete.go new file mode 100644 index 000000000000..dd481f41454c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingIntentDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// RoutingIntentDelete ... +func (c VirtualWANsClient) RoutingIntentDelete(ctx context.Context, id RoutingIntentId) (result RoutingIntentDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RoutingIntentDeleteThenPoll performs RoutingIntentDelete then polls until it's completed +func (c VirtualWANsClient) RoutingIntentDeleteThenPoll(ctx context.Context, id RoutingIntentId) error { + result, err := c.RoutingIntentDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing RoutingIntentDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after RoutingIntentDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentget.go new file mode 100644 index 000000000000..fea07e77795f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingIntentGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RoutingIntent +} + +// RoutingIntentGet ... +func (c VirtualWANsClient) RoutingIntentGet(ctx context.Context, id RoutingIntentId) (result RoutingIntentGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RoutingIntent + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentlist.go new file mode 100644 index 000000000000..b3edd99b5193 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentlist.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingIntentListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RoutingIntent +} + +type RoutingIntentListCompleteResult struct { + LatestHttpResponse *http.Response + Items []RoutingIntent +} + +type RoutingIntentListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RoutingIntentListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// RoutingIntentList ... +func (c VirtualWANsClient) RoutingIntentList(ctx context.Context, id VirtualHubId) (result RoutingIntentListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &RoutingIntentListCustomPager{}, + Path: fmt.Sprintf("%s/routingIntent", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RoutingIntent `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// RoutingIntentListComplete retrieves all the results into a single object +func (c VirtualWANsClient) RoutingIntentListComplete(ctx context.Context, id VirtualHubId) (RoutingIntentListCompleteResult, error) { + return c.RoutingIntentListCompleteMatchingPredicate(ctx, id, RoutingIntentOperationPredicate{}) +} + +// RoutingIntentListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) RoutingIntentListCompleteMatchingPredicate(ctx context.Context, id VirtualHubId, predicate RoutingIntentOperationPredicate) (result RoutingIntentListCompleteResult, err error) { + items := make([]RoutingIntent, 0) + + resp, err := c.RoutingIntentList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = RoutingIntentListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_supportedsecurityproviders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_supportedsecurityproviders.go new file mode 100644 index 000000000000..3351ee7549f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_supportedsecurityproviders.go @@ -0,0 +1,54 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SupportedSecurityProvidersOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualWanSecurityProviders +} + +// SupportedSecurityProviders ... +func (c VirtualWANsClient) SupportedSecurityProviders(ctx context.Context, id VirtualWANId) (result SupportedSecurityProvidersOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/supportedSecurityProviders", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualWanSecurityProviders + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_updatetags.go new file mode 100644 index 000000000000..42f292d4aeab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_updatetags.go @@ -0,0 +1,57 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualWAN +} + +// UpdateTags ... +func (c VirtualWANsClient) UpdateTags(ctx context.Context, id VirtualWANId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualWAN + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectioncreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectioncreateorupdate.go new file mode 100644 index 000000000000..3a42d5bcafd0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectioncreateorupdate.go @@ -0,0 +1,76 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubBgpConnectionCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *BgpConnection +} + +// VirtualHubBgpConnectionCreateOrUpdate ... +func (c VirtualWANsClient) VirtualHubBgpConnectionCreateOrUpdate(ctx context.Context, id commonids.VirtualHubBGPConnectionId, input BgpConnection) (result VirtualHubBgpConnectionCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubBgpConnectionCreateOrUpdateThenPoll performs VirtualHubBgpConnectionCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VirtualHubBgpConnectionCreateOrUpdateThenPoll(ctx context.Context, id commonids.VirtualHubBGPConnectionId, input BgpConnection) error { + result, err := c.VirtualHubBgpConnectionCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualHubBgpConnectionCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubBgpConnectionCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectiondelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectiondelete.go new file mode 100644 index 000000000000..b8f353d5be6d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectiondelete.go @@ -0,0 +1,72 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubBgpConnectionDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VirtualHubBgpConnectionDelete ... +func (c VirtualWANsClient) VirtualHubBgpConnectionDelete(ctx context.Context, id commonids.VirtualHubBGPConnectionId) (result VirtualHubBgpConnectionDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubBgpConnectionDeleteThenPoll performs VirtualHubBgpConnectionDelete then polls until it's completed +func (c VirtualWANsClient) VirtualHubBgpConnectionDeleteThenPoll(ctx context.Context, id commonids.VirtualHubBGPConnectionId) error { + result, err := c.VirtualHubBgpConnectionDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VirtualHubBgpConnectionDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubBgpConnectionDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionget.go new file mode 100644 index 000000000000..e4d4c41773aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionget.go @@ -0,0 +1,54 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubBgpConnectionGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BgpConnection +} + +// VirtualHubBgpConnectionGet ... +func (c VirtualWANsClient) VirtualHubBgpConnectionGet(ctx context.Context, id commonids.VirtualHubBGPConnectionId) (result VirtualHubBgpConnectionGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model BgpConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslist.go new file mode 100644 index 000000000000..802bf0b65b93 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslist.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubBgpConnectionsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]BgpConnection +} + +type VirtualHubBgpConnectionsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []BgpConnection +} + +type VirtualHubBgpConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubBgpConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualHubBgpConnectionsList ... +func (c VirtualWANsClient) VirtualHubBgpConnectionsList(ctx context.Context, id VirtualHubId) (result VirtualHubBgpConnectionsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VirtualHubBgpConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/bgpConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]BgpConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VirtualHubBgpConnectionsListComplete retrieves all the results into a single object +func (c VirtualWANsClient) VirtualHubBgpConnectionsListComplete(ctx context.Context, id VirtualHubId) (VirtualHubBgpConnectionsListCompleteResult, error) { + return c.VirtualHubBgpConnectionsListCompleteMatchingPredicate(ctx, id, BgpConnectionOperationPredicate{}) +} + +// VirtualHubBgpConnectionsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VirtualHubBgpConnectionsListCompleteMatchingPredicate(ctx context.Context, id VirtualHubId, predicate BgpConnectionOperationPredicate) (result VirtualHubBgpConnectionsListCompleteResult, err error) { + items := make([]BgpConnection, 0) + + resp, err := c.VirtualHubBgpConnectionsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VirtualHubBgpConnectionsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslistadvertisedroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslistadvertisedroutes.go new file mode 100644 index 000000000000..6c0c2308e2b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslistadvertisedroutes.go @@ -0,0 +1,72 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubBgpConnectionsListAdvertisedRoutesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *map[string][]PeerRoute +} + +// VirtualHubBgpConnectionsListAdvertisedRoutes ... +func (c VirtualWANsClient) VirtualHubBgpConnectionsListAdvertisedRoutes(ctx context.Context, id commonids.VirtualHubBGPConnectionId) (result VirtualHubBgpConnectionsListAdvertisedRoutesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/advertisedRoutes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll performs VirtualHubBgpConnectionsListAdvertisedRoutes then polls until it's completed +func (c VirtualWANsClient) VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll(ctx context.Context, id commonids.VirtualHubBGPConnectionId) error { + result, err := c.VirtualHubBgpConnectionsListAdvertisedRoutes(ctx, id) + if err != nil { + return fmt.Errorf("performing VirtualHubBgpConnectionsListAdvertisedRoutes: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubBgpConnectionsListAdvertisedRoutes: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslistlearnedroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslistlearnedroutes.go new file mode 100644 index 000000000000..4c6842802ef8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslistlearnedroutes.go @@ -0,0 +1,72 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubBgpConnectionsListLearnedRoutesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *map[string][]PeerRoute +} + +// VirtualHubBgpConnectionsListLearnedRoutes ... +func (c VirtualWANsClient) VirtualHubBgpConnectionsListLearnedRoutes(ctx context.Context, id commonids.VirtualHubBGPConnectionId) (result VirtualHubBgpConnectionsListLearnedRoutesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/learnedRoutes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubBgpConnectionsListLearnedRoutesThenPoll performs VirtualHubBgpConnectionsListLearnedRoutes then polls until it's completed +func (c VirtualWANsClient) VirtualHubBgpConnectionsListLearnedRoutesThenPoll(ctx context.Context, id commonids.VirtualHubBGPConnectionId) error { + result, err := c.VirtualHubBgpConnectionsListLearnedRoutes(ctx, id) + if err != nil { + return fmt.Errorf("performing VirtualHubBgpConnectionsListLearnedRoutes: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubBgpConnectionsListLearnedRoutes: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationcreateorupdate.go new file mode 100644 index 000000000000..dfb4925ba517 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationcreateorupdate.go @@ -0,0 +1,76 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubIPConfigurationCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *HubIPConfiguration +} + +// VirtualHubIPConfigurationCreateOrUpdate ... +func (c VirtualWANsClient) VirtualHubIPConfigurationCreateOrUpdate(ctx context.Context, id commonids.VirtualHubIPConfigurationId, input HubIPConfiguration) (result VirtualHubIPConfigurationCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubIPConfigurationCreateOrUpdateThenPoll performs VirtualHubIPConfigurationCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VirtualHubIPConfigurationCreateOrUpdateThenPoll(ctx context.Context, id commonids.VirtualHubIPConfigurationId, input HubIPConfiguration) error { + result, err := c.VirtualHubIPConfigurationCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualHubIPConfigurationCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubIPConfigurationCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationdelete.go new file mode 100644 index 000000000000..36341aa33f78 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationdelete.go @@ -0,0 +1,72 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubIPConfigurationDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VirtualHubIPConfigurationDelete ... +func (c VirtualWANsClient) VirtualHubIPConfigurationDelete(ctx context.Context, id commonids.VirtualHubIPConfigurationId) (result VirtualHubIPConfigurationDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubIPConfigurationDeleteThenPoll performs VirtualHubIPConfigurationDelete then polls until it's completed +func (c VirtualWANsClient) VirtualHubIPConfigurationDeleteThenPoll(ctx context.Context, id commonids.VirtualHubIPConfigurationId) error { + result, err := c.VirtualHubIPConfigurationDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VirtualHubIPConfigurationDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubIPConfigurationDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationget.go new file mode 100644 index 000000000000..c4abe2347849 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationget.go @@ -0,0 +1,54 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubIPConfigurationGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HubIPConfiguration +} + +// VirtualHubIPConfigurationGet ... +func (c VirtualWANsClient) VirtualHubIPConfigurationGet(ctx context.Context, id commonids.VirtualHubIPConfigurationId) (result VirtualHubIPConfigurationGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model HubIPConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationlist.go new file mode 100644 index 000000000000..8ae13b9fb7d0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationlist.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubIPConfigurationListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]HubIPConfiguration +} + +type VirtualHubIPConfigurationListCompleteResult struct { + LatestHttpResponse *http.Response + Items []HubIPConfiguration +} + +type VirtualHubIPConfigurationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubIPConfigurationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualHubIPConfigurationList ... +func (c VirtualWANsClient) VirtualHubIPConfigurationList(ctx context.Context, id VirtualHubId) (result VirtualHubIPConfigurationListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VirtualHubIPConfigurationListCustomPager{}, + Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]HubIPConfiguration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VirtualHubIPConfigurationListComplete retrieves all the results into a single object +func (c VirtualWANsClient) VirtualHubIPConfigurationListComplete(ctx context.Context, id VirtualHubId) (VirtualHubIPConfigurationListCompleteResult, error) { + return c.VirtualHubIPConfigurationListCompleteMatchingPredicate(ctx, id, HubIPConfigurationOperationPredicate{}) +} + +// VirtualHubIPConfigurationListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VirtualHubIPConfigurationListCompleteMatchingPredicate(ctx context.Context, id VirtualHubId, predicate HubIPConfigurationOperationPredicate) (result VirtualHubIPConfigurationListCompleteResult, err error) { + items := make([]HubIPConfiguration, 0) + + resp, err := c.VirtualHubIPConfigurationList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VirtualHubIPConfigurationListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2screateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2screateorupdate.go new file mode 100644 index 000000000000..b7e92feb6c7f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2screateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRouteTableV2sCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualHubRouteTableV2 +} + +// VirtualHubRouteTableV2sCreateOrUpdate ... +func (c VirtualWANsClient) VirtualHubRouteTableV2sCreateOrUpdate(ctx context.Context, id VirtualHubRouteTableId, input VirtualHubRouteTableV2) (result VirtualHubRouteTableV2sCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubRouteTableV2sCreateOrUpdateThenPoll performs VirtualHubRouteTableV2sCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VirtualHubRouteTableV2sCreateOrUpdateThenPoll(ctx context.Context, id VirtualHubRouteTableId, input VirtualHubRouteTableV2) error { + result, err := c.VirtualHubRouteTableV2sCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualHubRouteTableV2sCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubRouteTableV2sCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2sdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2sdelete.go new file mode 100644 index 000000000000..91cc7babd282 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2sdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRouteTableV2sDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VirtualHubRouteTableV2sDelete ... +func (c VirtualWANsClient) VirtualHubRouteTableV2sDelete(ctx context.Context, id VirtualHubRouteTableId) (result VirtualHubRouteTableV2sDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubRouteTableV2sDeleteThenPoll performs VirtualHubRouteTableV2sDelete then polls until it's completed +func (c VirtualWANsClient) VirtualHubRouteTableV2sDeleteThenPoll(ctx context.Context, id VirtualHubRouteTableId) error { + result, err := c.VirtualHubRouteTableV2sDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VirtualHubRouteTableV2sDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubRouteTableV2sDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2sget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2sget.go new file mode 100644 index 000000000000..0d274e1355a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2sget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRouteTableV2sGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualHubRouteTableV2 +} + +// VirtualHubRouteTableV2sGet ... +func (c VirtualWANsClient) VirtualHubRouteTableV2sGet(ctx context.Context, id VirtualHubRouteTableId) (result VirtualHubRouteTableV2sGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualHubRouteTableV2 + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2slist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2slist.go new file mode 100644 index 000000000000..cf9c9ef61a36 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2slist.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRouteTableV2sListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualHubRouteTableV2 +} + +type VirtualHubRouteTableV2sListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualHubRouteTableV2 +} + +type VirtualHubRouteTableV2sListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubRouteTableV2sListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualHubRouteTableV2sList ... +func (c VirtualWANsClient) VirtualHubRouteTableV2sList(ctx context.Context, id VirtualHubId) (result VirtualHubRouteTableV2sListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VirtualHubRouteTableV2sListCustomPager{}, + Path: fmt.Sprintf("%s/routeTables", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualHubRouteTableV2 `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VirtualHubRouteTableV2sListComplete retrieves all the results into a single object +func (c VirtualWANsClient) VirtualHubRouteTableV2sListComplete(ctx context.Context, id VirtualHubId) (VirtualHubRouteTableV2sListCompleteResult, error) { + return c.VirtualHubRouteTableV2sListCompleteMatchingPredicate(ctx, id, VirtualHubRouteTableV2OperationPredicate{}) +} + +// VirtualHubRouteTableV2sListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VirtualHubRouteTableV2sListCompleteMatchingPredicate(ctx context.Context, id VirtualHubId, predicate VirtualHubRouteTableV2OperationPredicate) (result VirtualHubRouteTableV2sListCompleteResult, err error) { + items := make([]VirtualHubRouteTableV2, 0) + + resp, err := c.VirtualHubRouteTableV2sList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VirtualHubRouteTableV2sListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubscreateorupdate.go new file mode 100644 index 000000000000..6b78901c93c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubscreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualHub +} + +// VirtualHubsCreateOrUpdate ... +func (c VirtualWANsClient) VirtualHubsCreateOrUpdate(ctx context.Context, id VirtualHubId, input VirtualHub) (result VirtualHubsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubsCreateOrUpdateThenPoll performs VirtualHubsCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VirtualHubsCreateOrUpdateThenPoll(ctx context.Context, id VirtualHubId, input VirtualHub) error { + result, err := c.VirtualHubsCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualHubsCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubsCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsdelete.go new file mode 100644 index 000000000000..70eebb0a3430 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VirtualHubsDelete ... +func (c VirtualWANsClient) VirtualHubsDelete(ctx context.Context, id VirtualHubId) (result VirtualHubsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubsDeleteThenPoll performs VirtualHubsDelete then polls until it's completed +func (c VirtualWANsClient) VirtualHubsDeleteThenPoll(ctx context.Context, id VirtualHubId) error { + result, err := c.VirtualHubsDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VirtualHubsDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubsDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsget.go new file mode 100644 index 000000000000..0b1bcbe8573f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualHub +} + +// VirtualHubsGet ... +func (c VirtualWANsClient) VirtualHubsGet(ctx context.Context, id VirtualHubId) (result VirtualHubsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualHub + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgeteffectivevirtualhubroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgeteffectivevirtualhubroutes.go new file mode 100644 index 000000000000..1bbae403695d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgeteffectivevirtualhubroutes.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsGetEffectiveVirtualHubRoutesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualHubEffectiveRouteList +} + +// VirtualHubsGetEffectiveVirtualHubRoutes ... +func (c VirtualWANsClient) VirtualHubsGetEffectiveVirtualHubRoutes(ctx context.Context, id VirtualHubId, input EffectiveRoutesParameters) (result VirtualHubsGetEffectiveVirtualHubRoutesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/effectiveRoutes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubsGetEffectiveVirtualHubRoutesThenPoll performs VirtualHubsGetEffectiveVirtualHubRoutes then polls until it's completed +func (c VirtualWANsClient) VirtualHubsGetEffectiveVirtualHubRoutesThenPoll(ctx context.Context, id VirtualHubId, input EffectiveRoutesParameters) error { + result, err := c.VirtualHubsGetEffectiveVirtualHubRoutes(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualHubsGetEffectiveVirtualHubRoutes: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubsGetEffectiveVirtualHubRoutes: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgetinboundroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgetinboundroutes.go new file mode 100644 index 000000000000..03114d0c238b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgetinboundroutes.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsGetInboundRoutesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *EffectiveRouteMapRouteList +} + +// VirtualHubsGetInboundRoutes ... +func (c VirtualWANsClient) VirtualHubsGetInboundRoutes(ctx context.Context, id VirtualHubId, input GetInboundRoutesParameters) (result VirtualHubsGetInboundRoutesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/inboundRoutes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubsGetInboundRoutesThenPoll performs VirtualHubsGetInboundRoutes then polls until it's completed +func (c VirtualWANsClient) VirtualHubsGetInboundRoutesThenPoll(ctx context.Context, id VirtualHubId, input GetInboundRoutesParameters) error { + result, err := c.VirtualHubsGetInboundRoutes(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualHubsGetInboundRoutes: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubsGetInboundRoutes: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgetoutboundroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgetoutboundroutes.go new file mode 100644 index 000000000000..9a715f996132 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgetoutboundroutes.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsGetOutboundRoutesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *EffectiveRouteMapRouteList +} + +// VirtualHubsGetOutboundRoutes ... +func (c VirtualWANsClient) VirtualHubsGetOutboundRoutes(ctx context.Context, id VirtualHubId, input GetOutboundRoutesParameters) (result VirtualHubsGetOutboundRoutesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/outboundRoutes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubsGetOutboundRoutesThenPoll performs VirtualHubsGetOutboundRoutes then polls until it's completed +func (c VirtualWANsClient) VirtualHubsGetOutboundRoutesThenPoll(ctx context.Context, id VirtualHubId, input GetOutboundRoutesParameters) error { + result, err := c.VirtualHubsGetOutboundRoutes(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualHubsGetOutboundRoutes: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubsGetOutboundRoutes: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubslist.go new file mode 100644 index 000000000000..d8fa38052338 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubslist.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualHub +} + +type VirtualHubsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualHub +} + +type VirtualHubsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualHubsList ... +func (c VirtualWANsClient) VirtualHubsList(ctx context.Context, id commonids.SubscriptionId) (result VirtualHubsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VirtualHubsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualHubs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualHub `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VirtualHubsListComplete retrieves all the results into a single object +func (c VirtualWANsClient) VirtualHubsListComplete(ctx context.Context, id commonids.SubscriptionId) (VirtualHubsListCompleteResult, error) { + return c.VirtualHubsListCompleteMatchingPredicate(ctx, id, VirtualHubOperationPredicate{}) +} + +// VirtualHubsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VirtualHubsListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VirtualHubOperationPredicate) (result VirtualHubsListCompleteResult, err error) { + items := make([]VirtualHub, 0) + + resp, err := c.VirtualHubsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VirtualHubsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubslistbyresourcegroup.go new file mode 100644 index 000000000000..9427d5420933 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubslistbyresourcegroup.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualHub +} + +type VirtualHubsListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualHub +} + +type VirtualHubsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualHubsListByResourceGroup ... +func (c VirtualWANsClient) VirtualHubsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VirtualHubsListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VirtualHubsListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualHubs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualHub `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VirtualHubsListByResourceGroupComplete retrieves all the results into a single object +func (c VirtualWANsClient) VirtualHubsListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (VirtualHubsListByResourceGroupCompleteResult, error) { + return c.VirtualHubsListByResourceGroupCompleteMatchingPredicate(ctx, id, VirtualHubOperationPredicate{}) +} + +// VirtualHubsListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VirtualHubsListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VirtualHubOperationPredicate) (result VirtualHubsListByResourceGroupCompleteResult, err error) { + items := make([]VirtualHub, 0) + + resp, err := c.VirtualHubsListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VirtualHubsListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsupdatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsupdatetags.go new file mode 100644 index 000000000000..23f6df527430 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsupdatetags.go @@ -0,0 +1,57 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsUpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualHub +} + +// VirtualHubsUpdateTags ... +func (c VirtualWANsClient) VirtualHubsUpdateTags(ctx context.Context, id VirtualHubId, input TagsObject) (result VirtualHubsUpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualHub + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanscreateorupdate.go new file mode 100644 index 000000000000..310b768e4e5e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanscreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWansCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualWAN +} + +// VirtualWansCreateOrUpdate ... +func (c VirtualWANsClient) VirtualWansCreateOrUpdate(ctx context.Context, id VirtualWANId, input VirtualWAN) (result VirtualWansCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualWansCreateOrUpdateThenPoll performs VirtualWansCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VirtualWansCreateOrUpdateThenPoll(ctx context.Context, id VirtualWANId, input VirtualWAN) error { + result, err := c.VirtualWansCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualWansCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualWansCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwansdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwansdelete.go new file mode 100644 index 000000000000..4ce708a8eddd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwansdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWansDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VirtualWansDelete ... +func (c VirtualWANsClient) VirtualWansDelete(ctx context.Context, id VirtualWANId) (result VirtualWansDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualWansDeleteThenPoll performs VirtualWansDelete then polls until it's completed +func (c VirtualWANsClient) VirtualWansDeleteThenPoll(ctx context.Context, id VirtualWANId) error { + result, err := c.VirtualWansDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VirtualWansDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualWansDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwansget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwansget.go new file mode 100644 index 000000000000..66d801a779aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwansget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWansGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualWAN +} + +// VirtualWansGet ... +func (c VirtualWANsClient) VirtualWansGet(ctx context.Context, id VirtualWANId) (result VirtualWansGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualWAN + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanslist.go new file mode 100644 index 000000000000..8a8cb8514e3d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanslist.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWansListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualWAN +} + +type VirtualWansListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualWAN +} + +type VirtualWansListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualWansListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualWansList ... +func (c VirtualWANsClient) VirtualWansList(ctx context.Context, id commonids.SubscriptionId) (result VirtualWansListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VirtualWansListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualWans", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualWAN `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VirtualWansListComplete retrieves all the results into a single object +func (c VirtualWANsClient) VirtualWansListComplete(ctx context.Context, id commonids.SubscriptionId) (VirtualWansListCompleteResult, error) { + return c.VirtualWansListCompleteMatchingPredicate(ctx, id, VirtualWANOperationPredicate{}) +} + +// VirtualWansListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VirtualWansListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VirtualWANOperationPredicate) (result VirtualWansListCompleteResult, err error) { + items := make([]VirtualWAN, 0) + + resp, err := c.VirtualWansList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VirtualWansListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanslistbyresourcegroup.go new file mode 100644 index 000000000000..24b02c202321 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanslistbyresourcegroup.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWansListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualWAN +} + +type VirtualWansListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualWAN +} + +type VirtualWansListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualWansListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualWansListByResourceGroup ... +func (c VirtualWANsClient) VirtualWansListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VirtualWansListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VirtualWansListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualWans", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualWAN `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VirtualWansListByResourceGroupComplete retrieves all the results into a single object +func (c VirtualWANsClient) VirtualWansListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (VirtualWansListByResourceGroupCompleteResult, error) { + return c.VirtualWansListByResourceGroupCompleteMatchingPredicate(ctx, id, VirtualWANOperationPredicate{}) +} + +// VirtualWansListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VirtualWansListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VirtualWANOperationPredicate) (result VirtualWansListByResourceGroupCompleteResult, err error) { + items := make([]VirtualWAN, 0) + + resp, err := c.VirtualWansListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VirtualWansListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionscreateorupdate.go new file mode 100644 index 000000000000..58f8bec5b873 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionscreateorupdate.go @@ -0,0 +1,76 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionsCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnConnection +} + +// VpnConnectionsCreateOrUpdate ... +func (c VirtualWANsClient) VpnConnectionsCreateOrUpdate(ctx context.Context, id commonids.VPNConnectionId, input VpnConnection) (result VpnConnectionsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnConnectionsCreateOrUpdateThenPoll performs VpnConnectionsCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VpnConnectionsCreateOrUpdateThenPoll(ctx context.Context, id commonids.VPNConnectionId, input VpnConnection) error { + result, err := c.VpnConnectionsCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VpnConnectionsCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnConnectionsCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsdelete.go new file mode 100644 index 000000000000..121934900356 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsdelete.go @@ -0,0 +1,72 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionsDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VpnConnectionsDelete ... +func (c VirtualWANsClient) VpnConnectionsDelete(ctx context.Context, id commonids.VPNConnectionId) (result VpnConnectionsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnConnectionsDeleteThenPoll performs VpnConnectionsDelete then polls until it's completed +func (c VirtualWANsClient) VpnConnectionsDeleteThenPoll(ctx context.Context, id commonids.VPNConnectionId) error { + result, err := c.VpnConnectionsDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VpnConnectionsDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnConnectionsDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsget.go new file mode 100644 index 000000000000..ca7d4d2a9b44 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsget.go @@ -0,0 +1,54 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VpnConnection +} + +// VpnConnectionsGet ... +func (c VirtualWANsClient) VpnConnectionsGet(ctx context.Context, id commonids.VPNConnectionId) (result VpnConnectionsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VpnConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionslistbyvpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionslistbyvpngateway.go new file mode 100644 index 000000000000..d1ed0d12708b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionslistbyvpngateway.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionsListByVpnGatewayOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnConnection +} + +type VpnConnectionsListByVpnGatewayCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnConnection +} + +type VpnConnectionsListByVpnGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnConnectionsListByVpnGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnConnectionsListByVpnGateway ... +func (c VirtualWANsClient) VpnConnectionsListByVpnGateway(ctx context.Context, id VpnGatewayId) (result VpnConnectionsListByVpnGatewayOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnConnectionsListByVpnGatewayCustomPager{}, + Path: fmt.Sprintf("%s/vpnConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnConnectionsListByVpnGatewayComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnConnectionsListByVpnGatewayComplete(ctx context.Context, id VpnGatewayId) (VpnConnectionsListByVpnGatewayCompleteResult, error) { + return c.VpnConnectionsListByVpnGatewayCompleteMatchingPredicate(ctx, id, VpnConnectionOperationPredicate{}) +} + +// VpnConnectionsListByVpnGatewayCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnConnectionsListByVpnGatewayCompleteMatchingPredicate(ctx context.Context, id VpnGatewayId, predicate VpnConnectionOperationPredicate) (result VpnConnectionsListByVpnGatewayCompleteResult, err error) { + items := make([]VpnConnection, 0) + + resp, err := c.VpnConnectionsListByVpnGateway(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnConnectionsListByVpnGatewayCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsstartpacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsstartpacketcapture.go new file mode 100644 index 000000000000..98551e48f98e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsstartpacketcapture.go @@ -0,0 +1,76 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionsStartPacketCaptureOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// VpnConnectionsStartPacketCapture ... +func (c VirtualWANsClient) VpnConnectionsStartPacketCapture(ctx context.Context, id commonids.VPNConnectionId, input VpnConnectionPacketCaptureStartParameters) (result VpnConnectionsStartPacketCaptureOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/startpacketcapture", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnConnectionsStartPacketCaptureThenPoll performs VpnConnectionsStartPacketCapture then polls until it's completed +func (c VirtualWANsClient) VpnConnectionsStartPacketCaptureThenPoll(ctx context.Context, id commonids.VPNConnectionId, input VpnConnectionPacketCaptureStartParameters) error { + result, err := c.VpnConnectionsStartPacketCapture(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VpnConnectionsStartPacketCapture: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnConnectionsStartPacketCapture: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsstoppacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsstoppacketcapture.go new file mode 100644 index 000000000000..b32b88c69695 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsstoppacketcapture.go @@ -0,0 +1,76 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionsStopPacketCaptureOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// VpnConnectionsStopPacketCapture ... +func (c VirtualWANsClient) VpnConnectionsStopPacketCapture(ctx context.Context, id commonids.VPNConnectionId, input VpnConnectionPacketCaptureStopParameters) (result VpnConnectionsStopPacketCaptureOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stoppacketcapture", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnConnectionsStopPacketCaptureThenPoll performs VpnConnectionsStopPacketCapture then polls until it's completed +func (c VirtualWANsClient) VpnConnectionsStopPacketCaptureThenPoll(ctx context.Context, id commonids.VPNConnectionId, input VpnConnectionPacketCaptureStopParameters) error { + result, err := c.VpnConnectionsStopPacketCapture(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VpnConnectionsStopPacketCapture: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnConnectionsStopPacketCapture: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayscreateorupdate.go new file mode 100644 index 000000000000..2cabc7eba199 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayscreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewaysCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnGateway +} + +// VpnGatewaysCreateOrUpdate ... +func (c VirtualWANsClient) VpnGatewaysCreateOrUpdate(ctx context.Context, id VpnGatewayId, input VpnGateway) (result VpnGatewaysCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnGatewaysCreateOrUpdateThenPoll performs VpnGatewaysCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VpnGatewaysCreateOrUpdateThenPoll(ctx context.Context, id VpnGatewayId, input VpnGateway) error { + result, err := c.VpnGatewaysCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VpnGatewaysCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnGatewaysCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewaysdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewaysdelete.go new file mode 100644 index 000000000000..76d02ba38d5d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewaysdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewaysDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VpnGatewaysDelete ... +func (c VirtualWANsClient) VpnGatewaysDelete(ctx context.Context, id VpnGatewayId) (result VpnGatewaysDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnGatewaysDeleteThenPoll performs VpnGatewaysDelete then polls until it's completed +func (c VirtualWANsClient) VpnGatewaysDeleteThenPoll(ctx context.Context, id VpnGatewayId) error { + result, err := c.VpnGatewaysDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VpnGatewaysDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnGatewaysDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewaysget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewaysget.go new file mode 100644 index 000000000000..0793829ea759 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewaysget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewaysGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VpnGateway +} + +// VpnGatewaysGet ... +func (c VirtualWANsClient) VpnGatewaysGet(ctx context.Context, id VpnGatewayId) (result VpnGatewaysGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VpnGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayslist.go new file mode 100644 index 000000000000..d5ecf5c40ee2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayslist.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewaysListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnGateway +} + +type VpnGatewaysListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnGateway +} + +type VpnGatewaysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnGatewaysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnGatewaysList ... +func (c VirtualWANsClient) VpnGatewaysList(ctx context.Context, id commonids.SubscriptionId) (result VpnGatewaysListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnGatewaysListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnGatewaysListComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnGatewaysListComplete(ctx context.Context, id commonids.SubscriptionId) (VpnGatewaysListCompleteResult, error) { + return c.VpnGatewaysListCompleteMatchingPredicate(ctx, id, VpnGatewayOperationPredicate{}) +} + +// VpnGatewaysListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnGatewaysListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VpnGatewayOperationPredicate) (result VpnGatewaysListCompleteResult, err error) { + items := make([]VpnGateway, 0) + + resp, err := c.VpnGatewaysList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnGatewaysListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayslistbyresourcegroup.go new file mode 100644 index 000000000000..e0e679927ad5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayslistbyresourcegroup.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewaysListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnGateway +} + +type VpnGatewaysListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnGateway +} + +type VpnGatewaysListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnGatewaysListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnGatewaysListByResourceGroup ... +func (c VirtualWANsClient) VpnGatewaysListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnGatewaysListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnGatewaysListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnGatewaysListByResourceGroupComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnGatewaysListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (VpnGatewaysListByResourceGroupCompleteResult, error) { + return c.VpnGatewaysListByResourceGroupCompleteMatchingPredicate(ctx, id, VpnGatewayOperationPredicate{}) +} + +// VpnGatewaysListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnGatewaysListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VpnGatewayOperationPredicate) (result VpnGatewaysListByResourceGroupCompleteResult, err error) { + items := make([]VpnGateway, 0) + + resp, err := c.VpnGatewaysListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnGatewaysListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetallsharedkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetallsharedkeys.go new file mode 100644 index 000000000000..050f49ad1151 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetallsharedkeys.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnLinkConnectionsGetAllSharedKeysOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ConnectionSharedKeyResult +} + +type VpnLinkConnectionsGetAllSharedKeysCompleteResult struct { + LatestHttpResponse *http.Response + Items []ConnectionSharedKeyResult +} + +type VpnLinkConnectionsGetAllSharedKeysCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnLinkConnectionsGetAllSharedKeysCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnLinkConnectionsGetAllSharedKeys ... +func (c VirtualWANsClient) VpnLinkConnectionsGetAllSharedKeys(ctx context.Context, id VpnLinkConnectionId) (result VpnLinkConnectionsGetAllSharedKeysOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnLinkConnectionsGetAllSharedKeysCustomPager{}, + Path: fmt.Sprintf("%s/sharedKeys", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ConnectionSharedKeyResult `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnLinkConnectionsGetAllSharedKeysComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnLinkConnectionsGetAllSharedKeysComplete(ctx context.Context, id VpnLinkConnectionId) (VpnLinkConnectionsGetAllSharedKeysCompleteResult, error) { + return c.VpnLinkConnectionsGetAllSharedKeysCompleteMatchingPredicate(ctx, id, ConnectionSharedKeyResultOperationPredicate{}) +} + +// VpnLinkConnectionsGetAllSharedKeysCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnLinkConnectionsGetAllSharedKeysCompleteMatchingPredicate(ctx context.Context, id VpnLinkConnectionId, predicate ConnectionSharedKeyResultOperationPredicate) (result VpnLinkConnectionsGetAllSharedKeysCompleteResult, err error) { + items := make([]ConnectionSharedKeyResult, 0) + + resp, err := c.VpnLinkConnectionsGetAllSharedKeys(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnLinkConnectionsGetAllSharedKeysCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetdefaultsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetdefaultsharedkey.go new file mode 100644 index 000000000000..aa16f486d530 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetdefaultsharedkey.go @@ -0,0 +1,54 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnLinkConnectionsGetDefaultSharedKeyOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionSharedKeyResult +} + +// VpnLinkConnectionsGetDefaultSharedKey ... +func (c VirtualWANsClient) VpnLinkConnectionsGetDefaultSharedKey(ctx context.Context, id VpnLinkConnectionId) (result VpnLinkConnectionsGetDefaultSharedKeyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/sharedKeys/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ConnectionSharedKeyResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetikesas.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetikesas.go new file mode 100644 index 000000000000..5ecf6a6d2e72 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetikesas.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnLinkConnectionsGetIkeSasOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// VpnLinkConnectionsGetIkeSas ... +func (c VirtualWANsClient) VpnLinkConnectionsGetIkeSas(ctx context.Context, id VpnLinkConnectionId) (result VpnLinkConnectionsGetIkeSasOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/getikesas", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnLinkConnectionsGetIkeSasThenPoll performs VpnLinkConnectionsGetIkeSas then polls until it's completed +func (c VirtualWANsClient) VpnLinkConnectionsGetIkeSasThenPoll(ctx context.Context, id VpnLinkConnectionId) error { + result, err := c.VpnLinkConnectionsGetIkeSas(ctx, id) + if err != nil { + return fmt.Errorf("performing VpnLinkConnectionsGetIkeSas: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnLinkConnectionsGetIkeSas: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go new file mode 100644 index 000000000000..28dcee0d679e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnLinkConnectionsListByVpnConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnSiteLinkConnection +} + +type VpnLinkConnectionsListByVpnConnectionCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnSiteLinkConnection +} + +type VpnLinkConnectionsListByVpnConnectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnLinkConnectionsListByVpnConnectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnLinkConnectionsListByVpnConnection ... +func (c VirtualWANsClient) VpnLinkConnectionsListByVpnConnection(ctx context.Context, id commonids.VPNConnectionId) (result VpnLinkConnectionsListByVpnConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnLinkConnectionsListByVpnConnectionCustomPager{}, + Path: fmt.Sprintf("%s/vpnLinkConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnSiteLinkConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnLinkConnectionsListByVpnConnectionComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnLinkConnectionsListByVpnConnectionComplete(ctx context.Context, id commonids.VPNConnectionId) (VpnLinkConnectionsListByVpnConnectionCompleteResult, error) { + return c.VpnLinkConnectionsListByVpnConnectionCompleteMatchingPredicate(ctx, id, VpnSiteLinkConnectionOperationPredicate{}) +} + +// VpnLinkConnectionsListByVpnConnectionCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnLinkConnectionsListByVpnConnectionCompleteMatchingPredicate(ctx context.Context, id commonids.VPNConnectionId, predicate VpnSiteLinkConnectionOperationPredicate) (result VpnLinkConnectionsListByVpnConnectionCompleteResult, err error) { + items := make([]VpnSiteLinkConnection, 0) + + resp, err := c.VpnLinkConnectionsListByVpnConnection(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnLinkConnectionsListByVpnConnectionCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionslistdefaultsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionslistdefaultsharedkey.go new file mode 100644 index 000000000000..61d6ae835297 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionslistdefaultsharedkey.go @@ -0,0 +1,54 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnLinkConnectionsListDefaultSharedKeyOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionSharedKeyResult +} + +// VpnLinkConnectionsListDefaultSharedKey ... +func (c VirtualWANsClient) VpnLinkConnectionsListDefaultSharedKey(ctx context.Context, id VpnLinkConnectionId) (result VpnLinkConnectionsListDefaultSharedKeyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/sharedKeys/default/listSharedKey", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ConnectionSharedKeyResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionssetorinitdefaultsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionssetorinitdefaultsharedkey.go new file mode 100644 index 000000000000..b4ae5551e765 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionssetorinitdefaultsharedkey.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnLinkConnectionsSetOrInitDefaultSharedKeyOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionSharedKeyResult +} + +// VpnLinkConnectionsSetOrInitDefaultSharedKey ... +func (c VirtualWANsClient) VpnLinkConnectionsSetOrInitDefaultSharedKey(ctx context.Context, id VpnLinkConnectionId, input ConnectionSharedKeyResult) (result VpnLinkConnectionsSetOrInitDefaultSharedKeyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/sharedKeys/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnLinkConnectionsSetOrInitDefaultSharedKeyThenPoll performs VpnLinkConnectionsSetOrInitDefaultSharedKey then polls until it's completed +func (c VirtualWANsClient) VpnLinkConnectionsSetOrInitDefaultSharedKeyThenPoll(ctx context.Context, id VpnLinkConnectionId, input ConnectionSharedKeyResult) error { + result, err := c.VpnLinkConnectionsSetOrInitDefaultSharedKey(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VpnLinkConnectionsSetOrInitDefaultSharedKey: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnLinkConnectionsSetOrInitDefaultSharedKey: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsassociatedwithvirtualwanlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsassociatedwithvirtualwanlist.go new file mode 100644 index 000000000000..2f7ae87144e7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsassociatedwithvirtualwanlist.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationsAssociatedWithVirtualWanListOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnServerConfigurationsResponse +} + +// VpnServerConfigurationsAssociatedWithVirtualWanList ... +func (c VirtualWANsClient) VpnServerConfigurationsAssociatedWithVirtualWanList(ctx context.Context, id VirtualWANId) (result VpnServerConfigurationsAssociatedWithVirtualWanListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/vpnServerConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnServerConfigurationsAssociatedWithVirtualWanListThenPoll performs VpnServerConfigurationsAssociatedWithVirtualWanList then polls until it's completed +func (c VirtualWANsClient) VpnServerConfigurationsAssociatedWithVirtualWanListThenPoll(ctx context.Context, id VirtualWANId) error { + result, err := c.VpnServerConfigurationsAssociatedWithVirtualWanList(ctx, id) + if err != nil { + return fmt.Errorf("performing VpnServerConfigurationsAssociatedWithVirtualWanList: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnServerConfigurationsAssociatedWithVirtualWanList: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationscreateorupdate.go new file mode 100644 index 000000000000..256562205b9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationscreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationsCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnServerConfiguration +} + +// VpnServerConfigurationsCreateOrUpdate ... +func (c VirtualWANsClient) VpnServerConfigurationsCreateOrUpdate(ctx context.Context, id VpnServerConfigurationId, input VpnServerConfiguration) (result VpnServerConfigurationsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnServerConfigurationsCreateOrUpdateThenPoll performs VpnServerConfigurationsCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VpnServerConfigurationsCreateOrUpdateThenPoll(ctx context.Context, id VpnServerConfigurationId, input VpnServerConfiguration) error { + result, err := c.VpnServerConfigurationsCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VpnServerConfigurationsCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnServerConfigurationsCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsdelete.go new file mode 100644 index 000000000000..2edde34518e8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationsDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VpnServerConfigurationsDelete ... +func (c VirtualWANsClient) VpnServerConfigurationsDelete(ctx context.Context, id VpnServerConfigurationId) (result VpnServerConfigurationsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnServerConfigurationsDeleteThenPoll performs VpnServerConfigurationsDelete then polls until it's completed +func (c VirtualWANsClient) VpnServerConfigurationsDeleteThenPoll(ctx context.Context, id VpnServerConfigurationId) error { + result, err := c.VpnServerConfigurationsDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VpnServerConfigurationsDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnServerConfigurationsDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsget.go new file mode 100644 index 000000000000..5355630843f5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VpnServerConfiguration +} + +// VpnServerConfigurationsGet ... +func (c VirtualWANsClient) VpnServerConfigurationsGet(ctx context.Context, id VpnServerConfigurationId) (result VpnServerConfigurationsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VpnServerConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationslist.go new file mode 100644 index 000000000000..914118474d53 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationslist.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnServerConfiguration +} + +type VpnServerConfigurationsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnServerConfiguration +} + +type VpnServerConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnServerConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnServerConfigurationsList ... +func (c VirtualWANsClient) VpnServerConfigurationsList(ctx context.Context, id commonids.SubscriptionId) (result VpnServerConfigurationsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnServerConfigurationsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnServerConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnServerConfiguration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnServerConfigurationsListComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnServerConfigurationsListComplete(ctx context.Context, id commonids.SubscriptionId) (VpnServerConfigurationsListCompleteResult, error) { + return c.VpnServerConfigurationsListCompleteMatchingPredicate(ctx, id, VpnServerConfigurationOperationPredicate{}) +} + +// VpnServerConfigurationsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnServerConfigurationsListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VpnServerConfigurationOperationPredicate) (result VpnServerConfigurationsListCompleteResult, err error) { + items := make([]VpnServerConfiguration, 0) + + resp, err := c.VpnServerConfigurationsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnServerConfigurationsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go new file mode 100644 index 000000000000..6653716f5fea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationsListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnServerConfiguration +} + +type VpnServerConfigurationsListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnServerConfiguration +} + +type VpnServerConfigurationsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnServerConfigurationsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnServerConfigurationsListByResourceGroup ... +func (c VirtualWANsClient) VpnServerConfigurationsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnServerConfigurationsListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnServerConfigurationsListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnServerConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnServerConfiguration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnServerConfigurationsListByResourceGroupComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnServerConfigurationsListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (VpnServerConfigurationsListByResourceGroupCompleteResult, error) { + return c.VpnServerConfigurationsListByResourceGroupCompleteMatchingPredicate(ctx, id, VpnServerConfigurationOperationPredicate{}) +} + +// VpnServerConfigurationsListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnServerConfigurationsListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VpnServerConfigurationOperationPredicate) (result VpnServerConfigurationsListByResourceGroupCompleteResult, err error) { + items := make([]VpnServerConfiguration, 0) + + resp, err := c.VpnServerConfigurationsListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnServerConfigurationsListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinkconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinkconnectionsget.go new file mode 100644 index 000000000000..b2fed5d6de1b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinkconnectionsget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSiteLinkConnectionsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VpnSiteLinkConnection +} + +// VpnSiteLinkConnectionsGet ... +func (c VirtualWANsClient) VpnSiteLinkConnectionsGet(ctx context.Context, id VpnLinkConnectionId) (result VpnSiteLinkConnectionsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VpnSiteLinkConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinksget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinksget.go new file mode 100644 index 000000000000..018f1ad8f67b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinksget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSiteLinksGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VpnSiteLink +} + +// VpnSiteLinksGet ... +func (c VirtualWANsClient) VpnSiteLinksGet(ctx context.Context, id VpnSiteLinkId) (result VpnSiteLinksGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VpnSiteLink + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go new file mode 100644 index 000000000000..584c51707188 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSiteLinksListByVpnSiteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnSiteLink +} + +type VpnSiteLinksListByVpnSiteCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnSiteLink +} + +type VpnSiteLinksListByVpnSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSiteLinksListByVpnSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnSiteLinksListByVpnSite ... +func (c VirtualWANsClient) VpnSiteLinksListByVpnSite(ctx context.Context, id VpnSiteId) (result VpnSiteLinksListByVpnSiteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnSiteLinksListByVpnSiteCustomPager{}, + Path: fmt.Sprintf("%s/vpnSiteLinks", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnSiteLink `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnSiteLinksListByVpnSiteComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnSiteLinksListByVpnSiteComplete(ctx context.Context, id VpnSiteId) (VpnSiteLinksListByVpnSiteCompleteResult, error) { + return c.VpnSiteLinksListByVpnSiteCompleteMatchingPredicate(ctx, id, VpnSiteLinkOperationPredicate{}) +} + +// VpnSiteLinksListByVpnSiteCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnSiteLinksListByVpnSiteCompleteMatchingPredicate(ctx context.Context, id VpnSiteId, predicate VpnSiteLinkOperationPredicate) (result VpnSiteLinksListByVpnSiteCompleteResult, err error) { + items := make([]VpnSiteLink, 0) + + resp, err := c.VpnSiteLinksListByVpnSite(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnSiteLinksListByVpnSiteCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesconfigurationdownload.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesconfigurationdownload.go new file mode 100644 index 000000000000..a20fd02e0fc6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesconfigurationdownload.go @@ -0,0 +1,74 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSitesConfigurationDownloadOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VpnSitesConfigurationDownload ... +func (c VirtualWANsClient) VpnSitesConfigurationDownload(ctx context.Context, id VirtualWANId, input GetVpnSitesConfigurationRequest) (result VpnSitesConfigurationDownloadOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/vpnConfiguration", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnSitesConfigurationDownloadThenPoll performs VpnSitesConfigurationDownload then polls until it's completed +func (c VirtualWANsClient) VpnSitesConfigurationDownloadThenPoll(ctx context.Context, id VirtualWANId, input GetVpnSitesConfigurationRequest) error { + result, err := c.VpnSitesConfigurationDownload(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VpnSitesConfigurationDownload: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnSitesConfigurationDownload: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitescreateorupdate.go new file mode 100644 index 000000000000..2b93c69c66a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitescreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSitesCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnSite +} + +// VpnSitesCreateOrUpdate ... +func (c VirtualWANsClient) VpnSitesCreateOrUpdate(ctx context.Context, id VpnSiteId, input VpnSite) (result VpnSitesCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnSitesCreateOrUpdateThenPoll performs VpnSitesCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VpnSitesCreateOrUpdateThenPoll(ctx context.Context, id VpnSiteId, input VpnSite) error { + result, err := c.VpnSitesCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VpnSitesCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnSitesCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesdelete.go new file mode 100644 index 000000000000..f3b27d7f18a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSitesDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VpnSitesDelete ... +func (c VirtualWANsClient) VpnSitesDelete(ctx context.Context, id VpnSiteId) (result VpnSitesDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnSitesDeleteThenPoll performs VpnSitesDelete then polls until it's completed +func (c VirtualWANsClient) VpnSitesDeleteThenPoll(ctx context.Context, id VpnSiteId) error { + result, err := c.VpnSitesDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VpnSitesDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnSitesDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesget.go new file mode 100644 index 000000000000..a250df018ce7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSitesGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VpnSite +} + +// VpnSitesGet ... +func (c VirtualWANsClient) VpnSitesGet(ctx context.Context, id VpnSiteId) (result VpnSitesGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VpnSite + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsiteslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsiteslist.go new file mode 100644 index 000000000000..38bc5c863638 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsiteslist.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSitesListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnSite +} + +type VpnSitesListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnSite +} + +type VpnSitesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSitesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnSitesList ... +func (c VirtualWANsClient) VpnSitesList(ctx context.Context, id commonids.SubscriptionId) (result VpnSitesListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnSitesListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnSites", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnSite `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnSitesListComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnSitesListComplete(ctx context.Context, id commonids.SubscriptionId) (VpnSitesListCompleteResult, error) { + return c.VpnSitesListCompleteMatchingPredicate(ctx, id, VpnSiteOperationPredicate{}) +} + +// VpnSitesListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnSitesListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VpnSiteOperationPredicate) (result VpnSitesListCompleteResult, err error) { + items := make([]VpnSite, 0) + + resp, err := c.VpnSitesList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnSitesListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsiteslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsiteslistbyresourcegroup.go new file mode 100644 index 000000000000..276e64b30d1d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsiteslistbyresourcegroup.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSitesListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnSite +} + +type VpnSitesListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnSite +} + +type VpnSitesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSitesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnSitesListByResourceGroup ... +func (c VirtualWANsClient) VpnSitesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnSitesListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnSitesListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnSites", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnSite `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnSitesListByResourceGroupComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnSitesListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (VpnSitesListByResourceGroupCompleteResult, error) { + return c.VpnSitesListByResourceGroupCompleteMatchingPredicate(ctx, id, VpnSiteOperationPredicate{}) +} + +// VpnSitesListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnSitesListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VpnSiteOperationPredicate) (result VpnSitesListByResourceGroupCompleteResult, err error) { + items := make([]VpnSite, 0) + + resp, err := c.VpnSitesListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnSitesListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_aadauthenticationparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_aadauthenticationparameters.go new file mode 100644 index 000000000000..b0d5e53c3587 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_aadauthenticationparameters.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AadAuthenticationParameters struct { + AadAudience *string `json:"aadAudience,omitempty"` + AadIssuer *string `json:"aadIssuer,omitempty"` + AadTenant *string `json:"aadTenant,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_action.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_action.go new file mode 100644 index 000000000000..e3c73ef507dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_action.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Action struct { + Parameters *[]Parameter `json:"parameters,omitempty"` + Type *RouteMapActionType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_addressspace.go new file mode 100644 index 000000000000..e1ac53861fca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_addressspace.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressSpace struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..51a23d1c2c5a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..adfa8110618c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..c308084cb90a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..184f4db35eda --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..96ab63c3c70d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..8df948283202 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..0db023773ff6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_backendaddresspool.go new file mode 100644 index 000000000000..75b3239a6738 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..210c422933e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpconnection.go similarity index 62% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_flowlog.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpconnection.go index ddd3757f710a..13c77fe22255 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_flowlog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpconnection.go @@ -1,14 +1,12 @@ -package virtualnetworktap +package virtualwans // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type FlowLog struct { +type BgpConnection struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` + Properties *BgpConnectionProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpconnectionproperties.go new file mode 100644 index 000000000000..4666e421984f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpconnectionproperties.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BgpConnectionProperties struct { + ConnectionState *HubBgpConnectionStatus `json:"connectionState,omitempty"` + HubVirtualNetworkConnection *SubResource `json:"hubVirtualNetworkConnection,omitempty"` + PeerAsn *int64 `json:"peerAsn,omitempty"` + PeerIP *string `json:"peerIp,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpsettings.go new file mode 100644 index 000000000000..5f96d5acf14a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpsettings.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BgpSettings struct { + Asn *int64 `json:"asn,omitempty"` + BgpPeeringAddress *string `json:"bgpPeeringAddress,omitempty"` + BgpPeeringAddresses *[]IPConfigurationBgpPeeringAddress `json:"bgpPeeringAddresses,omitempty"` + PeerWeight *int64 `json:"peerWeight,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_connectionsharedkeyresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_connectionsharedkeyresult.go new file mode 100644 index 000000000000..2ca277eba842 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_connectionsharedkeyresult.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionSharedKeyResult struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SharedKeyProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_criterion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_criterion.go new file mode 100644 index 000000000000..e7249b64d4d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_criterion.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Criterion struct { + AsPath *[]string `json:"asPath,omitempty"` + Community *[]string `json:"community,omitempty"` + MatchCondition *RouteMapMatchCondition `json:"matchCondition,omitempty"` + RoutePrefix *[]string `json:"routePrefix,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..557a5a01a6d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ddossettings.go new file mode 100644 index 000000000000..82eef09dc621 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ddossettings.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_delegation.go new file mode 100644 index 000000000000..55eeb1fff811 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_delegation.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_deviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_deviceproperties.go new file mode 100644 index 000000000000..9c2553498461 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_deviceproperties.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeviceProperties struct { + DeviceModel *string `json:"deviceModel,omitempty"` + DeviceVendor *string `json:"deviceVendor,omitempty"` + LinkSpeedInMbps *int64 `json:"linkSpeedInMbps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutemaproute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutemaproute.go new file mode 100644 index 000000000000..3a565a687e87 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutemaproute.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EffectiveRouteMapRoute struct { + AsPath *string `json:"asPath,omitempty"` + BgpCommunities *string `json:"bgpCommunities,omitempty"` + Prefix *string `json:"prefix,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutemaproutelist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutemaproutelist.go new file mode 100644 index 000000000000..326acde877b3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutemaproutelist.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EffectiveRouteMapRouteList struct { + Value *[]EffectiveRouteMapRoute `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutesparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutesparameters.go new file mode 100644 index 000000000000..dab27997ab5b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutesparameters.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EffectiveRoutesParameters struct { + ResourceId *string `json:"resourceId,omitempty"` + VirtualWanResourceType *string `json:"virtualWanResourceType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlog.go new file mode 100644 index 000000000000..bc406232e6a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlog.go @@ -0,0 +1,19 @@ +package virtualwans + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlogformatparameters.go new file mode 100644 index 000000000000..3b64c7c567a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..41747177c874 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_frontendipconfiguration.go new file mode 100644 index 000000000000..b9c97d1e6a40 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package virtualwans + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..62b1635a8eda --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_gatewaycustombgpipaddressipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_gatewaycustombgpipaddressipconfiguration.go new file mode 100644 index 000000000000..81c747c0a4af --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_gatewaycustombgpipaddressipconfiguration.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayCustomBgpIPAddressIPConfiguration struct { + CustomBgpIPAddress string `json:"customBgpIpAddress"` + IPConfigurationId string `json:"ipConfigurationId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..96c5d2b39e50 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getinboundroutesparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getinboundroutesparameters.go new file mode 100644 index 000000000000..1407618f6604 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getinboundroutesparameters.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetInboundRoutesParameters struct { + ConnectionType *string `json:"connectionType,omitempty"` + ResourceUri *string `json:"resourceUri,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getoutboundroutesparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getoutboundroutesparameters.go new file mode 100644 index 000000000000..19a89a55b101 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getoutboundroutesparameters.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOutboundRoutesParameters struct { + ConnectionType *string `json:"connectionType,omitempty"` + ResourceUri *string `json:"resourceUri,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getvpnsitesconfigurationrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getvpnsitesconfigurationrequest.go new file mode 100644 index 000000000000..cd349d0cb2f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getvpnsitesconfigurationrequest.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetVpnSitesConfigurationRequest struct { + OutputBlobSasURL string `json:"outputBlobSasUrl"` + VpnSites *[]string `json:"vpnSites,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubipconfiguration.go new file mode 100644 index 000000000000..c666224646f9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubipconfiguration.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *HubIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..86c4674860bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubIPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroute.go new file mode 100644 index 000000000000..bc12eef1a4a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroute.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubRoute struct { + DestinationType string `json:"destinationType"` + Destinations []string `json:"destinations"` + Name string `json:"name"` + NextHop string `json:"nextHop"` + NextHopType string `json:"nextHopType"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroutetable.go similarity index 62% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_flowlog.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroutetable.go index b06c467c3bc4..1214fb071b3f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_flowlog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroutetable.go @@ -1,14 +1,12 @@ -package dscpconfigurations +package virtualwans // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type FlowLog struct { +type HubRouteTable struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` + Properties *HubRouteTableProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroutetableproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroutetableproperties.go new file mode 100644 index 000000000000..32d33bc1ec9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroutetableproperties.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubRouteTableProperties struct { + AssociatedConnections *[]string `json:"associatedConnections,omitempty"` + Labels *[]string `json:"labels,omitempty"` + PropagatingConnections *[]string `json:"propagatingConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Routes *[]HubRoute `json:"routes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubvirtualnetworkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubvirtualnetworkconnection.go new file mode 100644 index 000000000000..41f20a0a732c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubvirtualnetworkconnection.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubVirtualNetworkConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *HubVirtualNetworkConnectionProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubvirtualnetworkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubvirtualnetworkconnectionproperties.go new file mode 100644 index 000000000000..83313e30ed50 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubvirtualnetworkconnectionproperties.go @@ -0,0 +1,13 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubVirtualNetworkConnectionProperties struct { + AllowHubToRemoteVnetTransit *bool `json:"allowHubToRemoteVnetTransit,omitempty"` + AllowRemoteVnetToUseHubVnetGateways *bool `json:"allowRemoteVnetToUseHubVnetGateways,omitempty"` + EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RemoteVirtualNetwork *SubResource `json:"remoteVirtualNetwork,omitempty"` + RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_inboundnatrule.go new file mode 100644 index 000000000000..eee8ea195cf2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..17b64e3d4689 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfiguration.go new file mode 100644 index 000000000000..1241b6c2c3ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationbgppeeringaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationbgppeeringaddress.go new file mode 100644 index 000000000000..fbaabbf7c1b1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationbgppeeringaddress.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationBgpPeeringAddress struct { + CustomBgpIPAddresses *[]string `json:"customBgpIpAddresses,omitempty"` + DefaultBgpIPAddresses *[]string `json:"defaultBgpIpAddresses,omitempty"` + IPconfigurationId *string `json:"ipconfigurationId,omitempty"` + TunnelIPAddresses *[]string `json:"tunnelIpAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..a710fe9c7f00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..6b808468c3d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..58c575ad69f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipsecpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipsecpolicy.go new file mode 100644 index 000000000000..02267e6b24d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipsecpolicy.go @@ -0,0 +1,15 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPsecPolicy struct { + DhGroup DhGroup `json:"dhGroup"` + IPsecEncryption IPsecEncryption `json:"ipsecEncryption"` + IPsecIntegrity IPsecIntegrity `json:"ipsecIntegrity"` + IkeEncryption IkeEncryption `json:"ikeEncryption"` + IkeIntegrity IkeIntegrity `json:"ikeIntegrity"` + PfsGroup PfsGroup `json:"pfsGroup"` + SaDataSizeKilobytes int64 `json:"saDataSizeKilobytes"` + SaLifeTimeSeconds int64 `json:"saLifeTimeSeconds"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_iptag.go new file mode 100644 index 000000000000..de05365d519b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_iptag.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..37820fb13bdd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..3f6629b67eb1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgateway.go new file mode 100644 index 000000000000..7e1a4539e08c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgateway.go @@ -0,0 +1,20 @@ +package virtualwans + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..7f5732e1cc0f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgatewaysku.go new file mode 100644 index 000000000000..4cd49e069a9e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natruleportmapping.go new file mode 100644 index 000000000000..2ce8b302da36 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterface.go new file mode 100644 index 000000000000..b6b5bf73332f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterface.go @@ -0,0 +1,19 @@ +package virtualwans + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..d0dcb411a3e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..5c0d1edc7adc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..9ed5a87eb91a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..09f53d0138b8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..eb6875aa05ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..d12531c27982 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..70fb9b73ddbf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networksecuritygroup.go new file mode 100644 index 000000000000..c941605df94e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..54526eb4ea06 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkvirtualapplianceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkvirtualapplianceconnection.go new file mode 100644 index 000000000000..903d78680e70 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkvirtualapplianceconnection.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualApplianceConnection struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkVirtualApplianceConnectionProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkvirtualapplianceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkvirtualapplianceconnectionproperties.go new file mode 100644 index 000000000000..bfe5ec7a3172 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkvirtualapplianceconnectionproperties.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualApplianceConnectionProperties struct { + Asn *int64 `json:"asn,omitempty"` + BgpPeerAddress *[]string `json:"bgpPeerAddress,omitempty"` + EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` + Name *string `json:"name,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` + TunnelIdentifier *int64 `json:"tunnelIdentifier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_o365breakoutcategorypolicies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_o365breakoutcategorypolicies.go new file mode 100644 index 000000000000..0a9ed71a50bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_o365breakoutcategorypolicies.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type O365BreakOutCategoryPolicies struct { + Allow *bool `json:"allow,omitempty"` + Default *bool `json:"default,omitempty"` + Optimize *bool `json:"optimize,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_o365policyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_o365policyproperties.go new file mode 100644 index 000000000000..eeae991ee3fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_o365policyproperties.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type O365PolicyProperties struct { + BreakOutCategories *O365BreakOutCategoryPolicies `json:"breakOutCategories,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2sconnectionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2sconnectionconfiguration.go new file mode 100644 index 000000000000..08a6a4528430 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2sconnectionconfiguration.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2SConnectionConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *P2SConnectionConfigurationProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2sconnectionconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2sconnectionconfigurationproperties.go new file mode 100644 index 000000000000..a5558cf1e488 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2sconnectionconfigurationproperties.go @@ -0,0 +1,13 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2SConnectionConfigurationProperties struct { + ConfigurationPolicyGroupAssociations *[]SubResource `json:"configurationPolicyGroupAssociations,omitempty"` + EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` + PreviousConfigurationPolicyGroupAssociations *[]VpnServerConfigurationPolicyGroup `json:"previousConfigurationPolicyGroupAssociations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` + VpnClientAddressPool *AddressSpace `json:"vpnClientAddressPool,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2svpngateway.go similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_flowlog.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2svpngateway.go index f4d7ea329fc4..25f63025e39a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_flowlog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2svpngateway.go @@ -1,14 +1,14 @@ -package dscpconfiguration +package virtualwans // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type FlowLog struct { +type P2SVpnGateway struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Properties *P2SVpnGatewayProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2svpngatewayproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2svpngatewayproperties.go new file mode 100644 index 000000000000..d337b304bbd1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2svpngatewayproperties.go @@ -0,0 +1,15 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2SVpnGatewayProperties struct { + CustomDnsServers *[]string `json:"customDnsServers,omitempty"` + IsRoutingPreferenceInternet *bool `json:"isRoutingPreferenceInternet,omitempty"` + P2SConnectionConfigurations *[]P2SConnectionConfiguration `json:"p2SConnectionConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualHub *SubResource `json:"virtualHub,omitempty"` + VpnClientConnectionHealth *VpnClientConnectionHealth `json:"vpnClientConnectionHealth,omitempty"` + VpnGatewayScaleUnit *int64 `json:"vpnGatewayScaleUnit,omitempty"` + VpnServerConfiguration *SubResource `json:"vpnServerConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_parameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_parameter.go new file mode 100644 index 000000000000..d1619c1138c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_parameter.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Parameter struct { + AsPath *[]string `json:"asPath,omitempty"` + Community *[]string `json:"community,omitempty"` + RoutePrefix *[]string `json:"routePrefix,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_peerroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_peerroute.go new file mode 100644 index 000000000000..c03bdbe8722a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_peerroute.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PeerRoute struct { + AsPath *string `json:"asPath,omitempty"` + LocalAddress *string `json:"localAddress,omitempty"` + Network *string `json:"network,omitempty"` + NextHop *string `json:"nextHop,omitempty"` + Origin *string `json:"origin,omitempty"` + SourcePeer *string `json:"sourcePeer,omitempty"` + Weight *int64 `json:"weight,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpoint.go new file mode 100644 index 000000000000..d493c3ed57a0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpoint.go @@ -0,0 +1,19 @@ +package virtualwans + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointconnection.go new file mode 100644 index 000000000000..191623acf98c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..f54855d12882 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..053d067b6855 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..d6794440033e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointproperties.go new file mode 100644 index 000000000000..3af5e8a64e0e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkservice.go new file mode 100644 index 000000000000..79f0f888953c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package virtualwans + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..b584feab35a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..5875bd90e15d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..c1664caec07d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..3558cb8095ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..31251b676855 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..5160f8086551 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_propagatedroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_propagatedroutetable.go new file mode 100644 index 000000000000..af45ddbedf13 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_propagatedroutetable.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PropagatedRouteTable struct { + Ids *[]SubResource `json:"ids,omitempty"` + Labels *[]string `json:"labels,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddress.go new file mode 100644 index 000000000000..8bd2fa402a43 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddress.go @@ -0,0 +1,22 @@ +package virtualwans + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..2a95851cb0ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..48fecb8ae904 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddresssku.go new file mode 100644 index 000000000000..4fcf5fb0e8f9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_radiusserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_radiusserver.go new file mode 100644 index 000000000000..858a67625c97 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_radiusserver.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RadiusServer struct { + RadiusServerAddress string `json:"radiusServerAddress"` + RadiusServerScore *int64 `json:"radiusServerScore,omitempty"` + RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourcenavigationlink.go new file mode 100644 index 000000000000..b0d119588a36 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..9443c31d2276 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourceset.go new file mode 100644 index 000000000000..f8d5a3c07759 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourceset.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..57394822b9d8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_route.go new file mode 100644 index 000000000000..5ae4b7a4ff8b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_route.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemap.go new file mode 100644 index 000000000000..6c5941f5a4c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemap.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteMap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteMapProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemapproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemapproperties.go new file mode 100644 index 000000000000..a4a019429fff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemapproperties.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteMapProperties struct { + AssociatedInboundConnections *[]string `json:"associatedInboundConnections,omitempty"` + AssociatedOutboundConnections *[]string `json:"associatedOutboundConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Rules *[]RouteMapRule `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemaprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemaprule.go new file mode 100644 index 000000000000..cdeacc9a78b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemaprule.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteMapRule struct { + Actions *[]Action `json:"actions,omitempty"` + MatchCriteria *[]Criterion `json:"matchCriteria,omitempty"` + Name *string `json:"name,omitempty"` + NextStepIfMatched *NextStep `json:"nextStepIfMatched,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routepropertiesformat.go new file mode 100644 index 000000000000..51259038175d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routetable.go new file mode 100644 index 000000000000..76a72a637be5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routetable.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..9a5454526a4e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingconfiguration.go new file mode 100644 index 000000000000..f4ca0018afa6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingconfiguration.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingConfiguration struct { + AssociatedRouteTable *SubResource `json:"associatedRouteTable,omitempty"` + InboundRouteMap *SubResource `json:"inboundRouteMap,omitempty"` + OutboundRouteMap *SubResource `json:"outboundRouteMap,omitempty"` + PropagatedRouteTables *PropagatedRouteTable `json:"propagatedRouteTables,omitempty"` + VnetRoutes *VnetRoute `json:"vnetRoutes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingintent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingintent.go new file mode 100644 index 000000000000..537f1404f3d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingintent.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingIntent struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutingIntentProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingintentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingintentproperties.go new file mode 100644 index 000000000000..38a3b8e4147b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingintentproperties.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingIntentProperties struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RoutingPolicies *[]RoutingPolicy `json:"routingPolicies,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingpolicy.go new file mode 100644 index 000000000000..cef221dbd589 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingpolicy.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingPolicy struct { + Destinations []string `json:"destinations"` + Name string `json:"name"` + NextHop string `json:"nextHop"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_securityrule.go new file mode 100644 index 000000000000..72e68599476f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_securityrule.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..547a37a71ce6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceassociationlink.go new file mode 100644 index 000000000000..0b2b5927b194 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..1aa80542228e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..aaeb340b2c7c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..62b85e18cbf8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..886de873aeac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..433a85d20065 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..6c09399b151f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..f8ef284cbaae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_sharedkeyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_sharedkeyproperties.go new file mode 100644 index 000000000000..5988e0bc6fdd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_sharedkeyproperties.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SharedKeyProperties struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SharedKey *string `json:"sharedKey,omitempty"` + SharedKeyLength *int64 `json:"sharedKeyLength,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_staticroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_staticroute.go new file mode 100644 index 000000000000..c57fdb00cea6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_staticroute.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StaticRoute struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + Name *string `json:"name,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_staticroutesconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_staticroutesconfig.go new file mode 100644 index 000000000000..c286d119b662 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_staticroutesconfig.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StaticRoutesConfig struct { + PropagateStaticRoutes *bool `json:"propagateStaticRoutes,omitempty"` + VnetLocalRouteOverrideCriteria *VnetLocalRouteOverrideCriteria `json:"vnetLocalRouteOverrideCriteria,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subnet.go new file mode 100644 index 000000000000..ecdd88e02075 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subnet.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..99ccf399c440 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subresource.go new file mode 100644 index 000000000000..9c238c85dfff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subresource.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_tagsobject.go new file mode 100644 index 000000000000..1f55b0e7a001 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_tagsobject.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..1e6b8ac8e237 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..56d6e09676b3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficselectorpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficselectorpolicy.go new file mode 100644 index 000000000000..09496a292fae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficselectorpolicy.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficSelectorPolicy struct { + LocalAddressRanges []string `json:"localAddressRanges"` + RemoteAddressRanges []string `json:"remoteAddressRanges"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhub.go new file mode 100644 index 000000000000..732daa9aeccd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhub.go @@ -0,0 +1,15 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHub struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualHubProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubeffectiveroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubeffectiveroute.go new file mode 100644 index 000000000000..d46894da2a8a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubeffectiveroute.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubEffectiveRoute struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + AsPath *string `json:"asPath,omitempty"` + NextHopType *string `json:"nextHopType,omitempty"` + NextHops *[]string `json:"nextHops,omitempty"` + RouteOrigin *string `json:"routeOrigin,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubeffectiveroutelist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubeffectiveroutelist.go new file mode 100644 index 000000000000..3ea5b7b15e4d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubeffectiveroutelist.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubEffectiveRouteList struct { + Value *[]VirtualHubEffectiveRoute `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubproperties.go new file mode 100644 index 000000000000..9b119e8889fd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubproperties.go @@ -0,0 +1,29 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubProperties struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AllowBranchToBranchTraffic *bool `json:"allowBranchToBranchTraffic,omitempty"` + AzureFirewall *SubResource `json:"azureFirewall,omitempty"` + BgpConnections *[]SubResource `json:"bgpConnections,omitempty"` + ExpressRouteGateway *SubResource `json:"expressRouteGateway,omitempty"` + HubRoutingPreference *HubRoutingPreference `json:"hubRoutingPreference,omitempty"` + IPConfigurations *[]SubResource `json:"ipConfigurations,omitempty"` + P2SVpnGateway *SubResource `json:"p2SVpnGateway,omitempty"` + PreferredRoutingGateway *PreferredRoutingGateway `json:"preferredRoutingGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RouteMaps *[]SubResource `json:"routeMaps,omitempty"` + RouteTable *VirtualHubRouteTable `json:"routeTable,omitempty"` + RoutingState *RoutingState `json:"routingState,omitempty"` + SecurityPartnerProvider *SubResource `json:"securityPartnerProvider,omitempty"` + SecurityProviderName *string `json:"securityProviderName,omitempty"` + Sku *string `json:"sku,omitempty"` + VirtualHubRouteTableV2s *[]VirtualHubRouteTableV2 `json:"virtualHubRouteTableV2s,omitempty"` + VirtualRouterAsn *int64 `json:"virtualRouterAsn,omitempty"` + VirtualRouterAutoScaleConfiguration *VirtualRouterAutoScaleConfiguration `json:"virtualRouterAutoScaleConfiguration,omitempty"` + VirtualRouterIPs *[]string `json:"virtualRouterIps,omitempty"` + VirtualWAN *SubResource `json:"virtualWan,omitempty"` + VpnGateway *SubResource `json:"vpnGateway,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroute.go new file mode 100644 index 000000000000..3b9b205ea1a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroute.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRoute struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetable.go new file mode 100644 index 000000000000..71ec2c0bca44 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetable.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRouteTable struct { + Routes *[]VirtualHubRoute `json:"routes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetablev2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetablev2.go new file mode 100644 index 000000000000..50fa84c35f56 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetablev2.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRouteTableV2 struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualHubRouteTableV2Properties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetablev2properties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetablev2properties.go new file mode 100644 index 000000000000..ed869d1c4715 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetablev2properties.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRouteTableV2Properties struct { + AttachedConnections *[]string `json:"attachedConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Routes *[]VirtualHubRouteV2 `json:"routes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutev2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutev2.go new file mode 100644 index 000000000000..a47739aa2a57 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutev2.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRouteV2 struct { + DestinationType *string `json:"destinationType,omitempty"` + Destinations *[]string `json:"destinations,omitempty"` + NextHopType *string `json:"nextHopType,omitempty"` + NextHops *[]string `json:"nextHops,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualnetworktap.go new file mode 100644 index 000000000000..f7d80351ab55 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..efca5566dadf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualrouterautoscaleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualrouterautoscaleconfiguration.go new file mode 100644 index 000000000000..4ce6be454208 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualrouterautoscaleconfiguration.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualRouterAutoScaleConfiguration struct { + MinCapacity *int64 `json:"minCapacity,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwan.go new file mode 100644 index 000000000000..45691c81b741 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwan.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWAN struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualWanProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwanproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwanproperties.go new file mode 100644 index 000000000000..65c2eb829cb0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwanproperties.go @@ -0,0 +1,15 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWanProperties struct { + AllowBranchToBranchTraffic *bool `json:"allowBranchToBranchTraffic,omitempty"` + AllowVnetToVnetTraffic *bool `json:"allowVnetToVnetTraffic,omitempty"` + DisableVpnEncryption *bool `json:"disableVpnEncryption,omitempty"` + Office365LocalBreakoutCategory *OfficeTrafficCategory `json:"office365LocalBreakoutCategory,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Type *string `json:"type,omitempty"` + VirtualHubs *[]SubResource `json:"virtualHubs,omitempty"` + VpnSites *[]SubResource `json:"vpnSites,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwansecurityprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwansecurityprovider.go new file mode 100644 index 000000000000..d41346bc4a91 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwansecurityprovider.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWanSecurityProvider struct { + Name *string `json:"name,omitempty"` + Type *VirtualWanSecurityProviderType `json:"type,omitempty"` + Url *string `json:"url,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwansecurityproviders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwansecurityproviders.go new file mode 100644 index 000000000000..6e7e4ab59f80 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwansecurityproviders.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWanSecurityProviders struct { + SupportedProviders *[]VirtualWanSecurityProvider `json:"supportedProviders,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwanvpnprofileparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwanvpnprofileparameters.go new file mode 100644 index 000000000000..dd01888d247e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwanvpnprofileparameters.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWanVpnProfileParameters struct { + AuthenticationMethod *AuthenticationMethod `json:"authenticationMethod,omitempty"` + VpnServerConfigurationResourceId *string `json:"vpnServerConfigurationResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vnetroute.go new file mode 100644 index 000000000000..cbd035f3e068 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vnetroute.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetRoute struct { + BgpConnections *[]SubResource `json:"bgpConnections,omitempty"` + StaticRoutes *[]StaticRoute `json:"staticRoutes,omitempty"` + StaticRoutesConfig *StaticRoutesConfig `json:"staticRoutesConfig,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnclientconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnclientconnectionhealth.go new file mode 100644 index 000000000000..82eefc44a41b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnclientconnectionhealth.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientConnectionHealth struct { + AllocatedIPAddresses *[]string `json:"allocatedIpAddresses,omitempty"` + TotalEgressBytesTransferred *int64 `json:"totalEgressBytesTransferred,omitempty"` + TotalIngressBytesTransferred *int64 `json:"totalIngressBytesTransferred,omitempty"` + VpnClientConnectionsCount *int64 `json:"vpnClientConnectionsCount,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnection.go new file mode 100644 index 000000000000..9d157042c705 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnection.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnConnectionProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionpacketcapturestartparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionpacketcapturestartparameters.go new file mode 100644 index 000000000000..97a9e565f9e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionpacketcapturestartparameters.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionPacketCaptureStartParameters struct { + FilterData *string `json:"filterData,omitempty"` + LinkConnectionNames *[]string `json:"linkConnectionNames,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionpacketcapturestopparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionpacketcapturestopparameters.go new file mode 100644 index 000000000000..a2a50d9eb924 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionpacketcapturestopparameters.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionPacketCaptureStopParameters struct { + LinkConnectionNames *[]string `json:"linkConnectionNames,omitempty"` + SasURL *string `json:"sasUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionproperties.go new file mode 100644 index 000000000000..1c238229449b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionproperties.go @@ -0,0 +1,26 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionProperties struct { + ConnectionBandwidth *int64 `json:"connectionBandwidth,omitempty"` + ConnectionStatus *VpnConnectionStatus `json:"connectionStatus,omitempty"` + DpdTimeoutSeconds *int64 `json:"dpdTimeoutSeconds,omitempty"` + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + EnableBgp *bool `json:"enableBgp,omitempty"` + EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` + EnableRateLimiting *bool `json:"enableRateLimiting,omitempty"` + IPsecPolicies *[]IPsecPolicy `json:"ipsecPolicies,omitempty"` + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RemoteVpnSite *SubResource `json:"remoteVpnSite,omitempty"` + RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` + RoutingWeight *int64 `json:"routingWeight,omitempty"` + SharedKey *string `json:"sharedKey,omitempty"` + TrafficSelectorPolicies *[]TrafficSelectorPolicy `json:"trafficSelectorPolicies,omitempty"` + UseLocalAzureIPAddress *bool `json:"useLocalAzureIpAddress,omitempty"` + UsePolicyBasedTrafficSelectors *bool `json:"usePolicyBasedTrafficSelectors,omitempty"` + VpnConnectionProtocolType *VirtualNetworkGatewayConnectionProtocol `json:"vpnConnectionProtocolType,omitempty"` + VpnLinkConnections *[]VpnSiteLinkConnection `json:"vpnLinkConnections,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngateway.go new file mode 100644 index 000000000000..0c0f9dab77f7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngateway.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnGatewayProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewayipconfiguration.go new file mode 100644 index 000000000000..b1060397ea07 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewayipconfiguration.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewayIPConfiguration struct { + Id *string `json:"id,omitempty"` + PrivateIPAddress *string `json:"privateIpAddress,omitempty"` + PublicIPAddress *string `json:"publicIpAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewaynatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewaynatrule.go new file mode 100644 index 000000000000..2de41b7ced6b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewaynatrule.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewayNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnGatewayNatRuleProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewaynatruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewaynatruleproperties.go new file mode 100644 index 000000000000..1aaf7c8f90bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewaynatruleproperties.go @@ -0,0 +1,15 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewayNatRuleProperties struct { + EgressVpnSiteLinkConnections *[]SubResource `json:"egressVpnSiteLinkConnections,omitempty"` + ExternalMappings *[]VpnNatRuleMapping `json:"externalMappings,omitempty"` + IPConfigurationId *string `json:"ipConfigurationId,omitempty"` + IngressVpnSiteLinkConnections *[]SubResource `json:"ingressVpnSiteLinkConnections,omitempty"` + InternalMappings *[]VpnNatRuleMapping `json:"internalMappings,omitempty"` + Mode *VpnNatRuleMode `json:"mode,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Type *VpnNatRuleType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewayproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewayproperties.go new file mode 100644 index 000000000000..ab2b8b55b1b7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewayproperties.go @@ -0,0 +1,16 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewayProperties struct { + BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` + Connections *[]VpnConnection `json:"connections,omitempty"` + EnableBgpRouteTranslationForNat *bool `json:"enableBgpRouteTranslationForNat,omitempty"` + IPConfigurations *[]VpnGatewayIPConfiguration `json:"ipConfigurations,omitempty"` + IsRoutingPreferenceInternet *bool `json:"isRoutingPreferenceInternet,omitempty"` + NatRules *[]VpnGatewayNatRule `json:"natRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualHub *SubResource `json:"virtualHub,omitempty"` + VpnGatewayScaleUnit *int64 `json:"vpnGatewayScaleUnit,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnlinkbgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnlinkbgpsettings.go new file mode 100644 index 000000000000..72de7d653088 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnlinkbgpsettings.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnLinkBgpSettings struct { + Asn *int64 `json:"asn,omitempty"` + BgpPeeringAddress *string `json:"bgpPeeringAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnlinkproviderproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnlinkproviderproperties.go new file mode 100644 index 000000000000..555f8739a9bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnlinkproviderproperties.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnLinkProviderProperties struct { + LinkProviderName *string `json:"linkProviderName,omitempty"` + LinkSpeedInMbps *int64 `json:"linkSpeedInMbps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnnatrulemapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnnatrulemapping.go new file mode 100644 index 000000000000..09a77912d9f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnnatrulemapping.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnNatRuleMapping struct { + AddressSpace *string `json:"addressSpace,omitempty"` + PortRange *string `json:"portRange,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnprofileresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnprofileresponse.go new file mode 100644 index 000000000000..ed24cd4584e8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnprofileresponse.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnProfileResponse struct { + ProfileURL *string `json:"profileUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigradiusclientrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigradiusclientrootcertificate.go new file mode 100644 index 000000000000..21a75789b34a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigradiusclientrootcertificate.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigRadiusClientRootCertificate struct { + Name *string `json:"name,omitempty"` + Thumbprint *string `json:"thumbprint,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigradiusserverrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigradiusserverrootcertificate.go new file mode 100644 index 000000000000..6f67a020c6a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigradiusserverrootcertificate.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigRadiusServerRootCertificate struct { + Name *string `json:"name,omitempty"` + PublicCertData *string `json:"publicCertData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfiguration.go new file mode 100644 index 000000000000..debdcf03f049 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfiguration.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnServerConfigurationProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroup.go new file mode 100644 index 000000000000..e94549fb0633 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroup.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationPolicyGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnServerConfigurationPolicyGroupProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroupmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroupmember.go new file mode 100644 index 000000000000..f832688900b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroupmember.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationPolicyGroupMember struct { + AttributeType *VpnPolicyMemberAttributeType `json:"attributeType,omitempty"` + AttributeValue *string `json:"attributeValue,omitempty"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroupproperties.go new file mode 100644 index 000000000000..93b015d4bd1e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroupproperties.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationPolicyGroupProperties struct { + IsDefault *bool `json:"isDefault,omitempty"` + P2SConnectionConfigurations *[]SubResource `json:"p2SConnectionConfigurations,omitempty"` + PolicyMembers *[]VpnServerConfigurationPolicyGroupMember `json:"policyMembers,omitempty"` + Priority *int64 `json:"priority,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationproperties.go new file mode 100644 index 000000000000..1a42b30f7aa9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationproperties.go @@ -0,0 +1,23 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationProperties struct { + AadAuthenticationParameters *AadAuthenticationParameters `json:"aadAuthenticationParameters,omitempty"` + ConfigurationPolicyGroups *[]VpnServerConfigurationPolicyGroup `json:"configurationPolicyGroups,omitempty"` + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + P2sVpnGateways *[]P2SVpnGateway `json:"p2SVpnGateways,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + RadiusClientRootCertificates *[]VpnServerConfigRadiusClientRootCertificate `json:"radiusClientRootCertificates,omitempty"` + RadiusServerAddress *string `json:"radiusServerAddress,omitempty"` + RadiusServerRootCertificates *[]VpnServerConfigRadiusServerRootCertificate `json:"radiusServerRootCertificates,omitempty"` + RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` + RadiusServers *[]RadiusServer `json:"radiusServers,omitempty"` + VpnAuthenticationTypes *[]VpnAuthenticationType `json:"vpnAuthenticationTypes,omitempty"` + VpnClientIPsecPolicies *[]IPsecPolicy `json:"vpnClientIpsecPolicies,omitempty"` + VpnClientRevokedCertificates *[]VpnServerConfigVpnClientRevokedCertificate `json:"vpnClientRevokedCertificates,omitempty"` + VpnClientRootCertificates *[]VpnServerConfigVpnClientRootCertificate `json:"vpnClientRootCertificates,omitempty"` + VpnProtocols *[]VpnGatewayTunnelingProtocol `json:"vpnProtocols,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationsresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationsresponse.go new file mode 100644 index 000000000000..185d5a549d41 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationsresponse.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationsResponse struct { + VpnServerConfigurationResourceIds *[]string `json:"vpnServerConfigurationResourceIds,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigvpnclientrevokedcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigvpnclientrevokedcertificate.go new file mode 100644 index 000000000000..9582df932b5f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigvpnclientrevokedcertificate.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigVpnClientRevokedCertificate struct { + Name *string `json:"name,omitempty"` + Thumbprint *string `json:"thumbprint,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigvpnclientrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigvpnclientrootcertificate.go new file mode 100644 index 000000000000..606a83936659 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigvpnclientrootcertificate.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigVpnClientRootCertificate struct { + Name *string `json:"name,omitempty"` + PublicCertData *string `json:"publicCertData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsite.go new file mode 100644 index 000000000000..7c6dacaed501 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsite.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSite struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnSiteProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelink.go new file mode 100644 index 000000000000..9c72c0567fd1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelink.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSiteLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnSiteLinkProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkconnection.go new file mode 100644 index 000000000000..88bed41fe655 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkconnection.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSiteLinkConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnSiteLinkConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkconnectionproperties.go new file mode 100644 index 000000000000..d07ca0a64af1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkconnectionproperties.go @@ -0,0 +1,26 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSiteLinkConnectionProperties struct { + ConnectionBandwidth *int64 `json:"connectionBandwidth,omitempty"` + ConnectionStatus *VpnConnectionStatus `json:"connectionStatus,omitempty"` + DpdTimeoutSeconds *int64 `json:"dpdTimeoutSeconds,omitempty"` + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + EgressNatRules *[]SubResource `json:"egressNatRules,omitempty"` + EnableBgp *bool `json:"enableBgp,omitempty"` + EnableRateLimiting *bool `json:"enableRateLimiting,omitempty"` + IPsecPolicies *[]IPsecPolicy `json:"ipsecPolicies,omitempty"` + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + IngressNatRules *[]SubResource `json:"ingressNatRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RoutingWeight *int64 `json:"routingWeight,omitempty"` + SharedKey *string `json:"sharedKey,omitempty"` + UseLocalAzureIPAddress *bool `json:"useLocalAzureIpAddress,omitempty"` + UsePolicyBasedTrafficSelectors *bool `json:"usePolicyBasedTrafficSelectors,omitempty"` + VpnConnectionProtocolType *VirtualNetworkGatewayConnectionProtocol `json:"vpnConnectionProtocolType,omitempty"` + VpnGatewayCustomBgpAddresses *[]GatewayCustomBgpIPAddressIPConfiguration `json:"vpnGatewayCustomBgpAddresses,omitempty"` + VpnLinkConnectionMode *VpnLinkConnectionMode `json:"vpnLinkConnectionMode,omitempty"` + VpnSiteLink *SubResource `json:"vpnSiteLink,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkproperties.go new file mode 100644 index 000000000000..fa7d9002a526 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkproperties.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSiteLinkProperties struct { + BgpProperties *VpnLinkBgpSettings `json:"bgpProperties,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + LinkProperties *VpnLinkProviderProperties `json:"linkProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsiteproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsiteproperties.go new file mode 100644 index 000000000000..da368da20457 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsiteproperties.go @@ -0,0 +1,17 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSiteProperties struct { + AddressSpace *AddressSpace `json:"addressSpace,omitempty"` + BgpProperties *BgpSettings `json:"bgpProperties,omitempty"` + DeviceProperties *DeviceProperties `json:"deviceProperties,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IsSecuritySite *bool `json:"isSecuritySite,omitempty"` + O365Policy *O365PolicyProperties `json:"o365Policy,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SiteKey *string `json:"siteKey,omitempty"` + VirtualWAN *SubResource `json:"virtualWan,omitempty"` + VpnSiteLinks *[]VpnSiteLink `json:"vpnSiteLinks,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/predicates.go new file mode 100644 index 000000000000..7373e09382ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/predicates.go @@ -0,0 +1,569 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BgpConnectionOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p BgpConnectionOperationPredicate) Matches(input BgpConnection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type ConnectionSharedKeyResultOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p ConnectionSharedKeyResultOperationPredicate) Matches(input ConnectionSharedKeyResult) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type HubIPConfigurationOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p HubIPConfigurationOperationPredicate) Matches(input HubIPConfiguration) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type HubRouteTableOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p HubRouteTableOperationPredicate) Matches(input HubRouteTable) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type HubVirtualNetworkConnectionOperationPredicate struct { + Etag *string + Id *string + Name *string +} + +func (p HubVirtualNetworkConnectionOperationPredicate) Matches(input HubVirtualNetworkConnection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + return true +} + +type NetworkVirtualApplianceConnectionOperationPredicate struct { + Id *string + Name *string +} + +func (p NetworkVirtualApplianceConnectionOperationPredicate) Matches(input NetworkVirtualApplianceConnection) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + return true +} + +type P2SVpnGatewayOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p P2SVpnGatewayOperationPredicate) Matches(input P2SVpnGateway) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type RouteMapOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p RouteMapOperationPredicate) Matches(input RouteMap) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type RoutingIntentOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p RoutingIntentOperationPredicate) Matches(input RoutingIntent) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VirtualHubOperationPredicate struct { + Etag *string + Id *string + Kind *string + Location *string + Name *string + Type *string +} + +func (p VirtualHubOperationPredicate) Matches(input VirtualHub) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VirtualHubRouteTableV2OperationPredicate struct { + Etag *string + Id *string + Name *string +} + +func (p VirtualHubRouteTableV2OperationPredicate) Matches(input VirtualHubRouteTableV2) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + return true +} + +type VirtualWANOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p VirtualWANOperationPredicate) Matches(input VirtualWAN) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VpnConnectionOperationPredicate struct { + Etag *string + Id *string + Name *string +} + +func (p VpnConnectionOperationPredicate) Matches(input VpnConnection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + return true +} + +type VpnGatewayOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p VpnGatewayOperationPredicate) Matches(input VpnGateway) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VpnGatewayNatRuleOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p VpnGatewayNatRuleOperationPredicate) Matches(input VpnGatewayNatRule) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VpnServerConfigurationOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p VpnServerConfigurationOperationPredicate) Matches(input VpnServerConfiguration) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VpnServerConfigurationPolicyGroupOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p VpnServerConfigurationPolicyGroupOperationPredicate) Matches(input VpnServerConfigurationPolicyGroup) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VpnSiteOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p VpnSiteOperationPredicate) Matches(input VpnSite) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VpnSiteLinkOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p VpnSiteLinkOperationPredicate) Matches(input VpnSiteLink) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VpnSiteLinkConnectionOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p VpnSiteLinkConnectionOperationPredicate) Matches(input VpnSiteLinkConnection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/version.go new file mode 100644 index 000000000000..b721ff625d5b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/version.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/virtualwans/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/README.md index b8ee73279814..9dae73b1bb32 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses` Documentation -The `vmsspublicipaddresses` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `vmsspublicipaddresses` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/id_virtualmachinescaleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/id_virtualmachinescaleset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/id_virtualmachinescaleset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/id_virtualmachinescaleset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlog.go new file mode 100644 index 000000000000..40c6e24d7eaa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlog.go @@ -0,0 +1,19 @@ +package vmsspublicipaddresses + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlogpropertiesformat.go similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlogpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlogpropertiesformat.go index 4dc53318cc3c..444648fbefe8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlogpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlogpropertiesformat.go @@ -5,6 +5,7 @@ package vmsspublicipaddresses type FlowLogPropertiesFormat struct { Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` Format *FlowLogFormatParameters `json:"format,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceproperties.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceproperties.go index 5a3793b39679..bc45ddc58d75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceproperties.go @@ -6,6 +6,7 @@ package vmsspublicipaddresses type PrivateLinkServiceProperties struct { Alias *string `json:"alias,omitempty"` AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` Fqdns *[]string `json:"fqdns,omitempty"` IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpropertiesformat.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpropertiesformat.go index 5857cb159be6..095a4886e151 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpropertiesformat.go @@ -5,6 +5,7 @@ package vmsspublicipaddresses type ServiceEndpointPropertiesFormat struct { Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Service *string `json:"service,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/version.go index 81d29217141a..9e6d5749a1ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/version.go @@ -3,8 +3,8 @@ package vmsspublicipaddresses // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/vmsspublicipaddresses/2023-11-01" + return "hashicorp/go-azure-sdk/vmsspublicipaddresses/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/README.md index 753bd5728ca8..d9d749105a9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways` Documentation -The `vpngateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `vpngateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/id_vpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/id_vpngateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/id_vpngateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/id_vpngateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_reset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/method_reset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_reset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/method_reset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_startpacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/method_startpacketcapture.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_startpacketcapture.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/method_startpacketcapture.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_stoppacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/method_stoppacketcapture.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_stoppacketcapture.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/method_stoppacketcapture.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_bgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_bgpsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_bgpsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_bgpsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_gatewaycustombgpipaddressipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_gatewaycustombgpipaddressipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_gatewaycustombgpipaddressipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_gatewaycustombgpipaddressipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_ipconfigurationbgppeeringaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_ipconfigurationbgppeeringaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_ipconfigurationbgppeeringaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_ipconfigurationbgppeeringaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_ipsecpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_ipsecpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_ipsecpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_ipsecpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_propagatedroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_propagatedroutetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_propagatedroutetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_propagatedroutetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_routingconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_routingconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_routingconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_staticroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_staticroute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_staticroute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_staticroute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_staticroutesconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_staticroutesconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_staticroutesconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_staticroutesconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_trafficselectorpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_trafficselectorpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_trafficselectorpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_trafficselectorpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vnetroute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vnetroute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vnetroute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewaynatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewaynatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewaynatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewaynatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewaynatruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewaynatruleproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewaynatruleproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewaynatruleproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewaypacketcapturestartparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewaypacketcapturestartparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewaypacketcapturestartparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewaypacketcapturestartparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewaypacketcapturestopparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewaypacketcapturestopparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewaypacketcapturestopparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewaypacketcapturestopparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewayproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewayproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewayproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewayproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnnatrulemapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnnatrulemapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnnatrulemapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnnatrulemapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnsitelinkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnsitelinkconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnsitelinkconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnsitelinkconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnsitelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnsitelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnsitelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnsitelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/version.go index 9bc4a65216d5..b97089344a88 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/version.go @@ -3,8 +3,8 @@ package vpngateways // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/vpngateways/2023-11-01" + return "hashicorp/go-azure-sdk/vpngateways/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/id_vpnlinkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/id_vpnlinkconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/id_vpnlinkconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/id_vpnlinkconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/method_resetconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/method_resetconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/method_resetconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/method_resetconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/version.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/version.go index 836405ca7705..63317356fc75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/version.go @@ -3,8 +3,8 @@ package vpnlinkconnections // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/vpnlinkconnections/2023-11-01" + return "hashicorp/go-azure-sdk/vpnlinkconnections/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/README.md similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/README.md index 1572bdf4af4f..f5b023bdb238 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations` Documentation -The `vpnserverconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `vpnserverconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/id_vpnserverconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/id_vpnserverconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/id_vpnserverconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/id_vpnserverconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_aadauthenticationparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_aadauthenticationparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_aadauthenticationparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_aadauthenticationparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_addressspace.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_addressspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_addressspace.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_ipsecpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_ipsecpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_ipsecpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_ipsecpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_p2sconnectionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_p2sconnectionconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_p2sconnectionconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_p2sconnectionconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_p2sconnectionconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_p2sconnectionconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_p2sconnectionconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_p2sconnectionconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_p2svpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_p2svpngateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_p2svpngateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_p2svpngateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_p2svpngatewayproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_p2svpngatewayproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_p2svpngatewayproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_p2svpngatewayproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_propagatedroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_propagatedroutetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_propagatedroutetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_propagatedroutetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_radiusserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_radiusserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_radiusserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_radiusserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_routingconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_routingconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_routingconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_staticroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_staticroute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_staticroute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_staticroute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_staticroutesconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_staticroutesconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_staticroutesconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_staticroutesconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vnetroute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vnetroute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vnetroute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnclientconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnclientconnectionhealth.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnclientconnectionhealth.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnclientconnectionhealth.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigradiusclientrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigradiusclientrootcertificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigradiusclientrootcertificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigradiusclientrootcertificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigradiusserverrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigradiusserverrootcertificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigradiusserverrootcertificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigradiusserverrootcertificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupmember.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupmember.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupmember.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigvpnclientrevokedcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigvpnclientrevokedcertificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigvpnclientrevokedcertificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigvpnclientrevokedcertificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigvpnclientrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigvpnclientrootcertificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigvpnclientrootcertificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigvpnclientrootcertificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/version.go index 70a571db1075..179f7d79f553 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/version.go @@ -3,8 +3,8 @@ package vpnserverconfigurations // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/vpnserverconfigurations/2023-11-01" + return "hashicorp/go-azure-sdk/vpnserverconfigurations/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/README.md similarity index 90% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/README.md index 662e89f75839..26db6a9f6bd3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites` Documentation -The `vpnsites` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `vpnsites` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/id_vpnsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/id_vpnsite.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/id_vpnsite.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/id_vpnsite.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_addressspace.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_addressspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_addressspace.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_bgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_bgpsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_bgpsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_bgpsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_deviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_deviceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_deviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_deviceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_ipconfigurationbgppeeringaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_ipconfigurationbgppeeringaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_ipconfigurationbgppeeringaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_ipconfigurationbgppeeringaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_o365breakoutcategorypolicies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_o365breakoutcategorypolicies.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_o365breakoutcategorypolicies.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_o365breakoutcategorypolicies.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_o365policyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_o365policyproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_o365policyproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_o365policyproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnlinkbgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnlinkbgpsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnlinkbgpsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnlinkbgpsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnlinkproviderproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnlinkproviderproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnlinkproviderproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnlinkproviderproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnsite.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnsite.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnsite.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnsitelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnsitelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnsitelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnsitelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnsitelinkproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnsitelinkproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnsitelinkproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnsitelinkproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnsiteproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnsiteproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnsiteproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnsiteproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/version.go index df39cd94050d..12018807ef67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/version.go @@ -3,8 +3,8 @@ package vpnsites // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/vpnsites/2023-11-01" + return "hashicorp/go-azure-sdk/vpnsites/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/README.md new file mode 100644 index 000000000000..3ca5fee1169f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/README.md @@ -0,0 +1,104 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies` Documentation + +The `webapplicationfirewallpolicies` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies" +``` + + +### Client Initialization + +```go +client := webapplicationfirewallpolicies.NewWebApplicationFirewallPoliciesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `WebApplicationFirewallPoliciesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayWebApplicationFirewallPolicyName") + +payload := webapplicationfirewallpolicies.WebApplicationFirewallPolicy{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebApplicationFirewallPoliciesClient.Delete` + +```go +ctx := context.TODO() +id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayWebApplicationFirewallPolicyName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebApplicationFirewallPoliciesClient.Get` + +```go +ctx := context.TODO() +id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayWebApplicationFirewallPolicyName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebApplicationFirewallPoliciesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebApplicationFirewallPoliciesClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/client.go new file mode 100644 index 000000000000..225049a73616 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/client.go @@ -0,0 +1,26 @@ +package webapplicationfirewallpolicies + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebApplicationFirewallPoliciesClient struct { + Client *resourcemanager.Client +} + +func NewWebApplicationFirewallPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*WebApplicationFirewallPoliciesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "webapplicationfirewallpolicies", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating WebApplicationFirewallPoliciesClient: %+v", err) + } + + return &WebApplicationFirewallPoliciesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/constants.go new file mode 100644 index 000000000000..95342653237d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/constants.go @@ -0,0 +1,3124 @@ +package webapplicationfirewallpolicies + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ActionType string + +const ( + ActionTypeAllow ActionType = "Allow" + ActionTypeAnomalyScoring ActionType = "AnomalyScoring" + ActionTypeBlock ActionType = "Block" + ActionTypeJSChallenge ActionType = "JSChallenge" + ActionTypeLog ActionType = "Log" +) + +func PossibleValuesForActionType() []string { + return []string{ + string(ActionTypeAllow), + string(ActionTypeAnomalyScoring), + string(ActionTypeBlock), + string(ActionTypeJSChallenge), + string(ActionTypeLog), + } +} + +func (s *ActionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseActionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseActionType(input string) (*ActionType, error) { + vals := map[string]ActionType{ + "allow": ActionTypeAllow, + "anomalyscoring": ActionTypeAnomalyScoring, + "block": ActionTypeBlock, + "jschallenge": ActionTypeJSChallenge, + "log": ActionTypeLog, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ActionType(input) + return &out, nil +} + +type ApplicationGatewayClientRevocationOptions string + +const ( + ApplicationGatewayClientRevocationOptionsNone ApplicationGatewayClientRevocationOptions = "None" + ApplicationGatewayClientRevocationOptionsOCSP ApplicationGatewayClientRevocationOptions = "OCSP" +) + +func PossibleValuesForApplicationGatewayClientRevocationOptions() []string { + return []string{ + string(ApplicationGatewayClientRevocationOptionsNone), + string(ApplicationGatewayClientRevocationOptionsOCSP), + } +} + +func (s *ApplicationGatewayClientRevocationOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayClientRevocationOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayClientRevocationOptions(input string) (*ApplicationGatewayClientRevocationOptions, error) { + vals := map[string]ApplicationGatewayClientRevocationOptions{ + "none": ApplicationGatewayClientRevocationOptionsNone, + "ocsp": ApplicationGatewayClientRevocationOptionsOCSP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayClientRevocationOptions(input) + return &out, nil +} + +type ApplicationGatewayCookieBasedAffinity string + +const ( + ApplicationGatewayCookieBasedAffinityDisabled ApplicationGatewayCookieBasedAffinity = "Disabled" + ApplicationGatewayCookieBasedAffinityEnabled ApplicationGatewayCookieBasedAffinity = "Enabled" +) + +func PossibleValuesForApplicationGatewayCookieBasedAffinity() []string { + return []string{ + string(ApplicationGatewayCookieBasedAffinityDisabled), + string(ApplicationGatewayCookieBasedAffinityEnabled), + } +} + +func (s *ApplicationGatewayCookieBasedAffinity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayCookieBasedAffinity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayCookieBasedAffinity(input string) (*ApplicationGatewayCookieBasedAffinity, error) { + vals := map[string]ApplicationGatewayCookieBasedAffinity{ + "disabled": ApplicationGatewayCookieBasedAffinityDisabled, + "enabled": ApplicationGatewayCookieBasedAffinityEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayCookieBasedAffinity(input) + return &out, nil +} + +type ApplicationGatewayCustomErrorStatusCode string + +const ( + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveHundred ApplicationGatewayCustomErrorStatusCode = "HttpStatus500" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroFour ApplicationGatewayCustomErrorStatusCode = "HttpStatus504" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroThree ApplicationGatewayCustomErrorStatusCode = "HttpStatus503" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroTwo ApplicationGatewayCustomErrorStatusCode = "HttpStatus502" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourHundred ApplicationGatewayCustomErrorStatusCode = "HttpStatus400" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroEight ApplicationGatewayCustomErrorStatusCode = "HttpStatus408" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFive ApplicationGatewayCustomErrorStatusCode = "HttpStatus405" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFour ApplicationGatewayCustomErrorStatusCode = "HttpStatus404" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroThree ApplicationGatewayCustomErrorStatusCode = "HttpStatus403" +) + +func PossibleValuesForApplicationGatewayCustomErrorStatusCode() []string { + return []string{ + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveHundred), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroFour), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroThree), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroTwo), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourHundred), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroEight), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFive), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFour), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroThree), + } +} + +func (s *ApplicationGatewayCustomErrorStatusCode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayCustomErrorStatusCode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayCustomErrorStatusCode(input string) (*ApplicationGatewayCustomErrorStatusCode, error) { + vals := map[string]ApplicationGatewayCustomErrorStatusCode{ + "httpstatus500": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveHundred, + "httpstatus504": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroFour, + "httpstatus503": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroThree, + "httpstatus502": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroTwo, + "httpstatus400": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourHundred, + "httpstatus408": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroEight, + "httpstatus405": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFive, + "httpstatus404": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFour, + "httpstatus403": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroThree, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayCustomErrorStatusCode(input) + return &out, nil +} + +type ApplicationGatewayFirewallMode string + +const ( + ApplicationGatewayFirewallModeDetection ApplicationGatewayFirewallMode = "Detection" + ApplicationGatewayFirewallModePrevention ApplicationGatewayFirewallMode = "Prevention" +) + +func PossibleValuesForApplicationGatewayFirewallMode() []string { + return []string{ + string(ApplicationGatewayFirewallModeDetection), + string(ApplicationGatewayFirewallModePrevention), + } +} + +func (s *ApplicationGatewayFirewallMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayFirewallMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayFirewallMode(input string) (*ApplicationGatewayFirewallMode, error) { + vals := map[string]ApplicationGatewayFirewallMode{ + "detection": ApplicationGatewayFirewallModeDetection, + "prevention": ApplicationGatewayFirewallModePrevention, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayFirewallMode(input) + return &out, nil +} + +type ApplicationGatewayFirewallRateLimitDuration string + +const ( + ApplicationGatewayFirewallRateLimitDurationFiveMins ApplicationGatewayFirewallRateLimitDuration = "FiveMins" + ApplicationGatewayFirewallRateLimitDurationOneMin ApplicationGatewayFirewallRateLimitDuration = "OneMin" +) + +func PossibleValuesForApplicationGatewayFirewallRateLimitDuration() []string { + return []string{ + string(ApplicationGatewayFirewallRateLimitDurationFiveMins), + string(ApplicationGatewayFirewallRateLimitDurationOneMin), + } +} + +func (s *ApplicationGatewayFirewallRateLimitDuration) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayFirewallRateLimitDuration(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayFirewallRateLimitDuration(input string) (*ApplicationGatewayFirewallRateLimitDuration, error) { + vals := map[string]ApplicationGatewayFirewallRateLimitDuration{ + "fivemins": ApplicationGatewayFirewallRateLimitDurationFiveMins, + "onemin": ApplicationGatewayFirewallRateLimitDurationOneMin, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayFirewallRateLimitDuration(input) + return &out, nil +} + +type ApplicationGatewayFirewallUserSessionVariable string + +const ( + ApplicationGatewayFirewallUserSessionVariableClientAddr ApplicationGatewayFirewallUserSessionVariable = "ClientAddr" + ApplicationGatewayFirewallUserSessionVariableGeoLocation ApplicationGatewayFirewallUserSessionVariable = "GeoLocation" + ApplicationGatewayFirewallUserSessionVariableNone ApplicationGatewayFirewallUserSessionVariable = "None" +) + +func PossibleValuesForApplicationGatewayFirewallUserSessionVariable() []string { + return []string{ + string(ApplicationGatewayFirewallUserSessionVariableClientAddr), + string(ApplicationGatewayFirewallUserSessionVariableGeoLocation), + string(ApplicationGatewayFirewallUserSessionVariableNone), + } +} + +func (s *ApplicationGatewayFirewallUserSessionVariable) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayFirewallUserSessionVariable(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayFirewallUserSessionVariable(input string) (*ApplicationGatewayFirewallUserSessionVariable, error) { + vals := map[string]ApplicationGatewayFirewallUserSessionVariable{ + "clientaddr": ApplicationGatewayFirewallUserSessionVariableClientAddr, + "geolocation": ApplicationGatewayFirewallUserSessionVariableGeoLocation, + "none": ApplicationGatewayFirewallUserSessionVariableNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayFirewallUserSessionVariable(input) + return &out, nil +} + +type ApplicationGatewayLoadDistributionAlgorithm string + +const ( + ApplicationGatewayLoadDistributionAlgorithmIPHash ApplicationGatewayLoadDistributionAlgorithm = "IpHash" + ApplicationGatewayLoadDistributionAlgorithmLeastConnections ApplicationGatewayLoadDistributionAlgorithm = "LeastConnections" + ApplicationGatewayLoadDistributionAlgorithmRoundRobin ApplicationGatewayLoadDistributionAlgorithm = "RoundRobin" +) + +func PossibleValuesForApplicationGatewayLoadDistributionAlgorithm() []string { + return []string{ + string(ApplicationGatewayLoadDistributionAlgorithmIPHash), + string(ApplicationGatewayLoadDistributionAlgorithmLeastConnections), + string(ApplicationGatewayLoadDistributionAlgorithmRoundRobin), + } +} + +func (s *ApplicationGatewayLoadDistributionAlgorithm) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayLoadDistributionAlgorithm(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayLoadDistributionAlgorithm(input string) (*ApplicationGatewayLoadDistributionAlgorithm, error) { + vals := map[string]ApplicationGatewayLoadDistributionAlgorithm{ + "iphash": ApplicationGatewayLoadDistributionAlgorithmIPHash, + "leastconnections": ApplicationGatewayLoadDistributionAlgorithmLeastConnections, + "roundrobin": ApplicationGatewayLoadDistributionAlgorithmRoundRobin, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayLoadDistributionAlgorithm(input) + return &out, nil +} + +type ApplicationGatewayOperationalState string + +const ( + ApplicationGatewayOperationalStateRunning ApplicationGatewayOperationalState = "Running" + ApplicationGatewayOperationalStateStarting ApplicationGatewayOperationalState = "Starting" + ApplicationGatewayOperationalStateStopped ApplicationGatewayOperationalState = "Stopped" + ApplicationGatewayOperationalStateStopping ApplicationGatewayOperationalState = "Stopping" +) + +func PossibleValuesForApplicationGatewayOperationalState() []string { + return []string{ + string(ApplicationGatewayOperationalStateRunning), + string(ApplicationGatewayOperationalStateStarting), + string(ApplicationGatewayOperationalStateStopped), + string(ApplicationGatewayOperationalStateStopping), + } +} + +func (s *ApplicationGatewayOperationalState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayOperationalState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayOperationalState(input string) (*ApplicationGatewayOperationalState, error) { + vals := map[string]ApplicationGatewayOperationalState{ + "running": ApplicationGatewayOperationalStateRunning, + "starting": ApplicationGatewayOperationalStateStarting, + "stopped": ApplicationGatewayOperationalStateStopped, + "stopping": ApplicationGatewayOperationalStateStopping, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayOperationalState(input) + return &out, nil +} + +type ApplicationGatewayProtocol string + +const ( + ApplicationGatewayProtocolHTTP ApplicationGatewayProtocol = "Http" + ApplicationGatewayProtocolHTTPS ApplicationGatewayProtocol = "Https" + ApplicationGatewayProtocolTcp ApplicationGatewayProtocol = "Tcp" + ApplicationGatewayProtocolTls ApplicationGatewayProtocol = "Tls" +) + +func PossibleValuesForApplicationGatewayProtocol() []string { + return []string{ + string(ApplicationGatewayProtocolHTTP), + string(ApplicationGatewayProtocolHTTPS), + string(ApplicationGatewayProtocolTcp), + string(ApplicationGatewayProtocolTls), + } +} + +func (s *ApplicationGatewayProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayProtocol(input string) (*ApplicationGatewayProtocol, error) { + vals := map[string]ApplicationGatewayProtocol{ + "http": ApplicationGatewayProtocolHTTP, + "https": ApplicationGatewayProtocolHTTPS, + "tcp": ApplicationGatewayProtocolTcp, + "tls": ApplicationGatewayProtocolTls, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayProtocol(input) + return &out, nil +} + +type ApplicationGatewayRedirectType string + +const ( + ApplicationGatewayRedirectTypeFound ApplicationGatewayRedirectType = "Found" + ApplicationGatewayRedirectTypePermanent ApplicationGatewayRedirectType = "Permanent" + ApplicationGatewayRedirectTypeSeeOther ApplicationGatewayRedirectType = "SeeOther" + ApplicationGatewayRedirectTypeTemporary ApplicationGatewayRedirectType = "Temporary" +) + +func PossibleValuesForApplicationGatewayRedirectType() []string { + return []string{ + string(ApplicationGatewayRedirectTypeFound), + string(ApplicationGatewayRedirectTypePermanent), + string(ApplicationGatewayRedirectTypeSeeOther), + string(ApplicationGatewayRedirectTypeTemporary), + } +} + +func (s *ApplicationGatewayRedirectType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayRedirectType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayRedirectType(input string) (*ApplicationGatewayRedirectType, error) { + vals := map[string]ApplicationGatewayRedirectType{ + "found": ApplicationGatewayRedirectTypeFound, + "permanent": ApplicationGatewayRedirectTypePermanent, + "seeother": ApplicationGatewayRedirectTypeSeeOther, + "temporary": ApplicationGatewayRedirectTypeTemporary, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayRedirectType(input) + return &out, nil +} + +type ApplicationGatewayRequestRoutingRuleType string + +const ( + ApplicationGatewayRequestRoutingRuleTypeBasic ApplicationGatewayRequestRoutingRuleType = "Basic" + ApplicationGatewayRequestRoutingRuleTypePathBasedRouting ApplicationGatewayRequestRoutingRuleType = "PathBasedRouting" +) + +func PossibleValuesForApplicationGatewayRequestRoutingRuleType() []string { + return []string{ + string(ApplicationGatewayRequestRoutingRuleTypeBasic), + string(ApplicationGatewayRequestRoutingRuleTypePathBasedRouting), + } +} + +func (s *ApplicationGatewayRequestRoutingRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayRequestRoutingRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayRequestRoutingRuleType(input string) (*ApplicationGatewayRequestRoutingRuleType, error) { + vals := map[string]ApplicationGatewayRequestRoutingRuleType{ + "basic": ApplicationGatewayRequestRoutingRuleTypeBasic, + "pathbasedrouting": ApplicationGatewayRequestRoutingRuleTypePathBasedRouting, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayRequestRoutingRuleType(input) + return &out, nil +} + +type ApplicationGatewaySkuFamily string + +const ( + ApplicationGatewaySkuFamilyGenerationOne ApplicationGatewaySkuFamily = "Generation_1" + ApplicationGatewaySkuFamilyGenerationTwo ApplicationGatewaySkuFamily = "Generation_2" +) + +func PossibleValuesForApplicationGatewaySkuFamily() []string { + return []string{ + string(ApplicationGatewaySkuFamilyGenerationOne), + string(ApplicationGatewaySkuFamilyGenerationTwo), + } +} + +func (s *ApplicationGatewaySkuFamily) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySkuFamily(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySkuFamily(input string) (*ApplicationGatewaySkuFamily, error) { + vals := map[string]ApplicationGatewaySkuFamily{ + "generation_1": ApplicationGatewaySkuFamilyGenerationOne, + "generation_2": ApplicationGatewaySkuFamilyGenerationTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySkuFamily(input) + return &out, nil +} + +type ApplicationGatewaySkuName string + +const ( + ApplicationGatewaySkuNameBasic ApplicationGatewaySkuName = "Basic" + ApplicationGatewaySkuNameStandardLarge ApplicationGatewaySkuName = "Standard_Large" + ApplicationGatewaySkuNameStandardMedium ApplicationGatewaySkuName = "Standard_Medium" + ApplicationGatewaySkuNameStandardSmall ApplicationGatewaySkuName = "Standard_Small" + ApplicationGatewaySkuNameStandardVTwo ApplicationGatewaySkuName = "Standard_v2" + ApplicationGatewaySkuNameWAFLarge ApplicationGatewaySkuName = "WAF_Large" + ApplicationGatewaySkuNameWAFMedium ApplicationGatewaySkuName = "WAF_Medium" + ApplicationGatewaySkuNameWAFVTwo ApplicationGatewaySkuName = "WAF_v2" +) + +func PossibleValuesForApplicationGatewaySkuName() []string { + return []string{ + string(ApplicationGatewaySkuNameBasic), + string(ApplicationGatewaySkuNameStandardLarge), + string(ApplicationGatewaySkuNameStandardMedium), + string(ApplicationGatewaySkuNameStandardSmall), + string(ApplicationGatewaySkuNameStandardVTwo), + string(ApplicationGatewaySkuNameWAFLarge), + string(ApplicationGatewaySkuNameWAFMedium), + string(ApplicationGatewaySkuNameWAFVTwo), + } +} + +func (s *ApplicationGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySkuName(input string) (*ApplicationGatewaySkuName, error) { + vals := map[string]ApplicationGatewaySkuName{ + "basic": ApplicationGatewaySkuNameBasic, + "standard_large": ApplicationGatewaySkuNameStandardLarge, + "standard_medium": ApplicationGatewaySkuNameStandardMedium, + "standard_small": ApplicationGatewaySkuNameStandardSmall, + "standard_v2": ApplicationGatewaySkuNameStandardVTwo, + "waf_large": ApplicationGatewaySkuNameWAFLarge, + "waf_medium": ApplicationGatewaySkuNameWAFMedium, + "waf_v2": ApplicationGatewaySkuNameWAFVTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySkuName(input) + return &out, nil +} + +type ApplicationGatewaySslCipherSuite string + +const ( + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHThreeDESEDECBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" + ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightGCMSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixGCMSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightGCMSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_GCM_SHA256" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixGCMSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_GCM_SHA384" + ApplicationGatewaySslCipherSuiteTLSRSAWITHThreeDESEDECBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_3DES_EDE_CBC_SHA" +) + +func PossibleValuesForApplicationGatewaySslCipherSuite() []string { + return []string{ + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHThreeDESEDECBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHThreeDESEDECBCSHA), + } +} + +func (s *ApplicationGatewaySslCipherSuite) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySslCipherSuite(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySslCipherSuite(input string) (*ApplicationGatewaySslCipherSuite, error) { + vals := map[string]ApplicationGatewaySslCipherSuite{ + "tls_dhe_dss_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHA, + "tls_dhe_dss_with_aes_128_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_dhe_dss_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHA, + "tls_dhe_dss_with_aes_256_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHATwoFiveSix, + "tls_dhe_dss_with_3des_ede_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHThreeDESEDECBCSHA, + "tls_dhe_rsa_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightCBCSHA, + "tls_dhe_rsa_with_aes_128_gcm_sha256": ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_dhe_rsa_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixCBCSHA, + "tls_dhe_rsa_with_aes_256_gcm_sha384": ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_ecdhe_ecdsa_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHA, + "tls_ecdhe_ecdsa_with_aes_128_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_ecdhe_ecdsa_with_aes_128_gcm_sha256": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_ecdhe_ecdsa_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHA, + "tls_ecdhe_ecdsa_with_aes_256_cbc_sha384": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHAThreeEightFour, + "tls_ecdhe_ecdsa_with_aes_256_gcm_sha384": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_ecdhe_rsa_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHA, + "tls_ecdhe_rsa_with_aes_128_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_ecdhe_rsa_with_aes_128_gcm_sha256": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_ecdhe_rsa_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHA, + "tls_ecdhe_rsa_with_aes_256_cbc_sha384": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHAThreeEightFour, + "tls_ecdhe_rsa_with_aes_256_gcm_sha384": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_rsa_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHA, + "tls_rsa_with_aes_128_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_rsa_with_aes_128_gcm_sha256": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_rsa_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHA, + "tls_rsa_with_aes_256_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHATwoFiveSix, + "tls_rsa_with_aes_256_gcm_sha384": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_rsa_with_3des_ede_cbc_sha": ApplicationGatewaySslCipherSuiteTLSRSAWITHThreeDESEDECBCSHA, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySslCipherSuite(input) + return &out, nil +} + +type ApplicationGatewaySslPolicyName string + +const ( + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneFiveZeroFiveZeroOne ApplicationGatewaySslPolicyName = "AppGwSslPolicy20150501" + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOne ApplicationGatewaySslPolicyName = "AppGwSslPolicy20170401" + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOneS ApplicationGatewaySslPolicyName = "AppGwSslPolicy20170401S" + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOne ApplicationGatewaySslPolicyName = "AppGwSslPolicy20220101" + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOneS ApplicationGatewaySslPolicyName = "AppGwSslPolicy20220101S" +) + +func PossibleValuesForApplicationGatewaySslPolicyName() []string { + return []string{ + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneFiveZeroFiveZeroOne), + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOne), + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOneS), + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOne), + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOneS), + } +} + +func (s *ApplicationGatewaySslPolicyName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySslPolicyName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySslPolicyName(input string) (*ApplicationGatewaySslPolicyName, error) { + vals := map[string]ApplicationGatewaySslPolicyName{ + "appgwsslpolicy20150501": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneFiveZeroFiveZeroOne, + "appgwsslpolicy20170401": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOne, + "appgwsslpolicy20170401s": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOneS, + "appgwsslpolicy20220101": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOne, + "appgwsslpolicy20220101s": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOneS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySslPolicyName(input) + return &out, nil +} + +type ApplicationGatewaySslPolicyType string + +const ( + ApplicationGatewaySslPolicyTypeCustom ApplicationGatewaySslPolicyType = "Custom" + ApplicationGatewaySslPolicyTypeCustomVTwo ApplicationGatewaySslPolicyType = "CustomV2" + ApplicationGatewaySslPolicyTypePredefined ApplicationGatewaySslPolicyType = "Predefined" +) + +func PossibleValuesForApplicationGatewaySslPolicyType() []string { + return []string{ + string(ApplicationGatewaySslPolicyTypeCustom), + string(ApplicationGatewaySslPolicyTypeCustomVTwo), + string(ApplicationGatewaySslPolicyTypePredefined), + } +} + +func (s *ApplicationGatewaySslPolicyType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySslPolicyType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySslPolicyType(input string) (*ApplicationGatewaySslPolicyType, error) { + vals := map[string]ApplicationGatewaySslPolicyType{ + "custom": ApplicationGatewaySslPolicyTypeCustom, + "customv2": ApplicationGatewaySslPolicyTypeCustomVTwo, + "predefined": ApplicationGatewaySslPolicyTypePredefined, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySslPolicyType(input) + return &out, nil +} + +type ApplicationGatewaySslProtocol string + +const ( + ApplicationGatewaySslProtocolTLSvOneOne ApplicationGatewaySslProtocol = "TLSv1_1" + ApplicationGatewaySslProtocolTLSvOneThree ApplicationGatewaySslProtocol = "TLSv1_3" + ApplicationGatewaySslProtocolTLSvOneTwo ApplicationGatewaySslProtocol = "TLSv1_2" + ApplicationGatewaySslProtocolTLSvOneZero ApplicationGatewaySslProtocol = "TLSv1_0" +) + +func PossibleValuesForApplicationGatewaySslProtocol() []string { + return []string{ + string(ApplicationGatewaySslProtocolTLSvOneOne), + string(ApplicationGatewaySslProtocolTLSvOneThree), + string(ApplicationGatewaySslProtocolTLSvOneTwo), + string(ApplicationGatewaySslProtocolTLSvOneZero), + } +} + +func (s *ApplicationGatewaySslProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySslProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySslProtocol(input string) (*ApplicationGatewaySslProtocol, error) { + vals := map[string]ApplicationGatewaySslProtocol{ + "tlsv1_1": ApplicationGatewaySslProtocolTLSvOneOne, + "tlsv1_3": ApplicationGatewaySslProtocolTLSvOneThree, + "tlsv1_2": ApplicationGatewaySslProtocolTLSvOneTwo, + "tlsv1_0": ApplicationGatewaySslProtocolTLSvOneZero, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySslProtocol(input) + return &out, nil +} + +type ApplicationGatewayTier string + +const ( + ApplicationGatewayTierBasic ApplicationGatewayTier = "Basic" + ApplicationGatewayTierStandard ApplicationGatewayTier = "Standard" + ApplicationGatewayTierStandardVTwo ApplicationGatewayTier = "Standard_v2" + ApplicationGatewayTierWAF ApplicationGatewayTier = "WAF" + ApplicationGatewayTierWAFVTwo ApplicationGatewayTier = "WAF_v2" +) + +func PossibleValuesForApplicationGatewayTier() []string { + return []string{ + string(ApplicationGatewayTierBasic), + string(ApplicationGatewayTierStandard), + string(ApplicationGatewayTierStandardVTwo), + string(ApplicationGatewayTierWAF), + string(ApplicationGatewayTierWAFVTwo), + } +} + +func (s *ApplicationGatewayTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayTier(input string) (*ApplicationGatewayTier, error) { + vals := map[string]ApplicationGatewayTier{ + "basic": ApplicationGatewayTierBasic, + "standard": ApplicationGatewayTierStandard, + "standard_v2": ApplicationGatewayTierStandardVTwo, + "waf": ApplicationGatewayTierWAF, + "waf_v2": ApplicationGatewayTierWAFVTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayTier(input) + return &out, nil +} + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type ExceptionEntryMatchVariable string + +const ( + ExceptionEntryMatchVariableRemoteAddr ExceptionEntryMatchVariable = "RemoteAddr" + ExceptionEntryMatchVariableRequestHeader ExceptionEntryMatchVariable = "RequestHeader" + ExceptionEntryMatchVariableRequestURI ExceptionEntryMatchVariable = "RequestURI" +) + +func PossibleValuesForExceptionEntryMatchVariable() []string { + return []string{ + string(ExceptionEntryMatchVariableRemoteAddr), + string(ExceptionEntryMatchVariableRequestHeader), + string(ExceptionEntryMatchVariableRequestURI), + } +} + +func (s *ExceptionEntryMatchVariable) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExceptionEntryMatchVariable(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExceptionEntryMatchVariable(input string) (*ExceptionEntryMatchVariable, error) { + vals := map[string]ExceptionEntryMatchVariable{ + "remoteaddr": ExceptionEntryMatchVariableRemoteAddr, + "requestheader": ExceptionEntryMatchVariableRequestHeader, + "requesturi": ExceptionEntryMatchVariableRequestURI, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExceptionEntryMatchVariable(input) + return &out, nil +} + +type ExceptionEntrySelectorMatchOperator string + +const ( + ExceptionEntrySelectorMatchOperatorContains ExceptionEntrySelectorMatchOperator = "Contains" + ExceptionEntrySelectorMatchOperatorEndsWith ExceptionEntrySelectorMatchOperator = "EndsWith" + ExceptionEntrySelectorMatchOperatorEquals ExceptionEntrySelectorMatchOperator = "Equals" + ExceptionEntrySelectorMatchOperatorStartsWith ExceptionEntrySelectorMatchOperator = "StartsWith" +) + +func PossibleValuesForExceptionEntrySelectorMatchOperator() []string { + return []string{ + string(ExceptionEntrySelectorMatchOperatorContains), + string(ExceptionEntrySelectorMatchOperatorEndsWith), + string(ExceptionEntrySelectorMatchOperatorEquals), + string(ExceptionEntrySelectorMatchOperatorStartsWith), + } +} + +func (s *ExceptionEntrySelectorMatchOperator) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExceptionEntrySelectorMatchOperator(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExceptionEntrySelectorMatchOperator(input string) (*ExceptionEntrySelectorMatchOperator, error) { + vals := map[string]ExceptionEntrySelectorMatchOperator{ + "contains": ExceptionEntrySelectorMatchOperatorContains, + "endswith": ExceptionEntrySelectorMatchOperatorEndsWith, + "equals": ExceptionEntrySelectorMatchOperatorEquals, + "startswith": ExceptionEntrySelectorMatchOperatorStartsWith, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExceptionEntrySelectorMatchOperator(input) + return &out, nil +} + +type ExceptionEntryValueMatchOperator string + +const ( + ExceptionEntryValueMatchOperatorContains ExceptionEntryValueMatchOperator = "Contains" + ExceptionEntryValueMatchOperatorEndsWith ExceptionEntryValueMatchOperator = "EndsWith" + ExceptionEntryValueMatchOperatorEquals ExceptionEntryValueMatchOperator = "Equals" + ExceptionEntryValueMatchOperatorIPMatch ExceptionEntryValueMatchOperator = "IPMatch" + ExceptionEntryValueMatchOperatorStartsWith ExceptionEntryValueMatchOperator = "StartsWith" +) + +func PossibleValuesForExceptionEntryValueMatchOperator() []string { + return []string{ + string(ExceptionEntryValueMatchOperatorContains), + string(ExceptionEntryValueMatchOperatorEndsWith), + string(ExceptionEntryValueMatchOperatorEquals), + string(ExceptionEntryValueMatchOperatorIPMatch), + string(ExceptionEntryValueMatchOperatorStartsWith), + } +} + +func (s *ExceptionEntryValueMatchOperator) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExceptionEntryValueMatchOperator(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExceptionEntryValueMatchOperator(input string) (*ExceptionEntryValueMatchOperator, error) { + vals := map[string]ExceptionEntryValueMatchOperator{ + "contains": ExceptionEntryValueMatchOperatorContains, + "endswith": ExceptionEntryValueMatchOperatorEndsWith, + "equals": ExceptionEntryValueMatchOperatorEquals, + "ipmatch": ExceptionEntryValueMatchOperatorIPMatch, + "startswith": ExceptionEntryValueMatchOperatorStartsWith, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExceptionEntryValueMatchOperator(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type ManagedRuleEnabledState string + +const ( + ManagedRuleEnabledStateDisabled ManagedRuleEnabledState = "Disabled" + ManagedRuleEnabledStateEnabled ManagedRuleEnabledState = "Enabled" +) + +func PossibleValuesForManagedRuleEnabledState() []string { + return []string{ + string(ManagedRuleEnabledStateDisabled), + string(ManagedRuleEnabledStateEnabled), + } +} + +func (s *ManagedRuleEnabledState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseManagedRuleEnabledState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseManagedRuleEnabledState(input string) (*ManagedRuleEnabledState, error) { + vals := map[string]ManagedRuleEnabledState{ + "disabled": ManagedRuleEnabledStateDisabled, + "enabled": ManagedRuleEnabledStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ManagedRuleEnabledState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type OwaspCrsExclusionEntryMatchVariable string + +const ( + OwaspCrsExclusionEntryMatchVariableRequestArgKeys OwaspCrsExclusionEntryMatchVariable = "RequestArgKeys" + OwaspCrsExclusionEntryMatchVariableRequestArgNames OwaspCrsExclusionEntryMatchVariable = "RequestArgNames" + OwaspCrsExclusionEntryMatchVariableRequestArgValues OwaspCrsExclusionEntryMatchVariable = "RequestArgValues" + OwaspCrsExclusionEntryMatchVariableRequestCookieKeys OwaspCrsExclusionEntryMatchVariable = "RequestCookieKeys" + OwaspCrsExclusionEntryMatchVariableRequestCookieNames OwaspCrsExclusionEntryMatchVariable = "RequestCookieNames" + OwaspCrsExclusionEntryMatchVariableRequestCookieValues OwaspCrsExclusionEntryMatchVariable = "RequestCookieValues" + OwaspCrsExclusionEntryMatchVariableRequestHeaderKeys OwaspCrsExclusionEntryMatchVariable = "RequestHeaderKeys" + OwaspCrsExclusionEntryMatchVariableRequestHeaderNames OwaspCrsExclusionEntryMatchVariable = "RequestHeaderNames" + OwaspCrsExclusionEntryMatchVariableRequestHeaderValues OwaspCrsExclusionEntryMatchVariable = "RequestHeaderValues" +) + +func PossibleValuesForOwaspCrsExclusionEntryMatchVariable() []string { + return []string{ + string(OwaspCrsExclusionEntryMatchVariableRequestArgKeys), + string(OwaspCrsExclusionEntryMatchVariableRequestArgNames), + string(OwaspCrsExclusionEntryMatchVariableRequestArgValues), + string(OwaspCrsExclusionEntryMatchVariableRequestCookieKeys), + string(OwaspCrsExclusionEntryMatchVariableRequestCookieNames), + string(OwaspCrsExclusionEntryMatchVariableRequestCookieValues), + string(OwaspCrsExclusionEntryMatchVariableRequestHeaderKeys), + string(OwaspCrsExclusionEntryMatchVariableRequestHeaderNames), + string(OwaspCrsExclusionEntryMatchVariableRequestHeaderValues), + } +} + +func (s *OwaspCrsExclusionEntryMatchVariable) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseOwaspCrsExclusionEntryMatchVariable(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseOwaspCrsExclusionEntryMatchVariable(input string) (*OwaspCrsExclusionEntryMatchVariable, error) { + vals := map[string]OwaspCrsExclusionEntryMatchVariable{ + "requestargkeys": OwaspCrsExclusionEntryMatchVariableRequestArgKeys, + "requestargnames": OwaspCrsExclusionEntryMatchVariableRequestArgNames, + "requestargvalues": OwaspCrsExclusionEntryMatchVariableRequestArgValues, + "requestcookiekeys": OwaspCrsExclusionEntryMatchVariableRequestCookieKeys, + "requestcookienames": OwaspCrsExclusionEntryMatchVariableRequestCookieNames, + "requestcookievalues": OwaspCrsExclusionEntryMatchVariableRequestCookieValues, + "requestheaderkeys": OwaspCrsExclusionEntryMatchVariableRequestHeaderKeys, + "requestheadernames": OwaspCrsExclusionEntryMatchVariableRequestHeaderNames, + "requestheadervalues": OwaspCrsExclusionEntryMatchVariableRequestHeaderValues, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := OwaspCrsExclusionEntryMatchVariable(input) + return &out, nil +} + +type OwaspCrsExclusionEntrySelectorMatchOperator string + +const ( + OwaspCrsExclusionEntrySelectorMatchOperatorContains OwaspCrsExclusionEntrySelectorMatchOperator = "Contains" + OwaspCrsExclusionEntrySelectorMatchOperatorEndsWith OwaspCrsExclusionEntrySelectorMatchOperator = "EndsWith" + OwaspCrsExclusionEntrySelectorMatchOperatorEquals OwaspCrsExclusionEntrySelectorMatchOperator = "Equals" + OwaspCrsExclusionEntrySelectorMatchOperatorEqualsAny OwaspCrsExclusionEntrySelectorMatchOperator = "EqualsAny" + OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith OwaspCrsExclusionEntrySelectorMatchOperator = "StartsWith" +) + +func PossibleValuesForOwaspCrsExclusionEntrySelectorMatchOperator() []string { + return []string{ + string(OwaspCrsExclusionEntrySelectorMatchOperatorContains), + string(OwaspCrsExclusionEntrySelectorMatchOperatorEndsWith), + string(OwaspCrsExclusionEntrySelectorMatchOperatorEquals), + string(OwaspCrsExclusionEntrySelectorMatchOperatorEqualsAny), + string(OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith), + } +} + +func (s *OwaspCrsExclusionEntrySelectorMatchOperator) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseOwaspCrsExclusionEntrySelectorMatchOperator(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseOwaspCrsExclusionEntrySelectorMatchOperator(input string) (*OwaspCrsExclusionEntrySelectorMatchOperator, error) { + vals := map[string]OwaspCrsExclusionEntrySelectorMatchOperator{ + "contains": OwaspCrsExclusionEntrySelectorMatchOperatorContains, + "endswith": OwaspCrsExclusionEntrySelectorMatchOperatorEndsWith, + "equals": OwaspCrsExclusionEntrySelectorMatchOperatorEquals, + "equalsany": OwaspCrsExclusionEntrySelectorMatchOperatorEqualsAny, + "startswith": OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := OwaspCrsExclusionEntrySelectorMatchOperator(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type ScrubbingRuleEntryMatchOperator string + +const ( + ScrubbingRuleEntryMatchOperatorEquals ScrubbingRuleEntryMatchOperator = "Equals" + ScrubbingRuleEntryMatchOperatorEqualsAny ScrubbingRuleEntryMatchOperator = "EqualsAny" +) + +func PossibleValuesForScrubbingRuleEntryMatchOperator() []string { + return []string{ + string(ScrubbingRuleEntryMatchOperatorEquals), + string(ScrubbingRuleEntryMatchOperatorEqualsAny), + } +} + +func (s *ScrubbingRuleEntryMatchOperator) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseScrubbingRuleEntryMatchOperator(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseScrubbingRuleEntryMatchOperator(input string) (*ScrubbingRuleEntryMatchOperator, error) { + vals := map[string]ScrubbingRuleEntryMatchOperator{ + "equals": ScrubbingRuleEntryMatchOperatorEquals, + "equalsany": ScrubbingRuleEntryMatchOperatorEqualsAny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ScrubbingRuleEntryMatchOperator(input) + return &out, nil +} + +type ScrubbingRuleEntryMatchVariable string + +const ( + ScrubbingRuleEntryMatchVariableRequestArgNames ScrubbingRuleEntryMatchVariable = "RequestArgNames" + ScrubbingRuleEntryMatchVariableRequestCookieNames ScrubbingRuleEntryMatchVariable = "RequestCookieNames" + ScrubbingRuleEntryMatchVariableRequestHeaderNames ScrubbingRuleEntryMatchVariable = "RequestHeaderNames" + ScrubbingRuleEntryMatchVariableRequestIPAddress ScrubbingRuleEntryMatchVariable = "RequestIPAddress" + ScrubbingRuleEntryMatchVariableRequestJSONArgNames ScrubbingRuleEntryMatchVariable = "RequestJSONArgNames" + ScrubbingRuleEntryMatchVariableRequestPostArgNames ScrubbingRuleEntryMatchVariable = "RequestPostArgNames" +) + +func PossibleValuesForScrubbingRuleEntryMatchVariable() []string { + return []string{ + string(ScrubbingRuleEntryMatchVariableRequestArgNames), + string(ScrubbingRuleEntryMatchVariableRequestCookieNames), + string(ScrubbingRuleEntryMatchVariableRequestHeaderNames), + string(ScrubbingRuleEntryMatchVariableRequestIPAddress), + string(ScrubbingRuleEntryMatchVariableRequestJSONArgNames), + string(ScrubbingRuleEntryMatchVariableRequestPostArgNames), + } +} + +func (s *ScrubbingRuleEntryMatchVariable) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseScrubbingRuleEntryMatchVariable(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseScrubbingRuleEntryMatchVariable(input string) (*ScrubbingRuleEntryMatchVariable, error) { + vals := map[string]ScrubbingRuleEntryMatchVariable{ + "requestargnames": ScrubbingRuleEntryMatchVariableRequestArgNames, + "requestcookienames": ScrubbingRuleEntryMatchVariableRequestCookieNames, + "requestheadernames": ScrubbingRuleEntryMatchVariableRequestHeaderNames, + "requestipaddress": ScrubbingRuleEntryMatchVariableRequestIPAddress, + "requestjsonargnames": ScrubbingRuleEntryMatchVariableRequestJSONArgNames, + "requestpostargnames": ScrubbingRuleEntryMatchVariableRequestPostArgNames, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ScrubbingRuleEntryMatchVariable(input) + return &out, nil +} + +type ScrubbingRuleEntryState string + +const ( + ScrubbingRuleEntryStateDisabled ScrubbingRuleEntryState = "Disabled" + ScrubbingRuleEntryStateEnabled ScrubbingRuleEntryState = "Enabled" +) + +func PossibleValuesForScrubbingRuleEntryState() []string { + return []string{ + string(ScrubbingRuleEntryStateDisabled), + string(ScrubbingRuleEntryStateEnabled), + } +} + +func (s *ScrubbingRuleEntryState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseScrubbingRuleEntryState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseScrubbingRuleEntryState(input string) (*ScrubbingRuleEntryState, error) { + vals := map[string]ScrubbingRuleEntryState{ + "disabled": ScrubbingRuleEntryStateDisabled, + "enabled": ScrubbingRuleEntryStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ScrubbingRuleEntryState(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SensitivityType string + +const ( + SensitivityTypeHigh SensitivityType = "High" + SensitivityTypeLow SensitivityType = "Low" + SensitivityTypeMedium SensitivityType = "Medium" + SensitivityTypeNone SensitivityType = "None" +) + +func PossibleValuesForSensitivityType() []string { + return []string{ + string(SensitivityTypeHigh), + string(SensitivityTypeLow), + string(SensitivityTypeMedium), + string(SensitivityTypeNone), + } +} + +func (s *SensitivityType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSensitivityType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSensitivityType(input string) (*SensitivityType, error) { + vals := map[string]SensitivityType{ + "high": SensitivityTypeHigh, + "low": SensitivityTypeLow, + "medium": SensitivityTypeMedium, + "none": SensitivityTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SensitivityType(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} + +type WebApplicationFirewallAction string + +const ( + WebApplicationFirewallActionAllow WebApplicationFirewallAction = "Allow" + WebApplicationFirewallActionBlock WebApplicationFirewallAction = "Block" + WebApplicationFirewallActionJSChallenge WebApplicationFirewallAction = "JSChallenge" + WebApplicationFirewallActionLog WebApplicationFirewallAction = "Log" +) + +func PossibleValuesForWebApplicationFirewallAction() []string { + return []string{ + string(WebApplicationFirewallActionAllow), + string(WebApplicationFirewallActionBlock), + string(WebApplicationFirewallActionJSChallenge), + string(WebApplicationFirewallActionLog), + } +} + +func (s *WebApplicationFirewallAction) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallAction(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallAction(input string) (*WebApplicationFirewallAction, error) { + vals := map[string]WebApplicationFirewallAction{ + "allow": WebApplicationFirewallActionAllow, + "block": WebApplicationFirewallActionBlock, + "jschallenge": WebApplicationFirewallActionJSChallenge, + "log": WebApplicationFirewallActionLog, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallAction(input) + return &out, nil +} + +type WebApplicationFirewallEnabledState string + +const ( + WebApplicationFirewallEnabledStateDisabled WebApplicationFirewallEnabledState = "Disabled" + WebApplicationFirewallEnabledStateEnabled WebApplicationFirewallEnabledState = "Enabled" +) + +func PossibleValuesForWebApplicationFirewallEnabledState() []string { + return []string{ + string(WebApplicationFirewallEnabledStateDisabled), + string(WebApplicationFirewallEnabledStateEnabled), + } +} + +func (s *WebApplicationFirewallEnabledState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallEnabledState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallEnabledState(input string) (*WebApplicationFirewallEnabledState, error) { + vals := map[string]WebApplicationFirewallEnabledState{ + "disabled": WebApplicationFirewallEnabledStateDisabled, + "enabled": WebApplicationFirewallEnabledStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallEnabledState(input) + return &out, nil +} + +type WebApplicationFirewallMatchVariable string + +const ( + WebApplicationFirewallMatchVariablePostArgs WebApplicationFirewallMatchVariable = "PostArgs" + WebApplicationFirewallMatchVariableQueryString WebApplicationFirewallMatchVariable = "QueryString" + WebApplicationFirewallMatchVariableRemoteAddr WebApplicationFirewallMatchVariable = "RemoteAddr" + WebApplicationFirewallMatchVariableRequestBody WebApplicationFirewallMatchVariable = "RequestBody" + WebApplicationFirewallMatchVariableRequestCookies WebApplicationFirewallMatchVariable = "RequestCookies" + WebApplicationFirewallMatchVariableRequestHeaders WebApplicationFirewallMatchVariable = "RequestHeaders" + WebApplicationFirewallMatchVariableRequestMethod WebApplicationFirewallMatchVariable = "RequestMethod" + WebApplicationFirewallMatchVariableRequestUri WebApplicationFirewallMatchVariable = "RequestUri" +) + +func PossibleValuesForWebApplicationFirewallMatchVariable() []string { + return []string{ + string(WebApplicationFirewallMatchVariablePostArgs), + string(WebApplicationFirewallMatchVariableQueryString), + string(WebApplicationFirewallMatchVariableRemoteAddr), + string(WebApplicationFirewallMatchVariableRequestBody), + string(WebApplicationFirewallMatchVariableRequestCookies), + string(WebApplicationFirewallMatchVariableRequestHeaders), + string(WebApplicationFirewallMatchVariableRequestMethod), + string(WebApplicationFirewallMatchVariableRequestUri), + } +} + +func (s *WebApplicationFirewallMatchVariable) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallMatchVariable(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallMatchVariable(input string) (*WebApplicationFirewallMatchVariable, error) { + vals := map[string]WebApplicationFirewallMatchVariable{ + "postargs": WebApplicationFirewallMatchVariablePostArgs, + "querystring": WebApplicationFirewallMatchVariableQueryString, + "remoteaddr": WebApplicationFirewallMatchVariableRemoteAddr, + "requestbody": WebApplicationFirewallMatchVariableRequestBody, + "requestcookies": WebApplicationFirewallMatchVariableRequestCookies, + "requestheaders": WebApplicationFirewallMatchVariableRequestHeaders, + "requestmethod": WebApplicationFirewallMatchVariableRequestMethod, + "requesturi": WebApplicationFirewallMatchVariableRequestUri, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallMatchVariable(input) + return &out, nil +} + +type WebApplicationFirewallMode string + +const ( + WebApplicationFirewallModeDetection WebApplicationFirewallMode = "Detection" + WebApplicationFirewallModePrevention WebApplicationFirewallMode = "Prevention" +) + +func PossibleValuesForWebApplicationFirewallMode() []string { + return []string{ + string(WebApplicationFirewallModeDetection), + string(WebApplicationFirewallModePrevention), + } +} + +func (s *WebApplicationFirewallMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallMode(input string) (*WebApplicationFirewallMode, error) { + vals := map[string]WebApplicationFirewallMode{ + "detection": WebApplicationFirewallModeDetection, + "prevention": WebApplicationFirewallModePrevention, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallMode(input) + return &out, nil +} + +type WebApplicationFirewallOperator string + +const ( + WebApplicationFirewallOperatorAny WebApplicationFirewallOperator = "Any" + WebApplicationFirewallOperatorBeginsWith WebApplicationFirewallOperator = "BeginsWith" + WebApplicationFirewallOperatorContains WebApplicationFirewallOperator = "Contains" + WebApplicationFirewallOperatorEndsWith WebApplicationFirewallOperator = "EndsWith" + WebApplicationFirewallOperatorEqual WebApplicationFirewallOperator = "Equal" + WebApplicationFirewallOperatorGeoMatch WebApplicationFirewallOperator = "GeoMatch" + WebApplicationFirewallOperatorGreaterThan WebApplicationFirewallOperator = "GreaterThan" + WebApplicationFirewallOperatorGreaterThanOrEqual WebApplicationFirewallOperator = "GreaterThanOrEqual" + WebApplicationFirewallOperatorIPMatch WebApplicationFirewallOperator = "IPMatch" + WebApplicationFirewallOperatorLessThan WebApplicationFirewallOperator = "LessThan" + WebApplicationFirewallOperatorLessThanOrEqual WebApplicationFirewallOperator = "LessThanOrEqual" + WebApplicationFirewallOperatorRegex WebApplicationFirewallOperator = "Regex" +) + +func PossibleValuesForWebApplicationFirewallOperator() []string { + return []string{ + string(WebApplicationFirewallOperatorAny), + string(WebApplicationFirewallOperatorBeginsWith), + string(WebApplicationFirewallOperatorContains), + string(WebApplicationFirewallOperatorEndsWith), + string(WebApplicationFirewallOperatorEqual), + string(WebApplicationFirewallOperatorGeoMatch), + string(WebApplicationFirewallOperatorGreaterThan), + string(WebApplicationFirewallOperatorGreaterThanOrEqual), + string(WebApplicationFirewallOperatorIPMatch), + string(WebApplicationFirewallOperatorLessThan), + string(WebApplicationFirewallOperatorLessThanOrEqual), + string(WebApplicationFirewallOperatorRegex), + } +} + +func (s *WebApplicationFirewallOperator) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallOperator(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallOperator(input string) (*WebApplicationFirewallOperator, error) { + vals := map[string]WebApplicationFirewallOperator{ + "any": WebApplicationFirewallOperatorAny, + "beginswith": WebApplicationFirewallOperatorBeginsWith, + "contains": WebApplicationFirewallOperatorContains, + "endswith": WebApplicationFirewallOperatorEndsWith, + "equal": WebApplicationFirewallOperatorEqual, + "geomatch": WebApplicationFirewallOperatorGeoMatch, + "greaterthan": WebApplicationFirewallOperatorGreaterThan, + "greaterthanorequal": WebApplicationFirewallOperatorGreaterThanOrEqual, + "ipmatch": WebApplicationFirewallOperatorIPMatch, + "lessthan": WebApplicationFirewallOperatorLessThan, + "lessthanorequal": WebApplicationFirewallOperatorLessThanOrEqual, + "regex": WebApplicationFirewallOperatorRegex, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallOperator(input) + return &out, nil +} + +type WebApplicationFirewallPolicyResourceState string + +const ( + WebApplicationFirewallPolicyResourceStateCreating WebApplicationFirewallPolicyResourceState = "Creating" + WebApplicationFirewallPolicyResourceStateDeleting WebApplicationFirewallPolicyResourceState = "Deleting" + WebApplicationFirewallPolicyResourceStateDisabled WebApplicationFirewallPolicyResourceState = "Disabled" + WebApplicationFirewallPolicyResourceStateDisabling WebApplicationFirewallPolicyResourceState = "Disabling" + WebApplicationFirewallPolicyResourceStateEnabled WebApplicationFirewallPolicyResourceState = "Enabled" + WebApplicationFirewallPolicyResourceStateEnabling WebApplicationFirewallPolicyResourceState = "Enabling" +) + +func PossibleValuesForWebApplicationFirewallPolicyResourceState() []string { + return []string{ + string(WebApplicationFirewallPolicyResourceStateCreating), + string(WebApplicationFirewallPolicyResourceStateDeleting), + string(WebApplicationFirewallPolicyResourceStateDisabled), + string(WebApplicationFirewallPolicyResourceStateDisabling), + string(WebApplicationFirewallPolicyResourceStateEnabled), + string(WebApplicationFirewallPolicyResourceStateEnabling), + } +} + +func (s *WebApplicationFirewallPolicyResourceState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallPolicyResourceState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallPolicyResourceState(input string) (*WebApplicationFirewallPolicyResourceState, error) { + vals := map[string]WebApplicationFirewallPolicyResourceState{ + "creating": WebApplicationFirewallPolicyResourceStateCreating, + "deleting": WebApplicationFirewallPolicyResourceStateDeleting, + "disabled": WebApplicationFirewallPolicyResourceStateDisabled, + "disabling": WebApplicationFirewallPolicyResourceStateDisabling, + "enabled": WebApplicationFirewallPolicyResourceStateEnabled, + "enabling": WebApplicationFirewallPolicyResourceStateEnabling, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallPolicyResourceState(input) + return &out, nil +} + +type WebApplicationFirewallRuleType string + +const ( + WebApplicationFirewallRuleTypeInvalid WebApplicationFirewallRuleType = "Invalid" + WebApplicationFirewallRuleTypeMatchRule WebApplicationFirewallRuleType = "MatchRule" + WebApplicationFirewallRuleTypeRateLimitRule WebApplicationFirewallRuleType = "RateLimitRule" +) + +func PossibleValuesForWebApplicationFirewallRuleType() []string { + return []string{ + string(WebApplicationFirewallRuleTypeInvalid), + string(WebApplicationFirewallRuleTypeMatchRule), + string(WebApplicationFirewallRuleTypeRateLimitRule), + } +} + +func (s *WebApplicationFirewallRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallRuleType(input string) (*WebApplicationFirewallRuleType, error) { + vals := map[string]WebApplicationFirewallRuleType{ + "invalid": WebApplicationFirewallRuleTypeInvalid, + "matchrule": WebApplicationFirewallRuleTypeMatchRule, + "ratelimitrule": WebApplicationFirewallRuleTypeRateLimitRule, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallRuleType(input) + return &out, nil +} + +type WebApplicationFirewallScrubbingState string + +const ( + WebApplicationFirewallScrubbingStateDisabled WebApplicationFirewallScrubbingState = "Disabled" + WebApplicationFirewallScrubbingStateEnabled WebApplicationFirewallScrubbingState = "Enabled" +) + +func PossibleValuesForWebApplicationFirewallScrubbingState() []string { + return []string{ + string(WebApplicationFirewallScrubbingStateDisabled), + string(WebApplicationFirewallScrubbingStateEnabled), + } +} + +func (s *WebApplicationFirewallScrubbingState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallScrubbingState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallScrubbingState(input string) (*WebApplicationFirewallScrubbingState, error) { + vals := map[string]WebApplicationFirewallScrubbingState{ + "disabled": WebApplicationFirewallScrubbingStateDisabled, + "enabled": WebApplicationFirewallScrubbingStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallScrubbingState(input) + return &out, nil +} + +type WebApplicationFirewallState string + +const ( + WebApplicationFirewallStateDisabled WebApplicationFirewallState = "Disabled" + WebApplicationFirewallStateEnabled WebApplicationFirewallState = "Enabled" +) + +func PossibleValuesForWebApplicationFirewallState() []string { + return []string{ + string(WebApplicationFirewallStateDisabled), + string(WebApplicationFirewallStateEnabled), + } +} + +func (s *WebApplicationFirewallState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallState(input string) (*WebApplicationFirewallState, error) { + vals := map[string]WebApplicationFirewallState{ + "disabled": WebApplicationFirewallStateDisabled, + "enabled": WebApplicationFirewallStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallState(input) + return &out, nil +} + +type WebApplicationFirewallTransform string + +const ( + WebApplicationFirewallTransformHtmlEntityDecode WebApplicationFirewallTransform = "HtmlEntityDecode" + WebApplicationFirewallTransformLowercase WebApplicationFirewallTransform = "Lowercase" + WebApplicationFirewallTransformRemoveNulls WebApplicationFirewallTransform = "RemoveNulls" + WebApplicationFirewallTransformTrim WebApplicationFirewallTransform = "Trim" + WebApplicationFirewallTransformURLDecode WebApplicationFirewallTransform = "UrlDecode" + WebApplicationFirewallTransformURLEncode WebApplicationFirewallTransform = "UrlEncode" + WebApplicationFirewallTransformUppercase WebApplicationFirewallTransform = "Uppercase" +) + +func PossibleValuesForWebApplicationFirewallTransform() []string { + return []string{ + string(WebApplicationFirewallTransformHtmlEntityDecode), + string(WebApplicationFirewallTransformLowercase), + string(WebApplicationFirewallTransformRemoveNulls), + string(WebApplicationFirewallTransformTrim), + string(WebApplicationFirewallTransformURLDecode), + string(WebApplicationFirewallTransformURLEncode), + string(WebApplicationFirewallTransformUppercase), + } +} + +func (s *WebApplicationFirewallTransform) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallTransform(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallTransform(input string) (*WebApplicationFirewallTransform, error) { + vals := map[string]WebApplicationFirewallTransform{ + "htmlentitydecode": WebApplicationFirewallTransformHtmlEntityDecode, + "lowercase": WebApplicationFirewallTransformLowercase, + "removenulls": WebApplicationFirewallTransformRemoveNulls, + "trim": WebApplicationFirewallTransformTrim, + "urldecode": WebApplicationFirewallTransformURLDecode, + "urlencode": WebApplicationFirewallTransformURLEncode, + "uppercase": WebApplicationFirewallTransformUppercase, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallTransform(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/id_applicationgatewaywebapplicationfirewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/id_applicationgatewaywebapplicationfirewallpolicy.go new file mode 100644 index 000000000000..3004461fd8ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/id_applicationgatewaywebapplicationfirewallpolicy.go @@ -0,0 +1,130 @@ +package webapplicationfirewallpolicies + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ApplicationGatewayWebApplicationFirewallPolicyId{}) +} + +var _ resourceids.ResourceId = &ApplicationGatewayWebApplicationFirewallPolicyId{} + +// ApplicationGatewayWebApplicationFirewallPolicyId is a struct representing the Resource ID for a Application Gateway Web Application Firewall Policy +type ApplicationGatewayWebApplicationFirewallPolicyId struct { + SubscriptionId string + ResourceGroupName string + ApplicationGatewayWebApplicationFirewallPolicyName string +} + +// NewApplicationGatewayWebApplicationFirewallPolicyID returns a new ApplicationGatewayWebApplicationFirewallPolicyId struct +func NewApplicationGatewayWebApplicationFirewallPolicyID(subscriptionId string, resourceGroupName string, applicationGatewayWebApplicationFirewallPolicyName string) ApplicationGatewayWebApplicationFirewallPolicyId { + return ApplicationGatewayWebApplicationFirewallPolicyId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ApplicationGatewayWebApplicationFirewallPolicyName: applicationGatewayWebApplicationFirewallPolicyName, + } +} + +// ParseApplicationGatewayWebApplicationFirewallPolicyID parses 'input' into a ApplicationGatewayWebApplicationFirewallPolicyId +func ParseApplicationGatewayWebApplicationFirewallPolicyID(input string) (*ApplicationGatewayWebApplicationFirewallPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApplicationGatewayWebApplicationFirewallPolicyId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApplicationGatewayWebApplicationFirewallPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseApplicationGatewayWebApplicationFirewallPolicyIDInsensitively parses 'input' case-insensitively into a ApplicationGatewayWebApplicationFirewallPolicyId +// note: this method should only be used for API response data and not user input +func ParseApplicationGatewayWebApplicationFirewallPolicyIDInsensitively(input string) (*ApplicationGatewayWebApplicationFirewallPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApplicationGatewayWebApplicationFirewallPolicyId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApplicationGatewayWebApplicationFirewallPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ApplicationGatewayWebApplicationFirewallPolicyId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ApplicationGatewayWebApplicationFirewallPolicyName, ok = input.Parsed["applicationGatewayWebApplicationFirewallPolicyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "applicationGatewayWebApplicationFirewallPolicyName", input) + } + + return nil +} + +// ValidateApplicationGatewayWebApplicationFirewallPolicyID checks that 'input' can be parsed as a Application Gateway Web Application Firewall Policy ID +func ValidateApplicationGatewayWebApplicationFirewallPolicyID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseApplicationGatewayWebApplicationFirewallPolicyID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Application Gateway Web Application Firewall Policy ID +func (id ApplicationGatewayWebApplicationFirewallPolicyId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ApplicationGatewayWebApplicationFirewallPolicyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Application Gateway Web Application Firewall Policy ID +func (id ApplicationGatewayWebApplicationFirewallPolicyId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticApplicationGatewayWebApplicationFirewallPolicies", "applicationGatewayWebApplicationFirewallPolicies", "applicationGatewayWebApplicationFirewallPolicies"), + resourceids.UserSpecifiedSegment("applicationGatewayWebApplicationFirewallPolicyName", "applicationGatewayWebApplicationFirewallPolicyName"), + } +} + +// String returns a human-readable description of this Application Gateway Web Application Firewall Policy ID +func (id ApplicationGatewayWebApplicationFirewallPolicyId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Application Gateway Web Application Firewall Policy Name: %q", id.ApplicationGatewayWebApplicationFirewallPolicyName), + } + return fmt.Sprintf("Application Gateway Web Application Firewall Policy (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_createorupdate.go new file mode 100644 index 000000000000..556b406a3c28 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_createorupdate.go @@ -0,0 +1,58 @@ +package webapplicationfirewallpolicies + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *WebApplicationFirewallPolicy +} + +// CreateOrUpdate ... +func (c WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Context, id ApplicationGatewayWebApplicationFirewallPolicyId, input WebApplicationFirewallPolicy) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model WebApplicationFirewallPolicy + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_delete.go new file mode 100644 index 000000000000..c4547e959520 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_delete.go @@ -0,0 +1,71 @@ +package webapplicationfirewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c WebApplicationFirewallPoliciesClient) Delete(ctx context.Context, id ApplicationGatewayWebApplicationFirewallPolicyId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c WebApplicationFirewallPoliciesClient) DeleteThenPoll(ctx context.Context, id ApplicationGatewayWebApplicationFirewallPolicyId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_get.go new file mode 100644 index 000000000000..b34138178e00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_get.go @@ -0,0 +1,53 @@ +package webapplicationfirewallpolicies + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *WebApplicationFirewallPolicy +} + +// Get ... +func (c WebApplicationFirewallPoliciesClient) Get(ctx context.Context, id ApplicationGatewayWebApplicationFirewallPolicyId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model WebApplicationFirewallPolicy + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_list.go new file mode 100644 index 000000000000..4a6b3abf31e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_list.go @@ -0,0 +1,106 @@ +package webapplicationfirewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]WebApplicationFirewallPolicy +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []WebApplicationFirewallPolicy +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c WebApplicationFirewallPoliciesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]WebApplicationFirewallPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c WebApplicationFirewallPoliciesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, WebApplicationFirewallPolicyOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebApplicationFirewallPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate WebApplicationFirewallPolicyOperationPredicate) (result ListCompleteResult, err error) { + items := make([]WebApplicationFirewallPolicy, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_listall.go new file mode 100644 index 000000000000..e3a633a2655b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_listall.go @@ -0,0 +1,106 @@ +package webapplicationfirewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]WebApplicationFirewallPolicy +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []WebApplicationFirewallPolicy +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]WebApplicationFirewallPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c WebApplicationFirewallPoliciesClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, WebApplicationFirewallPolicyOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebApplicationFirewallPoliciesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate WebApplicationFirewallPolicyOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]WebApplicationFirewallPolicy, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgateway.go new file mode 100644 index 000000000000..69aa82140eaf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgateway.go @@ -0,0 +1,21 @@ +package webapplicationfirewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayauthenticationcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayauthenticationcertificate.go new file mode 100644 index 000000000000..74175523bc12 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayauthenticationcertificate.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAuthenticationCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayAuthenticationCertificatePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayauthenticationcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayauthenticationcertificatepropertiesformat.go new file mode 100644 index 000000000000..7536ffa24393 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayauthenticationcertificatepropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAuthenticationCertificatePropertiesFormat struct { + Data *string `json:"data,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayautoscaleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayautoscaleconfiguration.go new file mode 100644 index 000000000000..06e7df4e24e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayautoscaleconfiguration.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAutoscaleConfiguration struct { + MaxCapacity *int64 `json:"maxCapacity,omitempty"` + MinCapacity int64 `json:"minCapacity"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..dcc624a13aa0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..0f188b359ad4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..64a4ed2e8366 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendhttpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendhttpsettings.go new file mode 100644 index 000000000000..052f312d7b33 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendhttpsettings.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHTTPSettings struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendHTTPSettingsPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendhttpsettingspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendhttpsettingspropertiesformat.go new file mode 100644 index 000000000000..16305b5de819 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendhttpsettingspropertiesformat.go @@ -0,0 +1,21 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHTTPSettingsPropertiesFormat struct { + AffinityCookieName *string `json:"affinityCookieName,omitempty"` + AuthenticationCertificates *[]SubResource `json:"authenticationCertificates,omitempty"` + ConnectionDraining *ApplicationGatewayConnectionDraining `json:"connectionDraining,omitempty"` + CookieBasedAffinity *ApplicationGatewayCookieBasedAffinity `json:"cookieBasedAffinity,omitempty"` + HostName *string `json:"hostName,omitempty"` + Path *string `json:"path,omitempty"` + PickHostNameFromBackendAddress *bool `json:"pickHostNameFromBackendAddress,omitempty"` + Port *int64 `json:"port,omitempty"` + Probe *SubResource `json:"probe,omitempty"` + ProbeEnabled *bool `json:"probeEnabled,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestTimeout *int64 `json:"requestTimeout,omitempty"` + TrustedRootCertificates *[]SubResource `json:"trustedRootCertificates,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendsettings.go new file mode 100644 index 000000000000..1bc8a5c5fe1f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendsettings.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendSettings struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendSettingsPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendsettingspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendsettingspropertiesformat.go new file mode 100644 index 000000000000..5d5f77f3c8dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendsettingspropertiesformat.go @@ -0,0 +1,15 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendSettingsPropertiesFormat struct { + HostName *string `json:"hostName,omitempty"` + PickHostNameFromBackendAddress *bool `json:"pickHostNameFromBackendAddress,omitempty"` + Port *int64 `json:"port,omitempty"` + Probe *SubResource `json:"probe,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Timeout *int64 `json:"timeout,omitempty"` + TrustedRootCertificates *[]SubResource `json:"trustedRootCertificates,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayclientauthconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayclientauthconfiguration.go new file mode 100644 index 000000000000..36e0f43021db --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayclientauthconfiguration.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayClientAuthConfiguration struct { + VerifyClientCertIssuerDN *bool `json:"verifyClientCertIssuerDN,omitempty"` + VerifyClientRevocation *ApplicationGatewayClientRevocationOptions `json:"verifyClientRevocation,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayconnectiondraining.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayconnectiondraining.go new file mode 100644 index 000000000000..369c8494e6fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayconnectiondraining.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayConnectionDraining struct { + DrainTimeoutInSec int64 `json:"drainTimeoutInSec"` + Enabled bool `json:"enabled"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaycustomerror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaycustomerror.go new file mode 100644 index 000000000000..b1f6dd22b0d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaycustomerror.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayCustomError struct { + CustomErrorPageURL *string `json:"customErrorPageUrl,omitempty"` + StatusCode *ApplicationGatewayCustomErrorStatusCode `json:"statusCode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfirewalldisabledrulegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfirewalldisabledrulegroup.go new file mode 100644 index 000000000000..c88a33b735c1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfirewalldisabledrulegroup.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallDisabledRuleGroup struct { + RuleGroupName string `json:"ruleGroupName"` + Rules *[]int64 `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfirewallexclusion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfirewallexclusion.go new file mode 100644 index 000000000000..541e5052e8f7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfirewallexclusion.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallExclusion struct { + MatchVariable string `json:"matchVariable"` + Selector string `json:"selector"` + SelectorMatchOperator string `json:"selectorMatchOperator"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayforcontainersreferencedefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayforcontainersreferencedefinition.go new file mode 100644 index 000000000000..2a18fd8a8661 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayforcontainersreferencedefinition.go @@ -0,0 +1,8 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayForContainersReferenceDefinition struct { + Id string `json:"id"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendipconfiguration.go new file mode 100644 index 000000000000..f5f9c5bebc72 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendipconfiguration.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayFrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..1b61dc71c1d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendipconfigurationpropertiesformat.go @@ -0,0 +1,13 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFrontendIPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConfiguration *SubResource `json:"privateLinkConfiguration,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendport.go new file mode 100644 index 000000000000..dfcb5e52ee38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendport.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFrontendPort struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayFrontendPortPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendportpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendportpropertiesformat.go new file mode 100644 index 000000000000..d37b168d0aa4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendportpropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFrontendPortPropertiesFormat struct { + Port *int64 `json:"port,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayglobalconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayglobalconfiguration.go new file mode 100644 index 000000000000..b80dabed9a0c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayglobalconfiguration.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayGlobalConfiguration struct { + EnableRequestBuffering *bool `json:"enableRequestBuffering,omitempty"` + EnableResponseBuffering *bool `json:"enableResponseBuffering,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayheaderconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayheaderconfiguration.go new file mode 100644 index 000000000000..7ffc4b3c8c84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayheaderconfiguration.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayHeaderConfiguration struct { + HeaderName *string `json:"headerName,omitempty"` + HeaderValue *string `json:"headerValue,omitempty"` + HeaderValueMatcher *HeaderValueMatcher `json:"headerValueMatcher,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayhttplistener.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayhttplistener.go new file mode 100644 index 000000000000..0fd70bac2011 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayhttplistener.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayHTTPListener struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayHTTPListenerPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayhttplistenerpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayhttplistenerpropertiesformat.go new file mode 100644 index 000000000000..9c4eb515f42b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayhttplistenerpropertiesformat.go @@ -0,0 +1,18 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayHTTPListenerPropertiesFormat struct { + CustomErrorConfigurations *[]ApplicationGatewayCustomError `json:"customErrorConfigurations,omitempty"` + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *SubResource `json:"frontendPort,omitempty"` + HostName *string `json:"hostName,omitempty"` + HostNames *[]string `json:"hostNames,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequireServerNameIndication *bool `json:"requireServerNameIndication,omitempty"` + SslCertificate *SubResource `json:"sslCertificate,omitempty"` + SslProfile *SubResource `json:"sslProfile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..6ffd65f71c2d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..e8482b21e603 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaylistener.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaylistener.go new file mode 100644 index 000000000000..71fe702c98e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaylistener.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayListener struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayListenerPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaylistenerpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaylistenerpropertiesformat.go new file mode 100644 index 000000000000..ceffb59e3b15 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaylistenerpropertiesformat.go @@ -0,0 +1,14 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayListenerPropertiesFormat struct { + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *SubResource `json:"frontendPort,omitempty"` + HostNames *[]string `json:"hostNames,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SslCertificate *SubResource `json:"sslCertificate,omitempty"` + SslProfile *SubResource `json:"sslProfile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributionpolicy.go new file mode 100644 index 000000000000..55e8713746cc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributionpolicy.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayLoadDistributionPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayLoadDistributionPolicyPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributionpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributionpolicypropertiesformat.go new file mode 100644 index 000000000000..fe721166bf2f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributionpolicypropertiesformat.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayLoadDistributionPolicyPropertiesFormat struct { + LoadDistributionAlgorithm *ApplicationGatewayLoadDistributionAlgorithm `json:"loadDistributionAlgorithm,omitempty"` + LoadDistributionTargets *[]ApplicationGatewayLoadDistributionTarget `json:"loadDistributionTargets,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributiontarget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributiontarget.go new file mode 100644 index 000000000000..d361c4e3d978 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributiontarget.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayLoadDistributionTarget struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayLoadDistributionTargetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributiontargetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributiontargetpropertiesformat.go new file mode 100644 index 000000000000..6ba821b2e825 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributiontargetpropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayLoadDistributionTargetPropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + WeightPerServer *int64 `json:"weightPerServer,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypathrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypathrule.go new file mode 100644 index 000000000000..992b948c5589 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypathrule.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPathRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPathRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypathrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypathrulepropertiesformat.go new file mode 100644 index 000000000000..5c8b00da0850 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypathrulepropertiesformat.go @@ -0,0 +1,15 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPathRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendHTTPSettings *SubResource `json:"backendHttpSettings,omitempty"` + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` + LoadDistributionPolicy *SubResource `json:"loadDistributionPolicy,omitempty"` + Paths *[]string `json:"paths,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RedirectConfiguration *SubResource `json:"redirectConfiguration,omitempty"` + RewriteRuleSet *SubResource `json:"rewriteRuleSet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivateendpointconnection.go new file mode 100644 index 000000000000..5b45596cedc7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivateendpointconnection.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivateendpointconnectionproperties.go new file mode 100644 index 000000000000..c6a900feb31d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivateendpointconnectionproperties.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkconfiguration.go new file mode 100644 index 000000000000..73e8756981a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkconfiguration.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateLinkConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPrivateLinkConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkconfigurationproperties.go new file mode 100644 index 000000000000..8855a67b9ce5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkconfigurationproperties.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateLinkConfigurationProperties struct { + IPConfigurations *[]ApplicationGatewayPrivateLinkIPConfiguration `json:"ipConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkipconfiguration.go new file mode 100644 index 000000000000..ce8e67a68d09 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkipconfiguration.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateLinkIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPrivateLinkIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkipconfigurationproperties.go new file mode 100644 index 000000000000..ff68d2052d79 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkipconfigurationproperties.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateLinkIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobe.go new file mode 100644 index 000000000000..9c935a9fbba0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobe.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayProbe struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayProbePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobehealthresponsematch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobehealthresponsematch.go new file mode 100644 index 000000000000..20c18109ec09 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobehealthresponsematch.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayProbeHealthResponseMatch struct { + Body *string `json:"body,omitempty"` + StatusCodes *[]string `json:"statusCodes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobepropertiesformat.go new file mode 100644 index 000000000000..b36845c57bf8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobepropertiesformat.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayProbePropertiesFormat struct { + Host *string `json:"host,omitempty"` + Interval *int64 `json:"interval,omitempty"` + Match *ApplicationGatewayProbeHealthResponseMatch `json:"match,omitempty"` + MinServers *int64 `json:"minServers,omitempty"` + Path *string `json:"path,omitempty"` + PickHostNameFromBackendHTTPSettings *bool `json:"pickHostNameFromBackendHttpSettings,omitempty"` + PickHostNameFromBackendSettings *bool `json:"pickHostNameFromBackendSettings,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Timeout *int64 `json:"timeout,omitempty"` + UnhealthyThreshold *int64 `json:"unhealthyThreshold,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypropertiesformat.go new file mode 100644 index 000000000000..6cdbb059a1ba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypropertiesformat.go @@ -0,0 +1,43 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPropertiesFormat struct { + AuthenticationCertificates *[]ApplicationGatewayAuthenticationCertificate `json:"authenticationCertificates,omitempty"` + AutoscaleConfiguration *ApplicationGatewayAutoscaleConfiguration `json:"autoscaleConfiguration,omitempty"` + BackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"backendAddressPools,omitempty"` + BackendHTTPSettingsCollection *[]ApplicationGatewayBackendHTTPSettings `json:"backendHttpSettingsCollection,omitempty"` + BackendSettingsCollection *[]ApplicationGatewayBackendSettings `json:"backendSettingsCollection,omitempty"` + CustomErrorConfigurations *[]ApplicationGatewayCustomError `json:"customErrorConfigurations,omitempty"` + DefaultPredefinedSslPolicy *ApplicationGatewaySslPolicyName `json:"defaultPredefinedSslPolicy,omitempty"` + EnableFips *bool `json:"enableFips,omitempty"` + EnableHTTP2 *bool `json:"enableHttp2,omitempty"` + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` + ForceFirewallPolicyAssociation *bool `json:"forceFirewallPolicyAssociation,omitempty"` + FrontendIPConfigurations *[]ApplicationGatewayFrontendIPConfiguration `json:"frontendIPConfigurations,omitempty"` + FrontendPorts *[]ApplicationGatewayFrontendPort `json:"frontendPorts,omitempty"` + GatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"gatewayIPConfigurations,omitempty"` + GlobalConfiguration *ApplicationGatewayGlobalConfiguration `json:"globalConfiguration,omitempty"` + HTTPListeners *[]ApplicationGatewayHTTPListener `json:"httpListeners,omitempty"` + Listeners *[]ApplicationGatewayListener `json:"listeners,omitempty"` + LoadDistributionPolicies *[]ApplicationGatewayLoadDistributionPolicy `json:"loadDistributionPolicies,omitempty"` + OperationalState *ApplicationGatewayOperationalState `json:"operationalState,omitempty"` + PrivateEndpointConnections *[]ApplicationGatewayPrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + PrivateLinkConfigurations *[]ApplicationGatewayPrivateLinkConfiguration `json:"privateLinkConfigurations,omitempty"` + Probes *[]ApplicationGatewayProbe `json:"probes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RedirectConfigurations *[]ApplicationGatewayRedirectConfiguration `json:"redirectConfigurations,omitempty"` + RequestRoutingRules *[]ApplicationGatewayRequestRoutingRule `json:"requestRoutingRules,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + RewriteRuleSets *[]ApplicationGatewayRewriteRuleSet `json:"rewriteRuleSets,omitempty"` + RoutingRules *[]ApplicationGatewayRoutingRule `json:"routingRules,omitempty"` + Sku *ApplicationGatewaySku `json:"sku,omitempty"` + SslCertificates *[]ApplicationGatewaySslCertificate `json:"sslCertificates,omitempty"` + SslPolicy *ApplicationGatewaySslPolicy `json:"sslPolicy,omitempty"` + SslProfiles *[]ApplicationGatewaySslProfile `json:"sslProfiles,omitempty"` + TrustedClientCertificates *[]ApplicationGatewayTrustedClientCertificate `json:"trustedClientCertificates,omitempty"` + TrustedRootCertificates *[]ApplicationGatewayTrustedRootCertificate `json:"trustedRootCertificates,omitempty"` + UrlPathMaps *[]ApplicationGatewayURLPathMap `json:"urlPathMaps,omitempty"` + WebApplicationFirewallConfiguration *ApplicationGatewayWebApplicationFirewallConfiguration `json:"webApplicationFirewallConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayredirectconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayredirectconfiguration.go new file mode 100644 index 000000000000..85eed147eb29 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayredirectconfiguration.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRedirectConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayRedirectConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayredirectconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayredirectconfigurationpropertiesformat.go new file mode 100644 index 000000000000..6103c017cb45 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayredirectconfigurationpropertiesformat.go @@ -0,0 +1,15 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRedirectConfigurationPropertiesFormat struct { + IncludePath *bool `json:"includePath,omitempty"` + IncludeQueryString *bool `json:"includeQueryString,omitempty"` + PathRules *[]SubResource `json:"pathRules,omitempty"` + RedirectType *ApplicationGatewayRedirectType `json:"redirectType,omitempty"` + RequestRoutingRules *[]SubResource `json:"requestRoutingRules,omitempty"` + TargetListener *SubResource `json:"targetListener,omitempty"` + TargetURL *string `json:"targetUrl,omitempty"` + UrlPathMaps *[]SubResource `json:"urlPathMaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrequestroutingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrequestroutingrule.go new file mode 100644 index 000000000000..9eb6ffe9c4aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrequestroutingrule.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRequestRoutingRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayRequestRoutingRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrequestroutingrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrequestroutingrulepropertiesformat.go new file mode 100644 index 000000000000..53dc9f99474e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrequestroutingrulepropertiesformat.go @@ -0,0 +1,17 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRequestRoutingRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendHTTPSettings *SubResource `json:"backendHttpSettings,omitempty"` + HTTPListener *SubResource `json:"httpListener,omitempty"` + LoadDistributionPolicy *SubResource `json:"loadDistributionPolicy,omitempty"` + Priority *int64 `json:"priority,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RedirectConfiguration *SubResource `json:"redirectConfiguration,omitempty"` + RewriteRuleSet *SubResource `json:"rewriteRuleSet,omitempty"` + RuleType *ApplicationGatewayRequestRoutingRuleType `json:"ruleType,omitempty"` + UrlPathMap *SubResource `json:"urlPathMap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterule.go new file mode 100644 index 000000000000..21ce81c5a24d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterule.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRule struct { + ActionSet *ApplicationGatewayRewriteRuleActionSet `json:"actionSet,omitempty"` + Conditions *[]ApplicationGatewayRewriteRuleCondition `json:"conditions,omitempty"` + Name *string `json:"name,omitempty"` + RuleSequence *int64 `json:"ruleSequence,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriteruleactionset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriteruleactionset.go new file mode 100644 index 000000000000..18cc34e55af8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriteruleactionset.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRuleActionSet struct { + RequestHeaderConfigurations *[]ApplicationGatewayHeaderConfiguration `json:"requestHeaderConfigurations,omitempty"` + ResponseHeaderConfigurations *[]ApplicationGatewayHeaderConfiguration `json:"responseHeaderConfigurations,omitempty"` + UrlConfiguration *ApplicationGatewayURLConfiguration `json:"urlConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterulecondition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterulecondition.go new file mode 100644 index 000000000000..1e70a94ea801 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterulecondition.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRuleCondition struct { + IgnoreCase *bool `json:"ignoreCase,omitempty"` + Negate *bool `json:"negate,omitempty"` + Pattern *string `json:"pattern,omitempty"` + Variable *string `json:"variable,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriteruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriteruleset.go new file mode 100644 index 000000000000..a25c70e4a054 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriteruleset.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRuleSet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayRewriteRuleSetPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterulesetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterulesetpropertiesformat.go new file mode 100644 index 000000000000..3a1e33742175 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterulesetpropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRuleSetPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RewriteRules *[]ApplicationGatewayRewriteRule `json:"rewriteRules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayroutingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayroutingrule.go new file mode 100644 index 000000000000..78053b23a9ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayroutingrule.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRoutingRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayRoutingRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayroutingrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayroutingrulepropertiesformat.go new file mode 100644 index 000000000000..05ed98ab5974 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayroutingrulepropertiesformat.go @@ -0,0 +1,13 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRoutingRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendSettings *SubResource `json:"backendSettings,omitempty"` + Listener *SubResource `json:"listener,omitempty"` + Priority int64 `json:"priority"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RuleType *ApplicationGatewayRequestRoutingRuleType `json:"ruleType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysku.go new file mode 100644 index 000000000000..af2d1c3c1e80 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysku.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySku struct { + Capacity *int64 `json:"capacity,omitempty"` + Family *ApplicationGatewaySkuFamily `json:"family,omitempty"` + Name *ApplicationGatewaySkuName `json:"name,omitempty"` + Tier *ApplicationGatewayTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslcertificate.go new file mode 100644 index 000000000000..328f6a90d883 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslcertificate.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewaySslCertificatePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslcertificatepropertiesformat.go new file mode 100644 index 000000000000..f087bfec9a8d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslcertificatepropertiesformat.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslCertificatePropertiesFormat struct { + Data *string `json:"data,omitempty"` + KeyVaultSecretId *string `json:"keyVaultSecretId,omitempty"` + Password *string `json:"password,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicCertData *string `json:"publicCertData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslpolicy.go new file mode 100644 index 000000000000..ae860f1460f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslpolicy.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslPolicy struct { + CipherSuites *[]ApplicationGatewaySslCipherSuite `json:"cipherSuites,omitempty"` + DisabledSslProtocols *[]ApplicationGatewaySslProtocol `json:"disabledSslProtocols,omitempty"` + MinProtocolVersion *ApplicationGatewaySslProtocol `json:"minProtocolVersion,omitempty"` + PolicyName *ApplicationGatewaySslPolicyName `json:"policyName,omitempty"` + PolicyType *ApplicationGatewaySslPolicyType `json:"policyType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslprofile.go new file mode 100644 index 000000000000..8c1d0630c2ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslprofile.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewaySslProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslprofilepropertiesformat.go new file mode 100644 index 000000000000..b89279b0c7f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslprofilepropertiesformat.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslProfilePropertiesFormat struct { + ClientAuthConfiguration *ApplicationGatewayClientAuthConfiguration `json:"clientAuthConfiguration,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SslPolicy *ApplicationGatewaySslPolicy `json:"sslPolicy,omitempty"` + TrustedClientCertificates *[]SubResource `json:"trustedClientCertificates,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedclientcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedclientcertificate.go new file mode 100644 index 000000000000..f2fb2244e71a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedclientcertificate.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayTrustedClientCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayTrustedClientCertificatePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedclientcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedclientcertificatepropertiesformat.go new file mode 100644 index 000000000000..ac7454cb8f4f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedclientcertificatepropertiesformat.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayTrustedClientCertificatePropertiesFormat struct { + ClientCertIssuerDN *string `json:"clientCertIssuerDN,omitempty"` + Data *string `json:"data,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ValidatedCertData *string `json:"validatedCertData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedrootcertificate.go new file mode 100644 index 000000000000..9deacd55fe89 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedrootcertificate.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayTrustedRootCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayTrustedRootCertificatePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedrootcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedrootcertificatepropertiesformat.go new file mode 100644 index 000000000000..f79bf663f765 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedrootcertificatepropertiesformat.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayTrustedRootCertificatePropertiesFormat struct { + Data *string `json:"data,omitempty"` + KeyVaultSecretId *string `json:"keyVaultSecretId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlconfiguration.go new file mode 100644 index 000000000000..c6de0fdbc1bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlconfiguration.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayURLConfiguration struct { + ModifiedPath *string `json:"modifiedPath,omitempty"` + ModifiedQueryString *string `json:"modifiedQueryString,omitempty"` + Reroute *bool `json:"reroute,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlpathmap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlpathmap.go new file mode 100644 index 000000000000..96a3dc6d985c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlpathmap.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayURLPathMap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayURLPathMapPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlpathmappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlpathmappropertiesformat.go new file mode 100644 index 000000000000..e02847a3fd97 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlpathmappropertiesformat.go @@ -0,0 +1,14 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayURLPathMapPropertiesFormat struct { + DefaultBackendAddressPool *SubResource `json:"defaultBackendAddressPool,omitempty"` + DefaultBackendHTTPSettings *SubResource `json:"defaultBackendHttpSettings,omitempty"` + DefaultLoadDistributionPolicy *SubResource `json:"defaultLoadDistributionPolicy,omitempty"` + DefaultRedirectConfiguration *SubResource `json:"defaultRedirectConfiguration,omitempty"` + DefaultRewriteRuleSet *SubResource `json:"defaultRewriteRuleSet,omitempty"` + PathRules *[]ApplicationGatewayPathRule `json:"pathRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaywebapplicationfirewallconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaywebapplicationfirewallconfiguration.go new file mode 100644 index 000000000000..0ccb185da05d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaywebapplicationfirewallconfiguration.go @@ -0,0 +1,17 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayWebApplicationFirewallConfiguration struct { + DisabledRuleGroups *[]ApplicationGatewayFirewallDisabledRuleGroup `json:"disabledRuleGroups,omitempty"` + Enabled bool `json:"enabled"` + Exclusions *[]ApplicationGatewayFirewallExclusion `json:"exclusions,omitempty"` + FileUploadLimitInMb *int64 `json:"fileUploadLimitInMb,omitempty"` + FirewallMode ApplicationGatewayFirewallMode `json:"firewallMode"` + MaxRequestBodySize *int64 `json:"maxRequestBodySize,omitempty"` + MaxRequestBodySizeInKb *int64 `json:"maxRequestBodySizeInKb,omitempty"` + RequestBodyCheck *bool `json:"requestBodyCheck,omitempty"` + RuleSetType string `json:"ruleSetType"` + RuleSetVersion string `json:"ruleSetVersion"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..8dccd748428d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..2713b23e0a59 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_backendaddresspool.go new file mode 100644 index 000000000000..a5f3d1e0367d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..ddf54b501167 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..e9022fbeb4fc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ddossettings.go new file mode 100644 index 000000000000..4f7e1e207642 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ddossettings.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_delegation.go new file mode 100644 index 000000000000..9a088e2a5077 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_delegation.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exceptionentry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exceptionentry.go new file mode 100644 index 000000000000..32ca8f8fa0a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exceptionentry.go @@ -0,0 +1,13 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExceptionEntry struct { + ExceptionManagedRuleSets *[]ExclusionManagedRuleSet `json:"exceptionManagedRuleSets,omitempty"` + MatchVariable ExceptionEntryMatchVariable `json:"matchVariable"` + Selector *string `json:"selector,omitempty"` + SelectorMatchOperator *ExceptionEntrySelectorMatchOperator `json:"selectorMatchOperator,omitempty"` + ValueMatchOperator ExceptionEntryValueMatchOperator `json:"valueMatchOperator"` + Values *[]string `json:"values,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedrule.go new file mode 100644 index 000000000000..ffa39b22711a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedrule.go @@ -0,0 +1,8 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExclusionManagedRule struct { + RuleId string `json:"ruleId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedrulegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedrulegroup.go new file mode 100644 index 000000000000..29d30ef6bc1f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedrulegroup.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExclusionManagedRuleGroup struct { + RuleGroupName string `json:"ruleGroupName"` + Rules *[]ExclusionManagedRule `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedruleset.go new file mode 100644 index 000000000000..cb569797cecb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedruleset.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExclusionManagedRuleSet struct { + RuleGroups *[]ExclusionManagedRuleGroup `json:"ruleGroups,omitempty"` + RuleSetType string `json:"ruleSetType"` + RuleSetVersion string `json:"ruleSetVersion"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlog.go new file mode 100644 index 000000000000..e1c8c7963630 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlog.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlogformatparameters.go new file mode 100644 index 000000000000..8e97873a7c39 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..7afcaba37f95 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_frontendipconfiguration.go new file mode 100644 index 000000000000..717217cc3a20 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package webapplicationfirewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..4f11b119df9f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..698c1c6a1b4f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_groupbyusersession.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_groupbyusersession.go new file mode 100644 index 000000000000..5995831381a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_groupbyusersession.go @@ -0,0 +1,8 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GroupByUserSession struct { + GroupByVariables []GroupByVariable `json:"groupByVariables"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_groupbyvariable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_groupbyvariable.go new file mode 100644 index 000000000000..132602a87584 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_groupbyvariable.go @@ -0,0 +1,8 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GroupByVariable struct { + VariableName ApplicationGatewayFirewallUserSessionVariable `json:"variableName"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_headervaluematcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_headervaluematcher.go new file mode 100644 index 000000000000..d88a3a6eea0b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_headervaluematcher.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HeaderValueMatcher struct { + IgnoreCase *bool `json:"ignoreCase,omitempty"` + Negate *bool `json:"negate,omitempty"` + Pattern *string `json:"pattern,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_inboundnatrule.go new file mode 100644 index 000000000000..f9908a651353 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..2ed26d6a6d00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfiguration.go new file mode 100644 index 000000000000..ee1ee9f9ce37 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..4467a2511820 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..4746cb9a9219 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..6455af984dfc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_iptag.go new file mode 100644 index 000000000000..da603122799b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_iptag.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..07977c08269a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..ca60fdf87350 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedrulegroupoverride.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedrulegroupoverride.go new file mode 100644 index 000000000000..2810e8e0e4d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedrulegroupoverride.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedRuleGroupOverride struct { + RuleGroupName string `json:"ruleGroupName"` + Rules *[]ManagedRuleOverride `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedruleoverride.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedruleoverride.go new file mode 100644 index 000000000000..6e7f1e811536 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedruleoverride.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedRuleOverride struct { + Action *ActionType `json:"action,omitempty"` + RuleId string `json:"ruleId"` + Sensitivity *SensitivityType `json:"sensitivity,omitempty"` + State *ManagedRuleEnabledState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedrulesdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedrulesdefinition.go new file mode 100644 index 000000000000..a975ea21235b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedrulesdefinition.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedRulesDefinition struct { + Exceptions *[]ExceptionEntry `json:"exceptions,omitempty"` + Exclusions *[]OwaspCrsExclusionEntry `json:"exclusions,omitempty"` + ManagedRuleSets []ManagedRuleSet `json:"managedRuleSets"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedruleset.go new file mode 100644 index 000000000000..2bbf971c7928 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedruleset.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedRuleSet struct { + RuleGroupOverrides *[]ManagedRuleGroupOverride `json:"ruleGroupOverrides,omitempty"` + RuleSetType string `json:"ruleSetType"` + RuleSetVersion string `json:"ruleSetVersion"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_matchcondition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_matchcondition.go new file mode 100644 index 000000000000..c8d3e722c759 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_matchcondition.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MatchCondition struct { + MatchValues []string `json:"matchValues"` + MatchVariables []MatchVariable `json:"matchVariables"` + NegationConditon *bool `json:"negationConditon,omitempty"` + Operator WebApplicationFirewallOperator `json:"operator"` + Transforms *[]WebApplicationFirewallTransform `json:"transforms,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_matchvariable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_matchvariable.go new file mode 100644 index 000000000000..bd0473317b2d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_matchvariable.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MatchVariable struct { + Selector *string `json:"selector,omitempty"` + VariableName WebApplicationFirewallMatchVariable `json:"variableName"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgateway.go new file mode 100644 index 000000000000..4a594a57232e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgateway.go @@ -0,0 +1,20 @@ +package webapplicationfirewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..30e0ed98075d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgatewaysku.go new file mode 100644 index 000000000000..01f9595dd478 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natruleportmapping.go new file mode 100644 index 000000000000..636fb66e30f9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterface.go new file mode 100644 index 000000000000..5f43f78eff13 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterface.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..2d9f1326e9a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..80650073a43c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..ed9c49c6aa36 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..db24b56da389 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..e24f37ad4e47 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..559fab4512db --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..d28ce56ff993 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networksecuritygroup.go new file mode 100644 index 000000000000..7edb20a30ebf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..63dfb0a37534 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_owaspcrsexclusionentry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_owaspcrsexclusionentry.go new file mode 100644 index 000000000000..447c5ce3185e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_owaspcrsexclusionentry.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OwaspCrsExclusionEntry struct { + ExclusionManagedRuleSets *[]ExclusionManagedRuleSet `json:"exclusionManagedRuleSets,omitempty"` + MatchVariable OwaspCrsExclusionEntryMatchVariable `json:"matchVariable"` + Selector string `json:"selector"` + SelectorMatchOperator OwaspCrsExclusionEntrySelectorMatchOperator `json:"selectorMatchOperator"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_policysettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_policysettings.go new file mode 100644 index 000000000000..a87e7c07bffc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_policysettings.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PolicySettings struct { + CustomBlockResponseBody *string `json:"customBlockResponseBody,omitempty"` + CustomBlockResponseStatusCode *int64 `json:"customBlockResponseStatusCode,omitempty"` + FileUploadEnforcement *bool `json:"fileUploadEnforcement,omitempty"` + FileUploadLimitInMb *int64 `json:"fileUploadLimitInMb,omitempty"` + JsChallengeCookieExpirationInMins *int64 `json:"jsChallengeCookieExpirationInMins,omitempty"` + LogScrubbing *PolicySettingsLogScrubbing `json:"logScrubbing,omitempty"` + MaxRequestBodySizeInKb *int64 `json:"maxRequestBodySizeInKb,omitempty"` + Mode *WebApplicationFirewallMode `json:"mode,omitempty"` + RequestBodyCheck *bool `json:"requestBodyCheck,omitempty"` + RequestBodyEnforcement *bool `json:"requestBodyEnforcement,omitempty"` + RequestBodyInspectLimitInKB *int64 `json:"requestBodyInspectLimitInKB,omitempty"` + State *WebApplicationFirewallEnabledState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_policysettingslogscrubbing.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_policysettingslogscrubbing.go new file mode 100644 index 000000000000..a97418be8671 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_policysettingslogscrubbing.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PolicySettingsLogScrubbing struct { + ScrubbingRules *[]WebApplicationFirewallScrubbingRules `json:"scrubbingRules,omitempty"` + State *WebApplicationFirewallScrubbingState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpoint.go new file mode 100644 index 000000000000..aabcb4ef3843 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpoint.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointconnection.go new file mode 100644 index 000000000000..c66bc0045c73 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..dbd38c8e4ca5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..86f24c803d30 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..f40d8cf2be4f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointproperties.go new file mode 100644 index 000000000000..93cab138813a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkservice.go new file mode 100644 index 000000000000..8b8ffdc399ee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..ac293dace51d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..164ef869982f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..3ea66cb99406 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..7d17f4661925 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..814df952c033 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..139f2159ef21 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddress.go new file mode 100644 index 000000000000..6f2116661f4e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddress.go @@ -0,0 +1,22 @@ +package webapplicationfirewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..c122bbf9d003 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..76e237783eff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddresssku.go new file mode 100644 index 000000000000..1b8495a46b06 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourcenavigationlink.go new file mode 100644 index 000000000000..8cf0d6ae7540 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..cfc65feb648a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourceset.go new file mode 100644 index 000000000000..7bd3ff7ff533 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourceset.go @@ -0,0 +1,8 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..700cf48fcefa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_route.go new file mode 100644 index 000000000000..854dbcba973c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_route.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routepropertiesformat.go new file mode 100644 index 000000000000..65879ed15ad3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routetable.go new file mode 100644 index 000000000000..73fdbc844dca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routetable.go @@ -0,0 +1,14 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..f7082dd7d4a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_securityrule.go new file mode 100644 index 000000000000..9a8c2e557c71 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_securityrule.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..d40d084432ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceassociationlink.go new file mode 100644 index 000000000000..9f75aeaec5b6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..abae149b7641 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..160d9aebc9f7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..ae5e0fd396a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..ac60c21f09b8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..34679603f3a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..aa5effcc1580 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..4a37ea44fea4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subnet.go new file mode 100644 index 000000000000..22ae6378be52 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subnet.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..a5152cfbfee8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subresource.go new file mode 100644 index 000000000000..f80e970be832 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subresource.go @@ -0,0 +1,8 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..fd4b0e7ec171 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..872500d56bf5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_virtualnetworktap.go new file mode 100644 index 000000000000..e2de0ca881d0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..418d09be3711 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallcustomrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallcustomrule.go new file mode 100644 index 000000000000..c66c12572535 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallcustomrule.go @@ -0,0 +1,17 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebApplicationFirewallCustomRule struct { + Action WebApplicationFirewallAction `json:"action"` + Etag *string `json:"etag,omitempty"` + GroupByUserSession *[]GroupByUserSession `json:"groupByUserSession,omitempty"` + MatchConditions []MatchCondition `json:"matchConditions"` + Name *string `json:"name,omitempty"` + Priority int64 `json:"priority"` + RateLimitDuration *ApplicationGatewayFirewallRateLimitDuration `json:"rateLimitDuration,omitempty"` + RateLimitThreshold *int64 `json:"rateLimitThreshold,omitempty"` + RuleType WebApplicationFirewallRuleType `json:"ruleType"` + State *WebApplicationFirewallState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallpolicy.go new file mode 100644 index 000000000000..c79f926a28c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallpolicy.go @@ -0,0 +1,14 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebApplicationFirewallPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *WebApplicationFirewallPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallpolicypropertiesformat.go new file mode 100644 index 000000000000..6379e40c5def --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallpolicypropertiesformat.go @@ -0,0 +1,16 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebApplicationFirewallPolicyPropertiesFormat struct { + ApplicationGatewayForContainers *[]ApplicationGatewayForContainersReferenceDefinition `json:"applicationGatewayForContainers,omitempty"` + ApplicationGateways *[]ApplicationGateway `json:"applicationGateways,omitempty"` + CustomRules *[]WebApplicationFirewallCustomRule `json:"customRules,omitempty"` + HTTPListeners *[]SubResource `json:"httpListeners,omitempty"` + ManagedRules ManagedRulesDefinition `json:"managedRules"` + PathBasedRules *[]SubResource `json:"pathBasedRules,omitempty"` + PolicySettings *PolicySettings `json:"policySettings,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceState *WebApplicationFirewallPolicyResourceState `json:"resourceState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallscrubbingrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallscrubbingrules.go new file mode 100644 index 000000000000..b3d3f6dd209d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallscrubbingrules.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebApplicationFirewallScrubbingRules struct { + MatchVariable ScrubbingRuleEntryMatchVariable `json:"matchVariable"` + Selector *string `json:"selector,omitempty"` + SelectorMatchOperator ScrubbingRuleEntryMatchOperator `json:"selectorMatchOperator"` + State *ScrubbingRuleEntryState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/predicates.go new file mode 100644 index 000000000000..a7973b0a14fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/predicates.go @@ -0,0 +1,37 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebApplicationFirewallPolicyOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p WebApplicationFirewallPolicyOperationPredicate) Matches(input WebApplicationFirewallPolicy) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/version.go new file mode 100644 index 000000000000..1a8ec9f2ba67 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/version.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/webapplicationfirewallpolicies/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/README.md similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/README.md index a0506600f837..d7a59c0519db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories` Documentation -The `webcategories` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). +The `webcategories` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/id_azurewebcategory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/id_azurewebcategory.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/id_azurewebcategory.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/id_azurewebcategory.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/method_listbysubscription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/method_listbysubscription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/method_listbysubscription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/model_azurewebcategory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/model_azurewebcategory.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/model_azurewebcategory.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/model_azurewebcategory.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/model_azurewebcategorypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/model_azurewebcategorypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/model_azurewebcategorypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/model_azurewebcategorypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/version.go similarity index 68% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/version.go index 0a9df0a65b7f..5c0b8e6f959f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/version.go @@ -3,8 +3,8 @@ package webcategories // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2023-11-01" +const defaultApiVersion = "2024-03-01" func userAgent() string { - return "hashicorp/go-azure-sdk/webcategories/2023-11-01" + return "hashicorp/go-azure-sdk/webcategories/2024-03-01" } diff --git a/vendor/modules.txt b/vendor/modules.txt index ca398351863e..4f685772442b 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -700,80 +700,43 @@ github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01 github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables @@ -782,32 +745,129 @@ github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityad github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01 +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors From a5274b997826c562c996a5558b444c4975d473bc Mon Sep 17 00:00:00 2001 From: neil-yechenwei Date: Thu, 24 Oct 2024 18:01:22 +0800 Subject: [PATCH 2/4] go mod --- .../2023-11-01/adminrulecollections/README.md | 86 -- .../2023-11-01/adminrulecollections/client.go | 26 - .../adminrulecollections/constants.go | 57 - .../adminrulecollections/id_rulecollection.go | 148 -- .../id_securityadminconfiguration.go | 139 -- .../method_createorupdate.go | 58 - .../adminrulecollections/method_delete.go | 100 -- .../adminrulecollections/method_get.go | 53 - .../adminrulecollections/method_list.go | 134 -- .../model_adminrulecollection.go | 17 - ...del_adminrulecollectionpropertiesformat.go | 11 - .../model_networkmanagersecuritygroupitem.go | 8 - .../adminrulecollections/predicates.go | 32 - .../adminrulecollections/version.go | 10 - .../network/2023-11-01/adminrules/README.md | 86 -- .../network/2023-11-01/adminrules/client.go | 26 - .../2023-11-01/adminrules/constants.go | 277 ---- .../network/2023-11-01/adminrules/id_rule.go | 157 -- .../adminrules/id_rulecollection.go | 148 -- .../adminrules/method_createorupdate.go | 63 - .../2023-11-01/adminrules/method_delete.go | 100 -- .../2023-11-01/adminrules/method_get.go | 58 - .../2023-11-01/adminrules/method_list.go | 117 -- .../adminrules/model_addressprefixitem.go | 9 - .../adminrules/model_adminpropertiesformat.go | 18 - .../2023-11-01/adminrules/model_adminrule.go | 62 - .../adminrules/model_baseadminrule.go | 90 -- .../model_defaultadminpropertiesformat.go | 19 - .../adminrules/model_defaultadminrule.go | 62 - .../2023-11-01/adminrules/predicates.go | 12 - .../network/2023-11-01/adminrules/version.go | 10 - .../applicationsecuritygroups/README.md | 121 -- .../applicationsecuritygroups/client.go | 26 - .../applicationsecuritygroups/constants.go | 57 - .../id_applicationsecuritygroup.go | 130 -- .../method_createorupdate.go | 75 - .../method_delete.go | 71 - .../applicationsecuritygroups/method_get.go | 53 - .../applicationsecuritygroups/method_list.go | 106 -- .../method_listall.go | 106 -- .../method_updatetags.go | 57 - .../model_applicationsecuritygroup.go | 14 - ...pplicationsecuritygrouppropertiesformat.go | 9 - .../model_tagsobject.go | 8 - .../applicationsecuritygroups/predicates.go | 37 - .../applicationsecuritygroups/version.go | 10 - .../2023-11-01/azurefirewalls/README.md | 146 -- .../2023-11-01/azurefirewalls/client.go | 26 - .../2023-11-01/azurefirewalls/constants.go | 412 ------ .../azurefirewalls/id_azurefirewall.go | 130 -- ...ethod_azurefirewallslistlearnedprefixes.go | 71 - .../azurefirewalls/method_createorupdate.go | 75 - .../azurefirewalls/method_delete.go | 71 - .../2023-11-01/azurefirewalls/method_get.go | 53 - .../2023-11-01/azurefirewalls/method_list.go | 106 -- .../azurefirewalls/method_listall.go | 106 -- .../azurefirewalls/method_packetcapture.go | 73 - .../azurefirewalls/method_updatetags.go | 75 - .../azurefirewalls/model_azurefirewall.go | 19 - .../model_azurefirewallapplicationrule.go | 14 - ..._azurefirewallapplicationrulecollection.go | 11 - ...plicationrulecollectionpropertiesformat.go | 11 - ...el_azurefirewallapplicationruleprotocol.go | 9 - .../model_azurefirewallipconfiguration.go | 12 - ...firewallipconfigurationpropertiesformat.go | 11 - .../model_azurefirewallipgroups.go | 9 - .../model_azurefirewallnatrcaction.go | 8 - .../model_azurefirewallnatrule.go | 17 - .../model_azurefirewallnatrulecollection.go | 11 - ...zurefirewallnatrulecollectionproperties.go | 11 - .../model_azurefirewallnetworkrule.go | 16 - ...odel_azurefirewallnetworkrulecollection.go | 11 - ...llnetworkrulecollectionpropertiesformat.go | 11 - .../model_azurefirewallpacketcaptureflags.go | 8 - .../model_azurefirewallpacketcapturerule.go | 10 - .../model_azurefirewallpropertiesformat.go | 20 - .../model_azurefirewallpublicipaddress.go | 8 - .../model_azurefirewallrcaction.go | 8 - .../azurefirewalls/model_azurefirewallsku.go | 9 - .../model_firewallpacketcaptureparameters.go | 9 - ...l_firewallpacketcaptureparametersformat.go | 14 - .../azurefirewalls/model_hubipaddresses.go | 9 - .../model_hubpublicipaddresses.go | 9 - .../azurefirewalls/model_ipprefixeslist.go | 8 - .../azurefirewalls/model_subresource.go | 8 - .../azurefirewalls/model_tagsobject.go | 8 - .../2023-11-01/azurefirewalls/predicates.go | 37 - .../2023-11-01/azurefirewalls/version.go | 10 - .../2023-11-01/connectionmonitors/README.md | 138 -- .../2023-11-01/connectionmonitors/client.go | 26 - .../connectionmonitors/constants.go | 773 ---------- .../id_connectionmonitor.go | 139 -- .../connectionmonitors/id_networkwatcher.go | 130 -- .../method_createorupdate.go | 104 -- .../connectionmonitors/method_delete.go | 70 - .../connectionmonitors/method_get.go | 53 - .../connectionmonitors/method_list.go | 54 - .../connectionmonitors/method_query.go | 71 - .../connectionmonitors/method_start.go | 70 - .../connectionmonitors/method_stop.go | 70 - .../connectionmonitors/method_updatetags.go | 57 - .../model_connectionmonitor.go | 10 - .../model_connectionmonitordestination.go | 10 - .../model_connectionmonitorendpoint.go | 16 - .../model_connectionmonitorendpointfilter.go | 9 - ...del_connectionmonitorendpointfilteritem.go | 9 - ...onnectionmonitorendpointlocationdetails.go | 8 - .../model_connectionmonitorendpointscope.go | 9 - ...odel_connectionmonitorendpointscopeitem.go | 8 - ...odel_connectionmonitorhttpconfiguration.go | 13 - ...odel_connectionmonitoricmpconfiguration.go | 8 - .../model_connectionmonitorlistresult.go | 8 - .../model_connectionmonitoroutput.go | 9 - .../model_connectionmonitorparameters.go | 16 - .../model_connectionmonitorqueryresult.go | 9 - .../model_connectionmonitorresult.go | 14 - ...model_connectionmonitorresultproperties.go | 38 - .../model_connectionmonitorsource.go | 9 - ...model_connectionmonitorsuccessthreshold.go | 9 - ...model_connectionmonitortcpconfiguration.go | 10 - ...odel_connectionmonitortestconfiguration.go | 15 - .../model_connectionmonitortestgroup.go | 12 - ...odel_connectionmonitorworkspacesettings.go | 8 - .../model_connectionstatesnapshot.go | 47 - .../model_connectivityhop.go | 16 - .../model_connectivityissue.go | 11 - .../connectionmonitors/model_hoplink.go | 13 - .../model_hoplinkproperties.go | 10 - .../connectionmonitors/model_httpheader.go | 9 - .../connectionmonitors/model_tagsobject.go | 8 - .../2023-11-01/connectionmonitors/version.go | 10 - .../connectivityconfigurations/README.md | 86 -- .../connectivityconfigurations/client.go | 26 - .../connectivityconfigurations/constants.go | 262 ---- .../id_connectivityconfiguration.go | 139 -- .../id_networkmanager.go | 130 -- .../method_createorupdate.go | 58 - .../method_delete.go | 100 -- .../connectivityconfigurations/method_get.go | 53 - .../connectivityconfigurations/method_list.go | 134 -- .../model_connectivityconfiguration.go | 17 - ...del_connectivityconfigurationproperties.go | 15 - .../model_connectivitygroupitem.go | 11 - .../connectivityconfigurations/model_hub.go | 9 - .../connectivityconfigurations/predicates.go | 32 - .../connectivityconfigurations/version.go | 10 - .../2023-11-01/customipprefixes/README.md | 121 -- .../2023-11-01/customipprefixes/client.go | 26 - .../2023-11-01/customipprefixes/constants.go | 222 --- .../customipprefixes/id_customipprefix.go | 130 -- .../customipprefixes/method_createorupdate.go | 75 - .../customipprefixes/method_delete.go | 71 - .../2023-11-01/customipprefixes/method_get.go | 83 -- .../customipprefixes/method_list.go | 106 -- .../customipprefixes/method_listall.go | 106 -- .../customipprefixes/method_updatetags.go | 57 - .../customipprefixes/model_customipprefix.go | 21 - .../model_customipprefixpropertiesformat.go | 22 - .../customipprefixes/model_subresource.go | 8 - .../customipprefixes/model_tagsobject.go | 8 - .../2023-11-01/customipprefixes/predicates.go | 37 - .../2023-11-01/customipprefixes/version.go | 10 - .../2023-11-01/ddosprotectionplans/README.md | 121 -- .../2023-11-01/ddosprotectionplans/client.go | 26 - .../ddosprotectionplans/constants.go | 57 - .../id_ddosprotectionplan.go | 130 -- .../method_createorupdate.go | 75 - .../ddosprotectionplans/method_delete.go | 71 - .../ddosprotectionplans/method_get.go | 53 - .../ddosprotectionplans/method_list.go | 106 -- .../method_listbyresourcegroup.go | 106 -- .../ddosprotectionplans/method_updatetags.go | 57 - .../model_ddosprotectionplan.go | 14 - ...odel_ddosprotectionplanpropertiesformat.go | 11 - .../ddosprotectionplans/model_subresource.go | 8 - .../ddosprotectionplans/model_tagsobject.go | 8 - .../ddosprotectionplans/predicates.go | 37 - .../2023-11-01/ddosprotectionplans/version.go | 10 - .../README.md | 82 - .../client.go | 26 - .../constants.go | 98 -- .../id_authorization.go | 139 -- .../id_expressroutecircuit.go | 130 -- .../method_createorupdate.go | 75 - .../method_delete.go | 71 - .../method_get.go | 53 - .../method_list.go | 105 -- .../model_authorizationpropertiesformat.go | 10 - .../model_expressroutecircuitauthorization.go | 12 - .../predicates.go | 32 - .../version.go | 10 - .../expressroutecircuitconnections/README.md | 83 -- .../expressroutecircuitconnections/client.go | 26 - .../constants.go | 101 -- .../id_peeringconnection.go | 148 -- .../method_createorupdate.go | 75 - .../method_delete.go | 71 - .../method_get.go | 53 - .../method_list.go | 106 -- .../model_expressroutecircuitconnection.go | 12 - ...sroutecircuitconnectionpropertiesformat.go | 14 - .../model_ipv6circuitconnectionconfig.go | 9 - .../model_subresource.go | 8 - .../predicates.go | 32 - .../expressroutecircuitconnections/version.go | 10 - .../expressroutecircuitpeerings/README.md | 83 -- .../expressroutecircuitpeerings/client.go | 26 - .../expressroutecircuitpeerings/constants.go | 274 ---- .../id_expressroutecircuit.go | 130 -- .../method_createorupdate.go | 76 - .../method_delete.go | 72 - .../expressroutecircuitpeerings/method_get.go | 54 - .../method_list.go | 105 -- .../model_expressroutecircuitconnection.go | 12 - ...sroutecircuitconnectionpropertiesformat.go | 14 - .../model_expressroutecircuitpeering.go | 12 - .../model_expressroutecircuitpeeringconfig.go | 13 - ...ressroutecircuitpeeringpropertiesformat.go | 27 - .../model_expressroutecircuitstats.go | 11 - .../model_expressrouteconnectionid.go | 8 - .../model_ipv6circuitconnectionconfig.go | 9 - ...el_ipv6expressroutecircuitpeeringconfig.go | 12 - ...model_peerexpressroutecircuitconnection.go | 12 - ...sroutecircuitconnectionpropertiesformat.go | 14 - .../model_subresource.go | 8 - .../expressroutecircuitpeerings/predicates.go | 32 - .../expressroutecircuitpeerings/version.go | 10 - .../expressrouteconnections/README.md | 81 - .../expressrouteconnections/client.go | 26 - .../expressrouteconnections/constants.go | 98 -- .../id_expressrouteconnection.go | 139 -- .../id_expressroutegateway.go | 130 -- .../method_createorupdate.go | 75 - .../expressrouteconnections/method_delete.go | 71 - .../expressrouteconnections/method_get.go | 53 - .../expressrouteconnections/method_list.go | 54 - .../model_expressroutecircuitpeeringid.go | 8 - .../model_expressrouteconnection.go | 10 - .../model_expressrouteconnectionlist.go | 8 - .../model_expressrouteconnectionproperties.go | 15 - .../model_propagatedroutetable.go | 9 - .../model_routingconfiguration.go | 12 - .../model_staticroute.go | 10 - .../model_staticroutesconfig.go | 9 - .../model_subresource.go | 8 - .../model_vnetroute.go | 10 - .../expressrouteconnections/version.go | 10 - .../expressrouteportauthorizations/README.md | 82 - .../expressrouteportauthorizations/client.go | 26 - .../constants.go | 98 -- .../id_expressrouteport.go | 130 -- .../id_expressrouteportauthorization.go | 139 -- .../method_createorupdate.go | 75 - .../method_delete.go | 71 - .../method_get.go | 53 - .../method_list.go | 105 -- .../model_expressrouteportauthorization.go | 12 - ...srouteportauthorizationpropertiesformat.go | 11 - .../predicates.go | 32 - .../expressrouteportauthorizations/version.go | 10 - .../README.md | 82 - .../client.go | 26 - .../constants.go | 309 ---- .../id_firewallpolicy.go | 130 -- .../id_rulecollectiongroup.go | 139 -- .../method_createorupdate.go | 75 - .../method_delete.go | 71 - .../method_get.go | 53 - .../method_list.go | 105 -- .../model_applicationrule.go | 63 - ...odel_firewallpolicyfilterrulecollection.go | 98 -- ...irewallpolicyfilterrulecollectionaction.go | 8 - .../model_firewallpolicyhttpheadertoinsert.go | 9 - .../model_firewallpolicynatrulecollection.go | 98 -- ...l_firewallpolicynatrulecollectionaction.go | 8 - .../model_firewallpolicyrule.go | 93 -- ...l_firewallpolicyruleapplicationprotocol.go | 9 - .../model_firewallpolicyrulecollection.go | 85 -- ...model_firewallpolicyrulecollectiongroup.go | 12 - ...wallpolicyrulecollectiongroupproperties.go | 57 - .../model_natrule.go | 61 - .../model_networkrule.go | 60 - .../predicates.go | 32 - .../version.go | 10 - .../network/2023-11-01/flowlogs/README.md | 103 -- .../network/2023-11-01/flowlogs/client.go | 26 - .../network/2023-11-01/flowlogs/constants.go | 95 -- .../network/2023-11-01/flowlogs/id_flowlog.go | 139 -- .../2023-11-01/flowlogs/id_networkwatcher.go | 130 -- .../flowlogs/method_createorupdate.go | 75 - .../2023-11-01/flowlogs/method_delete.go | 70 - .../network/2023-11-01/flowlogs/method_get.go | 53 - .../2023-11-01/flowlogs/method_list.go | 105 -- .../2023-11-01/flowlogs/method_updatetags.go | 57 - .../2023-11-01/flowlogs/model_flowlog.go | 14 - .../flowlogs/model_flowlogformatparameters.go | 9 - .../flowlogs/model_flowlogpropertiesformat.go | 15 - .../model_retentionpolicyparameters.go | 9 - .../2023-11-01/flowlogs/model_tagsobject.go | 8 - ...trafficanalyticsconfigurationproperties.go | 12 - .../model_trafficanalyticsproperties.go | 8 - .../network/2023-11-01/flowlogs/predicates.go | 37 - .../network/2023-11-01/flowlogs/version.go | 10 - .../network/2023-11-01/ipgroups/README.md | 121 -- .../network/2023-11-01/ipgroups/client.go | 26 - .../network/2023-11-01/ipgroups/constants.go | 57 - .../network/2023-11-01/ipgroups/id_ipgroup.go | 130 -- .../ipgroups/method_createorupdate.go | 75 - .../2023-11-01/ipgroups/method_delete.go | 71 - .../network/2023-11-01/ipgroups/method_get.go | 83 -- .../2023-11-01/ipgroups/method_list.go | 106 -- .../ipgroups/method_listbyresourcegroup.go | 106 -- .../ipgroups/method_updategroups.go | 57 - .../2023-11-01/ipgroups/model_ipgroup.go | 14 - .../ipgroups/model_ipgrouppropertiesformat.go | 11 - .../2023-11-01/ipgroups/model_subresource.go | 8 - .../2023-11-01/ipgroups/model_tagsobject.go | 8 - .../network/2023-11-01/ipgroups/predicates.go | 37 - .../network/2023-11-01/ipgroups/version.go | 10 - .../network/2023-11-01/natgateways/README.md | 121 -- .../network/2023-11-01/natgateways/client.go | 26 - .../2023-11-01/natgateways/constants.go | 95 -- .../2023-11-01/natgateways/id_natgateway.go | 130 -- .../natgateways/method_createorupdate.go | 76 - .../2023-11-01/natgateways/method_delete.go | 71 - .../2023-11-01/natgateways/method_get.go | 83 -- .../2023-11-01/natgateways/method_list.go | 106 -- .../2023-11-01/natgateways/method_listall.go | 106 -- .../natgateways/method_updatetags.go | 57 - .../natgateways/model_natgateway.go | 20 - .../model_natgatewaypropertiesformat.go | 13 - .../natgateways/model_natgatewaysku.go | 8 - .../natgateways/model_subresource.go | 8 - .../natgateways/model_tagsobject.go | 8 - .../2023-11-01/natgateways/predicates.go | 37 - .../network/2023-11-01/natgateways/version.go | 10 - .../2023-11-01/networkgroups/README.md | 86 -- .../2023-11-01/networkgroups/client.go | 26 - .../2023-11-01/networkgroups/constants.go | 57 - .../networkgroups/id_networkgroup.go | 139 -- .../networkgroups/id_networkmanager.go | 130 -- .../networkgroups/method_createorupdate.go | 88 -- .../2023-11-01/networkgroups/method_delete.go | 100 -- .../2023-11-01/networkgroups/method_get.go | 53 - .../2023-11-01/networkgroups/method_list.go | 134 -- .../networkgroups/model_networkgroup.go | 17 - .../model_networkgroupproperties.go | 10 - .../2023-11-01/networkgroups/predicates.go | 32 - .../2023-11-01/networkgroups/version.go | 10 - .../networkmanagerconnections/README.md | 161 -- .../networkmanagerconnections/client.go | 26 - .../networkmanagerconnections/constants.go | 60 - .../id_networkmanagerconnection.go | 121 -- .../id_providers2networkmanagerconnection.go | 123 -- ...networkmanagerconnectionscreateorupdate.go | 58 - ...entgroupnetworkmanagerconnectionsdelete.go | 47 - ...gementgroupnetworkmanagerconnectionsget.go | 53 - ...ementgroupnetworkmanagerconnectionslist.go | 135 -- ...networkmanagerconnectionscreateorupdate.go | 58 - ...criptionnetworkmanagerconnectionsdelete.go | 47 - ...ubscriptionnetworkmanagerconnectionsget.go | 53 - ...bscriptionnetworkmanagerconnectionslist.go | 135 -- .../model_networkmanagerconnection.go | 17 - ...odel_networkmanagerconnectionproperties.go | 10 - .../networkmanagerconnections/predicates.go | 32 - .../networkmanagerconnections/version.go | 10 - .../2023-11-01/networkmanagers/README.md | 163 -- .../2023-11-01/networkmanagers/client.go | 26 - .../2023-11-01/networkmanagers/constants.go | 145 -- .../networkmanagers/id_networkmanager.go | 130 -- .../networkmanagers/method_createorupdate.go | 58 - .../networkmanagers/method_delete.go | 100 -- .../2023-11-01/networkmanagers/method_get.go | 53 - .../2023-11-01/networkmanagers/method_list.go | 135 -- .../method_listbysubscription.go | 135 -- .../method_networkmanagercommitspost.go | 75 - ...thod_networkmanagerdeploymentstatuslist.go | 58 - .../networkmanagers/method_patch.go | 57 - .../model_crosstenantscopes.go | 10 - .../networkmanagers/model_networkmanager.go | 19 - .../model_networkmanagercommit.go | 11 - .../model_networkmanagerdeploymentstatus.go | 31 - ...etworkmanagerdeploymentstatuslistresult.go | 9 - ...networkmanagerdeploymentstatusparameter.go | 10 - .../model_networkmanagerproperties.go | 12 - ...rkmanagerpropertiesnetworkmanagerscopes.go | 10 - .../networkmanagers/model_patchobject.go | 8 - .../2023-11-01/networkmanagers/predicates.go | 37 - .../2023-11-01/networkmanagers/version.go | 10 - .../2023-11-01/networkprofiles/README.md | 125 -- .../2023-11-01/networkprofiles/client.go | 26 - .../2023-11-01/networkprofiles/constants.go | 1198 --------------- .../networkprofiles/id_networkprofile.go | 130 -- .../networkprofiles/method_createorupdate.go | 58 - .../networkprofiles/method_delete.go | 71 - .../2023-11-01/networkprofiles/method_get.go | 83 -- .../2023-11-01/networkprofiles/method_list.go | 106 -- .../networkprofiles/method_listall.go | 106 -- .../networkprofiles/method_updatetags.go | 57 - .../model_applicationgatewaybackendaddress.go | 9 - ...el_applicationgatewaybackendaddresspool.go | 12 - ...tewaybackendaddresspoolpropertiesformat.go | 10 - ...model_applicationgatewayipconfiguration.go | 12 - ...ngatewayipconfigurationpropertiesformat.go | 9 - .../model_applicationsecuritygroup.go | 14 - ...pplicationsecuritygrouppropertiesformat.go | 9 - .../model_backendaddresspool.go | 12 - ...odel_backendaddresspoolpropertiesformat.go | 19 - .../model_containernetworkinterface.go | 12 - ..._containernetworkinterfaceconfiguration.go | 12 - ...kinterfaceconfigurationpropertiesformat.go | 10 - ...ontainernetworkinterfaceipconfiguration.go | 11 - ...nterfaceipconfigurationpropertiesformat.go | 8 - ...ntainernetworkinterfacepropertiesformat.go | 11 - .../model_customdnsconfigpropertiesformat.go | 9 - .../networkprofiles/model_ddossettings.go | 9 - .../networkprofiles/model_delegation.go | 12 - .../networkprofiles/model_flowlog.go | 14 - .../model_flowlogformatparameters.go | 9 - .../model_flowlogpropertiesformat.go | 15 - .../model_frontendipconfiguration.go | 17 - ...frontendipconfigurationpropertiesformat.go | 19 - ...odel_gatewayloadbalancertunnelinterface.go | 11 - .../networkprofiles/model_inboundnatrule.go | 12 - .../model_inboundnatrulepropertiesformat.go | 19 - .../networkprofiles/model_ipconfiguration.go | 11 - .../model_ipconfigurationprofile.go | 12 - ..._ipconfigurationprofilepropertiesformat.go | 9 - .../model_ipconfigurationpropertiesformat.go | 12 - .../2023-11-01/networkprofiles/model_iptag.go | 9 - .../model_loadbalancerbackendaddress.go | 9 - ...dbalancerbackendaddresspropertiesformat.go | 14 - .../networkprofiles/model_natgateway.go | 20 - .../model_natgatewaypropertiesformat.go | 13 - .../networkprofiles/model_natgatewaysku.go | 8 - .../model_natruleportmapping.go | 10 - .../networkprofiles/model_networkinterface.go | 19 - .../model_networkinterfacednssettings.go | 12 - .../model_networkinterfaceipconfiguration.go | 12 - ...gurationprivatelinkconnectionproperties.go | 10 - ...nterfaceipconfigurationpropertiesformat.go | 22 - .../model_networkinterfacepropertiesformat.go | 29 - .../model_networkinterfacetapconfiguration.go | 12 - ...terfacetapconfigurationpropertiesformat.go | 9 - .../networkprofiles/model_networkprofile.go | 14 - .../model_networkprofilepropertiesformat.go | 11 - .../model_networksecuritygroup.go | 14 - ...el_networksecuritygrouppropertiesformat.go | 15 - .../networkprofiles/model_privateendpoint.go | 19 - .../model_privateendpointconnection.go | 12 - ...del_privateendpointconnectionproperties.go | 12 - .../model_privateendpointipconfiguration.go | 11 - ...rivateendpointipconfigurationproperties.go | 10 - .../model_privateendpointproperties.go | 16 - .../model_privatelinkservice.go | 19 - .../model_privatelinkserviceconnection.go | 12 - ..._privatelinkserviceconnectionproperties.go | 12 - ...model_privatelinkserviceconnectionstate.go | 10 - ...model_privatelinkserviceipconfiguration.go | 12 - ...atelinkserviceipconfigurationproperties.go | 13 - .../model_privatelinkserviceproperties.go | 17 - .../networkprofiles/model_publicipaddress.go | 22 - .../model_publicipaddressdnssettings.go | 11 - .../model_publicipaddresspropertiesformat.go | 23 - .../model_publicipaddresssku.go | 9 - .../model_resourcenavigationlink.go | 12 - .../model_resourcenavigationlinkformat.go | 10 - .../networkprofiles/model_resourceset.go | 8 - .../model_retentionpolicyparameters.go | 9 - .../2023-11-01/networkprofiles/model_route.go | 12 - .../model_routepropertiesformat.go | 12 - .../networkprofiles/model_routetable.go | 14 - .../model_routetablepropertiesformat.go | 12 - .../networkprofiles/model_securityrule.go | 12 - .../model_securityrulepropertiesformat.go | 23 - .../model_serviceassociationlink.go | 12 - ..._serviceassociationlinkpropertiesformat.go | 12 - ...model_servicedelegationpropertiesformat.go | 10 - .../model_serviceendpointpolicy.go | 15 - .../model_serviceendpointpolicydefinition.go | 12 - ...ndpointpolicydefinitionpropertiesformat.go | 11 - ...l_serviceendpointpolicypropertiesformat.go | 13 - .../model_serviceendpointpropertiesformat.go | 10 - .../networkprofiles/model_subnet.go | 12 - .../model_subnetpropertiesformat.go | 28 - .../networkprofiles/model_subresource.go | 8 - .../networkprofiles/model_tagsobject.go | 8 - ...trafficanalyticsconfigurationproperties.go | 12 - .../model_trafficanalyticsproperties.go | 8 - .../model_virtualnetworktap.go | 14 - ...model_virtualnetworktappropertiesformat.go | 13 - .../2023-11-01/networkprofiles/predicates.go | 37 - .../2023-11-01/networkprofiles/version.go | 10 - .../networkvirtualappliances/README.md | 155 -- .../networkvirtualappliances/client.go | 26 - .../networkvirtualappliances/constants.go | 224 --- .../id_inboundsecurityrule.go | 139 -- .../id_networkvirtualappliance.go | 130 -- .../method_createorupdate.go | 75 - .../networkvirtualappliances/method_delete.go | 71 - .../networkvirtualappliances/method_get.go | 83 -- ...ethod_inboundsecurityrulecreateorupdate.go | 75 - .../networkvirtualappliances/method_list.go | 106 -- .../method_listbyresourcegroup.go | 106 -- .../method_restart.go | 75 - .../method_updatetags.go | 57 - .../model_delegationproperties.go | 9 - .../model_inboundsecurityrule.go | 12 - .../model_inboundsecurityruleproperties.go | 10 - .../model_inboundsecurityrules.go | 13 - ...odel_internetingresspublicipsproperties.go | 8 - .../model_networkvirtualappliance.go | 19 - ...odel_networkvirtualapplianceinstanceids.go | 8 - ...networkvirtualappliancepropertiesformat.go | 26 - ...appliancepropertiesformatnetworkprofile.go | 8 - .../model_partnermanagedresourceproperties.go | 10 - .../model_subresource.go | 8 - .../model_tagsobject.go | 8 - ...virtualapplianceadditionalnicproperties.go | 9 - .../model_virtualapplianceipconfiguration.go | 9 - ...rtualapplianceipconfigurationproperties.go | 8 - ...lappliancenetworkinterfaceconfiguration.go | 9 - ...networkinterfaceconfigurationproperties.go | 8 - .../model_virtualappliancenicproperties.go | 12 - .../model_virtualapplianceskuproperties.go | 10 - .../networkvirtualappliances/predicates.go | 37 - .../networkvirtualappliances/version.go | 10 - .../2023-11-01/networkwatchers/README.md | 331 ----- .../2023-11-01/networkwatchers/client.go | 26 - .../2023-11-01/networkwatchers/constants.go | 855 ----------- .../networkwatchers/id_networkwatcher.go | 130 -- .../method_checkconnectivity.go | 75 - .../networkwatchers/method_createorupdate.go | 58 - .../networkwatchers/method_delete.go | 70 - .../2023-11-01/networkwatchers/method_get.go | 53 - .../method_getazurereachabilityreport.go | 75 - .../method_getflowlogstatus.go | 75 - ...ethod_getnetworkconfigurationdiagnostic.go | 75 - .../networkwatchers/method_getnexthop.go | 75 - .../networkwatchers/method_gettopology.go | 58 - .../method_gettroubleshooting.go | 75 - .../method_gettroubleshootingresult.go | 75 - .../method_getvmsecurityrules.go | 75 - .../2023-11-01/networkwatchers/method_list.go | 55 - .../networkwatchers/method_listall.go | 55 - .../method_listavailableproviders.go | 75 - .../method_setflowlogconfiguration.go | 75 - .../networkwatchers/method_updatetags.go | 57 - .../networkwatchers/method_verifyipflow.go | 75 - .../model_applicationsecuritygroup.go | 14 - ...pplicationsecuritygrouppropertiesformat.go | 9 - .../model_availableproviderslist.go | 8 - .../model_availableproviderslistcity.go | 9 - .../model_availableproviderslistcountry.go | 10 - .../model_availableproviderslistparameters.go | 11 - .../model_availableprovidersliststate.go | 10 - .../model_azurereachabilityreport.go | 10 - .../model_azurereachabilityreportitem.go | 10 - ...odel_azurereachabilityreportlatencyinfo.go | 27 - .../model_azurereachabilityreportlocation.go | 10 - ...model_azurereachabilityreportparameters.go | 36 - .../model_connectivitydestination.go | 10 - .../networkwatchers/model_connectivityhop.go | 16 - .../model_connectivityinformation.go | 14 - .../model_connectivityissue.go | 11 - .../model_connectivityparameters.go | 12 - .../model_connectivitysource.go | 9 - .../model_effectivenetworksecurityrule.go | 22 - .../model_evaluatednetworksecuritygroup.go | 11 - .../model_flowlogformatparameters.go | 9 - .../model_flowloginformation.go | 10 - .../model_flowlogproperties.go | 11 - .../model_flowlogstatusparameters.go | 8 - .../networkwatchers/model_hoplink.go | 13 - .../model_hoplinkproperties.go | 10 - .../model_httpconfiguration.go | 10 - .../networkwatchers/model_httpheader.go | 9 - .../networkwatchers/model_matchedrule.go | 9 - ...etworkconfigurationdiagnosticparameters.go | 10 - ...l_networkconfigurationdiagnosticprofile.go | 12 - ..._networkconfigurationdiagnosticresponse.go | 8 - ...el_networkconfigurationdiagnosticresult.go | 9 - .../model_networkinterfaceassociation.go | 9 - .../model_networksecuritygroupresult.go | 9 - ...el_networksecurityrulesevaluationresult.go | 13 - .../networkwatchers/model_networkwatcher.go | 14 - .../model_networkwatcherlistresult.go | 8 - .../model_networkwatcherpropertiesformat.go | 8 - .../model_nexthopparameters.go | 11 - .../networkwatchers/model_nexthopresult.go | 10 - .../model_protocolconfiguration.go | 8 - .../model_querytroubleshootingparameters.go | 8 - .../model_retentionpolicyparameters.go | 9 - .../model_securitygroupnetworkinterface.go | 9 - .../model_securitygroupviewparameters.go | 8 - .../model_securitygroupviewresult.go | 8 - .../networkwatchers/model_securityrule.go | 12 - .../model_securityruleassociations.go | 11 - .../model_securityrulepropertiesformat.go | 23 - .../model_subnetassociation.go | 9 - .../networkwatchers/model_subresource.go | 8 - .../networkwatchers/model_tagsobject.go | 8 - .../networkwatchers/model_topology.go | 41 - .../model_topologyassociation.go | 10 - .../model_topologyparameters.go | 10 - .../networkwatchers/model_topologyresource.go | 11 - ...trafficanalyticsconfigurationproperties.go | 12 - .../model_trafficanalyticsproperties.go | 8 - .../model_troubleshootingdetails.go | 12 - .../model_troubleshootingparameters.go | 9 - .../model_troubleshootingproperties.go | 9 - ...model_troubleshootingrecommendedactions.go | 11 - .../model_troubleshootingresult.go | 41 - .../model_verificationipflowparameters.go | 15 - .../model_verificationipflowresult.go | 9 - .../2023-11-01/networkwatchers/version.go | 10 - .../2023-11-01/packetcaptures/README.md | 105 -- .../2023-11-01/packetcaptures/client.go | 26 - .../2023-11-01/packetcaptures/constants.go | 242 --- .../packetcaptures/id_networkwatcher.go | 130 -- .../packetcaptures/id_packetcapture.go | 139 -- .../packetcaptures/method_create.go | 74 - .../packetcaptures/method_delete.go | 70 - .../2023-11-01/packetcaptures/method_get.go | 53 - .../packetcaptures/method_getstatus.go | 71 - .../2023-11-01/packetcaptures/method_list.go | 54 - .../2023-11-01/packetcaptures/method_stop.go | 70 - .../packetcaptures/model_packetcapture.go | 8 - .../model_packetcapturefilter.go | 12 - .../model_packetcapturelistresult.go | 8 - .../model_packetcapturemachinescope.go | 9 - .../model_packetcaptureparameters.go | 17 - .../model_packetcapturequerystatusresult.go | 31 - .../model_packetcaptureresult.go | 11 - .../model_packetcaptureresultproperties.go | 18 - .../model_packetcapturesettings.go | 10 - .../model_packetcapturestoragelocation.go | 11 - .../2023-11-01/packetcaptures/version.go | 10 - .../2023-11-01/privatednszonegroups/README.md | 82 - .../2023-11-01/privatednszonegroups/client.go | 26 - .../privatednszonegroups/constants.go | 57 - .../id_privatednszonegroup.go | 139 -- .../id_privateendpoint.go | 130 -- .../method_createorupdate.go | 75 - .../privatednszonegroups/method_delete.go | 71 - .../privatednszonegroups/method_get.go | 53 - .../privatednszonegroups/method_list.go | 105 -- .../model_privatednszoneconfig.go | 9 - .../model_privatednszonegroup.go | 11 - ...del_privatednszonegrouppropertiesformat.go | 9 - .../model_privatednszonepropertiesformat.go | 9 - .../privatednszonegroups/model_recordset.go | 13 - .../privatednszonegroups/predicates.go | 27 - .../privatednszonegroups/version.go | 10 - .../2023-11-01/privateendpoints/README.md | 134 -- .../2023-11-01/privateendpoints/client.go | 26 - .../2023-11-01/privateendpoints/constants.go | 1198 --------------- .../privateendpoints/id_location.go | 121 -- .../privateendpoints/id_privateendpoint.go | 130 -- .../privateendpoints/id_providerlocation.go | 130 -- ...ethod_availableprivateendpointtypeslist.go | 105 -- ...privateendpointtypeslistbyresourcegroup.go | 105 -- .../privateendpoints/method_createorupdate.go | 75 - .../privateendpoints/method_delete.go | 71 - .../2023-11-01/privateendpoints/method_get.go | 83 -- .../privateendpoints/method_list.go | 106 -- .../method_listbysubscription.go | 106 -- .../model_applicationgatewaybackendaddress.go | 9 - ...el_applicationgatewaybackendaddresspool.go | 12 - ...tewaybackendaddresspoolpropertiesformat.go | 10 - ...model_applicationgatewayipconfiguration.go | 12 - ...ngatewayipconfigurationpropertiesformat.go | 9 - .../model_applicationsecuritygroup.go | 14 - ...pplicationsecuritygrouppropertiesformat.go | 9 - .../model_availableprivateendpointtype.go | 12 - .../model_backendaddresspool.go | 12 - ...odel_backendaddresspoolpropertiesformat.go | 19 - .../model_customdnsconfigpropertiesformat.go | 9 - .../privateendpoints/model_ddossettings.go | 9 - .../privateendpoints/model_delegation.go | 12 - .../privateendpoints/model_flowlog.go | 14 - .../model_flowlogformatparameters.go | 9 - .../model_flowlogpropertiesformat.go | 15 - .../model_frontendipconfiguration.go | 17 - ...frontendipconfigurationpropertiesformat.go | 19 - ...odel_gatewayloadbalancertunnelinterface.go | 11 - .../privateendpoints/model_inboundnatrule.go | 12 - .../model_inboundnatrulepropertiesformat.go | 19 - .../privateendpoints/model_ipconfiguration.go | 11 - .../model_ipconfigurationprofile.go | 12 - ..._ipconfigurationprofilepropertiesformat.go | 9 - .../model_ipconfigurationpropertiesformat.go | 12 - .../privateendpoints/model_iptag.go | 9 - .../model_loadbalancerbackendaddress.go | 9 - ...dbalancerbackendaddresspropertiesformat.go | 14 - .../privateendpoints/model_natgateway.go | 20 - .../model_natgatewaypropertiesformat.go | 13 - .../privateendpoints/model_natgatewaysku.go | 8 - .../model_natruleportmapping.go | 10 - .../model_networkinterface.go | 19 - .../model_networkinterfacednssettings.go | 12 - .../model_networkinterfaceipconfiguration.go | 12 - ...gurationprivatelinkconnectionproperties.go | 10 - ...nterfaceipconfigurationpropertiesformat.go | 22 - .../model_networkinterfacepropertiesformat.go | 29 - .../model_networkinterfacetapconfiguration.go | 12 - ...terfacetapconfigurationpropertiesformat.go | 9 - .../model_networksecuritygroup.go | 14 - ...el_networksecuritygrouppropertiesformat.go | 15 - .../privateendpoints/model_privateendpoint.go | 19 - .../model_privateendpointconnection.go | 12 - ...del_privateendpointconnectionproperties.go | 12 - .../model_privateendpointipconfiguration.go | 11 - ...rivateendpointipconfigurationproperties.go | 10 - .../model_privateendpointproperties.go | 16 - .../model_privatelinkservice.go | 19 - .../model_privatelinkserviceconnection.go | 12 - ..._privatelinkserviceconnectionproperties.go | 12 - ...model_privatelinkserviceconnectionstate.go | 10 - ...model_privatelinkserviceipconfiguration.go | 12 - ...atelinkserviceipconfigurationproperties.go | 13 - .../model_privatelinkserviceproperties.go | 17 - .../privateendpoints/model_publicipaddress.go | 22 - .../model_publicipaddressdnssettings.go | 11 - .../model_publicipaddresspropertiesformat.go | 23 - .../model_publicipaddresssku.go | 9 - .../model_resourcenavigationlink.go | 12 - .../model_resourcenavigationlinkformat.go | 10 - .../privateendpoints/model_resourceset.go | 8 - .../model_retentionpolicyparameters.go | 9 - .../privateendpoints/model_route.go | 12 - .../model_routepropertiesformat.go | 12 - .../privateendpoints/model_routetable.go | 14 - .../model_routetablepropertiesformat.go | 12 - .../privateendpoints/model_securityrule.go | 12 - .../model_securityrulepropertiesformat.go | 23 - .../model_serviceassociationlink.go | 12 - ..._serviceassociationlinkpropertiesformat.go | 12 - ...model_servicedelegationpropertiesformat.go | 10 - .../model_serviceendpointpolicy.go | 15 - .../model_serviceendpointpolicydefinition.go | 12 - ...ndpointpolicydefinitionpropertiesformat.go | 11 - ...l_serviceendpointpolicypropertiesformat.go | 13 - .../model_serviceendpointpropertiesformat.go | 10 - .../privateendpoints/model_subnet.go | 12 - .../model_subnetpropertiesformat.go | 28 - .../privateendpoints/model_subresource.go | 8 - ...trafficanalyticsconfigurationproperties.go | 12 - .../model_trafficanalyticsproperties.go | 8 - .../model_virtualnetworktap.go | 14 - ...model_virtualnetworktappropertiesformat.go | 13 - .../2023-11-01/privateendpoints/predicates.go | 70 - .../2023-11-01/privateendpoints/version.go | 10 - .../network/2023-11-01/routefilters/README.md | 121 -- .../network/2023-11-01/routefilters/client.go | 26 - .../2023-11-01/routefilters/constants.go | 353 ----- .../2023-11-01/routefilters/id_routefilter.go | 130 -- .../routefilters/method_createorupdate.go | 75 - .../2023-11-01/routefilters/method_delete.go | 71 - .../2023-11-01/routefilters/method_get.go | 83 -- .../2023-11-01/routefilters/method_list.go | 106 -- .../method_listbyresourcegroup.go | 106 -- .../routefilters/method_updatetags.go | 57 - .../model_expressroutecircuitconnection.go | 12 - ...sroutecircuitconnectionpropertiesformat.go | 14 - .../model_expressroutecircuitpeering.go | 12 - .../model_expressroutecircuitpeeringconfig.go | 13 - ...ressroutecircuitpeeringpropertiesformat.go | 27 - .../model_expressroutecircuitstats.go | 11 - .../model_expressrouteconnectionid.go | 8 - .../model_ipv6circuitconnectionconfig.go | 9 - ...el_ipv6expressroutecircuitpeeringconfig.go | 12 - ...model_peerexpressroutecircuitconnection.go | 12 - ...sroutecircuitconnectionpropertiesformat.go | 14 - .../routefilters/model_routefilter.go | 14 - .../model_routefilterpropertiesformat.go | 11 - .../routefilters/model_routefilterrule.go | 12 - .../model_routefilterrulepropertiesformat.go | 11 - .../routefilters/model_subresource.go | 8 - .../routefilters/model_tagsobject.go | 8 - .../2023-11-01/routefilters/predicates.go | 37 - .../2023-11-01/routefilters/version.go | 10 - .../network/2023-11-01/routes/README.md | 82 - .../network/2023-11-01/routes/client.go | 26 - .../network/2023-11-01/routes/constants.go | 107 -- .../network/2023-11-01/routes/id_route.go | 139 -- .../2023-11-01/routes/id_routetable.go | 130 -- .../routes/method_createorupdate.go | 75 - .../2023-11-01/routes/method_delete.go | 71 - .../network/2023-11-01/routes/method_get.go | 53 - .../network/2023-11-01/routes/method_list.go | 105 -- .../network/2023-11-01/routes/model_route.go | 12 - .../routes/model_routepropertiesformat.go | 12 - .../network/2023-11-01/routes/predicates.go | 32 - .../network/2023-11-01/routes/version.go | 10 - .../2023-11-01/scopeconnections/README.md | 90 -- .../2023-11-01/scopeconnections/client.go | 26 - .../2023-11-01/scopeconnections/constants.go | 60 - .../scopeconnections/id_networkmanager.go | 130 -- .../scopeconnections/id_scopeconnection.go | 139 -- .../scopeconnections/method_createorupdate.go | 58 - .../scopeconnections/method_delete.go | 47 - .../2023-11-01/scopeconnections/method_get.go | 53 - .../scopeconnections/method_list.go | 134 -- .../scopeconnections/model_scopeconnection.go | 17 - .../model_scopeconnectionproperties.go | 11 - .../2023-11-01/scopeconnections/predicates.go | 32 - .../2023-11-01/scopeconnections/version.go | 10 - .../securityadminconfigurations/README.md | 86 -- .../securityadminconfigurations/client.go | 26 - .../securityadminconfigurations/constants.go | 101 -- .../id_networkmanager.go | 130 -- .../id_securityadminconfiguration.go | 139 -- .../method_createorupdate.go | 58 - .../method_delete.go | 100 -- .../securityadminconfigurations/method_get.go | 53 - .../method_list.go | 134 -- .../model_securityadminconfiguration.go | 17 - ...urityadminconfigurationpropertiesformat.go | 11 - .../securityadminconfigurations/predicates.go | 32 - .../securityadminconfigurations/version.go | 10 - .../securitypartnerproviders/README.md | 121 -- .../securitypartnerproviders/client.go | 26 - .../securitypartnerproviders/constants.go | 148 -- .../id_securitypartnerprovider.go | 130 -- .../method_createorupdate.go | 75 - .../securitypartnerproviders/method_delete.go | 71 - .../securitypartnerproviders/method_get.go | 53 - .../securitypartnerproviders/method_list.go | 106 -- .../method_listbyresourcegroup.go | 106 -- .../method_updatetags.go | 57 - .../model_securitypartnerprovider.go | 14 - ...securitypartnerproviderpropertiesformat.go | 11 - .../model_subresource.go | 8 - .../model_tagsobject.go | 8 - .../securitypartnerproviders/predicates.go | 37 - .../securitypartnerproviders/version.go | 10 - .../2023-11-01/securityrules/README.md | 115 -- .../2023-11-01/securityrules/client.go | 26 - .../2023-11-01/securityrules/constants.go | 192 --- .../securityrules/id_defaultsecurityrule.go | 139 -- .../securityrules/id_networksecuritygroup.go | 130 -- .../securityrules/id_securityrule.go | 139 -- .../securityrules/method_createorupdate.go | 75 - .../method_defaultsecurityrulesget.go | 53 - .../method_defaultsecurityruleslist.go | 105 -- .../2023-11-01/securityrules/method_delete.go | 71 - .../2023-11-01/securityrules/method_get.go | 53 - .../2023-11-01/securityrules/method_list.go | 105 -- .../model_applicationsecuritygroup.go | 14 - ...pplicationsecuritygrouppropertiesformat.go | 9 - .../securityrules/model_securityrule.go | 12 - .../model_securityrulepropertiesformat.go | 23 - .../2023-11-01/securityrules/predicates.go | 32 - .../2023-11-01/securityrules/version.go | 10 - .../network/2023-11-01/servicetags/README.md | 53 - .../network/2023-11-01/servicetags/client.go | 26 - .../2023-11-01/servicetags/id_location.go | 121 -- .../method_servicetaginformationlist.go | 138 -- .../servicetags/method_servicetagslist.go | 54 - .../model_servicetaginformation.go | 11 - ...l_servicetaginformationpropertiesformat.go | 12 - .../model_servicetagslistresult.go | 14 - .../2023-11-01/servicetags/predicates.go | 27 - .../network/2023-11-01/servicetags/version.go | 10 - .../2023-11-01/staticmembers/README.md | 90 -- .../2023-11-01/staticmembers/client.go | 26 - .../2023-11-01/staticmembers/constants.go | 57 - .../staticmembers/id_networkgroup.go | 139 -- .../staticmembers/id_staticmember.go | 148 -- .../staticmembers/method_createorupdate.go | 58 - .../2023-11-01/staticmembers/method_delete.go | 47 - .../2023-11-01/staticmembers/method_get.go | 53 - .../2023-11-01/staticmembers/method_list.go | 134 -- .../staticmembers/model_staticmember.go | 17 - .../model_staticmemberproperties.go | 10 - .../2023-11-01/staticmembers/predicates.go | 32 - .../2023-11-01/staticmembers/version.go | 10 - .../virtualnetworkgateways/README.md | 414 ------ .../virtualnetworkgateways/client.go | 26 - .../virtualnetworkgateways/constants.go | 1316 ----------------- .../virtualnetworkgateways/id_connection.go | 130 -- .../id_virtualnetworkgateway.go | 130 -- .../id_virtualnetworkgatewaynatrule.go | 139 -- .../method_createorupdate.go | 75 - .../virtualnetworkgateways/method_delete.go | 71 - ...nectvirtualnetworkgatewayvpnconnections.go | 74 - .../method_generatevpnclientpackage.go | 75 - .../method_generatevpnprofile.go | 75 - .../virtualnetworkgateways/method_get.go | 53 - .../method_getadvertisedroutes.go | 100 -- .../method_getbgppeerstatus.go | 100 -- .../method_getlearnedroutes.go | 71 - .../method_getvpnclientconnectionhealth.go | 71 - .../method_getvpnclientipsecparameters.go | 70 - .../method_getvpnprofilepackageurl.go | 71 - .../virtualnetworkgateways/method_list.go | 106 -- .../method_listconnections.go | 105 -- .../virtualnetworkgateways/method_reset.go | 100 -- .../method_resetvpnclientsharedkey.go | 70 - .../method_setvpnclientipsecparameters.go | 75 - .../method_startpacketcapture.go | 75 - .../method_stoppacketcapture.go | 75 - .../method_supportedvpndevices.go | 54 - .../method_updatetags.go | 75 - ...ualnetworkgatewaynatrulescreateorupdate.go | 75 - ...hod_virtualnetworkgatewaynatrulesdelete.go | 71 - ...method_virtualnetworkgatewaynatrulesget.go | 53 - ...ewaynatruleslistbyvirtualnetworkgateway.go | 105 -- .../method_vpndeviceconfigurationscript.go | 58 - .../model_addressspace.go | 8 - .../model_bgppeerstatus.go | 15 - .../model_bgppeerstatuslistresult.go | 8 - .../model_bgpsettings.go | 11 - ...atewaycustombgpipaddressipconfiguration.go | 9 - .../model_gatewayroute.go | 14 - .../model_gatewayroutelistresult.go | 8 - .../model_ipconfigurationbgppeeringaddress.go | 11 - .../model_ipsecpolicy.go | 15 - .../model_p2svpnconnectionrequest.go | 8 - .../model_radiusserver.go | 10 - .../model_subresource.go | 8 - .../model_tagsobject.go | 8 - .../model_trafficselectorpolicy.go | 9 - .../model_tunnelconnectionhealth.go | 12 - ...irtualnetworkconnectiongatewayreference.go | 8 - .../model_virtualnetworkgateway.go | 19 - ...el_virtualnetworkgatewayautoscalebounds.go | 9 - ...ualnetworkgatewayautoscaleconfiguration.go | 8 - ...rtualnetworkgatewayconnectionlistentity.go | 14 - ...wayconnectionlistentitypropertiesformat.go | 30 - ...el_virtualnetworkgatewayipconfiguration.go | 11 - ...kgatewayipconfigurationpropertiesformat.go | 12 - .../model_virtualnetworkgatewaynatrule.go | 12 - ..._virtualnetworkgatewaynatruleproperties.go | 13 - .../model_virtualnetworkgatewaypolicygroup.go | 11 - ..._virtualnetworkgatewaypolicygroupmember.go | 10 - ...tualnetworkgatewaypolicygroupproperties.go | 12 - ...l_virtualnetworkgatewaypropertiesformat.go | 32 - .../model_virtualnetworkgatewaysku.go | 10 - .../model_vngclientconnectionconfiguration.go | 11 - ...clientconnectionconfigurationproperties.go | 10 - .../model_vpnclientconfiguration.go | 20 - .../model_vpnclientconnectionhealthdetail.go | 19 - ...nclientconnectionhealthdetaillistresult.go | 8 - .../model_vpnclientipsecparameters.go | 15 - .../model_vpnclientparameters.go | 11 - .../model_vpnclientrevokedcertificate.go | 11 - ...lientrevokedcertificatepropertiesformat.go | 9 - .../model_vpnclientrootcertificate.go | 11 - ...pnclientrootcertificatepropertiesformat.go | 9 - .../model_vpndevicescriptparameters.go | 10 - .../model_vpnnatrulemapping.go | 9 - .../model_vpnpacketcapturestartparameters.go | 8 - .../model_vpnpacketcapturestopparameters.go | 8 - .../virtualnetworkgateways/predicates.go | 98 -- .../virtualnetworkgateways/version.go | 10 - .../virtualnetworkpeerings/README.md | 83 -- .../virtualnetworkpeerings/client.go | 26 - .../virtualnetworkpeerings/constants.go | 227 --- .../id_virtualnetworkpeering.go | 139 -- .../method_createorupdate.go | 104 -- .../virtualnetworkpeerings/method_delete.go | 71 - .../virtualnetworkpeerings/method_get.go | 53 - .../virtualnetworkpeerings/method_list.go | 106 -- .../model_addressspace.go | 8 - .../model_subresource.go | 8 - .../model_virtualnetworkbgpcommunities.go | 9 - .../model_virtualnetworkencryption.go | 9 - .../model_virtualnetworkpeering.go | 12 - ...l_virtualnetworkpeeringpropertiesformat.go | 27 - .../virtualnetworkpeerings/predicates.go | 32 - .../virtualnetworkpeerings/version.go | 10 - vendor/modules.txt | 36 - 974 files changed, 49153 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_rulecollection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_securityadminconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_adminrulecollection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_adminrulecollectionpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_networkmanagersecuritygroupitem.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rulecollection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_addressprefixitem.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_adminpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_adminrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_baseadminrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_defaultadminpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_defaultadminrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/id_applicationsecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_listall.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_updatetags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_applicationsecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_applicationsecuritygrouppropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/id_azurefirewall.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_azurefirewallslistlearnedprefixes.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_listall.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_packetcapture.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_updatetags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewall.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrulecollection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrulecollectionpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationruleprotocol.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipgroups.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrcaction.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrulecollection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrulecollectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrulecollection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrulecollectionpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpacketcaptureflags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpacketcapturerule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpublicipaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallrcaction.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallsku.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_firewallpacketcaptureparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_firewallpacketcaptureparametersformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_hubipaddresses.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_hubpublicipaddresses.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_ipprefixeslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_connectionmonitor.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_networkwatcher.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_query.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_start.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_stop.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_updatetags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitor.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitordestination.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpoint.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointfilter.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointfilteritem.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointlocationdetails.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointscope.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointscopeitem.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorhttpconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitoricmpconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorlistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitoroutput.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorqueryresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorresultproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorsource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorsuccessthreshold.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortcpconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortestconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortestgroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorworkspacesettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionstatesnapshot.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectivityhop.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectivityissue.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_hoplink.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_hoplinkproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_httpheader.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_connectivityconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_networkmanager.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivityconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivityconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivitygroupitem.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_hub.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/id_customipprefix.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_listall.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_updatetags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_customipprefix.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_customipprefixpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/id_ddosprotectionplan.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_listbyresourcegroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_updatetags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_ddosprotectionplan.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_ddosprotectionplanpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_authorization.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_expressroutecircuit.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/model_authorizationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/model_expressroutecircuitauthorization.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/id_peeringconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_expressroutecircuitconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_expressroutecircuitconnectionpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_ipv6circuitconnectionconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/id_expressroutecircuit.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitconnectionpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeering.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitstats.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressrouteconnectionid.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_ipv6circuitconnectionconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_ipv6expressroutecircuitpeeringconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnectionpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressrouteconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressroutegateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressroutecircuitpeeringid.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnectionlist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_propagatedroutetable.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_routingconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_staticroute.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_staticroutesconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_vnetroute.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteport.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteportauthorization.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/model_expressrouteportauthorization.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/model_expressrouteportauthorizationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_firewallpolicy.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_rulecollectiongroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_applicationrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollectionaction.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyhttpheadertoinsert.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollectionaction.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyruleapplicationprotocol.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroupproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_natrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_networkrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_flowlog.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_networkwatcher.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_updatetags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlog.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlogformatparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlogpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_retentionpolicyparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_trafficanalyticsconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_trafficanalyticsproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/id_ipgroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_listbyresourcegroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_updategroups.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_ipgroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_ipgrouppropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/id_natgateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_listall.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_updatetags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgatewaypropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgatewaysku.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkgroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkmanager.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/model_networkgroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/model_networkgroupproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_networkmanagerconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_providers2networkmanagerconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionscreateorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsdelete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsget.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionscreateorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsdelete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsget.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/model_networkmanagerconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/model_networkmanagerconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/id_networkmanager.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_listbysubscription.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_networkmanagercommitspost.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_patch.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_crosstenantscopes.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanager.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagercommit.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatuslistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatusparameter.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerpropertiesnetworkmanagerscopes.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_patchobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/id_networkprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_listall.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_updatetags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddresspool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddresspoolpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewayipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewayipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationsecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationsecuritygrouppropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_backendaddresspool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_backendaddresspoolpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterface.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfacepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_customdnsconfigpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ddossettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_delegation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlog.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlogformatparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlogpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_frontendipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_frontendipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_gatewayloadbalancertunnelinterface.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_inboundnatrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_inboundnatrulepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationprofilepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_iptag.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_loadbalancerbackendaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_loadbalancerbackendaddresspropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgatewaypropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgatewaysku.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natruleportmapping.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterface.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacednssettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacetapconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacetapconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkprofilepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networksecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networksecuritygrouppropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpoint.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointipconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkservice.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnectionstate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceipconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddressdnssettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddresspropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddresssku.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourcenavigationlink.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourcenavigationlinkformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourceset.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_retentionpolicyparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_route.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routetable.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routetablepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_securityrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_securityrulepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceassociationlink.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceassociationlinkpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_servicedelegationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicy.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicydefinition.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicydefinitionpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicypropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subnet.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subnetpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_trafficanalyticsconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_trafficanalyticsproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_virtualnetworktap.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_virtualnetworktappropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_inboundsecurityrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_networkvirtualappliance.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_inboundsecurityrulecreateorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_listbyresourcegroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_restart.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_updatetags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_delegationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityruleproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityrules.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_internetingresspublicipsproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliance.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualapplianceinstanceids.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformatnetworkprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_partnermanagedresourceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceadditionalnicproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceipconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenicproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceskuproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/id_networkwatcher.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_checkconnectivity.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getazurereachabilityreport.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getflowlogstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getnetworkconfigurationdiagnostic.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getnexthop.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettopology.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettroubleshooting.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettroubleshootingresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getvmsecurityrules.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_listall.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_listavailableproviders.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_setflowlogconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_updatetags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_verifyipflow.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_applicationsecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_applicationsecuritygrouppropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistcity.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistcountry.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableprovidersliststate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreport.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportitem.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportlatencyinfo.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportlocation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivitydestination.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityhop.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityinformation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityissue.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivitysource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_effectivenetworksecurityrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_evaluatednetworksecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogformatparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowloginformation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogstatusparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_hoplink.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_hoplinkproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_httpconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_httpheader.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_matchedrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticresponse.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkinterfaceassociation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networksecuritygroupresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networksecurityrulesevaluationresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcher.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcherlistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcherpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_nexthopparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_nexthopresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_protocolconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_querytroubleshootingparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_retentionpolicyparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupnetworkinterface.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupviewparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupviewresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityruleassociations.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityrulepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_subnetassociation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topology.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyassociation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_trafficanalyticsconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_trafficanalyticsproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingdetails.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingrecommendedactions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_verificationipflowparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_verificationipflowresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_networkwatcher.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_packetcapture.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_create.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_getstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_stop.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapture.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturefilter.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturelistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturemachinescope.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturequerystatusresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureresultproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturesettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturestoragelocation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privatednszonegroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privateendpoint.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszoneconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonegroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonegrouppropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_recordset.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_location.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_privateendpoint.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_providerlocation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_listbysubscription.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddresspool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddresspoolpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewayipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewayipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationsecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationsecuritygrouppropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_availableprivateendpointtype.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_backendaddresspool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_backendaddresspoolpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_customdnsconfigpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ddossettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_delegation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlog.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlogformatparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlogpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_frontendipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_frontendipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_gatewayloadbalancertunnelinterface.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_inboundnatrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_inboundnatrulepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationprofilepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_iptag.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_loadbalancerbackendaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_loadbalancerbackendaddresspropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgatewaypropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgatewaysku.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natruleportmapping.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterface.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacednssettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacetapconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacetapconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networksecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networksecuritygrouppropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpoint.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointipconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkservice.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnectionstate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceipconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddressdnssettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddresspropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddresssku.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourcenavigationlink.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourcenavigationlinkformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourceset.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_retentionpolicyparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_route.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routetable.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routetablepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_securityrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_securityrulepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceassociationlink.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceassociationlinkpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_servicedelegationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicy.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicydefinition.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicydefinitionpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicypropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subnet.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subnetpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_trafficanalyticsconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_trafficanalyticsproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_virtualnetworktap.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_virtualnetworktappropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/id_routefilter.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_listbyresourcegroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_updatetags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitconnectionpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeering.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeeringconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeeringpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitstats.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressrouteconnectionid.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_ipv6circuitconnectionconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_ipv6expressroutecircuitpeeringconfig.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_peerexpressroutecircuitconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_peerexpressroutecircuitconnectionpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilter.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterrulepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_route.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_routetable.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/model_route.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/model_routepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_networkmanager.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_scopeconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/model_scopeconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/model_scopeconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_networkmanager.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_securityadminconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/model_securityadminconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/model_securityadminconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/id_securitypartnerprovider.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_listbyresourcegroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_updatetags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_securitypartnerprovider.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_securitypartnerproviderpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_defaultsecurityrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_networksecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_securityrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityrulesget.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityruleslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_applicationsecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_applicationsecuritygrouppropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_securityrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_securityrulepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/id_location.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetaginformationlist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetagslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetaginformation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetaginformationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetagslistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_networkgroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_staticmember.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/model_staticmember.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/model_staticmemberproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_connection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgatewaynatrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_disconnectvirtualnetworkgatewayvpnconnections.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_generatevpnclientpackage.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_generatevpnprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getadvertisedroutes.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getbgppeerstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getlearnedroutes.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnclientconnectionhealth.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnclientipsecparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnprofilepackageurl.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_listconnections.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_reset.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_resetvpnclientsharedkey.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_setvpnclientipsecparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_startpacketcapture.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_stoppacketcapture.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_supportedvpndevices.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_updatetags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulescreateorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesdelete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesget.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_vpndeviceconfigurationscript.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_addressspace.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgppeerstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgppeerstatuslistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgpsettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewaycustombgpipaddressipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewayroute.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewayroutelistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_ipconfigurationbgppeeringaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_ipsecpolicy.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_p2svpnconnectionrequest.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_radiusserver.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_trafficselectorpolicy.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_tunnelconnectionhealth.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkconnectiongatewayreference.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscalebounds.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscaleconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentity.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentitypropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaynatrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaynatruleproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupmember.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaysku.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vngclientconnectionconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vngclientconnectionconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetail.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetaillistresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientipsecparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrevokedcertificate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrevokedcertificatepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrootcertificate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrootcertificatepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpndevicescriptparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnnatrulemapping.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnpacketcapturestartparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnpacketcapturestopparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/id_virtualnetworkpeering.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_addressspace.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkbgpcommunities.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkencryption.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkpeering.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkpeeringpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/version.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/README.md deleted file mode 100644 index 347f56250856..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/README.md +++ /dev/null @@ -1,86 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections` Documentation - -The `adminrulecollections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections" -``` - - -### Client Initialization - -```go -client := adminrulecollections.NewAdminRuleCollectionsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `AdminRuleCollectionsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := adminrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName") - -payload := adminrulecollections.AdminRuleCollection{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AdminRuleCollectionsClient.Delete` - -```go -ctx := context.TODO() -id := adminrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName") - -if err := client.DeleteThenPoll(ctx, id, adminrulecollections.DefaultDeleteOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `AdminRuleCollectionsClient.Get` - -```go -ctx := context.TODO() -id := adminrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AdminRuleCollectionsClient.List` - -```go -ctx := context.TODO() -id := adminrulecollections.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName") - -// alternatively `client.List(ctx, id, adminrulecollections.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, adminrulecollections.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/client.go deleted file mode 100644 index a0e144b1d96a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package adminrulecollections - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AdminRuleCollectionsClient struct { - Client *resourcemanager.Client -} - -func NewAdminRuleCollectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*AdminRuleCollectionsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "adminrulecollections", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating AdminRuleCollectionsClient: %+v", err) - } - - return &AdminRuleCollectionsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/constants.go deleted file mode 100644 index d3e735bf0f14..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/constants.go +++ /dev/null @@ -1,57 +0,0 @@ -package adminrulecollections - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_rulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_rulecollection.go deleted file mode 100644 index a7cd76bd8fcf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_rulecollection.go +++ /dev/null @@ -1,148 +0,0 @@ -package adminrulecollections - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&RuleCollectionId{}) -} - -var _ resourceids.ResourceId = &RuleCollectionId{} - -// RuleCollectionId is a struct representing the Resource ID for a Rule Collection -type RuleCollectionId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string - SecurityAdminConfigurationName string - RuleCollectionName string -} - -// NewRuleCollectionID returns a new RuleCollectionId struct -func NewRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, securityAdminConfigurationName string, ruleCollectionName string) RuleCollectionId { - return RuleCollectionId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - SecurityAdminConfigurationName: securityAdminConfigurationName, - RuleCollectionName: ruleCollectionName, - } -} - -// ParseRuleCollectionID parses 'input' into a RuleCollectionId -func ParseRuleCollectionID(input string) (*RuleCollectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&RuleCollectionId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RuleCollectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseRuleCollectionIDInsensitively parses 'input' case-insensitively into a RuleCollectionId -// note: this method should only be used for API response data and not user input -func ParseRuleCollectionIDInsensitively(input string) (*RuleCollectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&RuleCollectionId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RuleCollectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *RuleCollectionId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - if id.SecurityAdminConfigurationName, ok = input.Parsed["securityAdminConfigurationName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "securityAdminConfigurationName", input) - } - - if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) - } - - return nil -} - -// ValidateRuleCollectionID checks that 'input' can be parsed as a Rule Collection ID -func ValidateRuleCollectionID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseRuleCollectionID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Rule Collection ID -func (id RuleCollectionId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityAdminConfigurations/%s/ruleCollections/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName, id.RuleCollectionName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Rule Collection ID -func (id RuleCollectionId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), - resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationName"), - resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), - resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), - } -} - -// String returns a human-readable description of this Rule Collection ID -func (id RuleCollectionId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - fmt.Sprintf("Security Admin Configuration Name: %q", id.SecurityAdminConfigurationName), - fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), - } - return fmt.Sprintf("Rule Collection (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_securityadminconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_securityadminconfiguration.go deleted file mode 100644 index 193fa95d9b53..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_securityadminconfiguration.go +++ /dev/null @@ -1,139 +0,0 @@ -package adminrulecollections - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&SecurityAdminConfigurationId{}) -} - -var _ resourceids.ResourceId = &SecurityAdminConfigurationId{} - -// SecurityAdminConfigurationId is a struct representing the Resource ID for a Security Admin Configuration -type SecurityAdminConfigurationId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string - SecurityAdminConfigurationName string -} - -// NewSecurityAdminConfigurationID returns a new SecurityAdminConfigurationId struct -func NewSecurityAdminConfigurationID(subscriptionId string, resourceGroupName string, networkManagerName string, securityAdminConfigurationName string) SecurityAdminConfigurationId { - return SecurityAdminConfigurationId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - SecurityAdminConfigurationName: securityAdminConfigurationName, - } -} - -// ParseSecurityAdminConfigurationID parses 'input' into a SecurityAdminConfigurationId -func ParseSecurityAdminConfigurationID(input string) (*SecurityAdminConfigurationId, error) { - parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := SecurityAdminConfigurationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseSecurityAdminConfigurationIDInsensitively parses 'input' case-insensitively into a SecurityAdminConfigurationId -// note: this method should only be used for API response data and not user input -func ParseSecurityAdminConfigurationIDInsensitively(input string) (*SecurityAdminConfigurationId, error) { - parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := SecurityAdminConfigurationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *SecurityAdminConfigurationId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - if id.SecurityAdminConfigurationName, ok = input.Parsed["securityAdminConfigurationName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "securityAdminConfigurationName", input) - } - - return nil -} - -// ValidateSecurityAdminConfigurationID checks that 'input' can be parsed as a Security Admin Configuration ID -func ValidateSecurityAdminConfigurationID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseSecurityAdminConfigurationID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Security Admin Configuration ID -func (id SecurityAdminConfigurationId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityAdminConfigurations/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Security Admin Configuration ID -func (id SecurityAdminConfigurationId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), - resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationName"), - } -} - -// String returns a human-readable description of this Security Admin Configuration ID -func (id SecurityAdminConfigurationId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - fmt.Sprintf("Security Admin Configuration Name: %q", id.SecurityAdminConfigurationName), - } - return fmt.Sprintf("Security Admin Configuration (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_createorupdate.go deleted file mode 100644 index 00810feb46ae..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_createorupdate.go +++ /dev/null @@ -1,58 +0,0 @@ -package adminrulecollections - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *AdminRuleCollection -} - -// CreateOrUpdate ... -func (c AdminRuleCollectionsClient) CreateOrUpdate(ctx context.Context, id RuleCollectionId, input AdminRuleCollection) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model AdminRuleCollection - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_delete.go deleted file mode 100644 index 68d0021749bb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_delete.go +++ /dev/null @@ -1,100 +0,0 @@ -package adminrulecollections - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -type DeleteOperationOptions struct { - Force *bool -} - -func DefaultDeleteOperationOptions() DeleteOperationOptions { - return DeleteOperationOptions{} -} - -func (o DeleteOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o DeleteOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o DeleteOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Force != nil { - out.Append("force", fmt.Sprintf("%v", *o.Force)) - } - return &out -} - -// Delete ... -func (c AdminRuleCollectionsClient) Delete(ctx context.Context, id RuleCollectionId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c AdminRuleCollectionsClient) DeleteThenPoll(ctx context.Context, id RuleCollectionId, options DeleteOperationOptions) error { - result, err := c.Delete(ctx, id, options) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_get.go deleted file mode 100644 index 1aec0f98a6ad..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package adminrulecollections - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *AdminRuleCollection -} - -// Get ... -func (c AdminRuleCollectionsClient) Get(ctx context.Context, id RuleCollectionId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model AdminRuleCollection - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_list.go deleted file mode 100644 index 2ef5b46d0a4d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_list.go +++ /dev/null @@ -1,134 +0,0 @@ -package adminrulecollections - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]AdminRuleCollection -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []AdminRuleCollection -} - -type ListOperationOptions struct { - Top *int64 -} - -func DefaultListOperationOptions() ListOperationOptions { - return ListOperationOptions{} -} - -func (o ListOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o ListOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o ListOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Top != nil { - out.Append("$top", fmt.Sprintf("%v", *o.Top)) - } - return &out -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c AdminRuleCollectionsClient) List(ctx context.Context, id SecurityAdminConfigurationId, options ListOperationOptions) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/ruleCollections", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]AdminRuleCollection `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c AdminRuleCollectionsClient) ListComplete(ctx context.Context, id SecurityAdminConfigurationId, options ListOperationOptions) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, options, AdminRuleCollectionOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AdminRuleCollectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id SecurityAdminConfigurationId, options ListOperationOptions, predicate AdminRuleCollectionOperationPredicate) (result ListCompleteResult, err error) { - items := make([]AdminRuleCollection, 0) - - resp, err := c.List(ctx, id, options) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_adminrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_adminrulecollection.go deleted file mode 100644 index aea91d2ba708..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_adminrulecollection.go +++ /dev/null @@ -1,17 +0,0 @@ -package adminrulecollections - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AdminRuleCollection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *AdminRuleCollectionPropertiesFormat `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_adminrulecollectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_adminrulecollectionpropertiesformat.go deleted file mode 100644 index 43e02d8ca9c9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_adminrulecollectionpropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package adminrulecollections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AdminRuleCollectionPropertiesFormat struct { - AppliesToGroups []NetworkManagerSecurityGroupItem `json:"appliesToGroups"` - Description *string `json:"description,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_networkmanagersecuritygroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_networkmanagersecuritygroupitem.go deleted file mode 100644 index ce59c38f4fd0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_networkmanagersecuritygroupitem.go +++ /dev/null @@ -1,8 +0,0 @@ -package adminrulecollections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkManagerSecurityGroupItem struct { - NetworkGroupId string `json:"networkGroupId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/predicates.go deleted file mode 100644 index 67b37b95643f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package adminrulecollections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AdminRuleCollectionOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p AdminRuleCollectionOperationPredicate) Matches(input AdminRuleCollection) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/version.go deleted file mode 100644 index fc30bf71af1e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package adminrulecollections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/adminrulecollections/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/README.md deleted file mode 100644 index 74a2336bded9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/README.md +++ /dev/null @@ -1,86 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules` Documentation - -The `adminrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules" -``` - - -### Client Initialization - -```go -client := adminrules.NewAdminRulesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `AdminRulesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := adminrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName", "ruleName") - -payload := adminrules.BaseAdminRule{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AdminRulesClient.Delete` - -```go -ctx := context.TODO() -id := adminrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName", "ruleName") - -if err := client.DeleteThenPoll(ctx, id, adminrules.DefaultDeleteOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `AdminRulesClient.Get` - -```go -ctx := context.TODO() -id := adminrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName", "ruleName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AdminRulesClient.List` - -```go -ctx := context.TODO() -id := adminrules.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/client.go deleted file mode 100644 index 811271711b61..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package adminrules - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AdminRulesClient struct { - Client *resourcemanager.Client -} - -func NewAdminRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*AdminRulesClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "adminrules", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating AdminRulesClient: %+v", err) - } - - return &AdminRulesClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/constants.go deleted file mode 100644 index fbaa03c55436..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/constants.go +++ /dev/null @@ -1,277 +0,0 @@ -package adminrules - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AddressPrefixType string - -const ( - AddressPrefixTypeIPPrefix AddressPrefixType = "IPPrefix" - AddressPrefixTypeServiceTag AddressPrefixType = "ServiceTag" -) - -func PossibleValuesForAddressPrefixType() []string { - return []string{ - string(AddressPrefixTypeIPPrefix), - string(AddressPrefixTypeServiceTag), - } -} - -func (s *AddressPrefixType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAddressPrefixType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAddressPrefixType(input string) (*AddressPrefixType, error) { - vals := map[string]AddressPrefixType{ - "ipprefix": AddressPrefixTypeIPPrefix, - "servicetag": AddressPrefixTypeServiceTag, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AddressPrefixType(input) - return &out, nil -} - -type AdminRuleKind string - -const ( - AdminRuleKindCustom AdminRuleKind = "Custom" - AdminRuleKindDefault AdminRuleKind = "Default" -) - -func PossibleValuesForAdminRuleKind() []string { - return []string{ - string(AdminRuleKindCustom), - string(AdminRuleKindDefault), - } -} - -func (s *AdminRuleKind) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAdminRuleKind(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAdminRuleKind(input string) (*AdminRuleKind, error) { - vals := map[string]AdminRuleKind{ - "custom": AdminRuleKindCustom, - "default": AdminRuleKindDefault, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AdminRuleKind(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type SecurityConfigurationRuleAccess string - -const ( - SecurityConfigurationRuleAccessAllow SecurityConfigurationRuleAccess = "Allow" - SecurityConfigurationRuleAccessAlwaysAllow SecurityConfigurationRuleAccess = "AlwaysAllow" - SecurityConfigurationRuleAccessDeny SecurityConfigurationRuleAccess = "Deny" -) - -func PossibleValuesForSecurityConfigurationRuleAccess() []string { - return []string{ - string(SecurityConfigurationRuleAccessAllow), - string(SecurityConfigurationRuleAccessAlwaysAllow), - string(SecurityConfigurationRuleAccessDeny), - } -} - -func (s *SecurityConfigurationRuleAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityConfigurationRuleAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityConfigurationRuleAccess(input string) (*SecurityConfigurationRuleAccess, error) { - vals := map[string]SecurityConfigurationRuleAccess{ - "allow": SecurityConfigurationRuleAccessAllow, - "alwaysallow": SecurityConfigurationRuleAccessAlwaysAllow, - "deny": SecurityConfigurationRuleAccessDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityConfigurationRuleAccess(input) - return &out, nil -} - -type SecurityConfigurationRuleDirection string - -const ( - SecurityConfigurationRuleDirectionInbound SecurityConfigurationRuleDirection = "Inbound" - SecurityConfigurationRuleDirectionOutbound SecurityConfigurationRuleDirection = "Outbound" -) - -func PossibleValuesForSecurityConfigurationRuleDirection() []string { - return []string{ - string(SecurityConfigurationRuleDirectionInbound), - string(SecurityConfigurationRuleDirectionOutbound), - } -} - -func (s *SecurityConfigurationRuleDirection) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityConfigurationRuleDirection(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityConfigurationRuleDirection(input string) (*SecurityConfigurationRuleDirection, error) { - vals := map[string]SecurityConfigurationRuleDirection{ - "inbound": SecurityConfigurationRuleDirectionInbound, - "outbound": SecurityConfigurationRuleDirectionOutbound, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityConfigurationRuleDirection(input) - return &out, nil -} - -type SecurityConfigurationRuleProtocol string - -const ( - SecurityConfigurationRuleProtocolAh SecurityConfigurationRuleProtocol = "Ah" - SecurityConfigurationRuleProtocolAny SecurityConfigurationRuleProtocol = "Any" - SecurityConfigurationRuleProtocolEsp SecurityConfigurationRuleProtocol = "Esp" - SecurityConfigurationRuleProtocolIcmp SecurityConfigurationRuleProtocol = "Icmp" - SecurityConfigurationRuleProtocolTcp SecurityConfigurationRuleProtocol = "Tcp" - SecurityConfigurationRuleProtocolUdp SecurityConfigurationRuleProtocol = "Udp" -) - -func PossibleValuesForSecurityConfigurationRuleProtocol() []string { - return []string{ - string(SecurityConfigurationRuleProtocolAh), - string(SecurityConfigurationRuleProtocolAny), - string(SecurityConfigurationRuleProtocolEsp), - string(SecurityConfigurationRuleProtocolIcmp), - string(SecurityConfigurationRuleProtocolTcp), - string(SecurityConfigurationRuleProtocolUdp), - } -} - -func (s *SecurityConfigurationRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityConfigurationRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityConfigurationRuleProtocol(input string) (*SecurityConfigurationRuleProtocol, error) { - vals := map[string]SecurityConfigurationRuleProtocol{ - "ah": SecurityConfigurationRuleProtocolAh, - "any": SecurityConfigurationRuleProtocolAny, - "esp": SecurityConfigurationRuleProtocolEsp, - "icmp": SecurityConfigurationRuleProtocolIcmp, - "tcp": SecurityConfigurationRuleProtocolTcp, - "udp": SecurityConfigurationRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityConfigurationRuleProtocol(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rule.go deleted file mode 100644 index 80c294a2cdd5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rule.go +++ /dev/null @@ -1,157 +0,0 @@ -package adminrules - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&RuleId{}) -} - -var _ resourceids.ResourceId = &RuleId{} - -// RuleId is a struct representing the Resource ID for a Rule -type RuleId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string - SecurityAdminConfigurationName string - RuleCollectionName string - RuleName string -} - -// NewRuleID returns a new RuleId struct -func NewRuleID(subscriptionId string, resourceGroupName string, networkManagerName string, securityAdminConfigurationName string, ruleCollectionName string, ruleName string) RuleId { - return RuleId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - SecurityAdminConfigurationName: securityAdminConfigurationName, - RuleCollectionName: ruleCollectionName, - RuleName: ruleName, - } -} - -// ParseRuleID parses 'input' into a RuleId -func ParseRuleID(input string) (*RuleId, error) { - parser := resourceids.NewParserFromResourceIdType(&RuleId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RuleId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseRuleIDInsensitively parses 'input' case-insensitively into a RuleId -// note: this method should only be used for API response data and not user input -func ParseRuleIDInsensitively(input string) (*RuleId, error) { - parser := resourceids.NewParserFromResourceIdType(&RuleId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RuleId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *RuleId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - if id.SecurityAdminConfigurationName, ok = input.Parsed["securityAdminConfigurationName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "securityAdminConfigurationName", input) - } - - if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) - } - - if id.RuleName, ok = input.Parsed["ruleName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "ruleName", input) - } - - return nil -} - -// ValidateRuleID checks that 'input' can be parsed as a Rule ID -func ValidateRuleID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseRuleID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Rule ID -func (id RuleId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityAdminConfigurations/%s/ruleCollections/%s/rules/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName, id.RuleCollectionName, id.RuleName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Rule ID -func (id RuleId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), - resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationName"), - resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), - resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), - resourceids.StaticSegment("staticRules", "rules", "rules"), - resourceids.UserSpecifiedSegment("ruleName", "ruleName"), - } -} - -// String returns a human-readable description of this Rule ID -func (id RuleId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - fmt.Sprintf("Security Admin Configuration Name: %q", id.SecurityAdminConfigurationName), - fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), - fmt.Sprintf("Rule Name: %q", id.RuleName), - } - return fmt.Sprintf("Rule (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rulecollection.go deleted file mode 100644 index 4f7c635ec89c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rulecollection.go +++ /dev/null @@ -1,148 +0,0 @@ -package adminrules - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&RuleCollectionId{}) -} - -var _ resourceids.ResourceId = &RuleCollectionId{} - -// RuleCollectionId is a struct representing the Resource ID for a Rule Collection -type RuleCollectionId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string - SecurityAdminConfigurationName string - RuleCollectionName string -} - -// NewRuleCollectionID returns a new RuleCollectionId struct -func NewRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, securityAdminConfigurationName string, ruleCollectionName string) RuleCollectionId { - return RuleCollectionId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - SecurityAdminConfigurationName: securityAdminConfigurationName, - RuleCollectionName: ruleCollectionName, - } -} - -// ParseRuleCollectionID parses 'input' into a RuleCollectionId -func ParseRuleCollectionID(input string) (*RuleCollectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&RuleCollectionId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RuleCollectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseRuleCollectionIDInsensitively parses 'input' case-insensitively into a RuleCollectionId -// note: this method should only be used for API response data and not user input -func ParseRuleCollectionIDInsensitively(input string) (*RuleCollectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&RuleCollectionId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RuleCollectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *RuleCollectionId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - if id.SecurityAdminConfigurationName, ok = input.Parsed["securityAdminConfigurationName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "securityAdminConfigurationName", input) - } - - if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) - } - - return nil -} - -// ValidateRuleCollectionID checks that 'input' can be parsed as a Rule Collection ID -func ValidateRuleCollectionID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseRuleCollectionID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Rule Collection ID -func (id RuleCollectionId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityAdminConfigurations/%s/ruleCollections/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName, id.RuleCollectionName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Rule Collection ID -func (id RuleCollectionId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), - resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationName"), - resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), - resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), - } -} - -// String returns a human-readable description of this Rule Collection ID -func (id RuleCollectionId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - fmt.Sprintf("Security Admin Configuration Name: %q", id.SecurityAdminConfigurationName), - fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), - } - return fmt.Sprintf("Rule Collection (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_createorupdate.go deleted file mode 100644 index 250f646ce081..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_createorupdate.go +++ /dev/null @@ -1,63 +0,0 @@ -package adminrules - -import ( - "context" - "encoding/json" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model BaseAdminRule -} - -// CreateOrUpdate ... -func (c AdminRulesClient) CreateOrUpdate(ctx context.Context, id RuleId, input BaseAdminRule) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var respObj json.RawMessage - if err = resp.Unmarshal(&respObj); err != nil { - return - } - model, err := UnmarshalBaseAdminRuleImplementation(respObj) - if err != nil { - return - } - result.Model = model - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_delete.go deleted file mode 100644 index c5deb3a7b1f1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_delete.go +++ /dev/null @@ -1,100 +0,0 @@ -package adminrules - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -type DeleteOperationOptions struct { - Force *bool -} - -func DefaultDeleteOperationOptions() DeleteOperationOptions { - return DeleteOperationOptions{} -} - -func (o DeleteOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o DeleteOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o DeleteOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Force != nil { - out.Append("force", fmt.Sprintf("%v", *o.Force)) - } - return &out -} - -// Delete ... -func (c AdminRulesClient) Delete(ctx context.Context, id RuleId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c AdminRulesClient) DeleteThenPoll(ctx context.Context, id RuleId, options DeleteOperationOptions) error { - result, err := c.Delete(ctx, id, options) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_get.go deleted file mode 100644 index 52f80e411e8b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_get.go +++ /dev/null @@ -1,58 +0,0 @@ -package adminrules - -import ( - "context" - "encoding/json" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model BaseAdminRule -} - -// Get ... -func (c AdminRulesClient) Get(ctx context.Context, id RuleId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var respObj json.RawMessage - if err = resp.Unmarshal(&respObj); err != nil { - return - } - model, err := UnmarshalBaseAdminRuleImplementation(respObj) - if err != nil { - return - } - result.Model = model - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_list.go deleted file mode 100644 index 85aa73c80e35..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_list.go +++ /dev/null @@ -1,117 +0,0 @@ -package adminrules - -import ( - "context" - "encoding/json" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]BaseAdminRule -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []BaseAdminRule -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c AdminRulesClient) List(ctx context.Context, id RuleCollectionId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/rules", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]json.RawMessage `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - temp := make([]BaseAdminRule, 0) - if values.Values != nil { - for i, v := range *values.Values { - val, err := UnmarshalBaseAdminRuleImplementation(v) - if err != nil { - err = fmt.Errorf("unmarshalling item %d for BaseAdminRule (%q): %+v", i, v, err) - return result, err - } - temp = append(temp, val) - } - } - result.Model = &temp - - return -} - -// ListComplete retrieves all the results into a single object -func (c AdminRulesClient) ListComplete(ctx context.Context, id RuleCollectionId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, BaseAdminRuleOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AdminRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id RuleCollectionId, predicate BaseAdminRuleOperationPredicate) (result ListCompleteResult, err error) { - items := make([]BaseAdminRule, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_addressprefixitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_addressprefixitem.go deleted file mode 100644 index 223aec22448a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_addressprefixitem.go +++ /dev/null @@ -1,9 +0,0 @@ -package adminrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AddressPrefixItem struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - AddressPrefixType *AddressPrefixType `json:"addressPrefixType,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_adminpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_adminpropertiesformat.go deleted file mode 100644 index a0e21af6c0dd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_adminpropertiesformat.go +++ /dev/null @@ -1,18 +0,0 @@ -package adminrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AdminPropertiesFormat struct { - Access SecurityConfigurationRuleAccess `json:"access"` - Description *string `json:"description,omitempty"` - DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` - Destinations *[]AddressPrefixItem `json:"destinations,omitempty"` - Direction SecurityConfigurationRuleDirection `json:"direction"` - Priority int64 `json:"priority"` - Protocol SecurityConfigurationRuleProtocol `json:"protocol"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` - Sources *[]AddressPrefixItem `json:"sources,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_adminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_adminrule.go deleted file mode 100644 index 74d9a7cd9c13..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_adminrule.go +++ /dev/null @@ -1,62 +0,0 @@ -package adminrules - -import ( - "encoding/json" - "fmt" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -var _ BaseAdminRule = AdminRule{} - -type AdminRule struct { - Properties *AdminPropertiesFormat `json:"properties,omitempty"` - - // Fields inherited from BaseAdminRule - - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Kind AdminRuleKind `json:"kind"` - Name *string `json:"name,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} - -func (s AdminRule) BaseAdminRule() BaseBaseAdminRuleImpl { - return BaseBaseAdminRuleImpl{ - Etag: s.Etag, - Id: s.Id, - Kind: s.Kind, - Name: s.Name, - SystemData: s.SystemData, - Type: s.Type, - } -} - -var _ json.Marshaler = AdminRule{} - -func (s AdminRule) MarshalJSON() ([]byte, error) { - type wrapper AdminRule - wrapped := wrapper(s) - encoded, err := json.Marshal(wrapped) - if err != nil { - return nil, fmt.Errorf("marshaling AdminRule: %+v", err) - } - - var decoded map[string]interface{} - if err = json.Unmarshal(encoded, &decoded); err != nil { - return nil, fmt.Errorf("unmarshaling AdminRule: %+v", err) - } - - decoded["kind"] = "Custom" - - encoded, err = json.Marshal(decoded) - if err != nil { - return nil, fmt.Errorf("re-marshaling AdminRule: %+v", err) - } - - return encoded, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_baseadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_baseadminrule.go deleted file mode 100644 index ed6bfa3adb9d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_baseadminrule.go +++ /dev/null @@ -1,90 +0,0 @@ -package adminrules - -import ( - "encoding/json" - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BaseAdminRule interface { - BaseAdminRule() BaseBaseAdminRuleImpl -} - -var _ BaseAdminRule = BaseBaseAdminRuleImpl{} - -type BaseBaseAdminRuleImpl struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Kind AdminRuleKind `json:"kind"` - Name *string `json:"name,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} - -func (s BaseBaseAdminRuleImpl) BaseAdminRule() BaseBaseAdminRuleImpl { - return s -} - -var _ BaseAdminRule = RawBaseAdminRuleImpl{} - -// RawBaseAdminRuleImpl is returned when the Discriminated Value doesn't match any of the defined types -// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) -// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). -type RawBaseAdminRuleImpl struct { - baseAdminRule BaseBaseAdminRuleImpl - Type string - Values map[string]interface{} -} - -func (s RawBaseAdminRuleImpl) BaseAdminRule() BaseBaseAdminRuleImpl { - return s.baseAdminRule -} - -func UnmarshalBaseAdminRuleImplementation(input []byte) (BaseAdminRule, error) { - if input == nil { - return nil, nil - } - - var temp map[string]interface{} - if err := json.Unmarshal(input, &temp); err != nil { - return nil, fmt.Errorf("unmarshaling BaseAdminRule into map[string]interface: %+v", err) - } - - var value string - if v, ok := temp["kind"]; ok { - value = fmt.Sprintf("%v", v) - } - - if strings.EqualFold(value, "Custom") { - var out AdminRule - if err := json.Unmarshal(input, &out); err != nil { - return nil, fmt.Errorf("unmarshaling into AdminRule: %+v", err) - } - return out, nil - } - - if strings.EqualFold(value, "Default") { - var out DefaultAdminRule - if err := json.Unmarshal(input, &out); err != nil { - return nil, fmt.Errorf("unmarshaling into DefaultAdminRule: %+v", err) - } - return out, nil - } - - var parent BaseBaseAdminRuleImpl - if err := json.Unmarshal(input, &parent); err != nil { - return nil, fmt.Errorf("unmarshaling into BaseBaseAdminRuleImpl: %+v", err) - } - - return RawBaseAdminRuleImpl{ - baseAdminRule: parent, - Type: value, - Values: temp, - }, nil - -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_defaultadminpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_defaultadminpropertiesformat.go deleted file mode 100644 index a8242069c886..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_defaultadminpropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package adminrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DefaultAdminPropertiesFormat struct { - Access *SecurityConfigurationRuleAccess `json:"access,omitempty"` - Description *string `json:"description,omitempty"` - DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` - Destinations *[]AddressPrefixItem `json:"destinations,omitempty"` - Direction *SecurityConfigurationRuleDirection `json:"direction,omitempty"` - Flag *string `json:"flag,omitempty"` - Priority *int64 `json:"priority,omitempty"` - Protocol *SecurityConfigurationRuleProtocol `json:"protocol,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` - Sources *[]AddressPrefixItem `json:"sources,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_defaultadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_defaultadminrule.go deleted file mode 100644 index 3695c8332dc1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_defaultadminrule.go +++ /dev/null @@ -1,62 +0,0 @@ -package adminrules - -import ( - "encoding/json" - "fmt" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -var _ BaseAdminRule = DefaultAdminRule{} - -type DefaultAdminRule struct { - Properties *DefaultAdminPropertiesFormat `json:"properties,omitempty"` - - // Fields inherited from BaseAdminRule - - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Kind AdminRuleKind `json:"kind"` - Name *string `json:"name,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} - -func (s DefaultAdminRule) BaseAdminRule() BaseBaseAdminRuleImpl { - return BaseBaseAdminRuleImpl{ - Etag: s.Etag, - Id: s.Id, - Kind: s.Kind, - Name: s.Name, - SystemData: s.SystemData, - Type: s.Type, - } -} - -var _ json.Marshaler = DefaultAdminRule{} - -func (s DefaultAdminRule) MarshalJSON() ([]byte, error) { - type wrapper DefaultAdminRule - wrapped := wrapper(s) - encoded, err := json.Marshal(wrapped) - if err != nil { - return nil, fmt.Errorf("marshaling DefaultAdminRule: %+v", err) - } - - var decoded map[string]interface{} - if err = json.Unmarshal(encoded, &decoded); err != nil { - return nil, fmt.Errorf("unmarshaling DefaultAdminRule: %+v", err) - } - - decoded["kind"] = "Default" - - encoded, err = json.Marshal(decoded) - if err != nil { - return nil, fmt.Errorf("re-marshaling DefaultAdminRule: %+v", err) - } - - return encoded, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/predicates.go deleted file mode 100644 index f594b9ac1be2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/predicates.go +++ /dev/null @@ -1,12 +0,0 @@ -package adminrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BaseAdminRuleOperationPredicate struct { -} - -func (p BaseAdminRuleOperationPredicate) Matches(input BaseAdminRule) bool { - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/version.go deleted file mode 100644 index 1fc017e754d1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package adminrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/adminrules/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/README.md deleted file mode 100644 index 194318439e2b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/README.md +++ /dev/null @@ -1,121 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups` Documentation - -The `applicationsecuritygroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups" -``` - - -### Client Initialization - -```go -client := applicationsecuritygroups.NewApplicationSecurityGroupsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ApplicationSecurityGroupsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") - -payload := applicationsecuritygroups.ApplicationSecurityGroup{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ApplicationSecurityGroupsClient.Delete` - -```go -ctx := context.TODO() -id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ApplicationSecurityGroupsClient.Get` - -```go -ctx := context.TODO() -id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApplicationSecurityGroupsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ApplicationSecurityGroupsClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ApplicationSecurityGroupsClient.UpdateTags` - -```go -ctx := context.TODO() -id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") - -payload := applicationsecuritygroups.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/client.go deleted file mode 100644 index 81de33d92a02..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package applicationsecuritygroups - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroupsClient struct { - Client *resourcemanager.Client -} - -func NewApplicationSecurityGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationSecurityGroupsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "applicationsecuritygroups", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating ApplicationSecurityGroupsClient: %+v", err) - } - - return &ApplicationSecurityGroupsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/constants.go deleted file mode 100644 index a226eb6274e6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/constants.go +++ /dev/null @@ -1,57 +0,0 @@ -package applicationsecuritygroups - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/id_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/id_applicationsecuritygroup.go deleted file mode 100644 index 65cacde62c92..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/id_applicationsecuritygroup.go +++ /dev/null @@ -1,130 +0,0 @@ -package applicationsecuritygroups - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&ApplicationSecurityGroupId{}) -} - -var _ resourceids.ResourceId = &ApplicationSecurityGroupId{} - -// ApplicationSecurityGroupId is a struct representing the Resource ID for a Application Security Group -type ApplicationSecurityGroupId struct { - SubscriptionId string - ResourceGroupName string - ApplicationSecurityGroupName string -} - -// NewApplicationSecurityGroupID returns a new ApplicationSecurityGroupId struct -func NewApplicationSecurityGroupID(subscriptionId string, resourceGroupName string, applicationSecurityGroupName string) ApplicationSecurityGroupId { - return ApplicationSecurityGroupId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - ApplicationSecurityGroupName: applicationSecurityGroupName, - } -} - -// ParseApplicationSecurityGroupID parses 'input' into a ApplicationSecurityGroupId -func ParseApplicationSecurityGroupID(input string) (*ApplicationSecurityGroupId, error) { - parser := resourceids.NewParserFromResourceIdType(&ApplicationSecurityGroupId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ApplicationSecurityGroupId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseApplicationSecurityGroupIDInsensitively parses 'input' case-insensitively into a ApplicationSecurityGroupId -// note: this method should only be used for API response data and not user input -func ParseApplicationSecurityGroupIDInsensitively(input string) (*ApplicationSecurityGroupId, error) { - parser := resourceids.NewParserFromResourceIdType(&ApplicationSecurityGroupId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ApplicationSecurityGroupId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *ApplicationSecurityGroupId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.ApplicationSecurityGroupName, ok = input.Parsed["applicationSecurityGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "applicationSecurityGroupName", input) - } - - return nil -} - -// ValidateApplicationSecurityGroupID checks that 'input' can be parsed as a Application Security Group ID -func ValidateApplicationSecurityGroupID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseApplicationSecurityGroupID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Application Security Group ID -func (id ApplicationSecurityGroupId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/applicationSecurityGroups/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ApplicationSecurityGroupName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Application Security Group ID -func (id ApplicationSecurityGroupId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticApplicationSecurityGroups", "applicationSecurityGroups", "applicationSecurityGroups"), - resourceids.UserSpecifiedSegment("applicationSecurityGroupName", "applicationSecurityGroupName"), - } -} - -// String returns a human-readable description of this Application Security Group ID -func (id ApplicationSecurityGroupId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Application Security Group Name: %q", id.ApplicationSecurityGroupName), - } - return fmt.Sprintf("Application Security Group (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_createorupdate.go deleted file mode 100644 index f2b60b46a6a4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package applicationsecuritygroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *ApplicationSecurityGroup -} - -// CreateOrUpdate ... -func (c ApplicationSecurityGroupsClient) CreateOrUpdate(ctx context.Context, id ApplicationSecurityGroupId, input ApplicationSecurityGroup) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c ApplicationSecurityGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id ApplicationSecurityGroupId, input ApplicationSecurityGroup) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_delete.go deleted file mode 100644 index 6d16cb628e38..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package applicationsecuritygroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c ApplicationSecurityGroupsClient) Delete(ctx context.Context, id ApplicationSecurityGroupId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c ApplicationSecurityGroupsClient) DeleteThenPoll(ctx context.Context, id ApplicationSecurityGroupId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_get.go deleted file mode 100644 index 88fdcf2df15b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package applicationsecuritygroups - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ApplicationSecurityGroup -} - -// Get ... -func (c ApplicationSecurityGroupsClient) Get(ctx context.Context, id ApplicationSecurityGroupId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ApplicationSecurityGroup - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_list.go deleted file mode 100644 index 1e8cc5c05ebf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package applicationsecuritygroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ApplicationSecurityGroup -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []ApplicationSecurityGroup -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c ApplicationSecurityGroupsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationSecurityGroups", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]ApplicationSecurityGroup `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c ApplicationSecurityGroupsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, ApplicationSecurityGroupOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ApplicationSecurityGroupsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ApplicationSecurityGroupOperationPredicate) (result ListCompleteResult, err error) { - items := make([]ApplicationSecurityGroup, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_listall.go deleted file mode 100644 index b0f38c737fac..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_listall.go +++ /dev/null @@ -1,106 +0,0 @@ -package applicationsecuritygroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListAllOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ApplicationSecurityGroup -} - -type ListAllCompleteResult struct { - LatestHttpResponse *http.Response - Items []ApplicationSecurityGroup -} - -type ListAllCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListAllCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListAll ... -func (c ApplicationSecurityGroupsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListAllCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationSecurityGroups", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]ApplicationSecurityGroup `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListAllComplete retrieves all the results into a single object -func (c ApplicationSecurityGroupsClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { - return c.ListAllCompleteMatchingPredicate(ctx, id, ApplicationSecurityGroupOperationPredicate{}) -} - -// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ApplicationSecurityGroupsClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ApplicationSecurityGroupOperationPredicate) (result ListAllCompleteResult, err error) { - items := make([]ApplicationSecurityGroup, 0) - - resp, err := c.ListAll(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListAllCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_updatetags.go deleted file mode 100644 index 3337e0dc239b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_updatetags.go +++ /dev/null @@ -1,57 +0,0 @@ -package applicationsecuritygroups - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateTagsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ApplicationSecurityGroup -} - -// UpdateTags ... -func (c ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, id ApplicationSecurityGroupId, input TagsObject) (result UpdateTagsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ApplicationSecurityGroup - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_applicationsecuritygroup.go deleted file mode 100644 index 56c89e2151e0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_applicationsecuritygroup.go +++ /dev/null @@ -1,14 +0,0 @@ -package applicationsecuritygroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_applicationsecuritygrouppropertiesformat.go deleted file mode 100644 index c54772935dae..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_applicationsecuritygrouppropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package applicationsecuritygroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroupPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_tagsobject.go deleted file mode 100644 index b945e6c9cdf0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package applicationsecuritygroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/predicates.go deleted file mode 100644 index 6ea534ecd892..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/predicates.go +++ /dev/null @@ -1,37 +0,0 @@ -package applicationsecuritygroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroupOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p ApplicationSecurityGroupOperationPredicate) Matches(input ApplicationSecurityGroup) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/version.go deleted file mode 100644 index ce3e93ca31c5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package applicationsecuritygroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/applicationsecuritygroups/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/README.md deleted file mode 100644 index 171197e2921d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/README.md +++ /dev/null @@ -1,146 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls` Documentation - -The `azurefirewalls` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" -``` - - -### Client Initialization - -```go -client := azurefirewalls.NewAzureFirewallsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `AzureFirewallsClient.AzureFirewallsListLearnedPrefixes` - -```go -ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") - -if err := client.AzureFirewallsListLearnedPrefixesThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `AzureFirewallsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") - -payload := azurefirewalls.AzureFirewall{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `AzureFirewallsClient.Delete` - -```go -ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `AzureFirewallsClient.Get` - -```go -ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AzureFirewallsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AzureFirewallsClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AzureFirewallsClient.PacketCapture` - -```go -ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") - -payload := azurefirewalls.FirewallPacketCaptureParameters{ - // ... -} - - -if err := client.PacketCaptureThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `AzureFirewallsClient.UpdateTags` - -```go -ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") - -payload := azurefirewalls.TagsObject{ - // ... -} - - -if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/client.go deleted file mode 100644 index 02df961b70b6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package azurefirewalls - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallsClient struct { - Client *resourcemanager.Client -} - -func NewAzureFirewallsClientWithBaseURI(sdkApi sdkEnv.Api) (*AzureFirewallsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "azurefirewalls", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating AzureFirewallsClient: %+v", err) - } - - return &AzureFirewallsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/constants.go deleted file mode 100644 index d7a3af8fb71f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/constants.go +++ /dev/null @@ -1,412 +0,0 @@ -package azurefirewalls - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallApplicationRuleProtocolType string - -const ( - AzureFirewallApplicationRuleProtocolTypeHTTP AzureFirewallApplicationRuleProtocolType = "Http" - AzureFirewallApplicationRuleProtocolTypeHTTPS AzureFirewallApplicationRuleProtocolType = "Https" - AzureFirewallApplicationRuleProtocolTypeMssql AzureFirewallApplicationRuleProtocolType = "Mssql" -) - -func PossibleValuesForAzureFirewallApplicationRuleProtocolType() []string { - return []string{ - string(AzureFirewallApplicationRuleProtocolTypeHTTP), - string(AzureFirewallApplicationRuleProtocolTypeHTTPS), - string(AzureFirewallApplicationRuleProtocolTypeMssql), - } -} - -func (s *AzureFirewallApplicationRuleProtocolType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAzureFirewallApplicationRuleProtocolType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAzureFirewallApplicationRuleProtocolType(input string) (*AzureFirewallApplicationRuleProtocolType, error) { - vals := map[string]AzureFirewallApplicationRuleProtocolType{ - "http": AzureFirewallApplicationRuleProtocolTypeHTTP, - "https": AzureFirewallApplicationRuleProtocolTypeHTTPS, - "mssql": AzureFirewallApplicationRuleProtocolTypeMssql, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AzureFirewallApplicationRuleProtocolType(input) - return &out, nil -} - -type AzureFirewallNatRCActionType string - -const ( - AzureFirewallNatRCActionTypeDnat AzureFirewallNatRCActionType = "Dnat" - AzureFirewallNatRCActionTypeSnat AzureFirewallNatRCActionType = "Snat" -) - -func PossibleValuesForAzureFirewallNatRCActionType() []string { - return []string{ - string(AzureFirewallNatRCActionTypeDnat), - string(AzureFirewallNatRCActionTypeSnat), - } -} - -func (s *AzureFirewallNatRCActionType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAzureFirewallNatRCActionType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAzureFirewallNatRCActionType(input string) (*AzureFirewallNatRCActionType, error) { - vals := map[string]AzureFirewallNatRCActionType{ - "dnat": AzureFirewallNatRCActionTypeDnat, - "snat": AzureFirewallNatRCActionTypeSnat, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AzureFirewallNatRCActionType(input) - return &out, nil -} - -type AzureFirewallNetworkRuleProtocol string - -const ( - AzureFirewallNetworkRuleProtocolAny AzureFirewallNetworkRuleProtocol = "Any" - AzureFirewallNetworkRuleProtocolICMP AzureFirewallNetworkRuleProtocol = "ICMP" - AzureFirewallNetworkRuleProtocolTCP AzureFirewallNetworkRuleProtocol = "TCP" - AzureFirewallNetworkRuleProtocolUDP AzureFirewallNetworkRuleProtocol = "UDP" -) - -func PossibleValuesForAzureFirewallNetworkRuleProtocol() []string { - return []string{ - string(AzureFirewallNetworkRuleProtocolAny), - string(AzureFirewallNetworkRuleProtocolICMP), - string(AzureFirewallNetworkRuleProtocolTCP), - string(AzureFirewallNetworkRuleProtocolUDP), - } -} - -func (s *AzureFirewallNetworkRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAzureFirewallNetworkRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAzureFirewallNetworkRuleProtocol(input string) (*AzureFirewallNetworkRuleProtocol, error) { - vals := map[string]AzureFirewallNetworkRuleProtocol{ - "any": AzureFirewallNetworkRuleProtocolAny, - "icmp": AzureFirewallNetworkRuleProtocolICMP, - "tcp": AzureFirewallNetworkRuleProtocolTCP, - "udp": AzureFirewallNetworkRuleProtocolUDP, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AzureFirewallNetworkRuleProtocol(input) - return &out, nil -} - -type AzureFirewallPacketCaptureFlagsType string - -const ( - AzureFirewallPacketCaptureFlagsTypeAck AzureFirewallPacketCaptureFlagsType = "ack" - AzureFirewallPacketCaptureFlagsTypeFin AzureFirewallPacketCaptureFlagsType = "fin" - AzureFirewallPacketCaptureFlagsTypePush AzureFirewallPacketCaptureFlagsType = "push" - AzureFirewallPacketCaptureFlagsTypeRst AzureFirewallPacketCaptureFlagsType = "rst" - AzureFirewallPacketCaptureFlagsTypeSyn AzureFirewallPacketCaptureFlagsType = "syn" - AzureFirewallPacketCaptureFlagsTypeUrg AzureFirewallPacketCaptureFlagsType = "urg" -) - -func PossibleValuesForAzureFirewallPacketCaptureFlagsType() []string { - return []string{ - string(AzureFirewallPacketCaptureFlagsTypeAck), - string(AzureFirewallPacketCaptureFlagsTypeFin), - string(AzureFirewallPacketCaptureFlagsTypePush), - string(AzureFirewallPacketCaptureFlagsTypeRst), - string(AzureFirewallPacketCaptureFlagsTypeSyn), - string(AzureFirewallPacketCaptureFlagsTypeUrg), - } -} - -func (s *AzureFirewallPacketCaptureFlagsType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAzureFirewallPacketCaptureFlagsType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAzureFirewallPacketCaptureFlagsType(input string) (*AzureFirewallPacketCaptureFlagsType, error) { - vals := map[string]AzureFirewallPacketCaptureFlagsType{ - "ack": AzureFirewallPacketCaptureFlagsTypeAck, - "fin": AzureFirewallPacketCaptureFlagsTypeFin, - "push": AzureFirewallPacketCaptureFlagsTypePush, - "rst": AzureFirewallPacketCaptureFlagsTypeRst, - "syn": AzureFirewallPacketCaptureFlagsTypeSyn, - "urg": AzureFirewallPacketCaptureFlagsTypeUrg, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AzureFirewallPacketCaptureFlagsType(input) - return &out, nil -} - -type AzureFirewallRCActionType string - -const ( - AzureFirewallRCActionTypeAllow AzureFirewallRCActionType = "Allow" - AzureFirewallRCActionTypeDeny AzureFirewallRCActionType = "Deny" -) - -func PossibleValuesForAzureFirewallRCActionType() []string { - return []string{ - string(AzureFirewallRCActionTypeAllow), - string(AzureFirewallRCActionTypeDeny), - } -} - -func (s *AzureFirewallRCActionType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAzureFirewallRCActionType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAzureFirewallRCActionType(input string) (*AzureFirewallRCActionType, error) { - vals := map[string]AzureFirewallRCActionType{ - "allow": AzureFirewallRCActionTypeAllow, - "deny": AzureFirewallRCActionTypeDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AzureFirewallRCActionType(input) - return &out, nil -} - -type AzureFirewallSkuName string - -const ( - AzureFirewallSkuNameAZFWHub AzureFirewallSkuName = "AZFW_Hub" - AzureFirewallSkuNameAZFWVNet AzureFirewallSkuName = "AZFW_VNet" -) - -func PossibleValuesForAzureFirewallSkuName() []string { - return []string{ - string(AzureFirewallSkuNameAZFWHub), - string(AzureFirewallSkuNameAZFWVNet), - } -} - -func (s *AzureFirewallSkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAzureFirewallSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAzureFirewallSkuName(input string) (*AzureFirewallSkuName, error) { - vals := map[string]AzureFirewallSkuName{ - "azfw_hub": AzureFirewallSkuNameAZFWHub, - "azfw_vnet": AzureFirewallSkuNameAZFWVNet, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AzureFirewallSkuName(input) - return &out, nil -} - -type AzureFirewallSkuTier string - -const ( - AzureFirewallSkuTierBasic AzureFirewallSkuTier = "Basic" - AzureFirewallSkuTierPremium AzureFirewallSkuTier = "Premium" - AzureFirewallSkuTierStandard AzureFirewallSkuTier = "Standard" -) - -func PossibleValuesForAzureFirewallSkuTier() []string { - return []string{ - string(AzureFirewallSkuTierBasic), - string(AzureFirewallSkuTierPremium), - string(AzureFirewallSkuTierStandard), - } -} - -func (s *AzureFirewallSkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAzureFirewallSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAzureFirewallSkuTier(input string) (*AzureFirewallSkuTier, error) { - vals := map[string]AzureFirewallSkuTier{ - "basic": AzureFirewallSkuTierBasic, - "premium": AzureFirewallSkuTierPremium, - "standard": AzureFirewallSkuTierStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AzureFirewallSkuTier(input) - return &out, nil -} - -type AzureFirewallThreatIntelMode string - -const ( - AzureFirewallThreatIntelModeAlert AzureFirewallThreatIntelMode = "Alert" - AzureFirewallThreatIntelModeDeny AzureFirewallThreatIntelMode = "Deny" - AzureFirewallThreatIntelModeOff AzureFirewallThreatIntelMode = "Off" -) - -func PossibleValuesForAzureFirewallThreatIntelMode() []string { - return []string{ - string(AzureFirewallThreatIntelModeAlert), - string(AzureFirewallThreatIntelModeDeny), - string(AzureFirewallThreatIntelModeOff), - } -} - -func (s *AzureFirewallThreatIntelMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAzureFirewallThreatIntelMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAzureFirewallThreatIntelMode(input string) (*AzureFirewallThreatIntelMode, error) { - vals := map[string]AzureFirewallThreatIntelMode{ - "alert": AzureFirewallThreatIntelModeAlert, - "deny": AzureFirewallThreatIntelModeDeny, - "off": AzureFirewallThreatIntelModeOff, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AzureFirewallThreatIntelMode(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/id_azurefirewall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/id_azurefirewall.go deleted file mode 100644 index 5c55ccb6a6a8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/id_azurefirewall.go +++ /dev/null @@ -1,130 +0,0 @@ -package azurefirewalls - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&AzureFirewallId{}) -} - -var _ resourceids.ResourceId = &AzureFirewallId{} - -// AzureFirewallId is a struct representing the Resource ID for a Azure Firewall -type AzureFirewallId struct { - SubscriptionId string - ResourceGroupName string - AzureFirewallName string -} - -// NewAzureFirewallID returns a new AzureFirewallId struct -func NewAzureFirewallID(subscriptionId string, resourceGroupName string, azureFirewallName string) AzureFirewallId { - return AzureFirewallId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - AzureFirewallName: azureFirewallName, - } -} - -// ParseAzureFirewallID parses 'input' into a AzureFirewallId -func ParseAzureFirewallID(input string) (*AzureFirewallId, error) { - parser := resourceids.NewParserFromResourceIdType(&AzureFirewallId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := AzureFirewallId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseAzureFirewallIDInsensitively parses 'input' case-insensitively into a AzureFirewallId -// note: this method should only be used for API response data and not user input -func ParseAzureFirewallIDInsensitively(input string) (*AzureFirewallId, error) { - parser := resourceids.NewParserFromResourceIdType(&AzureFirewallId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := AzureFirewallId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *AzureFirewallId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.AzureFirewallName, ok = input.Parsed["azureFirewallName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "azureFirewallName", input) - } - - return nil -} - -// ValidateAzureFirewallID checks that 'input' can be parsed as a Azure Firewall ID -func ValidateAzureFirewallID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseAzureFirewallID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Azure Firewall ID -func (id AzureFirewallId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/azureFirewalls/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.AzureFirewallName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Azure Firewall ID -func (id AzureFirewallId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticAzureFirewalls", "azureFirewalls", "azureFirewalls"), - resourceids.UserSpecifiedSegment("azureFirewallName", "azureFirewallName"), - } -} - -// String returns a human-readable description of this Azure Firewall ID -func (id AzureFirewallId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Azure Firewall Name: %q", id.AzureFirewallName), - } - return fmt.Sprintf("Azure Firewall (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_azurefirewallslistlearnedprefixes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_azurefirewallslistlearnedprefixes.go deleted file mode 100644 index 79c6c0ccfd69..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_azurefirewallslistlearnedprefixes.go +++ /dev/null @@ -1,71 +0,0 @@ -package azurefirewalls - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallsListLearnedPrefixesOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *IPPrefixesList -} - -// AzureFirewallsListLearnedPrefixes ... -func (c AzureFirewallsClient) AzureFirewallsListLearnedPrefixes(ctx context.Context, id AzureFirewallId) (result AzureFirewallsListLearnedPrefixesOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/learnedIPPrefixes", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// AzureFirewallsListLearnedPrefixesThenPoll performs AzureFirewallsListLearnedPrefixes then polls until it's completed -func (c AzureFirewallsClient) AzureFirewallsListLearnedPrefixesThenPoll(ctx context.Context, id AzureFirewallId) error { - result, err := c.AzureFirewallsListLearnedPrefixes(ctx, id) - if err != nil { - return fmt.Errorf("performing AzureFirewallsListLearnedPrefixes: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after AzureFirewallsListLearnedPrefixes: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_createorupdate.go deleted file mode 100644 index fdd7520026c8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package azurefirewalls - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *AzureFirewall -} - -// CreateOrUpdate ... -func (c AzureFirewallsClient) CreateOrUpdate(ctx context.Context, id AzureFirewallId, input AzureFirewall) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c AzureFirewallsClient) CreateOrUpdateThenPoll(ctx context.Context, id AzureFirewallId, input AzureFirewall) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_delete.go deleted file mode 100644 index 04fddc417236..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package azurefirewalls - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c AzureFirewallsClient) Delete(ctx context.Context, id AzureFirewallId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c AzureFirewallsClient) DeleteThenPoll(ctx context.Context, id AzureFirewallId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_get.go deleted file mode 100644 index e98027949215..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package azurefirewalls - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *AzureFirewall -} - -// Get ... -func (c AzureFirewallsClient) Get(ctx context.Context, id AzureFirewallId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model AzureFirewall - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_list.go deleted file mode 100644 index 305a4b553ef1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package azurefirewalls - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]AzureFirewall -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []AzureFirewall -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c AzureFirewallsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/azureFirewalls", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]AzureFirewall `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c AzureFirewallsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, AzureFirewallOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AzureFirewallsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate AzureFirewallOperationPredicate) (result ListCompleteResult, err error) { - items := make([]AzureFirewall, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_listall.go deleted file mode 100644 index be602f8bbd50..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_listall.go +++ /dev/null @@ -1,106 +0,0 @@ -package azurefirewalls - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListAllOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]AzureFirewall -} - -type ListAllCompleteResult struct { - LatestHttpResponse *http.Response - Items []AzureFirewall -} - -type ListAllCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListAllCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListAll ... -func (c AzureFirewallsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListAllCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/azureFirewalls", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]AzureFirewall `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListAllComplete retrieves all the results into a single object -func (c AzureFirewallsClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { - return c.ListAllCompleteMatchingPredicate(ctx, id, AzureFirewallOperationPredicate{}) -} - -// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AzureFirewallsClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate AzureFirewallOperationPredicate) (result ListAllCompleteResult, err error) { - items := make([]AzureFirewall, 0) - - resp, err := c.ListAll(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListAllCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_packetcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_packetcapture.go deleted file mode 100644 index a2b211da6c7f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_packetcapture.go +++ /dev/null @@ -1,73 +0,0 @@ -package azurefirewalls - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PacketCaptureOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// PacketCapture ... -func (c AzureFirewallsClient) PacketCapture(ctx context.Context, id AzureFirewallId, input FirewallPacketCaptureParameters) (result PacketCaptureOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/packetCapture", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// PacketCaptureThenPoll performs PacketCapture then polls until it's completed -func (c AzureFirewallsClient) PacketCaptureThenPoll(ctx context.Context, id AzureFirewallId, input FirewallPacketCaptureParameters) error { - result, err := c.PacketCapture(ctx, id, input) - if err != nil { - return fmt.Errorf("performing PacketCapture: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after PacketCapture: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_updatetags.go deleted file mode 100644 index 1d404977af9b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_updatetags.go +++ /dev/null @@ -1,75 +0,0 @@ -package azurefirewalls - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateTagsOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *AzureFirewall -} - -// UpdateTags ... -func (c AzureFirewallsClient) UpdateTags(ctx context.Context, id AzureFirewallId, input TagsObject) (result UpdateTagsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// UpdateTagsThenPoll performs UpdateTags then polls until it's completed -func (c AzureFirewallsClient) UpdateTagsThenPoll(ctx context.Context, id AzureFirewallId, input TagsObject) error { - result, err := c.UpdateTags(ctx, id, input) - if err != nil { - return fmt.Errorf("performing UpdateTags: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after UpdateTags: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewall.go deleted file mode 100644 index da4d4ccf5f75..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewall.go +++ /dev/null @@ -1,19 +0,0 @@ -package azurefirewalls - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewall struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *AzureFirewallPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrule.go deleted file mode 100644 index c74f6235d090..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrule.go +++ /dev/null @@ -1,14 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallApplicationRule struct { - Description *string `json:"description,omitempty"` - FqdnTags *[]string `json:"fqdnTags,omitempty"` - Name *string `json:"name,omitempty"` - Protocols *[]AzureFirewallApplicationRuleProtocol `json:"protocols,omitempty"` - SourceAddresses *[]string `json:"sourceAddresses,omitempty"` - SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` - TargetFqdns *[]string `json:"targetFqdns,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrulecollection.go deleted file mode 100644 index 0307e6e7b332..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrulecollection.go +++ /dev/null @@ -1,11 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallApplicationRuleCollection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *AzureFirewallApplicationRuleCollectionPropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrulecollectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrulecollectionpropertiesformat.go deleted file mode 100644 index bd5d09f330dd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrulecollectionpropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallApplicationRuleCollectionPropertiesFormat struct { - Action *AzureFirewallRCAction `json:"action,omitempty"` - Priority *int64 `json:"priority,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Rules *[]AzureFirewallApplicationRule `json:"rules,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationruleprotocol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationruleprotocol.go deleted file mode 100644 index 8ea63b2ef924..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationruleprotocol.go +++ /dev/null @@ -1,9 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallApplicationRuleProtocol struct { - Port *int64 `json:"port,omitempty"` - ProtocolType *AzureFirewallApplicationRuleProtocolType `json:"protocolType,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipconfiguration.go deleted file mode 100644 index 3456ba0b1ad9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *AzureFirewallIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipconfigurationpropertiesformat.go deleted file mode 100644 index cca790693378..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipconfigurationpropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallIPConfigurationPropertiesFormat struct { - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` - Subnet *SubResource `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipgroups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipgroups.go deleted file mode 100644 index e26c8540a653..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipgroups.go +++ /dev/null @@ -1,9 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallIPGroups struct { - ChangeNumber *string `json:"changeNumber,omitempty"` - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrcaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrcaction.go deleted file mode 100644 index 9c9250aef391..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrcaction.go +++ /dev/null @@ -1,8 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallNatRCAction struct { - Type *AzureFirewallNatRCActionType `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrule.go deleted file mode 100644 index 70c0d009eabb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrule.go +++ /dev/null @@ -1,17 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallNatRule struct { - Description *string `json:"description,omitempty"` - DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` - DestinationPorts *[]string `json:"destinationPorts,omitempty"` - Name *string `json:"name,omitempty"` - Protocols *[]AzureFirewallNetworkRuleProtocol `json:"protocols,omitempty"` - SourceAddresses *[]string `json:"sourceAddresses,omitempty"` - SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` - TranslatedAddress *string `json:"translatedAddress,omitempty"` - TranslatedFqdn *string `json:"translatedFqdn,omitempty"` - TranslatedPort *string `json:"translatedPort,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrulecollection.go deleted file mode 100644 index d06cf19e3596..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrulecollection.go +++ /dev/null @@ -1,11 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallNatRuleCollection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *AzureFirewallNatRuleCollectionProperties `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrulecollectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrulecollectionproperties.go deleted file mode 100644 index 774ac6902bc1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrulecollectionproperties.go +++ /dev/null @@ -1,11 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallNatRuleCollectionProperties struct { - Action *AzureFirewallNatRCAction `json:"action,omitempty"` - Priority *int64 `json:"priority,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Rules *[]AzureFirewallNatRule `json:"rules,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrule.go deleted file mode 100644 index 6833c1f75097..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrule.go +++ /dev/null @@ -1,16 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallNetworkRule struct { - Description *string `json:"description,omitempty"` - DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` - DestinationFqdns *[]string `json:"destinationFqdns,omitempty"` - DestinationIPGroups *[]string `json:"destinationIpGroups,omitempty"` - DestinationPorts *[]string `json:"destinationPorts,omitempty"` - Name *string `json:"name,omitempty"` - Protocols *[]AzureFirewallNetworkRuleProtocol `json:"protocols,omitempty"` - SourceAddresses *[]string `json:"sourceAddresses,omitempty"` - SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrulecollection.go deleted file mode 100644 index ea5f2ba0d2b1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrulecollection.go +++ /dev/null @@ -1,11 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallNetworkRuleCollection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *AzureFirewallNetworkRuleCollectionPropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrulecollectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrulecollectionpropertiesformat.go deleted file mode 100644 index be71e0633705..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrulecollectionpropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallNetworkRuleCollectionPropertiesFormat struct { - Action *AzureFirewallRCAction `json:"action,omitempty"` - Priority *int64 `json:"priority,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Rules *[]AzureFirewallNetworkRule `json:"rules,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpacketcaptureflags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpacketcaptureflags.go deleted file mode 100644 index edcc08e5590b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpacketcaptureflags.go +++ /dev/null @@ -1,8 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallPacketCaptureFlags struct { - Type *AzureFirewallPacketCaptureFlagsType `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpacketcapturerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpacketcapturerule.go deleted file mode 100644 index 4d9921e32435..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpacketcapturerule.go +++ /dev/null @@ -1,10 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallPacketCaptureRule struct { - DestinationPorts *[]string `json:"destinationPorts,omitempty"` - Destinations *[]string `json:"destinations,omitempty"` - Sources *[]string `json:"sources,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpropertiesformat.go deleted file mode 100644 index 0e8c463423fc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpropertiesformat.go +++ /dev/null @@ -1,20 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallPropertiesFormat struct { - AdditionalProperties *map[string]string `json:"additionalProperties,omitempty"` - ApplicationRuleCollections *[]AzureFirewallApplicationRuleCollection `json:"applicationRuleCollections,omitempty"` - FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` - HubIPAddresses *HubIPAddresses `json:"hubIPAddresses,omitempty"` - IPConfigurations *[]AzureFirewallIPConfiguration `json:"ipConfigurations,omitempty"` - IPGroups *[]AzureFirewallIPGroups `json:"ipGroups,omitempty"` - ManagementIPConfiguration *AzureFirewallIPConfiguration `json:"managementIpConfiguration,omitempty"` - NatRuleCollections *[]AzureFirewallNatRuleCollection `json:"natRuleCollections,omitempty"` - NetworkRuleCollections *[]AzureFirewallNetworkRuleCollection `json:"networkRuleCollections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Sku *AzureFirewallSku `json:"sku,omitempty"` - ThreatIntelMode *AzureFirewallThreatIntelMode `json:"threatIntelMode,omitempty"` - VirtualHub *SubResource `json:"virtualHub,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpublicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpublicipaddress.go deleted file mode 100644 index c5dff4f3fffe..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpublicipaddress.go +++ /dev/null @@ -1,8 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallPublicIPAddress struct { - Address *string `json:"address,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallrcaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallrcaction.go deleted file mode 100644 index 752c166b62bc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallrcaction.go +++ /dev/null @@ -1,8 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallRCAction struct { - Type *AzureFirewallRCActionType `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallsku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallsku.go deleted file mode 100644 index 46f81c15dbcf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallsku.go +++ /dev/null @@ -1,9 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallSku struct { - Name *AzureFirewallSkuName `json:"name,omitempty"` - Tier *AzureFirewallSkuTier `json:"tier,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_firewallpacketcaptureparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_firewallpacketcaptureparameters.go deleted file mode 100644 index 258aca5b011b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_firewallpacketcaptureparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FirewallPacketCaptureParameters struct { - Id *string `json:"id,omitempty"` - Properties *FirewallPacketCaptureParametersFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_firewallpacketcaptureparametersformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_firewallpacketcaptureparametersformat.go deleted file mode 100644 index a664e348c2a7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_firewallpacketcaptureparametersformat.go +++ /dev/null @@ -1,14 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FirewallPacketCaptureParametersFormat struct { - DurationInSeconds *int64 `json:"durationInSeconds,omitempty"` - FileName *string `json:"fileName,omitempty"` - Filters *[]AzureFirewallPacketCaptureRule `json:"filters,omitempty"` - Flags *[]AzureFirewallPacketCaptureFlags `json:"flags,omitempty"` - NumberOfPacketsToCapture *int64 `json:"numberOfPacketsToCapture,omitempty"` - Protocol *AzureFirewallNetworkRuleProtocol `json:"protocol,omitempty"` - SasURL *string `json:"sasUrl,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_hubipaddresses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_hubipaddresses.go deleted file mode 100644 index 2fa8e41de6b8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_hubipaddresses.go +++ /dev/null @@ -1,9 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HubIPAddresses struct { - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PublicIPs *HubPublicIPAddresses `json:"publicIPs,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_hubpublicipaddresses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_hubpublicipaddresses.go deleted file mode 100644 index 48ee31328462..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_hubpublicipaddresses.go +++ /dev/null @@ -1,9 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HubPublicIPAddresses struct { - Addresses *[]AzureFirewallPublicIPAddress `json:"addresses,omitempty"` - Count *int64 `json:"count,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_ipprefixeslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_ipprefixeslist.go deleted file mode 100644 index 3d2ea0d9a9e0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_ipprefixeslist.go +++ /dev/null @@ -1,8 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPPrefixesList struct { - IPPrefixes *[]string `json:"ipPrefixes,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_subresource.go deleted file mode 100644 index 3a39f2458c4f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_tagsobject.go deleted file mode 100644 index 3b70ce55bcdc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/predicates.go deleted file mode 100644 index 68ca8da5623b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/predicates.go +++ /dev/null @@ -1,37 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureFirewallOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p AzureFirewallOperationPredicate) Matches(input AzureFirewall) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/version.go deleted file mode 100644 index 50167a781bf5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/azurefirewalls/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/README.md deleted file mode 100644 index 50175098beaf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/README.md +++ /dev/null @@ -1,138 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors` Documentation - -The `connectionmonitors` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors" -``` - - -### Client Initialization - -```go -client := connectionmonitors.NewConnectionMonitorsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ConnectionMonitorsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") - -payload := connectionmonitors.ConnectionMonitor{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload, connectionmonitors.DefaultCreateOrUpdateOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `ConnectionMonitorsClient.Delete` - -```go -ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ConnectionMonitorsClient.Get` - -```go -ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ConnectionMonitorsClient.List` - -```go -ctx := context.TODO() -id := connectionmonitors.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -read, err := client.List(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ConnectionMonitorsClient.Query` - -```go -ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") - -if err := client.QueryThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ConnectionMonitorsClient.Start` - -```go -ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") - -if err := client.StartThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ConnectionMonitorsClient.Stop` - -```go -ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") - -if err := client.StopThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ConnectionMonitorsClient.UpdateTags` - -```go -ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") - -payload := connectionmonitors.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/client.go deleted file mode 100644 index c23a27cd53b5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package connectionmonitors - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorsClient struct { - Client *resourcemanager.Client -} - -func NewConnectionMonitorsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConnectionMonitorsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "connectionmonitors", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating ConnectionMonitorsClient: %+v", err) - } - - return &ConnectionMonitorsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/constants.go deleted file mode 100644 index ca32d5169c7f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/constants.go +++ /dev/null @@ -1,773 +0,0 @@ -package connectionmonitors - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorEndpointFilterItemType string - -const ( - ConnectionMonitorEndpointFilterItemTypeAgentAddress ConnectionMonitorEndpointFilterItemType = "AgentAddress" -) - -func PossibleValuesForConnectionMonitorEndpointFilterItemType() []string { - return []string{ - string(ConnectionMonitorEndpointFilterItemTypeAgentAddress), - } -} - -func (s *ConnectionMonitorEndpointFilterItemType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseConnectionMonitorEndpointFilterItemType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseConnectionMonitorEndpointFilterItemType(input string) (*ConnectionMonitorEndpointFilterItemType, error) { - vals := map[string]ConnectionMonitorEndpointFilterItemType{ - "agentaddress": ConnectionMonitorEndpointFilterItemTypeAgentAddress, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ConnectionMonitorEndpointFilterItemType(input) - return &out, nil -} - -type ConnectionMonitorEndpointFilterType string - -const ( - ConnectionMonitorEndpointFilterTypeInclude ConnectionMonitorEndpointFilterType = "Include" -) - -func PossibleValuesForConnectionMonitorEndpointFilterType() []string { - return []string{ - string(ConnectionMonitorEndpointFilterTypeInclude), - } -} - -func (s *ConnectionMonitorEndpointFilterType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseConnectionMonitorEndpointFilterType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseConnectionMonitorEndpointFilterType(input string) (*ConnectionMonitorEndpointFilterType, error) { - vals := map[string]ConnectionMonitorEndpointFilterType{ - "include": ConnectionMonitorEndpointFilterTypeInclude, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ConnectionMonitorEndpointFilterType(input) - return &out, nil -} - -type ConnectionMonitorSourceStatus string - -const ( - ConnectionMonitorSourceStatusActive ConnectionMonitorSourceStatus = "Active" - ConnectionMonitorSourceStatusInactive ConnectionMonitorSourceStatus = "Inactive" - ConnectionMonitorSourceStatusUnknown ConnectionMonitorSourceStatus = "Unknown" -) - -func PossibleValuesForConnectionMonitorSourceStatus() []string { - return []string{ - string(ConnectionMonitorSourceStatusActive), - string(ConnectionMonitorSourceStatusInactive), - string(ConnectionMonitorSourceStatusUnknown), - } -} - -func (s *ConnectionMonitorSourceStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseConnectionMonitorSourceStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseConnectionMonitorSourceStatus(input string) (*ConnectionMonitorSourceStatus, error) { - vals := map[string]ConnectionMonitorSourceStatus{ - "active": ConnectionMonitorSourceStatusActive, - "inactive": ConnectionMonitorSourceStatusInactive, - "unknown": ConnectionMonitorSourceStatusUnknown, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ConnectionMonitorSourceStatus(input) - return &out, nil -} - -type ConnectionMonitorTestConfigurationProtocol string - -const ( - ConnectionMonitorTestConfigurationProtocolHTTP ConnectionMonitorTestConfigurationProtocol = "Http" - ConnectionMonitorTestConfigurationProtocolIcmp ConnectionMonitorTestConfigurationProtocol = "Icmp" - ConnectionMonitorTestConfigurationProtocolTcp ConnectionMonitorTestConfigurationProtocol = "Tcp" -) - -func PossibleValuesForConnectionMonitorTestConfigurationProtocol() []string { - return []string{ - string(ConnectionMonitorTestConfigurationProtocolHTTP), - string(ConnectionMonitorTestConfigurationProtocolIcmp), - string(ConnectionMonitorTestConfigurationProtocolTcp), - } -} - -func (s *ConnectionMonitorTestConfigurationProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseConnectionMonitorTestConfigurationProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseConnectionMonitorTestConfigurationProtocol(input string) (*ConnectionMonitorTestConfigurationProtocol, error) { - vals := map[string]ConnectionMonitorTestConfigurationProtocol{ - "http": ConnectionMonitorTestConfigurationProtocolHTTP, - "icmp": ConnectionMonitorTestConfigurationProtocolIcmp, - "tcp": ConnectionMonitorTestConfigurationProtocolTcp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ConnectionMonitorTestConfigurationProtocol(input) - return &out, nil -} - -type ConnectionMonitorType string - -const ( - ConnectionMonitorTypeMultiEndpoint ConnectionMonitorType = "MultiEndpoint" - ConnectionMonitorTypeSingleSourceDestination ConnectionMonitorType = "SingleSourceDestination" -) - -func PossibleValuesForConnectionMonitorType() []string { - return []string{ - string(ConnectionMonitorTypeMultiEndpoint), - string(ConnectionMonitorTypeSingleSourceDestination), - } -} - -func (s *ConnectionMonitorType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseConnectionMonitorType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseConnectionMonitorType(input string) (*ConnectionMonitorType, error) { - vals := map[string]ConnectionMonitorType{ - "multiendpoint": ConnectionMonitorTypeMultiEndpoint, - "singlesourcedestination": ConnectionMonitorTypeSingleSourceDestination, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ConnectionMonitorType(input) - return &out, nil -} - -type ConnectionState string - -const ( - ConnectionStateReachable ConnectionState = "Reachable" - ConnectionStateUnknown ConnectionState = "Unknown" - ConnectionStateUnreachable ConnectionState = "Unreachable" -) - -func PossibleValuesForConnectionState() []string { - return []string{ - string(ConnectionStateReachable), - string(ConnectionStateUnknown), - string(ConnectionStateUnreachable), - } -} - -func (s *ConnectionState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseConnectionState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseConnectionState(input string) (*ConnectionState, error) { - vals := map[string]ConnectionState{ - "reachable": ConnectionStateReachable, - "unknown": ConnectionStateUnknown, - "unreachable": ConnectionStateUnreachable, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ConnectionState(input) - return &out, nil -} - -type CoverageLevel string - -const ( - CoverageLevelAboveAverage CoverageLevel = "AboveAverage" - CoverageLevelAverage CoverageLevel = "Average" - CoverageLevelBelowAverage CoverageLevel = "BelowAverage" - CoverageLevelDefault CoverageLevel = "Default" - CoverageLevelFull CoverageLevel = "Full" - CoverageLevelLow CoverageLevel = "Low" -) - -func PossibleValuesForCoverageLevel() []string { - return []string{ - string(CoverageLevelAboveAverage), - string(CoverageLevelAverage), - string(CoverageLevelBelowAverage), - string(CoverageLevelDefault), - string(CoverageLevelFull), - string(CoverageLevelLow), - } -} - -func (s *CoverageLevel) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseCoverageLevel(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseCoverageLevel(input string) (*CoverageLevel, error) { - vals := map[string]CoverageLevel{ - "aboveaverage": CoverageLevelAboveAverage, - "average": CoverageLevelAverage, - "belowaverage": CoverageLevelBelowAverage, - "default": CoverageLevelDefault, - "full": CoverageLevelFull, - "low": CoverageLevelLow, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := CoverageLevel(input) - return &out, nil -} - -type DestinationPortBehavior string - -const ( - DestinationPortBehaviorListenIfAvailable DestinationPortBehavior = "ListenIfAvailable" - DestinationPortBehaviorNone DestinationPortBehavior = "None" -) - -func PossibleValuesForDestinationPortBehavior() []string { - return []string{ - string(DestinationPortBehaviorListenIfAvailable), - string(DestinationPortBehaviorNone), - } -} - -func (s *DestinationPortBehavior) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDestinationPortBehavior(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDestinationPortBehavior(input string) (*DestinationPortBehavior, error) { - vals := map[string]DestinationPortBehavior{ - "listenifavailable": DestinationPortBehaviorListenIfAvailable, - "none": DestinationPortBehaviorNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DestinationPortBehavior(input) - return &out, nil -} - -type EndpointType string - -const ( - EndpointTypeAzureArcNetwork EndpointType = "AzureArcNetwork" - EndpointTypeAzureArcVM EndpointType = "AzureArcVM" - EndpointTypeAzureSubnet EndpointType = "AzureSubnet" - EndpointTypeAzureVM EndpointType = "AzureVM" - EndpointTypeAzureVMSS EndpointType = "AzureVMSS" - EndpointTypeAzureVNet EndpointType = "AzureVNet" - EndpointTypeExternalAddress EndpointType = "ExternalAddress" - EndpointTypeMMAWorkspaceMachine EndpointType = "MMAWorkspaceMachine" - EndpointTypeMMAWorkspaceNetwork EndpointType = "MMAWorkspaceNetwork" -) - -func PossibleValuesForEndpointType() []string { - return []string{ - string(EndpointTypeAzureArcNetwork), - string(EndpointTypeAzureArcVM), - string(EndpointTypeAzureSubnet), - string(EndpointTypeAzureVM), - string(EndpointTypeAzureVMSS), - string(EndpointTypeAzureVNet), - string(EndpointTypeExternalAddress), - string(EndpointTypeMMAWorkspaceMachine), - string(EndpointTypeMMAWorkspaceNetwork), - } -} - -func (s *EndpointType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseEndpointType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseEndpointType(input string) (*EndpointType, error) { - vals := map[string]EndpointType{ - "azurearcnetwork": EndpointTypeAzureArcNetwork, - "azurearcvm": EndpointTypeAzureArcVM, - "azuresubnet": EndpointTypeAzureSubnet, - "azurevm": EndpointTypeAzureVM, - "azurevmss": EndpointTypeAzureVMSS, - "azurevnet": EndpointTypeAzureVNet, - "externaladdress": EndpointTypeExternalAddress, - "mmaworkspacemachine": EndpointTypeMMAWorkspaceMachine, - "mmaworkspacenetwork": EndpointTypeMMAWorkspaceNetwork, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := EndpointType(input) - return &out, nil -} - -type EvaluationState string - -const ( - EvaluationStateCompleted EvaluationState = "Completed" - EvaluationStateInProgress EvaluationState = "InProgress" - EvaluationStateNotStarted EvaluationState = "NotStarted" -) - -func PossibleValuesForEvaluationState() []string { - return []string{ - string(EvaluationStateCompleted), - string(EvaluationStateInProgress), - string(EvaluationStateNotStarted), - } -} - -func (s *EvaluationState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseEvaluationState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseEvaluationState(input string) (*EvaluationState, error) { - vals := map[string]EvaluationState{ - "completed": EvaluationStateCompleted, - "inprogress": EvaluationStateInProgress, - "notstarted": EvaluationStateNotStarted, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := EvaluationState(input) - return &out, nil -} - -type HTTPConfigurationMethod string - -const ( - HTTPConfigurationMethodGet HTTPConfigurationMethod = "Get" - HTTPConfigurationMethodPost HTTPConfigurationMethod = "Post" -) - -func PossibleValuesForHTTPConfigurationMethod() []string { - return []string{ - string(HTTPConfigurationMethodGet), - string(HTTPConfigurationMethodPost), - } -} - -func (s *HTTPConfigurationMethod) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseHTTPConfigurationMethod(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseHTTPConfigurationMethod(input string) (*HTTPConfigurationMethod, error) { - vals := map[string]HTTPConfigurationMethod{ - "get": HTTPConfigurationMethodGet, - "post": HTTPConfigurationMethodPost, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := HTTPConfigurationMethod(input) - return &out, nil -} - -type IssueType string - -const ( - IssueTypeAgentStopped IssueType = "AgentStopped" - IssueTypeDnsResolution IssueType = "DnsResolution" - IssueTypeGuestFirewall IssueType = "GuestFirewall" - IssueTypeNetworkSecurityRule IssueType = "NetworkSecurityRule" - IssueTypePlatform IssueType = "Platform" - IssueTypePortThrottled IssueType = "PortThrottled" - IssueTypeSocketBind IssueType = "SocketBind" - IssueTypeUnknown IssueType = "Unknown" - IssueTypeUserDefinedRoute IssueType = "UserDefinedRoute" -) - -func PossibleValuesForIssueType() []string { - return []string{ - string(IssueTypeAgentStopped), - string(IssueTypeDnsResolution), - string(IssueTypeGuestFirewall), - string(IssueTypeNetworkSecurityRule), - string(IssueTypePlatform), - string(IssueTypePortThrottled), - string(IssueTypeSocketBind), - string(IssueTypeUnknown), - string(IssueTypeUserDefinedRoute), - } -} - -func (s *IssueType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIssueType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIssueType(input string) (*IssueType, error) { - vals := map[string]IssueType{ - "agentstopped": IssueTypeAgentStopped, - "dnsresolution": IssueTypeDnsResolution, - "guestfirewall": IssueTypeGuestFirewall, - "networksecurityrule": IssueTypeNetworkSecurityRule, - "platform": IssueTypePlatform, - "portthrottled": IssueTypePortThrottled, - "socketbind": IssueTypeSocketBind, - "unknown": IssueTypeUnknown, - "userdefinedroute": IssueTypeUserDefinedRoute, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IssueType(input) - return &out, nil -} - -type Origin string - -const ( - OriginInbound Origin = "Inbound" - OriginLocal Origin = "Local" - OriginOutbound Origin = "Outbound" -) - -func PossibleValuesForOrigin() []string { - return []string{ - string(OriginInbound), - string(OriginLocal), - string(OriginOutbound), - } -} - -func (s *Origin) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseOrigin(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseOrigin(input string) (*Origin, error) { - vals := map[string]Origin{ - "inbound": OriginInbound, - "local": OriginLocal, - "outbound": OriginOutbound, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := Origin(input) - return &out, nil -} - -type OutputType string - -const ( - OutputTypeWorkspace OutputType = "Workspace" -) - -func PossibleValuesForOutputType() []string { - return []string{ - string(OutputTypeWorkspace), - } -} - -func (s *OutputType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseOutputType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseOutputType(input string) (*OutputType, error) { - vals := map[string]OutputType{ - "workspace": OutputTypeWorkspace, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := OutputType(input) - return &out, nil -} - -type PreferredIPVersion string - -const ( - PreferredIPVersionIPvFour PreferredIPVersion = "IPv4" - PreferredIPVersionIPvSix PreferredIPVersion = "IPv6" -) - -func PossibleValuesForPreferredIPVersion() []string { - return []string{ - string(PreferredIPVersionIPvFour), - string(PreferredIPVersionIPvSix), - } -} - -func (s *PreferredIPVersion) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePreferredIPVersion(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePreferredIPVersion(input string) (*PreferredIPVersion, error) { - vals := map[string]PreferredIPVersion{ - "ipv4": PreferredIPVersionIPvFour, - "ipv6": PreferredIPVersionIPvSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PreferredIPVersion(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type Severity string - -const ( - SeverityError Severity = "Error" - SeverityWarning Severity = "Warning" -) - -func PossibleValuesForSeverity() []string { - return []string{ - string(SeverityError), - string(SeverityWarning), - } -} - -func (s *Severity) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSeverity(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSeverity(input string) (*Severity, error) { - vals := map[string]Severity{ - "error": SeverityError, - "warning": SeverityWarning, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := Severity(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_connectionmonitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_connectionmonitor.go deleted file mode 100644 index 556a942bd1ac..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_connectionmonitor.go +++ /dev/null @@ -1,139 +0,0 @@ -package connectionmonitors - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&ConnectionMonitorId{}) -} - -var _ resourceids.ResourceId = &ConnectionMonitorId{} - -// ConnectionMonitorId is a struct representing the Resource ID for a Connection Monitor -type ConnectionMonitorId struct { - SubscriptionId string - ResourceGroupName string - NetworkWatcherName string - ConnectionMonitorName string -} - -// NewConnectionMonitorID returns a new ConnectionMonitorId struct -func NewConnectionMonitorID(subscriptionId string, resourceGroupName string, networkWatcherName string, connectionMonitorName string) ConnectionMonitorId { - return ConnectionMonitorId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkWatcherName: networkWatcherName, - ConnectionMonitorName: connectionMonitorName, - } -} - -// ParseConnectionMonitorID parses 'input' into a ConnectionMonitorId -func ParseConnectionMonitorID(input string) (*ConnectionMonitorId, error) { - parser := resourceids.NewParserFromResourceIdType(&ConnectionMonitorId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ConnectionMonitorId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseConnectionMonitorIDInsensitively parses 'input' case-insensitively into a ConnectionMonitorId -// note: this method should only be used for API response data and not user input -func ParseConnectionMonitorIDInsensitively(input string) (*ConnectionMonitorId, error) { - parser := resourceids.NewParserFromResourceIdType(&ConnectionMonitorId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ConnectionMonitorId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *ConnectionMonitorId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkWatcherName, ok = input.Parsed["networkWatcherName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkWatcherName", input) - } - - if id.ConnectionMonitorName, ok = input.Parsed["connectionMonitorName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "connectionMonitorName", input) - } - - return nil -} - -// ValidateConnectionMonitorID checks that 'input' can be parsed as a Connection Monitor ID -func ValidateConnectionMonitorID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseConnectionMonitorID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Connection Monitor ID -func (id ConnectionMonitorId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkWatchers/%s/connectionMonitors/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkWatcherName, id.ConnectionMonitorName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Connection Monitor ID -func (id ConnectionMonitorId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), - resourceids.StaticSegment("staticConnectionMonitors", "connectionMonitors", "connectionMonitors"), - resourceids.UserSpecifiedSegment("connectionMonitorName", "connectionMonitorName"), - } -} - -// String returns a human-readable description of this Connection Monitor ID -func (id ConnectionMonitorId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Watcher Name: %q", id.NetworkWatcherName), - fmt.Sprintf("Connection Monitor Name: %q", id.ConnectionMonitorName), - } - return fmt.Sprintf("Connection Monitor (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_networkwatcher.go deleted file mode 100644 index 4b6c56cb216b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_networkwatcher.go +++ /dev/null @@ -1,130 +0,0 @@ -package connectionmonitors - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&NetworkWatcherId{}) -} - -var _ resourceids.ResourceId = &NetworkWatcherId{} - -// NetworkWatcherId is a struct representing the Resource ID for a Network Watcher -type NetworkWatcherId struct { - SubscriptionId string - ResourceGroupName string - NetworkWatcherName string -} - -// NewNetworkWatcherID returns a new NetworkWatcherId struct -func NewNetworkWatcherID(subscriptionId string, resourceGroupName string, networkWatcherName string) NetworkWatcherId { - return NetworkWatcherId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkWatcherName: networkWatcherName, - } -} - -// ParseNetworkWatcherID parses 'input' into a NetworkWatcherId -func ParseNetworkWatcherID(input string) (*NetworkWatcherId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkWatcherId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkWatcherId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseNetworkWatcherIDInsensitively parses 'input' case-insensitively into a NetworkWatcherId -// note: this method should only be used for API response data and not user input -func ParseNetworkWatcherIDInsensitively(input string) (*NetworkWatcherId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkWatcherId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkWatcherId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *NetworkWatcherId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkWatcherName, ok = input.Parsed["networkWatcherName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkWatcherName", input) - } - - return nil -} - -// ValidateNetworkWatcherID checks that 'input' can be parsed as a Network Watcher ID -func ValidateNetworkWatcherID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseNetworkWatcherID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Network Watcher ID -func (id NetworkWatcherId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkWatchers/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkWatcherName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Network Watcher ID -func (id NetworkWatcherId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), - } -} - -// String returns a human-readable description of this Network Watcher ID -func (id NetworkWatcherId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Watcher Name: %q", id.NetworkWatcherName), - } - return fmt.Sprintf("Network Watcher (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_createorupdate.go deleted file mode 100644 index 069036d65fef..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_createorupdate.go +++ /dev/null @@ -1,104 +0,0 @@ -package connectionmonitors - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *ConnectionMonitorResult -} - -type CreateOrUpdateOperationOptions struct { - Migrate *string -} - -func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions { - return CreateOrUpdateOperationOptions{} -} - -func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Migrate != nil { - out.Append("migrate", fmt.Sprintf("%v", *o.Migrate)) - } - return &out -} - -// CreateOrUpdate ... -func (c ConnectionMonitorsClient) CreateOrUpdate(ctx context.Context, id ConnectionMonitorId, input ConnectionMonitor, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c ConnectionMonitorsClient) CreateOrUpdateThenPoll(ctx context.Context, id ConnectionMonitorId, input ConnectionMonitor, options CreateOrUpdateOperationOptions) error { - result, err := c.CreateOrUpdate(ctx, id, input, options) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_delete.go deleted file mode 100644 index a0d6aebb3f1a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_delete.go +++ /dev/null @@ -1,70 +0,0 @@ -package connectionmonitors - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c ConnectionMonitorsClient) Delete(ctx context.Context, id ConnectionMonitorId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c ConnectionMonitorsClient) DeleteThenPoll(ctx context.Context, id ConnectionMonitorId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_get.go deleted file mode 100644 index 8087a322df34..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package connectionmonitors - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ConnectionMonitorResult -} - -// Get ... -func (c ConnectionMonitorsClient) Get(ctx context.Context, id ConnectionMonitorId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ConnectionMonitorResult - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_list.go deleted file mode 100644 index 46eea3af26b7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_list.go +++ /dev/null @@ -1,54 +0,0 @@ -package connectionmonitors - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ConnectionMonitorListResult -} - -// List ... -func (c ConnectionMonitorsClient) List(ctx context.Context, id NetworkWatcherId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/connectionMonitors", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ConnectionMonitorListResult - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_query.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_query.go deleted file mode 100644 index ee985b116895..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_query.go +++ /dev/null @@ -1,71 +0,0 @@ -package connectionmonitors - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type QueryOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *ConnectionMonitorQueryResult -} - -// Query ... -func (c ConnectionMonitorsClient) Query(ctx context.Context, id ConnectionMonitorId) (result QueryOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/query", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// QueryThenPoll performs Query then polls until it's completed -func (c ConnectionMonitorsClient) QueryThenPoll(ctx context.Context, id ConnectionMonitorId) error { - result, err := c.Query(ctx, id) - if err != nil { - return fmt.Errorf("performing Query: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Query: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_start.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_start.go deleted file mode 100644 index f5f3ef3ba4ee..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_start.go +++ /dev/null @@ -1,70 +0,0 @@ -package connectionmonitors - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StartOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Start ... -func (c ConnectionMonitorsClient) Start(ctx context.Context, id ConnectionMonitorId) (result StartOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/start", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// StartThenPoll performs Start then polls until it's completed -func (c ConnectionMonitorsClient) StartThenPoll(ctx context.Context, id ConnectionMonitorId) error { - result, err := c.Start(ctx, id) - if err != nil { - return fmt.Errorf("performing Start: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Start: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_stop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_stop.go deleted file mode 100644 index 44a5d3c56a74..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_stop.go +++ /dev/null @@ -1,70 +0,0 @@ -package connectionmonitors - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StopOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Stop ... -func (c ConnectionMonitorsClient) Stop(ctx context.Context, id ConnectionMonitorId) (result StopOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/stop", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// StopThenPoll performs Stop then polls until it's completed -func (c ConnectionMonitorsClient) StopThenPoll(ctx context.Context, id ConnectionMonitorId) error { - result, err := c.Stop(ctx, id) - if err != nil { - return fmt.Errorf("performing Stop: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Stop: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_updatetags.go deleted file mode 100644 index e6e1f8be8d12..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_updatetags.go +++ /dev/null @@ -1,57 +0,0 @@ -package connectionmonitors - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateTagsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ConnectionMonitorResult -} - -// UpdateTags ... -func (c ConnectionMonitorsClient) UpdateTags(ctx context.Context, id ConnectionMonitorId, input TagsObject) (result UpdateTagsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ConnectionMonitorResult - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitor.go deleted file mode 100644 index 0257ef7bed91..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitor.go +++ /dev/null @@ -1,10 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitor struct { - Location *string `json:"location,omitempty"` - Properties ConnectionMonitorParameters `json:"properties"` - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitordestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitordestination.go deleted file mode 100644 index 2c1eaeadd690..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitordestination.go +++ /dev/null @@ -1,10 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorDestination struct { - Address *string `json:"address,omitempty"` - Port *int64 `json:"port,omitempty"` - ResourceId *string `json:"resourceId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpoint.go deleted file mode 100644 index b93feeafd754..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpoint.go +++ /dev/null @@ -1,16 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorEndpoint struct { - Address *string `json:"address,omitempty"` - CoverageLevel *CoverageLevel `json:"coverageLevel,omitempty"` - Filter *ConnectionMonitorEndpointFilter `json:"filter,omitempty"` - LocationDetails *ConnectionMonitorEndpointLocationDetails `json:"locationDetails,omitempty"` - Name string `json:"name"` - ResourceId *string `json:"resourceId,omitempty"` - Scope *ConnectionMonitorEndpointScope `json:"scope,omitempty"` - SubscriptionId *string `json:"subscriptionId,omitempty"` - Type *EndpointType `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointfilter.go deleted file mode 100644 index f861681a10c3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointfilter.go +++ /dev/null @@ -1,9 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorEndpointFilter struct { - Items *[]ConnectionMonitorEndpointFilterItem `json:"items,omitempty"` - Type *ConnectionMonitorEndpointFilterType `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointfilteritem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointfilteritem.go deleted file mode 100644 index 49a3320062dd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointfilteritem.go +++ /dev/null @@ -1,9 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorEndpointFilterItem struct { - Address *string `json:"address,omitempty"` - Type *ConnectionMonitorEndpointFilterItemType `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointlocationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointlocationdetails.go deleted file mode 100644 index 5e8925459d5d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointlocationdetails.go +++ /dev/null @@ -1,8 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorEndpointLocationDetails struct { - Region *string `json:"region,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointscope.go deleted file mode 100644 index 36bb68efcaab..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointscope.go +++ /dev/null @@ -1,9 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorEndpointScope struct { - Exclude *[]ConnectionMonitorEndpointScopeItem `json:"exclude,omitempty"` - Include *[]ConnectionMonitorEndpointScopeItem `json:"include,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointscopeitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointscopeitem.go deleted file mode 100644 index e73b5e20b3b1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointscopeitem.go +++ /dev/null @@ -1,8 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorEndpointScopeItem struct { - Address *string `json:"address,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorhttpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorhttpconfiguration.go deleted file mode 100644 index 51af2309e946..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorhttpconfiguration.go +++ /dev/null @@ -1,13 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorHTTPConfiguration struct { - Method *HTTPConfigurationMethod `json:"method,omitempty"` - Path *string `json:"path,omitempty"` - Port *int64 `json:"port,omitempty"` - PreferHTTPS *bool `json:"preferHTTPS,omitempty"` - RequestHeaders *[]HTTPHeader `json:"requestHeaders,omitempty"` - ValidStatusCodeRanges *[]string `json:"validStatusCodeRanges,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitoricmpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitoricmpconfiguration.go deleted file mode 100644 index 6468613d1af0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitoricmpconfiguration.go +++ /dev/null @@ -1,8 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorIcmpConfiguration struct { - DisableTraceRoute *bool `json:"disableTraceRoute,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorlistresult.go deleted file mode 100644 index 2e3014360ae7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorlistresult.go +++ /dev/null @@ -1,8 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorListResult struct { - Value *[]ConnectionMonitorResult `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitoroutput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitoroutput.go deleted file mode 100644 index fcacc064d794..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitoroutput.go +++ /dev/null @@ -1,9 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorOutput struct { - Type *OutputType `json:"type,omitempty"` - WorkspaceSettings *ConnectionMonitorWorkspaceSettings `json:"workspaceSettings,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorparameters.go deleted file mode 100644 index d529e518683a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorparameters.go +++ /dev/null @@ -1,16 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorParameters struct { - AutoStart *bool `json:"autoStart,omitempty"` - Destination *ConnectionMonitorDestination `json:"destination,omitempty"` - Endpoints *[]ConnectionMonitorEndpoint `json:"endpoints,omitempty"` - MonitoringIntervalInSeconds *int64 `json:"monitoringIntervalInSeconds,omitempty"` - Notes *string `json:"notes,omitempty"` - Outputs *[]ConnectionMonitorOutput `json:"outputs,omitempty"` - Source *ConnectionMonitorSource `json:"source,omitempty"` - TestConfigurations *[]ConnectionMonitorTestConfiguration `json:"testConfigurations,omitempty"` - TestGroups *[]ConnectionMonitorTestGroup `json:"testGroups,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorqueryresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorqueryresult.go deleted file mode 100644 index 455f34530d53..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorqueryresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorQueryResult struct { - SourceStatus *ConnectionMonitorSourceStatus `json:"sourceStatus,omitempty"` - States *[]ConnectionStateSnapshot `json:"states,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorresult.go deleted file mode 100644 index 439794014f7a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorresult.go +++ /dev/null @@ -1,14 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorResult struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ConnectionMonitorResultProperties `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorresultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorresultproperties.go deleted file mode 100644 index 0299f7f69a7b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorresultproperties.go +++ /dev/null @@ -1,38 +0,0 @@ -package connectionmonitors - -import ( - "time" - - "github.com/hashicorp/go-azure-helpers/lang/dates" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorResultProperties struct { - AutoStart *bool `json:"autoStart,omitempty"` - ConnectionMonitorType *ConnectionMonitorType `json:"connectionMonitorType,omitempty"` - Destination *ConnectionMonitorDestination `json:"destination,omitempty"` - Endpoints *[]ConnectionMonitorEndpoint `json:"endpoints,omitempty"` - MonitoringIntervalInSeconds *int64 `json:"monitoringIntervalInSeconds,omitempty"` - MonitoringStatus *string `json:"monitoringStatus,omitempty"` - Notes *string `json:"notes,omitempty"` - Outputs *[]ConnectionMonitorOutput `json:"outputs,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Source *ConnectionMonitorSource `json:"source,omitempty"` - StartTime *string `json:"startTime,omitempty"` - TestConfigurations *[]ConnectionMonitorTestConfiguration `json:"testConfigurations,omitempty"` - TestGroups *[]ConnectionMonitorTestGroup `json:"testGroups,omitempty"` -} - -func (o *ConnectionMonitorResultProperties) GetStartTimeAsTime() (*time.Time, error) { - if o.StartTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *ConnectionMonitorResultProperties) SetStartTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.StartTime = &formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorsource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorsource.go deleted file mode 100644 index 39fa1ef2bdca..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorsource.go +++ /dev/null @@ -1,9 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorSource struct { - Port *int64 `json:"port,omitempty"` - ResourceId string `json:"resourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorsuccessthreshold.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorsuccessthreshold.go deleted file mode 100644 index 9f6ca6fac8bc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorsuccessthreshold.go +++ /dev/null @@ -1,9 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorSuccessThreshold struct { - ChecksFailedPercent *int64 `json:"checksFailedPercent,omitempty"` - RoundTripTimeMs *float64 `json:"roundTripTimeMs,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortcpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortcpconfiguration.go deleted file mode 100644 index 99fdbf40239d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortcpconfiguration.go +++ /dev/null @@ -1,10 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorTcpConfiguration struct { - DestinationPortBehavior *DestinationPortBehavior `json:"destinationPortBehavior,omitempty"` - DisableTraceRoute *bool `json:"disableTraceRoute,omitempty"` - Port *int64 `json:"port,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortestconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortestconfiguration.go deleted file mode 100644 index c4aa04feaba5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortestconfiguration.go +++ /dev/null @@ -1,15 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorTestConfiguration struct { - HTTPConfiguration *ConnectionMonitorHTTPConfiguration `json:"httpConfiguration,omitempty"` - IcmpConfiguration *ConnectionMonitorIcmpConfiguration `json:"icmpConfiguration,omitempty"` - Name string `json:"name"` - PreferredIPVersion *PreferredIPVersion `json:"preferredIPVersion,omitempty"` - Protocol ConnectionMonitorTestConfigurationProtocol `json:"protocol"` - SuccessThreshold *ConnectionMonitorSuccessThreshold `json:"successThreshold,omitempty"` - TcpConfiguration *ConnectionMonitorTcpConfiguration `json:"tcpConfiguration,omitempty"` - TestFrequencySec *int64 `json:"testFrequencySec,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortestgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortestgroup.go deleted file mode 100644 index 6eaa922f55a8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortestgroup.go +++ /dev/null @@ -1,12 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorTestGroup struct { - Destinations []string `json:"destinations"` - Disable *bool `json:"disable,omitempty"` - Name string `json:"name"` - Sources []string `json:"sources"` - TestConfigurations []string `json:"testConfigurations"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorworkspacesettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorworkspacesettings.go deleted file mode 100644 index ae23c31662f1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorworkspacesettings.go +++ /dev/null @@ -1,8 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionMonitorWorkspaceSettings struct { - WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionstatesnapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionstatesnapshot.go deleted file mode 100644 index 060c3bece81d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionstatesnapshot.go +++ /dev/null @@ -1,47 +0,0 @@ -package connectionmonitors - -import ( - "time" - - "github.com/hashicorp/go-azure-helpers/lang/dates" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectionStateSnapshot struct { - AvgLatencyInMs *int64 `json:"avgLatencyInMs,omitempty"` - ConnectionState *ConnectionState `json:"connectionState,omitempty"` - EndTime *string `json:"endTime,omitempty"` - EvaluationState *EvaluationState `json:"evaluationState,omitempty"` - Hops *[]ConnectivityHop `json:"hops,omitempty"` - MaxLatencyInMs *int64 `json:"maxLatencyInMs,omitempty"` - MinLatencyInMs *int64 `json:"minLatencyInMs,omitempty"` - ProbesFailed *int64 `json:"probesFailed,omitempty"` - ProbesSent *int64 `json:"probesSent,omitempty"` - StartTime *string `json:"startTime,omitempty"` -} - -func (o *ConnectionStateSnapshot) GetEndTimeAsTime() (*time.Time, error) { - if o.EndTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.EndTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *ConnectionStateSnapshot) SetEndTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.EndTime = &formatted -} - -func (o *ConnectionStateSnapshot) GetStartTimeAsTime() (*time.Time, error) { - if o.StartTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *ConnectionStateSnapshot) SetStartTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.StartTime = &formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectivityhop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectivityhop.go deleted file mode 100644 index b93b627ac70d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectivityhop.go +++ /dev/null @@ -1,16 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectivityHop struct { - Address *string `json:"address,omitempty"` - Id *string `json:"id,omitempty"` - Issues *[]ConnectivityIssue `json:"issues,omitempty"` - Links *[]HopLink `json:"links,omitempty"` - NextHopIds *[]string `json:"nextHopIds,omitempty"` - PreviousHopIds *[]string `json:"previousHopIds,omitempty"` - PreviousLinks *[]HopLink `json:"previousLinks,omitempty"` - ResourceId *string `json:"resourceId,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectivityissue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectivityissue.go deleted file mode 100644 index ff7c6cdaf114..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectivityissue.go +++ /dev/null @@ -1,11 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectivityIssue struct { - Context *[]map[string]string `json:"context,omitempty"` - Origin *Origin `json:"origin,omitempty"` - Severity *Severity `json:"severity,omitempty"` - Type *IssueType `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_hoplink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_hoplink.go deleted file mode 100644 index c2b18cd5be1f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_hoplink.go +++ /dev/null @@ -1,13 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HopLink struct { - Context *map[string]string `json:"context,omitempty"` - Issues *[]ConnectivityIssue `json:"issues,omitempty"` - LinkType *string `json:"linkType,omitempty"` - NextHopId *string `json:"nextHopId,omitempty"` - Properties *HopLinkProperties `json:"properties,omitempty"` - ResourceId *string `json:"resourceId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_hoplinkproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_hoplinkproperties.go deleted file mode 100644 index d38f1875957a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_hoplinkproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HopLinkProperties struct { - RoundTripTimeAvg *int64 `json:"roundTripTimeAvg,omitempty"` - RoundTripTimeMax *int64 `json:"roundTripTimeMax,omitempty"` - RoundTripTimeMin *int64 `json:"roundTripTimeMin,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_httpheader.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_httpheader.go deleted file mode 100644 index 7cae34688aa6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_httpheader.go +++ /dev/null @@ -1,9 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HTTPHeader struct { - Name *string `json:"name,omitempty"` - Value *string `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_tagsobject.go deleted file mode 100644 index d9e7e6413ff8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/version.go deleted file mode 100644 index 017a7248272e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/connectionmonitors/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/README.md deleted file mode 100644 index 8b74b6304d0e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/README.md +++ /dev/null @@ -1,86 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations` Documentation - -The `connectivityconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations" -``` - - -### Client Initialization - -```go -client := connectivityconfigurations.NewConnectivityConfigurationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ConnectivityConfigurationsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "connectivityConfigurationName") - -payload := connectivityconfigurations.ConnectivityConfiguration{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ConnectivityConfigurationsClient.Delete` - -```go -ctx := context.TODO() -id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "connectivityConfigurationName") - -if err := client.DeleteThenPoll(ctx, id, connectivityconfigurations.DefaultDeleteOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `ConnectivityConfigurationsClient.Get` - -```go -ctx := context.TODO() -id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "connectivityConfigurationName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ConnectivityConfigurationsClient.List` - -```go -ctx := context.TODO() -id := connectivityconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -// alternatively `client.List(ctx, id, connectivityconfigurations.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, connectivityconfigurations.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/client.go deleted file mode 100644 index 8d9088537705..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package connectivityconfigurations - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectivityConfigurationsClient struct { - Client *resourcemanager.Client -} - -func NewConnectivityConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConnectivityConfigurationsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "connectivityconfigurations", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating ConnectivityConfigurationsClient: %+v", err) - } - - return &ConnectivityConfigurationsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/constants.go deleted file mode 100644 index e96424413527..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/constants.go +++ /dev/null @@ -1,262 +0,0 @@ -package connectivityconfigurations - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectivityTopology string - -const ( - ConnectivityTopologyHubAndSpoke ConnectivityTopology = "HubAndSpoke" - ConnectivityTopologyMesh ConnectivityTopology = "Mesh" -) - -func PossibleValuesForConnectivityTopology() []string { - return []string{ - string(ConnectivityTopologyHubAndSpoke), - string(ConnectivityTopologyMesh), - } -} - -func (s *ConnectivityTopology) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseConnectivityTopology(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseConnectivityTopology(input string) (*ConnectivityTopology, error) { - vals := map[string]ConnectivityTopology{ - "hubandspoke": ConnectivityTopologyHubAndSpoke, - "mesh": ConnectivityTopologyMesh, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ConnectivityTopology(input) - return &out, nil -} - -type DeleteExistingPeering string - -const ( - DeleteExistingPeeringFalse DeleteExistingPeering = "False" - DeleteExistingPeeringTrue DeleteExistingPeering = "True" -) - -func PossibleValuesForDeleteExistingPeering() []string { - return []string{ - string(DeleteExistingPeeringFalse), - string(DeleteExistingPeeringTrue), - } -} - -func (s *DeleteExistingPeering) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDeleteExistingPeering(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDeleteExistingPeering(input string) (*DeleteExistingPeering, error) { - vals := map[string]DeleteExistingPeering{ - "false": DeleteExistingPeeringFalse, - "true": DeleteExistingPeeringTrue, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DeleteExistingPeering(input) - return &out, nil -} - -type GroupConnectivity string - -const ( - GroupConnectivityDirectlyConnected GroupConnectivity = "DirectlyConnected" - GroupConnectivityNone GroupConnectivity = "None" -) - -func PossibleValuesForGroupConnectivity() []string { - return []string{ - string(GroupConnectivityDirectlyConnected), - string(GroupConnectivityNone), - } -} - -func (s *GroupConnectivity) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGroupConnectivity(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGroupConnectivity(input string) (*GroupConnectivity, error) { - vals := map[string]GroupConnectivity{ - "directlyconnected": GroupConnectivityDirectlyConnected, - "none": GroupConnectivityNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GroupConnectivity(input) - return &out, nil -} - -type IsGlobal string - -const ( - IsGlobalFalse IsGlobal = "False" - IsGlobalTrue IsGlobal = "True" -) - -func PossibleValuesForIsGlobal() []string { - return []string{ - string(IsGlobalFalse), - string(IsGlobalTrue), - } -} - -func (s *IsGlobal) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIsGlobal(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIsGlobal(input string) (*IsGlobal, error) { - vals := map[string]IsGlobal{ - "false": IsGlobalFalse, - "true": IsGlobalTrue, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IsGlobal(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type UseHubGateway string - -const ( - UseHubGatewayFalse UseHubGateway = "False" - UseHubGatewayTrue UseHubGateway = "True" -) - -func PossibleValuesForUseHubGateway() []string { - return []string{ - string(UseHubGatewayFalse), - string(UseHubGatewayTrue), - } -} - -func (s *UseHubGateway) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseUseHubGateway(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseUseHubGateway(input string) (*UseHubGateway, error) { - vals := map[string]UseHubGateway{ - "false": UseHubGatewayFalse, - "true": UseHubGatewayTrue, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := UseHubGateway(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_connectivityconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_connectivityconfiguration.go deleted file mode 100644 index d062db15f4f9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_connectivityconfiguration.go +++ /dev/null @@ -1,139 +0,0 @@ -package connectivityconfigurations - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&ConnectivityConfigurationId{}) -} - -var _ resourceids.ResourceId = &ConnectivityConfigurationId{} - -// ConnectivityConfigurationId is a struct representing the Resource ID for a Connectivity Configuration -type ConnectivityConfigurationId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string - ConnectivityConfigurationName string -} - -// NewConnectivityConfigurationID returns a new ConnectivityConfigurationId struct -func NewConnectivityConfigurationID(subscriptionId string, resourceGroupName string, networkManagerName string, connectivityConfigurationName string) ConnectivityConfigurationId { - return ConnectivityConfigurationId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - ConnectivityConfigurationName: connectivityConfigurationName, - } -} - -// ParseConnectivityConfigurationID parses 'input' into a ConnectivityConfigurationId -func ParseConnectivityConfigurationID(input string) (*ConnectivityConfigurationId, error) { - parser := resourceids.NewParserFromResourceIdType(&ConnectivityConfigurationId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ConnectivityConfigurationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseConnectivityConfigurationIDInsensitively parses 'input' case-insensitively into a ConnectivityConfigurationId -// note: this method should only be used for API response data and not user input -func ParseConnectivityConfigurationIDInsensitively(input string) (*ConnectivityConfigurationId, error) { - parser := resourceids.NewParserFromResourceIdType(&ConnectivityConfigurationId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ConnectivityConfigurationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *ConnectivityConfigurationId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - if id.ConnectivityConfigurationName, ok = input.Parsed["connectivityConfigurationName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "connectivityConfigurationName", input) - } - - return nil -} - -// ValidateConnectivityConfigurationID checks that 'input' can be parsed as a Connectivity Configuration ID -func ValidateConnectivityConfigurationID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseConnectivityConfigurationID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Connectivity Configuration ID -func (id ConnectivityConfigurationId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/connectivityConfigurations/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.ConnectivityConfigurationName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Connectivity Configuration ID -func (id ConnectivityConfigurationId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - resourceids.StaticSegment("staticConnectivityConfigurations", "connectivityConfigurations", "connectivityConfigurations"), - resourceids.UserSpecifiedSegment("connectivityConfigurationName", "connectivityConfigurationName"), - } -} - -// String returns a human-readable description of this Connectivity Configuration ID -func (id ConnectivityConfigurationId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - fmt.Sprintf("Connectivity Configuration Name: %q", id.ConnectivityConfigurationName), - } - return fmt.Sprintf("Connectivity Configuration (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_networkmanager.go deleted file mode 100644 index 2c2e4adba2f4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_networkmanager.go +++ /dev/null @@ -1,130 +0,0 @@ -package connectivityconfigurations - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&NetworkManagerId{}) -} - -var _ resourceids.ResourceId = &NetworkManagerId{} - -// NetworkManagerId is a struct representing the Resource ID for a Network Manager -type NetworkManagerId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string -} - -// NewNetworkManagerID returns a new NetworkManagerId struct -func NewNetworkManagerID(subscriptionId string, resourceGroupName string, networkManagerName string) NetworkManagerId { - return NetworkManagerId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - } -} - -// ParseNetworkManagerID parses 'input' into a NetworkManagerId -func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkManagerId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseNetworkManagerIDInsensitively parses 'input' case-insensitively into a NetworkManagerId -// note: this method should only be used for API response data and not user input -func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkManagerId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *NetworkManagerId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - return nil -} - -// ValidateNetworkManagerID checks that 'input' can be parsed as a Network Manager ID -func ValidateNetworkManagerID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseNetworkManagerID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Network Manager ID -func (id NetworkManagerId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Network Manager ID -func (id NetworkManagerId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - } -} - -// String returns a human-readable description of this Network Manager ID -func (id NetworkManagerId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - } - return fmt.Sprintf("Network Manager (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_createorupdate.go deleted file mode 100644 index e8278cdba638..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_createorupdate.go +++ /dev/null @@ -1,58 +0,0 @@ -package connectivityconfigurations - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ConnectivityConfiguration -} - -// CreateOrUpdate ... -func (c ConnectivityConfigurationsClient) CreateOrUpdate(ctx context.Context, id ConnectivityConfigurationId, input ConnectivityConfiguration) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ConnectivityConfiguration - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_delete.go deleted file mode 100644 index a1c5884b210a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_delete.go +++ /dev/null @@ -1,100 +0,0 @@ -package connectivityconfigurations - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -type DeleteOperationOptions struct { - Force *bool -} - -func DefaultDeleteOperationOptions() DeleteOperationOptions { - return DeleteOperationOptions{} -} - -func (o DeleteOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o DeleteOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o DeleteOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Force != nil { - out.Append("force", fmt.Sprintf("%v", *o.Force)) - } - return &out -} - -// Delete ... -func (c ConnectivityConfigurationsClient) Delete(ctx context.Context, id ConnectivityConfigurationId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c ConnectivityConfigurationsClient) DeleteThenPoll(ctx context.Context, id ConnectivityConfigurationId, options DeleteOperationOptions) error { - result, err := c.Delete(ctx, id, options) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_get.go deleted file mode 100644 index 3471bd0faf14..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package connectivityconfigurations - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ConnectivityConfiguration -} - -// Get ... -func (c ConnectivityConfigurationsClient) Get(ctx context.Context, id ConnectivityConfigurationId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ConnectivityConfiguration - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_list.go deleted file mode 100644 index 6663f9e80ae2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_list.go +++ /dev/null @@ -1,134 +0,0 @@ -package connectivityconfigurations - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ConnectivityConfiguration -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []ConnectivityConfiguration -} - -type ListOperationOptions struct { - Top *int64 -} - -func DefaultListOperationOptions() ListOperationOptions { - return ListOperationOptions{} -} - -func (o ListOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o ListOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o ListOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Top != nil { - out.Append("$top", fmt.Sprintf("%v", *o.Top)) - } - return &out -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c ConnectivityConfigurationsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/connectivityConfigurations", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]ConnectivityConfiguration `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c ConnectivityConfigurationsClient) ListComplete(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, options, ConnectivityConfigurationOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ConnectivityConfigurationsClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkManagerId, options ListOperationOptions, predicate ConnectivityConfigurationOperationPredicate) (result ListCompleteResult, err error) { - items := make([]ConnectivityConfiguration, 0) - - resp, err := c.List(ctx, id, options) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivityconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivityconfiguration.go deleted file mode 100644 index 7c6238540d10..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivityconfiguration.go +++ /dev/null @@ -1,17 +0,0 @@ -package connectivityconfigurations - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectivityConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ConnectivityConfigurationProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivityconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivityconfigurationproperties.go deleted file mode 100644 index 643d3c116ab4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivityconfigurationproperties.go +++ /dev/null @@ -1,15 +0,0 @@ -package connectivityconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectivityConfigurationProperties struct { - AppliesToGroups []ConnectivityGroupItem `json:"appliesToGroups"` - ConnectivityTopology ConnectivityTopology `json:"connectivityTopology"` - DeleteExistingPeering *DeleteExistingPeering `json:"deleteExistingPeering,omitempty"` - Description *string `json:"description,omitempty"` - Hubs *[]Hub `json:"hubs,omitempty"` - IsGlobal *IsGlobal `json:"isGlobal,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivitygroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivitygroupitem.go deleted file mode 100644 index 0ac02d12f1a1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivitygroupitem.go +++ /dev/null @@ -1,11 +0,0 @@ -package connectivityconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectivityGroupItem struct { - GroupConnectivity GroupConnectivity `json:"groupConnectivity"` - IsGlobal *IsGlobal `json:"isGlobal,omitempty"` - NetworkGroupId string `json:"networkGroupId"` - UseHubGateway *UseHubGateway `json:"useHubGateway,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_hub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_hub.go deleted file mode 100644 index 5e43da03fdd6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_hub.go +++ /dev/null @@ -1,9 +0,0 @@ -package connectivityconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Hub struct { - ResourceId *string `json:"resourceId,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/predicates.go deleted file mode 100644 index ecab73247f2c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package connectivityconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectivityConfigurationOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p ConnectivityConfigurationOperationPredicate) Matches(input ConnectivityConfiguration) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/version.go deleted file mode 100644 index ba474b9067d2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package connectivityconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/connectivityconfigurations/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/README.md deleted file mode 100644 index 2be5a240d71d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/README.md +++ /dev/null @@ -1,121 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes` Documentation - -The `customipprefixes` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes" -``` - - -### Client Initialization - -```go -client := customipprefixes.NewCustomIPPrefixesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `CustomIPPrefixesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixName") - -payload := customipprefixes.CustomIPPrefix{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `CustomIPPrefixesClient.Delete` - -```go -ctx := context.TODO() -id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `CustomIPPrefixesClient.Get` - -```go -ctx := context.TODO() -id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixName") - -read, err := client.Get(ctx, id, customipprefixes.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CustomIPPrefixesClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `CustomIPPrefixesClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `CustomIPPrefixesClient.UpdateTags` - -```go -ctx := context.TODO() -id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixName") - -payload := customipprefixes.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/client.go deleted file mode 100644 index 2b241f7b0e76..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package customipprefixes - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CustomIPPrefixesClient struct { - Client *resourcemanager.Client -} - -func NewCustomIPPrefixesClientWithBaseURI(sdkApi sdkEnv.Api) (*CustomIPPrefixesClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "customipprefixes", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating CustomIPPrefixesClient: %+v", err) - } - - return &CustomIPPrefixesClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/constants.go deleted file mode 100644 index 2c9a9f7c2e25..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/constants.go +++ /dev/null @@ -1,222 +0,0 @@ -package customipprefixes - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CommissionedState string - -const ( - CommissionedStateCommissioned CommissionedState = "Commissioned" - CommissionedStateCommissionedNoInternetAdvertise CommissionedState = "CommissionedNoInternetAdvertise" - CommissionedStateCommissioning CommissionedState = "Commissioning" - CommissionedStateDecommissioning CommissionedState = "Decommissioning" - CommissionedStateDeprovisioned CommissionedState = "Deprovisioned" - CommissionedStateDeprovisioning CommissionedState = "Deprovisioning" - CommissionedStateProvisioned CommissionedState = "Provisioned" - CommissionedStateProvisioning CommissionedState = "Provisioning" -) - -func PossibleValuesForCommissionedState() []string { - return []string{ - string(CommissionedStateCommissioned), - string(CommissionedStateCommissionedNoInternetAdvertise), - string(CommissionedStateCommissioning), - string(CommissionedStateDecommissioning), - string(CommissionedStateDeprovisioned), - string(CommissionedStateDeprovisioning), - string(CommissionedStateProvisioned), - string(CommissionedStateProvisioning), - } -} - -func (s *CommissionedState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseCommissionedState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseCommissionedState(input string) (*CommissionedState, error) { - vals := map[string]CommissionedState{ - "commissioned": CommissionedStateCommissioned, - "commissionednointernetadvertise": CommissionedStateCommissionedNoInternetAdvertise, - "commissioning": CommissionedStateCommissioning, - "decommissioning": CommissionedStateDecommissioning, - "deprovisioned": CommissionedStateDeprovisioned, - "deprovisioning": CommissionedStateDeprovisioning, - "provisioned": CommissionedStateProvisioned, - "provisioning": CommissionedStateProvisioning, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := CommissionedState(input) - return &out, nil -} - -type CustomIPPrefixType string - -const ( - CustomIPPrefixTypeChild CustomIPPrefixType = "Child" - CustomIPPrefixTypeParent CustomIPPrefixType = "Parent" - CustomIPPrefixTypeSingular CustomIPPrefixType = "Singular" -) - -func PossibleValuesForCustomIPPrefixType() []string { - return []string{ - string(CustomIPPrefixTypeChild), - string(CustomIPPrefixTypeParent), - string(CustomIPPrefixTypeSingular), - } -} - -func (s *CustomIPPrefixType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseCustomIPPrefixType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseCustomIPPrefixType(input string) (*CustomIPPrefixType, error) { - vals := map[string]CustomIPPrefixType{ - "child": CustomIPPrefixTypeChild, - "parent": CustomIPPrefixTypeParent, - "singular": CustomIPPrefixTypeSingular, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := CustomIPPrefixType(input) - return &out, nil -} - -type Geo string - -const ( - GeoAFRI Geo = "AFRI" - GeoAPAC Geo = "APAC" - GeoAQ Geo = "AQ" - GeoEURO Geo = "EURO" - GeoGLOBAL Geo = "GLOBAL" - GeoLATAM Geo = "LATAM" - GeoME Geo = "ME" - GeoNAM Geo = "NAM" - GeoOCEANIA Geo = "OCEANIA" -) - -func PossibleValuesForGeo() []string { - return []string{ - string(GeoAFRI), - string(GeoAPAC), - string(GeoAQ), - string(GeoEURO), - string(GeoGLOBAL), - string(GeoLATAM), - string(GeoME), - string(GeoNAM), - string(GeoOCEANIA), - } -} - -func (s *Geo) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGeo(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGeo(input string) (*Geo, error) { - vals := map[string]Geo{ - "afri": GeoAFRI, - "apac": GeoAPAC, - "aq": GeoAQ, - "euro": GeoEURO, - "global": GeoGLOBAL, - "latam": GeoLATAM, - "me": GeoME, - "nam": GeoNAM, - "oceania": GeoOCEANIA, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := Geo(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/id_customipprefix.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/id_customipprefix.go deleted file mode 100644 index bca852430032..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/id_customipprefix.go +++ /dev/null @@ -1,130 +0,0 @@ -package customipprefixes - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&CustomIPPrefixId{}) -} - -var _ resourceids.ResourceId = &CustomIPPrefixId{} - -// CustomIPPrefixId is a struct representing the Resource ID for a Custom I P Prefix -type CustomIPPrefixId struct { - SubscriptionId string - ResourceGroupName string - CustomIPPrefixName string -} - -// NewCustomIPPrefixID returns a new CustomIPPrefixId struct -func NewCustomIPPrefixID(subscriptionId string, resourceGroupName string, customIPPrefixName string) CustomIPPrefixId { - return CustomIPPrefixId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - CustomIPPrefixName: customIPPrefixName, - } -} - -// ParseCustomIPPrefixID parses 'input' into a CustomIPPrefixId -func ParseCustomIPPrefixID(input string) (*CustomIPPrefixId, error) { - parser := resourceids.NewParserFromResourceIdType(&CustomIPPrefixId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := CustomIPPrefixId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseCustomIPPrefixIDInsensitively parses 'input' case-insensitively into a CustomIPPrefixId -// note: this method should only be used for API response data and not user input -func ParseCustomIPPrefixIDInsensitively(input string) (*CustomIPPrefixId, error) { - parser := resourceids.NewParserFromResourceIdType(&CustomIPPrefixId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := CustomIPPrefixId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *CustomIPPrefixId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.CustomIPPrefixName, ok = input.Parsed["customIPPrefixName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "customIPPrefixName", input) - } - - return nil -} - -// ValidateCustomIPPrefixID checks that 'input' can be parsed as a Custom I P Prefix ID -func ValidateCustomIPPrefixID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseCustomIPPrefixID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Custom I P Prefix ID -func (id CustomIPPrefixId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/customIPPrefixes/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.CustomIPPrefixName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Custom I P Prefix ID -func (id CustomIPPrefixId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticCustomIPPrefixes", "customIPPrefixes", "customIPPrefixes"), - resourceids.UserSpecifiedSegment("customIPPrefixName", "customIPPrefixName"), - } -} - -// String returns a human-readable description of this Custom I P Prefix ID -func (id CustomIPPrefixId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Custom I P Prefix Name: %q", id.CustomIPPrefixName), - } - return fmt.Sprintf("Custom I P Prefix (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_createorupdate.go deleted file mode 100644 index 88925ffb667a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package customipprefixes - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *CustomIPPrefix -} - -// CreateOrUpdate ... -func (c CustomIPPrefixesClient) CreateOrUpdate(ctx context.Context, id CustomIPPrefixId, input CustomIPPrefix) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c CustomIPPrefixesClient) CreateOrUpdateThenPoll(ctx context.Context, id CustomIPPrefixId, input CustomIPPrefix) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_delete.go deleted file mode 100644 index 2233d70928d4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package customipprefixes - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c CustomIPPrefixesClient) Delete(ctx context.Context, id CustomIPPrefixId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c CustomIPPrefixesClient) DeleteThenPoll(ctx context.Context, id CustomIPPrefixId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_get.go deleted file mode 100644 index 61164d79480e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_get.go +++ /dev/null @@ -1,83 +0,0 @@ -package customipprefixes - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *CustomIPPrefix -} - -type GetOperationOptions struct { - Expand *string -} - -func DefaultGetOperationOptions() GetOperationOptions { - return GetOperationOptions{} -} - -func (o GetOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o GetOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o GetOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Expand != nil { - out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) - } - return &out -} - -// Get ... -func (c CustomIPPrefixesClient) Get(ctx context.Context, id CustomIPPrefixId, options GetOperationOptions) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model CustomIPPrefix - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_list.go deleted file mode 100644 index 34b4f325ee94..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package customipprefixes - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]CustomIPPrefix -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []CustomIPPrefix -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c CustomIPPrefixesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/customIPPrefixes", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]CustomIPPrefix `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c CustomIPPrefixesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, CustomIPPrefixOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c CustomIPPrefixesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate CustomIPPrefixOperationPredicate) (result ListCompleteResult, err error) { - items := make([]CustomIPPrefix, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_listall.go deleted file mode 100644 index 82eb645deab0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_listall.go +++ /dev/null @@ -1,106 +0,0 @@ -package customipprefixes - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListAllOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]CustomIPPrefix -} - -type ListAllCompleteResult struct { - LatestHttpResponse *http.Response - Items []CustomIPPrefix -} - -type ListAllCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListAllCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListAll ... -func (c CustomIPPrefixesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListAllCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/customIPPrefixes", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]CustomIPPrefix `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListAllComplete retrieves all the results into a single object -func (c CustomIPPrefixesClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { - return c.ListAllCompleteMatchingPredicate(ctx, id, CustomIPPrefixOperationPredicate{}) -} - -// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c CustomIPPrefixesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate CustomIPPrefixOperationPredicate) (result ListAllCompleteResult, err error) { - items := make([]CustomIPPrefix, 0) - - resp, err := c.ListAll(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListAllCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_updatetags.go deleted file mode 100644 index 2962a005ed86..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_updatetags.go +++ /dev/null @@ -1,57 +0,0 @@ -package customipprefixes - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateTagsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *CustomIPPrefix -} - -// UpdateTags ... -func (c CustomIPPrefixesClient) UpdateTags(ctx context.Context, id CustomIPPrefixId, input TagsObject) (result UpdateTagsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model CustomIPPrefix - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_customipprefix.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_customipprefix.go deleted file mode 100644 index fc3d26ef7a4c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_customipprefix.go +++ /dev/null @@ -1,21 +0,0 @@ -package customipprefixes - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CustomIPPrefix struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *CustomIPPrefixPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_customipprefixpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_customipprefixpropertiesformat.go deleted file mode 100644 index f26a83b6b834..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_customipprefixpropertiesformat.go +++ /dev/null @@ -1,22 +0,0 @@ -package customipprefixes - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CustomIPPrefixPropertiesFormat struct { - Asn *string `json:"asn,omitempty"` - AuthorizationMessage *string `json:"authorizationMessage,omitempty"` - ChildCustomIPPrefixes *[]SubResource `json:"childCustomIpPrefixes,omitempty"` - Cidr *string `json:"cidr,omitempty"` - CommissionedState *CommissionedState `json:"commissionedState,omitempty"` - CustomIPPrefixParent *SubResource `json:"customIpPrefixParent,omitempty"` - ExpressRouteAdvertise *bool `json:"expressRouteAdvertise,omitempty"` - FailedReason *string `json:"failedReason,omitempty"` - Geo *Geo `json:"geo,omitempty"` - NoInternetAdvertise *bool `json:"noInternetAdvertise,omitempty"` - PrefixType *CustomIPPrefixType `json:"prefixType,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - SignedMessage *string `json:"signedMessage,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_subresource.go deleted file mode 100644 index 2428ad08fc07..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package customipprefixes - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_tagsobject.go deleted file mode 100644 index f1f3aea2b6e2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package customipprefixes - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/predicates.go deleted file mode 100644 index 288f9cfa0428..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/predicates.go +++ /dev/null @@ -1,37 +0,0 @@ -package customipprefixes - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CustomIPPrefixOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p CustomIPPrefixOperationPredicate) Matches(input CustomIPPrefix) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/version.go deleted file mode 100644 index a23ca4411470..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package customipprefixes - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/customipprefixes/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/README.md deleted file mode 100644 index a543966d2726..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/README.md +++ /dev/null @@ -1,121 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans` Documentation - -The `ddosprotectionplans` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans" -``` - - -### Client Initialization - -```go -client := ddosprotectionplans.NewDdosProtectionPlansClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `DdosProtectionPlansClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") - -payload := ddosprotectionplans.DdosProtectionPlan{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `DdosProtectionPlansClient.Delete` - -```go -ctx := context.TODO() -id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `DdosProtectionPlansClient.Get` - -```go -ctx := context.TODO() -id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `DdosProtectionPlansClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `DdosProtectionPlansClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `DdosProtectionPlansClient.UpdateTags` - -```go -ctx := context.TODO() -id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") - -payload := ddosprotectionplans.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/client.go deleted file mode 100644 index e117bf49a8f4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package ddosprotectionplans - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosProtectionPlansClient struct { - Client *resourcemanager.Client -} - -func NewDdosProtectionPlansClientWithBaseURI(sdkApi sdkEnv.Api) (*DdosProtectionPlansClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "ddosprotectionplans", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating DdosProtectionPlansClient: %+v", err) - } - - return &DdosProtectionPlansClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/constants.go deleted file mode 100644 index ec2a63ded59f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/constants.go +++ /dev/null @@ -1,57 +0,0 @@ -package ddosprotectionplans - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/id_ddosprotectionplan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/id_ddosprotectionplan.go deleted file mode 100644 index b886f8a4b1fe..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/id_ddosprotectionplan.go +++ /dev/null @@ -1,130 +0,0 @@ -package ddosprotectionplans - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&DdosProtectionPlanId{}) -} - -var _ resourceids.ResourceId = &DdosProtectionPlanId{} - -// DdosProtectionPlanId is a struct representing the Resource ID for a Ddos Protection Plan -type DdosProtectionPlanId struct { - SubscriptionId string - ResourceGroupName string - DdosProtectionPlanName string -} - -// NewDdosProtectionPlanID returns a new DdosProtectionPlanId struct -func NewDdosProtectionPlanID(subscriptionId string, resourceGroupName string, ddosProtectionPlanName string) DdosProtectionPlanId { - return DdosProtectionPlanId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - DdosProtectionPlanName: ddosProtectionPlanName, - } -} - -// ParseDdosProtectionPlanID parses 'input' into a DdosProtectionPlanId -func ParseDdosProtectionPlanID(input string) (*DdosProtectionPlanId, error) { - parser := resourceids.NewParserFromResourceIdType(&DdosProtectionPlanId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := DdosProtectionPlanId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseDdosProtectionPlanIDInsensitively parses 'input' case-insensitively into a DdosProtectionPlanId -// note: this method should only be used for API response data and not user input -func ParseDdosProtectionPlanIDInsensitively(input string) (*DdosProtectionPlanId, error) { - parser := resourceids.NewParserFromResourceIdType(&DdosProtectionPlanId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := DdosProtectionPlanId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *DdosProtectionPlanId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.DdosProtectionPlanName, ok = input.Parsed["ddosProtectionPlanName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "ddosProtectionPlanName", input) - } - - return nil -} - -// ValidateDdosProtectionPlanID checks that 'input' can be parsed as a Ddos Protection Plan ID -func ValidateDdosProtectionPlanID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseDdosProtectionPlanID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Ddos Protection Plan ID -func (id DdosProtectionPlanId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/ddosProtectionPlans/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.DdosProtectionPlanName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Ddos Protection Plan ID -func (id DdosProtectionPlanId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticDdosProtectionPlans", "ddosProtectionPlans", "ddosProtectionPlans"), - resourceids.UserSpecifiedSegment("ddosProtectionPlanName", "ddosProtectionPlanName"), - } -} - -// String returns a human-readable description of this Ddos Protection Plan ID -func (id DdosProtectionPlanId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Ddos Protection Plan Name: %q", id.DdosProtectionPlanName), - } - return fmt.Sprintf("Ddos Protection Plan (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_createorupdate.go deleted file mode 100644 index 4cd5100b0408..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package ddosprotectionplans - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *DdosProtectionPlan -} - -// CreateOrUpdate ... -func (c DdosProtectionPlansClient) CreateOrUpdate(ctx context.Context, id DdosProtectionPlanId, input DdosProtectionPlan) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c DdosProtectionPlansClient) CreateOrUpdateThenPoll(ctx context.Context, id DdosProtectionPlanId, input DdosProtectionPlan) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_delete.go deleted file mode 100644 index 43d058cf8b84..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package ddosprotectionplans - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c DdosProtectionPlansClient) Delete(ctx context.Context, id DdosProtectionPlanId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c DdosProtectionPlansClient) DeleteThenPoll(ctx context.Context, id DdosProtectionPlanId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_get.go deleted file mode 100644 index 7a92875442ee..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package ddosprotectionplans - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *DdosProtectionPlan -} - -// Get ... -func (c DdosProtectionPlansClient) Get(ctx context.Context, id DdosProtectionPlanId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model DdosProtectionPlan - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_list.go deleted file mode 100644 index 3862b1500450..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package ddosprotectionplans - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]DdosProtectionPlan -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []DdosProtectionPlan -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c DdosProtectionPlansClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/ddosProtectionPlans", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]DdosProtectionPlan `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c DdosProtectionPlansClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, DdosProtectionPlanOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c DdosProtectionPlansClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate DdosProtectionPlanOperationPredicate) (result ListCompleteResult, err error) { - items := make([]DdosProtectionPlan, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_listbyresourcegroup.go deleted file mode 100644 index 0f9eecd1db7e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_listbyresourcegroup.go +++ /dev/null @@ -1,106 +0,0 @@ -package ddosprotectionplans - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListByResourceGroupOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]DdosProtectionPlan -} - -type ListByResourceGroupCompleteResult struct { - LatestHttpResponse *http.Response - Items []DdosProtectionPlan -} - -type ListByResourceGroupCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListByResourceGroup ... -func (c DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListByResourceGroupCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/ddosProtectionPlans", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]DdosProtectionPlan `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListByResourceGroupComplete retrieves all the results into a single object -func (c DdosProtectionPlansClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { - return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, DdosProtectionPlanOperationPredicate{}) -} - -// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c DdosProtectionPlansClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate DdosProtectionPlanOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { - items := make([]DdosProtectionPlan, 0) - - resp, err := c.ListByResourceGroup(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListByResourceGroupCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_updatetags.go deleted file mode 100644 index a5b91c81b71e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_updatetags.go +++ /dev/null @@ -1,57 +0,0 @@ -package ddosprotectionplans - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateTagsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *DdosProtectionPlan -} - -// UpdateTags ... -func (c DdosProtectionPlansClient) UpdateTags(ctx context.Context, id DdosProtectionPlanId, input TagsObject) (result UpdateTagsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model DdosProtectionPlan - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_ddosprotectionplan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_ddosprotectionplan.go deleted file mode 100644 index 3313192e51bd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_ddosprotectionplan.go +++ /dev/null @@ -1,14 +0,0 @@ -package ddosprotectionplans - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosProtectionPlan struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *DdosProtectionPlanPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_ddosprotectionplanpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_ddosprotectionplanpropertiesformat.go deleted file mode 100644 index b1f0f51665dc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_ddosprotectionplanpropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package ddosprotectionplans - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosProtectionPlanPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddresses *[]SubResource `json:"publicIPAddresses,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - VirtualNetworks *[]SubResource `json:"virtualNetworks,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_subresource.go deleted file mode 100644 index 066803386d80..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package ddosprotectionplans - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_tagsobject.go deleted file mode 100644 index 99bf4d851b59..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package ddosprotectionplans - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/predicates.go deleted file mode 100644 index 6ad9bbf53742..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/predicates.go +++ /dev/null @@ -1,37 +0,0 @@ -package ddosprotectionplans - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosProtectionPlanOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p DdosProtectionPlanOperationPredicate) Matches(input DdosProtectionPlan) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/version.go deleted file mode 100644 index edb69fa969ae..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package ddosprotectionplans - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/ddosprotectionplans/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/README.md deleted file mode 100644 index 3ea0a3cc9a4c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations` Documentation - -The `expressroutecircuitauthorizations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations" -``` - - -### Client Initialization - -```go -client := expressroutecircuitauthorizations.NewExpressRouteCircuitAuthorizationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteCircuitAuthorizationsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "authorizationName") - -payload := expressroutecircuitauthorizations.ExpressRouteCircuitAuthorization{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteCircuitAuthorizationsClient.Delete` - -```go -ctx := context.TODO() -id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "authorizationName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteCircuitAuthorizationsClient.Get` - -```go -ctx := context.TODO() -id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "authorizationName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExpressRouteCircuitAuthorizationsClient.List` - -```go -ctx := context.TODO() -id := expressroutecircuitauthorizations.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/client.go deleted file mode 100644 index 2d3988ae8a8c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package expressroutecircuitauthorizations - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitAuthorizationsClient struct { - Client *resourcemanager.Client -} - -func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCircuitAuthorizationsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "expressroutecircuitauthorizations", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating ExpressRouteCircuitAuthorizationsClient: %+v", err) - } - - return &ExpressRouteCircuitAuthorizationsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/constants.go deleted file mode 100644 index 052d235a64f6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/constants.go +++ /dev/null @@ -1,98 +0,0 @@ -package expressroutecircuitauthorizations - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AuthorizationUseStatus string - -const ( - AuthorizationUseStatusAvailable AuthorizationUseStatus = "Available" - AuthorizationUseStatusInUse AuthorizationUseStatus = "InUse" -) - -func PossibleValuesForAuthorizationUseStatus() []string { - return []string{ - string(AuthorizationUseStatusAvailable), - string(AuthorizationUseStatusInUse), - } -} - -func (s *AuthorizationUseStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAuthorizationUseStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAuthorizationUseStatus(input string) (*AuthorizationUseStatus, error) { - vals := map[string]AuthorizationUseStatus{ - "available": AuthorizationUseStatusAvailable, - "inuse": AuthorizationUseStatusInUse, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AuthorizationUseStatus(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_authorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_authorization.go deleted file mode 100644 index 9da101d4a627..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_authorization.go +++ /dev/null @@ -1,139 +0,0 @@ -package expressroutecircuitauthorizations - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&AuthorizationId{}) -} - -var _ resourceids.ResourceId = &AuthorizationId{} - -// AuthorizationId is a struct representing the Resource ID for a Authorization -type AuthorizationId struct { - SubscriptionId string - ResourceGroupName string - ExpressRouteCircuitName string - AuthorizationName string -} - -// NewAuthorizationID returns a new AuthorizationId struct -func NewAuthorizationID(subscriptionId string, resourceGroupName string, expressRouteCircuitName string, authorizationName string) AuthorizationId { - return AuthorizationId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - ExpressRouteCircuitName: expressRouteCircuitName, - AuthorizationName: authorizationName, - } -} - -// ParseAuthorizationID parses 'input' into a AuthorizationId -func ParseAuthorizationID(input string) (*AuthorizationId, error) { - parser := resourceids.NewParserFromResourceIdType(&AuthorizationId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := AuthorizationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseAuthorizationIDInsensitively parses 'input' case-insensitively into a AuthorizationId -// note: this method should only be used for API response data and not user input -func ParseAuthorizationIDInsensitively(input string) (*AuthorizationId, error) { - parser := resourceids.NewParserFromResourceIdType(&AuthorizationId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := AuthorizationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *AuthorizationId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.ExpressRouteCircuitName, ok = input.Parsed["expressRouteCircuitName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteCircuitName", input) - } - - if id.AuthorizationName, ok = input.Parsed["authorizationName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "authorizationName", input) - } - - return nil -} - -// ValidateAuthorizationID checks that 'input' can be parsed as a Authorization ID -func ValidateAuthorizationID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseAuthorizationID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Authorization ID -func (id AuthorizationId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRouteCircuits/%s/authorizations/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRouteCircuitName, id.AuthorizationName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Authorization ID -func (id AuthorizationId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), - resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitName"), - resourceids.StaticSegment("staticAuthorizations", "authorizations", "authorizations"), - resourceids.UserSpecifiedSegment("authorizationName", "authorizationName"), - } -} - -// String returns a human-readable description of this Authorization ID -func (id AuthorizationId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Express Route Circuit Name: %q", id.ExpressRouteCircuitName), - fmt.Sprintf("Authorization Name: %q", id.AuthorizationName), - } - return fmt.Sprintf("Authorization (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_expressroutecircuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_expressroutecircuit.go deleted file mode 100644 index 210f0ae6366a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_expressroutecircuit.go +++ /dev/null @@ -1,130 +0,0 @@ -package expressroutecircuitauthorizations - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&ExpressRouteCircuitId{}) -} - -var _ resourceids.ResourceId = &ExpressRouteCircuitId{} - -// ExpressRouteCircuitId is a struct representing the Resource ID for a Express Route Circuit -type ExpressRouteCircuitId struct { - SubscriptionId string - ResourceGroupName string - ExpressRouteCircuitName string -} - -// NewExpressRouteCircuitID returns a new ExpressRouteCircuitId struct -func NewExpressRouteCircuitID(subscriptionId string, resourceGroupName string, expressRouteCircuitName string) ExpressRouteCircuitId { - return ExpressRouteCircuitId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - ExpressRouteCircuitName: expressRouteCircuitName, - } -} - -// ParseExpressRouteCircuitID parses 'input' into a ExpressRouteCircuitId -func ParseExpressRouteCircuitID(input string) (*ExpressRouteCircuitId, error) { - parser := resourceids.NewParserFromResourceIdType(&ExpressRouteCircuitId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ExpressRouteCircuitId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseExpressRouteCircuitIDInsensitively parses 'input' case-insensitively into a ExpressRouteCircuitId -// note: this method should only be used for API response data and not user input -func ParseExpressRouteCircuitIDInsensitively(input string) (*ExpressRouteCircuitId, error) { - parser := resourceids.NewParserFromResourceIdType(&ExpressRouteCircuitId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ExpressRouteCircuitId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *ExpressRouteCircuitId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.ExpressRouteCircuitName, ok = input.Parsed["expressRouteCircuitName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteCircuitName", input) - } - - return nil -} - -// ValidateExpressRouteCircuitID checks that 'input' can be parsed as a Express Route Circuit ID -func ValidateExpressRouteCircuitID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseExpressRouteCircuitID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Express Route Circuit ID -func (id ExpressRouteCircuitId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRouteCircuits/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRouteCircuitName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Express Route Circuit ID -func (id ExpressRouteCircuitId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), - resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitName"), - } -} - -// String returns a human-readable description of this Express Route Circuit ID -func (id ExpressRouteCircuitId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Express Route Circuit Name: %q", id.ExpressRouteCircuitName), - } - return fmt.Sprintf("Express Route Circuit (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_createorupdate.go deleted file mode 100644 index 5fe3d7093203..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package expressroutecircuitauthorizations - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *ExpressRouteCircuitAuthorization -} - -// CreateOrUpdate ... -func (c ExpressRouteCircuitAuthorizationsClient) CreateOrUpdate(ctx context.Context, id AuthorizationId, input ExpressRouteCircuitAuthorization) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c ExpressRouteCircuitAuthorizationsClient) CreateOrUpdateThenPoll(ctx context.Context, id AuthorizationId, input ExpressRouteCircuitAuthorization) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_delete.go deleted file mode 100644 index b2c01bb7f11f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package expressroutecircuitauthorizations - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c ExpressRouteCircuitAuthorizationsClient) Delete(ctx context.Context, id AuthorizationId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c ExpressRouteCircuitAuthorizationsClient) DeleteThenPoll(ctx context.Context, id AuthorizationId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_get.go deleted file mode 100644 index 823c3b06cfc4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package expressroutecircuitauthorizations - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ExpressRouteCircuitAuthorization -} - -// Get ... -func (c ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, id AuthorizationId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ExpressRouteCircuitAuthorization - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_list.go deleted file mode 100644 index b726cae911d8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_list.go +++ /dev/null @@ -1,105 +0,0 @@ -package expressroutecircuitauthorizations - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ExpressRouteCircuitAuthorization -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []ExpressRouteCircuitAuthorization -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, id ExpressRouteCircuitId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/authorizations", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]ExpressRouteCircuitAuthorization `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c ExpressRouteCircuitAuthorizationsClient) ListComplete(ctx context.Context, id ExpressRouteCircuitId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, ExpressRouteCircuitAuthorizationOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ExpressRouteCircuitAuthorizationsClient) ListCompleteMatchingPredicate(ctx context.Context, id ExpressRouteCircuitId, predicate ExpressRouteCircuitAuthorizationOperationPredicate) (result ListCompleteResult, err error) { - items := make([]ExpressRouteCircuitAuthorization, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/model_authorizationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/model_authorizationpropertiesformat.go deleted file mode 100644 index e3d3f2bdb8df..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/model_authorizationpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecircuitauthorizations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AuthorizationPropertiesFormat struct { - AuthorizationKey *string `json:"authorizationKey,omitempty"` - AuthorizationUseStatus *AuthorizationUseStatus `json:"authorizationUseStatus,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/model_expressroutecircuitauthorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/model_expressroutecircuitauthorization.go deleted file mode 100644 index b4b084362fcc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/model_expressroutecircuitauthorization.go +++ /dev/null @@ -1,12 +0,0 @@ -package expressroutecircuitauthorizations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitAuthorization struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *AuthorizationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/predicates.go deleted file mode 100644 index 3533e80a13ea..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package expressroutecircuitauthorizations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitAuthorizationOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p ExpressRouteCircuitAuthorizationOperationPredicate) Matches(input ExpressRouteCircuitAuthorization) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/version.go deleted file mode 100644 index 6a23b660d109..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecircuitauthorizations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecircuitauthorizations/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/README.md deleted file mode 100644 index b99d394292e9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/README.md +++ /dev/null @@ -1,83 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections` Documentation - -The `expressroutecircuitconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections" -``` - - -### Client Initialization - -```go -client := expressroutecircuitconnections.NewExpressRouteCircuitConnectionsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteCircuitConnectionsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "connectionName") - -payload := expressroutecircuitconnections.ExpressRouteCircuitConnection{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteCircuitConnectionsClient.Delete` - -```go -ctx := context.TODO() -id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "connectionName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteCircuitConnectionsClient.Get` - -```go -ctx := context.TODO() -id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "connectionName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExpressRouteCircuitConnectionsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/client.go deleted file mode 100644 index 6ce57a4cb92c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package expressroutecircuitconnections - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitConnectionsClient struct { - Client *resourcemanager.Client -} - -func NewExpressRouteCircuitConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCircuitConnectionsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "expressroutecircuitconnections", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating ExpressRouteCircuitConnectionsClient: %+v", err) - } - - return &ExpressRouteCircuitConnectionsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/constants.go deleted file mode 100644 index 8bfeb3344f9b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/constants.go +++ /dev/null @@ -1,101 +0,0 @@ -package expressroutecircuitconnections - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CircuitConnectionStatus string - -const ( - CircuitConnectionStatusConnected CircuitConnectionStatus = "Connected" - CircuitConnectionStatusConnecting CircuitConnectionStatus = "Connecting" - CircuitConnectionStatusDisconnected CircuitConnectionStatus = "Disconnected" -) - -func PossibleValuesForCircuitConnectionStatus() []string { - return []string{ - string(CircuitConnectionStatusConnected), - string(CircuitConnectionStatusConnecting), - string(CircuitConnectionStatusDisconnected), - } -} - -func (s *CircuitConnectionStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseCircuitConnectionStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseCircuitConnectionStatus(input string) (*CircuitConnectionStatus, error) { - vals := map[string]CircuitConnectionStatus{ - "connected": CircuitConnectionStatusConnected, - "connecting": CircuitConnectionStatusConnecting, - "disconnected": CircuitConnectionStatusDisconnected, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := CircuitConnectionStatus(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/id_peeringconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/id_peeringconnection.go deleted file mode 100644 index 07c1226d2002..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/id_peeringconnection.go +++ /dev/null @@ -1,148 +0,0 @@ -package expressroutecircuitconnections - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&PeeringConnectionId{}) -} - -var _ resourceids.ResourceId = &PeeringConnectionId{} - -// PeeringConnectionId is a struct representing the Resource ID for a Peering Connection -type PeeringConnectionId struct { - SubscriptionId string - ResourceGroupName string - ExpressRouteCircuitName string - PeeringName string - ConnectionName string -} - -// NewPeeringConnectionID returns a new PeeringConnectionId struct -func NewPeeringConnectionID(subscriptionId string, resourceGroupName string, expressRouteCircuitName string, peeringName string, connectionName string) PeeringConnectionId { - return PeeringConnectionId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - ExpressRouteCircuitName: expressRouteCircuitName, - PeeringName: peeringName, - ConnectionName: connectionName, - } -} - -// ParsePeeringConnectionID parses 'input' into a PeeringConnectionId -func ParsePeeringConnectionID(input string) (*PeeringConnectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&PeeringConnectionId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := PeeringConnectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParsePeeringConnectionIDInsensitively parses 'input' case-insensitively into a PeeringConnectionId -// note: this method should only be used for API response data and not user input -func ParsePeeringConnectionIDInsensitively(input string) (*PeeringConnectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&PeeringConnectionId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := PeeringConnectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *PeeringConnectionId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.ExpressRouteCircuitName, ok = input.Parsed["expressRouteCircuitName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteCircuitName", input) - } - - if id.PeeringName, ok = input.Parsed["peeringName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "peeringName", input) - } - - if id.ConnectionName, ok = input.Parsed["connectionName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "connectionName", input) - } - - return nil -} - -// ValidatePeeringConnectionID checks that 'input' can be parsed as a Peering Connection ID -func ValidatePeeringConnectionID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParsePeeringConnectionID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Peering Connection ID -func (id PeeringConnectionId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRouteCircuits/%s/peerings/%s/connections/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRouteCircuitName, id.PeeringName, id.ConnectionName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Peering Connection ID -func (id PeeringConnectionId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), - resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitName"), - resourceids.StaticSegment("staticPeerings", "peerings", "peerings"), - resourceids.UserSpecifiedSegment("peeringName", "peeringName"), - resourceids.StaticSegment("staticConnections", "connections", "connections"), - resourceids.UserSpecifiedSegment("connectionName", "connectionName"), - } -} - -// String returns a human-readable description of this Peering Connection ID -func (id PeeringConnectionId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Express Route Circuit Name: %q", id.ExpressRouteCircuitName), - fmt.Sprintf("Peering Name: %q", id.PeeringName), - fmt.Sprintf("Connection Name: %q", id.ConnectionName), - } - return fmt.Sprintf("Peering Connection (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_createorupdate.go deleted file mode 100644 index 25bb50bd1b32..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package expressroutecircuitconnections - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *ExpressRouteCircuitConnection -} - -// CreateOrUpdate ... -func (c ExpressRouteCircuitConnectionsClient) CreateOrUpdate(ctx context.Context, id PeeringConnectionId, input ExpressRouteCircuitConnection) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c ExpressRouteCircuitConnectionsClient) CreateOrUpdateThenPoll(ctx context.Context, id PeeringConnectionId, input ExpressRouteCircuitConnection) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_delete.go deleted file mode 100644 index 1d813338ead8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package expressroutecircuitconnections - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c ExpressRouteCircuitConnectionsClient) Delete(ctx context.Context, id PeeringConnectionId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c ExpressRouteCircuitConnectionsClient) DeleteThenPoll(ctx context.Context, id PeeringConnectionId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_get.go deleted file mode 100644 index ca510dffdd4d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package expressroutecircuitconnections - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ExpressRouteCircuitConnection -} - -// Get ... -func (c ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, id PeeringConnectionId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ExpressRouteCircuitConnection - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_list.go deleted file mode 100644 index bacd8586f75c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package expressroutecircuitconnections - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ExpressRouteCircuitConnection -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []ExpressRouteCircuitConnection -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c ExpressRouteCircuitConnectionsClient) List(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/connections", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]ExpressRouteCircuitConnection `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c ExpressRouteCircuitConnectionsClient) ListComplete(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, ExpressRouteCircuitConnectionOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ExpressRouteCircuitConnectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId, predicate ExpressRouteCircuitConnectionOperationPredicate) (result ListCompleteResult, err error) { - items := make([]ExpressRouteCircuitConnection, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_expressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_expressroutecircuitconnection.go deleted file mode 100644 index 689bf9a8e12e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_expressroutecircuitconnection.go +++ /dev/null @@ -1,12 +0,0 @@ -package expressroutecircuitconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_expressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_expressroutecircuitconnectionpropertiesformat.go deleted file mode 100644 index a1bf981acf31..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_expressroutecircuitconnectionpropertiesformat.go +++ /dev/null @@ -1,14 +0,0 @@ -package expressroutecircuitconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitConnectionPropertiesFormat struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - AuthorizationKey *string `json:"authorizationKey,omitempty"` - CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` - ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` - IPv6CircuitConnectionConfig *IPv6CircuitConnectionConfig `json:"ipv6CircuitConnectionConfig,omitempty"` - PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_ipv6circuitconnectionconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_ipv6circuitconnectionconfig.go deleted file mode 100644 index 580b8a8dcd7b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_ipv6circuitconnectionconfig.go +++ /dev/null @@ -1,9 +0,0 @@ -package expressroutecircuitconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPv6CircuitConnectionConfig struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_subresource.go deleted file mode 100644 index d6673ed96dc6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package expressroutecircuitconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/predicates.go deleted file mode 100644 index 6c65b4df05d7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package expressroutecircuitconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitConnectionOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p ExpressRouteCircuitConnectionOperationPredicate) Matches(input ExpressRouteCircuitConnection) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/version.go deleted file mode 100644 index d14d3ebb8deb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecircuitconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecircuitconnections/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/README.md deleted file mode 100644 index 4e66d37cbea5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/README.md +++ /dev/null @@ -1,83 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings` Documentation - -The `expressroutecircuitpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings" -``` - - -### Client Initialization - -```go -client := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteCircuitPeeringsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") - -payload := expressroutecircuitpeerings.ExpressRouteCircuitPeering{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteCircuitPeeringsClient.Delete` - -```go -ctx := context.TODO() -id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteCircuitPeeringsClient.Get` - -```go -ctx := context.TODO() -id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExpressRouteCircuitPeeringsClient.List` - -```go -ctx := context.TODO() -id := expressroutecircuitpeerings.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/client.go deleted file mode 100644 index ce7c06a4f7b0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package expressroutecircuitpeerings - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitPeeringsClient struct { - Client *resourcemanager.Client -} - -func NewExpressRouteCircuitPeeringsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCircuitPeeringsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "expressroutecircuitpeerings", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating ExpressRouteCircuitPeeringsClient: %+v", err) - } - - return &ExpressRouteCircuitPeeringsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/constants.go deleted file mode 100644 index 98d21da2c703..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/constants.go +++ /dev/null @@ -1,274 +0,0 @@ -package expressroutecircuitpeerings - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CircuitConnectionStatus string - -const ( - CircuitConnectionStatusConnected CircuitConnectionStatus = "Connected" - CircuitConnectionStatusConnecting CircuitConnectionStatus = "Connecting" - CircuitConnectionStatusDisconnected CircuitConnectionStatus = "Disconnected" -) - -func PossibleValuesForCircuitConnectionStatus() []string { - return []string{ - string(CircuitConnectionStatusConnected), - string(CircuitConnectionStatusConnecting), - string(CircuitConnectionStatusDisconnected), - } -} - -func (s *CircuitConnectionStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseCircuitConnectionStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseCircuitConnectionStatus(input string) (*CircuitConnectionStatus, error) { - vals := map[string]CircuitConnectionStatus{ - "connected": CircuitConnectionStatusConnected, - "connecting": CircuitConnectionStatusConnecting, - "disconnected": CircuitConnectionStatusDisconnected, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := CircuitConnectionStatus(input) - return &out, nil -} - -type ExpressRouteCircuitPeeringAdvertisedPublicPrefixState string - -const ( - ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configured" - ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configuring" - ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "NotConfigured" - ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "ValidationNeeded" -) - -func PossibleValuesForExpressRouteCircuitPeeringAdvertisedPublicPrefixState() []string { - return []string{ - string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured), - string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring), - string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured), - string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded), - } -} - -func (s *ExpressRouteCircuitPeeringAdvertisedPublicPrefixState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseExpressRouteCircuitPeeringAdvertisedPublicPrefixState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseExpressRouteCircuitPeeringAdvertisedPublicPrefixState(input string) (*ExpressRouteCircuitPeeringAdvertisedPublicPrefixState, error) { - vals := map[string]ExpressRouteCircuitPeeringAdvertisedPublicPrefixState{ - "configured": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured, - "configuring": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring, - "notconfigured": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured, - "validationneeded": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ExpressRouteCircuitPeeringAdvertisedPublicPrefixState(input) - return &out, nil -} - -type ExpressRouteCircuitPeeringState string - -const ( - ExpressRouteCircuitPeeringStateDisabled ExpressRouteCircuitPeeringState = "Disabled" - ExpressRouteCircuitPeeringStateEnabled ExpressRouteCircuitPeeringState = "Enabled" -) - -func PossibleValuesForExpressRouteCircuitPeeringState() []string { - return []string{ - string(ExpressRouteCircuitPeeringStateDisabled), - string(ExpressRouteCircuitPeeringStateEnabled), - } -} - -func (s *ExpressRouteCircuitPeeringState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseExpressRouteCircuitPeeringState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseExpressRouteCircuitPeeringState(input string) (*ExpressRouteCircuitPeeringState, error) { - vals := map[string]ExpressRouteCircuitPeeringState{ - "disabled": ExpressRouteCircuitPeeringStateDisabled, - "enabled": ExpressRouteCircuitPeeringStateEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ExpressRouteCircuitPeeringState(input) - return &out, nil -} - -type ExpressRoutePeeringState string - -const ( - ExpressRoutePeeringStateDisabled ExpressRoutePeeringState = "Disabled" - ExpressRoutePeeringStateEnabled ExpressRoutePeeringState = "Enabled" -) - -func PossibleValuesForExpressRoutePeeringState() []string { - return []string{ - string(ExpressRoutePeeringStateDisabled), - string(ExpressRoutePeeringStateEnabled), - } -} - -func (s *ExpressRoutePeeringState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseExpressRoutePeeringState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseExpressRoutePeeringState(input string) (*ExpressRoutePeeringState, error) { - vals := map[string]ExpressRoutePeeringState{ - "disabled": ExpressRoutePeeringStateDisabled, - "enabled": ExpressRoutePeeringStateEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ExpressRoutePeeringState(input) - return &out, nil -} - -type ExpressRoutePeeringType string - -const ( - ExpressRoutePeeringTypeAzurePrivatePeering ExpressRoutePeeringType = "AzurePrivatePeering" - ExpressRoutePeeringTypeAzurePublicPeering ExpressRoutePeeringType = "AzurePublicPeering" - ExpressRoutePeeringTypeMicrosoftPeering ExpressRoutePeeringType = "MicrosoftPeering" -) - -func PossibleValuesForExpressRoutePeeringType() []string { - return []string{ - string(ExpressRoutePeeringTypeAzurePrivatePeering), - string(ExpressRoutePeeringTypeAzurePublicPeering), - string(ExpressRoutePeeringTypeMicrosoftPeering), - } -} - -func (s *ExpressRoutePeeringType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseExpressRoutePeeringType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseExpressRoutePeeringType(input string) (*ExpressRoutePeeringType, error) { - vals := map[string]ExpressRoutePeeringType{ - "azureprivatepeering": ExpressRoutePeeringTypeAzurePrivatePeering, - "azurepublicpeering": ExpressRoutePeeringTypeAzurePublicPeering, - "microsoftpeering": ExpressRoutePeeringTypeMicrosoftPeering, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ExpressRoutePeeringType(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/id_expressroutecircuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/id_expressroutecircuit.go deleted file mode 100644 index 02a14699ffa4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/id_expressroutecircuit.go +++ /dev/null @@ -1,130 +0,0 @@ -package expressroutecircuitpeerings - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&ExpressRouteCircuitId{}) -} - -var _ resourceids.ResourceId = &ExpressRouteCircuitId{} - -// ExpressRouteCircuitId is a struct representing the Resource ID for a Express Route Circuit -type ExpressRouteCircuitId struct { - SubscriptionId string - ResourceGroupName string - ExpressRouteCircuitName string -} - -// NewExpressRouteCircuitID returns a new ExpressRouteCircuitId struct -func NewExpressRouteCircuitID(subscriptionId string, resourceGroupName string, expressRouteCircuitName string) ExpressRouteCircuitId { - return ExpressRouteCircuitId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - ExpressRouteCircuitName: expressRouteCircuitName, - } -} - -// ParseExpressRouteCircuitID parses 'input' into a ExpressRouteCircuitId -func ParseExpressRouteCircuitID(input string) (*ExpressRouteCircuitId, error) { - parser := resourceids.NewParserFromResourceIdType(&ExpressRouteCircuitId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ExpressRouteCircuitId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseExpressRouteCircuitIDInsensitively parses 'input' case-insensitively into a ExpressRouteCircuitId -// note: this method should only be used for API response data and not user input -func ParseExpressRouteCircuitIDInsensitively(input string) (*ExpressRouteCircuitId, error) { - parser := resourceids.NewParserFromResourceIdType(&ExpressRouteCircuitId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ExpressRouteCircuitId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *ExpressRouteCircuitId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.ExpressRouteCircuitName, ok = input.Parsed["expressRouteCircuitName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteCircuitName", input) - } - - return nil -} - -// ValidateExpressRouteCircuitID checks that 'input' can be parsed as a Express Route Circuit ID -func ValidateExpressRouteCircuitID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseExpressRouteCircuitID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Express Route Circuit ID -func (id ExpressRouteCircuitId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRouteCircuits/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRouteCircuitName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Express Route Circuit ID -func (id ExpressRouteCircuitId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), - resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitName"), - } -} - -// String returns a human-readable description of this Express Route Circuit ID -func (id ExpressRouteCircuitId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Express Route Circuit Name: %q", id.ExpressRouteCircuitName), - } - return fmt.Sprintf("Express Route Circuit (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_createorupdate.go deleted file mode 100644 index a90568705823..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_createorupdate.go +++ /dev/null @@ -1,76 +0,0 @@ -package expressroutecircuitpeerings - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *ExpressRouteCircuitPeering -} - -// CreateOrUpdate ... -func (c ExpressRouteCircuitPeeringsClient) CreateOrUpdate(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId, input ExpressRouteCircuitPeering) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c ExpressRouteCircuitPeeringsClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId, input ExpressRouteCircuitPeering) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_delete.go deleted file mode 100644 index 241c45fa4146..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_delete.go +++ /dev/null @@ -1,72 +0,0 @@ -package expressroutecircuitpeerings - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c ExpressRouteCircuitPeeringsClient) Delete(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c ExpressRouteCircuitPeeringsClient) DeleteThenPoll(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_get.go deleted file mode 100644 index 217363c38a10..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_get.go +++ /dev/null @@ -1,54 +0,0 @@ -package expressroutecircuitpeerings - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ExpressRouteCircuitPeering -} - -// Get ... -func (c ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ExpressRouteCircuitPeering - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_list.go deleted file mode 100644 index ec6d45b259f7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_list.go +++ /dev/null @@ -1,105 +0,0 @@ -package expressroutecircuitpeerings - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ExpressRouteCircuitPeering -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []ExpressRouteCircuitPeering -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c ExpressRouteCircuitPeeringsClient) List(ctx context.Context, id ExpressRouteCircuitId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/peerings", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]ExpressRouteCircuitPeering `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c ExpressRouteCircuitPeeringsClient) ListComplete(ctx context.Context, id ExpressRouteCircuitId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, ExpressRouteCircuitPeeringOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ExpressRouteCircuitPeeringsClient) ListCompleteMatchingPredicate(ctx context.Context, id ExpressRouteCircuitId, predicate ExpressRouteCircuitPeeringOperationPredicate) (result ListCompleteResult, err error) { - items := make([]ExpressRouteCircuitPeering, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitconnection.go deleted file mode 100644 index f0bf62174ce7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitconnection.go +++ /dev/null @@ -1,12 +0,0 @@ -package expressroutecircuitpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitconnectionpropertiesformat.go deleted file mode 100644 index f89ab3b51e44..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitconnectionpropertiesformat.go +++ /dev/null @@ -1,14 +0,0 @@ -package expressroutecircuitpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitConnectionPropertiesFormat struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - AuthorizationKey *string `json:"authorizationKey,omitempty"` - CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` - ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` - IPv6CircuitConnectionConfig *IPv6CircuitConnectionConfig `json:"ipv6CircuitConnectionConfig,omitempty"` - PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeering.go deleted file mode 100644 index 5e47a7f02660..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeering.go +++ /dev/null @@ -1,12 +0,0 @@ -package expressroutecircuitpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitPeering struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ExpressRouteCircuitPeeringPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringconfig.go deleted file mode 100644 index 67b575213fe6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringconfig.go +++ /dev/null @@ -1,13 +0,0 @@ -package expressroutecircuitpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitPeeringConfig struct { - AdvertisedCommunities *[]string `json:"advertisedCommunities,omitempty"` - AdvertisedPublicPrefixes *[]string `json:"advertisedPublicPrefixes,omitempty"` - AdvertisedPublicPrefixesState *ExpressRouteCircuitPeeringAdvertisedPublicPrefixState `json:"advertisedPublicPrefixesState,omitempty"` - CustomerASN *int64 `json:"customerASN,omitempty"` - LegacyMode *int64 `json:"legacyMode,omitempty"` - RoutingRegistryName *string `json:"routingRegistryName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringpropertiesformat.go deleted file mode 100644 index a54ef389df44..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringpropertiesformat.go +++ /dev/null @@ -1,27 +0,0 @@ -package expressroutecircuitpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitPeeringPropertiesFormat struct { - AzureASN *int64 `json:"azureASN,omitempty"` - Connections *[]ExpressRouteCircuitConnection `json:"connections,omitempty"` - ExpressRouteConnection *ExpressRouteConnectionId `json:"expressRouteConnection,omitempty"` - GatewayManagerEtag *string `json:"gatewayManagerEtag,omitempty"` - IPv6PeeringConfig *IPv6ExpressRouteCircuitPeeringConfig `json:"ipv6PeeringConfig,omitempty"` - LastModifiedBy *string `json:"lastModifiedBy,omitempty"` - MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` - PeerASN *int64 `json:"peerASN,omitempty"` - PeeredConnections *[]PeerExpressRouteCircuitConnection `json:"peeredConnections,omitempty"` - PeeringType *ExpressRoutePeeringType `json:"peeringType,omitempty"` - PrimaryAzurePort *string `json:"primaryAzurePort,omitempty"` - PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RouteFilter *SubResource `json:"routeFilter,omitempty"` - SecondaryAzurePort *string `json:"secondaryAzurePort,omitempty"` - SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` - SharedKey *string `json:"sharedKey,omitempty"` - State *ExpressRoutePeeringState `json:"state,omitempty"` - Stats *ExpressRouteCircuitStats `json:"stats,omitempty"` - VlanId *int64 `json:"vlanId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitstats.go deleted file mode 100644 index 8239e6299db0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitstats.go +++ /dev/null @@ -1,11 +0,0 @@ -package expressroutecircuitpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitStats struct { - PrimarybytesIn *int64 `json:"primarybytesIn,omitempty"` - PrimarybytesOut *int64 `json:"primarybytesOut,omitempty"` - SecondarybytesIn *int64 `json:"secondarybytesIn,omitempty"` - SecondarybytesOut *int64 `json:"secondarybytesOut,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressrouteconnectionid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressrouteconnectionid.go deleted file mode 100644 index f06a355d7fa6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressrouteconnectionid.go +++ /dev/null @@ -1,8 +0,0 @@ -package expressroutecircuitpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteConnectionId struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_ipv6circuitconnectionconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_ipv6circuitconnectionconfig.go deleted file mode 100644 index ae00db3c45c6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_ipv6circuitconnectionconfig.go +++ /dev/null @@ -1,9 +0,0 @@ -package expressroutecircuitpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPv6CircuitConnectionConfig struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_ipv6expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_ipv6expressroutecircuitpeeringconfig.go deleted file mode 100644 index 93ee020eec61..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_ipv6expressroutecircuitpeeringconfig.go +++ /dev/null @@ -1,12 +0,0 @@ -package expressroutecircuitpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPv6ExpressRouteCircuitPeeringConfig struct { - MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` - PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` - RouteFilter *SubResource `json:"routeFilter,omitempty"` - SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` - State *ExpressRouteCircuitPeeringState `json:"state,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnection.go deleted file mode 100644 index bc9218f9280b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnection.go +++ /dev/null @@ -1,12 +0,0 @@ -package expressroutecircuitpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PeerExpressRouteCircuitConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PeerExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnectionpropertiesformat.go deleted file mode 100644 index 72eba9f327f0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnectionpropertiesformat.go +++ /dev/null @@ -1,14 +0,0 @@ -package expressroutecircuitpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PeerExpressRouteCircuitConnectionPropertiesFormat struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - AuthResourceGuid *string `json:"authResourceGuid,omitempty"` - CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` - ConnectionName *string `json:"connectionName,omitempty"` - ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` - PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_subresource.go deleted file mode 100644 index 3143d87b0ee3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package expressroutecircuitpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/predicates.go deleted file mode 100644 index 1e725c4e63a5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package expressroutecircuitpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitPeeringOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p ExpressRouteCircuitPeeringOperationPredicate) Matches(input ExpressRouteCircuitPeering) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/version.go deleted file mode 100644 index e1a25aedb019..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecircuitpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecircuitpeerings/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/README.md deleted file mode 100644 index b445eedd9dcc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/README.md +++ /dev/null @@ -1,81 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections` Documentation - -The `expressrouteconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections" -``` - - -### Client Initialization - -```go -client := expressrouteconnections.NewExpressRouteConnectionsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteConnectionsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName", "expressRouteConnectionName") - -payload := expressrouteconnections.ExpressRouteConnection{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteConnectionsClient.Delete` - -```go -ctx := context.TODO() -id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName", "expressRouteConnectionName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteConnectionsClient.Get` - -```go -ctx := context.TODO() -id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName", "expressRouteConnectionName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExpressRouteConnectionsClient.List` - -```go -ctx := context.TODO() -id := expressrouteconnections.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") - -read, err := client.List(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/client.go deleted file mode 100644 index 379d1d228801..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package expressrouteconnections - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteConnectionsClient struct { - Client *resourcemanager.Client -} - -func NewExpressRouteConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteConnectionsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "expressrouteconnections", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating ExpressRouteConnectionsClient: %+v", err) - } - - return &ExpressRouteConnectionsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/constants.go deleted file mode 100644 index 571bcb03c1e9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/constants.go +++ /dev/null @@ -1,98 +0,0 @@ -package expressrouteconnections - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type VnetLocalRouteOverrideCriteria string - -const ( - VnetLocalRouteOverrideCriteriaContains VnetLocalRouteOverrideCriteria = "Contains" - VnetLocalRouteOverrideCriteriaEqual VnetLocalRouteOverrideCriteria = "Equal" -) - -func PossibleValuesForVnetLocalRouteOverrideCriteria() []string { - return []string{ - string(VnetLocalRouteOverrideCriteriaContains), - string(VnetLocalRouteOverrideCriteriaEqual), - } -} - -func (s *VnetLocalRouteOverrideCriteria) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVnetLocalRouteOverrideCriteria(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVnetLocalRouteOverrideCriteria(input string) (*VnetLocalRouteOverrideCriteria, error) { - vals := map[string]VnetLocalRouteOverrideCriteria{ - "contains": VnetLocalRouteOverrideCriteriaContains, - "equal": VnetLocalRouteOverrideCriteriaEqual, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VnetLocalRouteOverrideCriteria(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressrouteconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressrouteconnection.go deleted file mode 100644 index 2cf6021fe08c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressrouteconnection.go +++ /dev/null @@ -1,139 +0,0 @@ -package expressrouteconnections - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&ExpressRouteConnectionId{}) -} - -var _ resourceids.ResourceId = &ExpressRouteConnectionId{} - -// ExpressRouteConnectionId is a struct representing the Resource ID for a Express Route Connection -type ExpressRouteConnectionId struct { - SubscriptionId string - ResourceGroupName string - ExpressRouteGatewayName string - ExpressRouteConnectionName string -} - -// NewExpressRouteConnectionID returns a new ExpressRouteConnectionId struct -func NewExpressRouteConnectionID(subscriptionId string, resourceGroupName string, expressRouteGatewayName string, expressRouteConnectionName string) ExpressRouteConnectionId { - return ExpressRouteConnectionId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - ExpressRouteGatewayName: expressRouteGatewayName, - ExpressRouteConnectionName: expressRouteConnectionName, - } -} - -// ParseExpressRouteConnectionID parses 'input' into a ExpressRouteConnectionId -func ParseExpressRouteConnectionID(input string) (*ExpressRouteConnectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&ExpressRouteConnectionId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ExpressRouteConnectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseExpressRouteConnectionIDInsensitively parses 'input' case-insensitively into a ExpressRouteConnectionId -// note: this method should only be used for API response data and not user input -func ParseExpressRouteConnectionIDInsensitively(input string) (*ExpressRouteConnectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&ExpressRouteConnectionId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ExpressRouteConnectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *ExpressRouteConnectionId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.ExpressRouteGatewayName, ok = input.Parsed["expressRouteGatewayName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteGatewayName", input) - } - - if id.ExpressRouteConnectionName, ok = input.Parsed["expressRouteConnectionName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteConnectionName", input) - } - - return nil -} - -// ValidateExpressRouteConnectionID checks that 'input' can be parsed as a Express Route Connection ID -func ValidateExpressRouteConnectionID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseExpressRouteConnectionID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Express Route Connection ID -func (id ExpressRouteConnectionId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRouteGateways/%s/expressRouteConnections/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRouteGatewayName, id.ExpressRouteConnectionName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Express Route Connection ID -func (id ExpressRouteConnectionId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticExpressRouteGateways", "expressRouteGateways", "expressRouteGateways"), - resourceids.UserSpecifiedSegment("expressRouteGatewayName", "expressRouteGatewayName"), - resourceids.StaticSegment("staticExpressRouteConnections", "expressRouteConnections", "expressRouteConnections"), - resourceids.UserSpecifiedSegment("expressRouteConnectionName", "expressRouteConnectionName"), - } -} - -// String returns a human-readable description of this Express Route Connection ID -func (id ExpressRouteConnectionId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Express Route Gateway Name: %q", id.ExpressRouteGatewayName), - fmt.Sprintf("Express Route Connection Name: %q", id.ExpressRouteConnectionName), - } - return fmt.Sprintf("Express Route Connection (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressroutegateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressroutegateway.go deleted file mode 100644 index cad59206c916..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressroutegateway.go +++ /dev/null @@ -1,130 +0,0 @@ -package expressrouteconnections - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&ExpressRouteGatewayId{}) -} - -var _ resourceids.ResourceId = &ExpressRouteGatewayId{} - -// ExpressRouteGatewayId is a struct representing the Resource ID for a Express Route Gateway -type ExpressRouteGatewayId struct { - SubscriptionId string - ResourceGroupName string - ExpressRouteGatewayName string -} - -// NewExpressRouteGatewayID returns a new ExpressRouteGatewayId struct -func NewExpressRouteGatewayID(subscriptionId string, resourceGroupName string, expressRouteGatewayName string) ExpressRouteGatewayId { - return ExpressRouteGatewayId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - ExpressRouteGatewayName: expressRouteGatewayName, - } -} - -// ParseExpressRouteGatewayID parses 'input' into a ExpressRouteGatewayId -func ParseExpressRouteGatewayID(input string) (*ExpressRouteGatewayId, error) { - parser := resourceids.NewParserFromResourceIdType(&ExpressRouteGatewayId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ExpressRouteGatewayId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseExpressRouteGatewayIDInsensitively parses 'input' case-insensitively into a ExpressRouteGatewayId -// note: this method should only be used for API response data and not user input -func ParseExpressRouteGatewayIDInsensitively(input string) (*ExpressRouteGatewayId, error) { - parser := resourceids.NewParserFromResourceIdType(&ExpressRouteGatewayId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ExpressRouteGatewayId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *ExpressRouteGatewayId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.ExpressRouteGatewayName, ok = input.Parsed["expressRouteGatewayName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteGatewayName", input) - } - - return nil -} - -// ValidateExpressRouteGatewayID checks that 'input' can be parsed as a Express Route Gateway ID -func ValidateExpressRouteGatewayID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseExpressRouteGatewayID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Express Route Gateway ID -func (id ExpressRouteGatewayId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRouteGateways/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRouteGatewayName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Express Route Gateway ID -func (id ExpressRouteGatewayId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticExpressRouteGateways", "expressRouteGateways", "expressRouteGateways"), - resourceids.UserSpecifiedSegment("expressRouteGatewayName", "expressRouteGatewayName"), - } -} - -// String returns a human-readable description of this Express Route Gateway ID -func (id ExpressRouteGatewayId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Express Route Gateway Name: %q", id.ExpressRouteGatewayName), - } - return fmt.Sprintf("Express Route Gateway (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_createorupdate.go deleted file mode 100644 index 37e7c0ceddbf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package expressrouteconnections - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *ExpressRouteConnection -} - -// CreateOrUpdate ... -func (c ExpressRouteConnectionsClient) CreateOrUpdate(ctx context.Context, id ExpressRouteConnectionId, input ExpressRouteConnection) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c ExpressRouteConnectionsClient) CreateOrUpdateThenPoll(ctx context.Context, id ExpressRouteConnectionId, input ExpressRouteConnection) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_delete.go deleted file mode 100644 index 8f3816bde329..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package expressrouteconnections - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c ExpressRouteConnectionsClient) Delete(ctx context.Context, id ExpressRouteConnectionId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c ExpressRouteConnectionsClient) DeleteThenPoll(ctx context.Context, id ExpressRouteConnectionId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_get.go deleted file mode 100644 index 0116eaca5cf7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package expressrouteconnections - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ExpressRouteConnection -} - -// Get ... -func (c ExpressRouteConnectionsClient) Get(ctx context.Context, id ExpressRouteConnectionId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ExpressRouteConnection - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_list.go deleted file mode 100644 index d6233e938c49..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_list.go +++ /dev/null @@ -1,54 +0,0 @@ -package expressrouteconnections - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ExpressRouteConnectionList -} - -// List ... -func (c ExpressRouteConnectionsClient) List(ctx context.Context, id ExpressRouteGatewayId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/expressRouteConnections", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ExpressRouteConnectionList - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressroutecircuitpeeringid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressroutecircuitpeeringid.go deleted file mode 100644 index 3a30ff411e81..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressroutecircuitpeeringid.go +++ /dev/null @@ -1,8 +0,0 @@ -package expressrouteconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitPeeringId struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnection.go deleted file mode 100644 index 1e31fa6c8603..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnection.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressrouteconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteConnection struct { - Id *string `json:"id,omitempty"` - Name string `json:"name"` - Properties *ExpressRouteConnectionProperties `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnectionlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnectionlist.go deleted file mode 100644 index a16565b3cd51..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnectionlist.go +++ /dev/null @@ -1,8 +0,0 @@ -package expressrouteconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteConnectionList struct { - Value *[]ExpressRouteConnection `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnectionproperties.go deleted file mode 100644 index 2e9dddfbc1a7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnectionproperties.go +++ /dev/null @@ -1,15 +0,0 @@ -package expressrouteconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteConnectionProperties struct { - AuthorizationKey *string `json:"authorizationKey,omitempty"` - EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` - EnablePrivateLinkFastPath *bool `json:"enablePrivateLinkFastPath,omitempty"` - ExpressRouteCircuitPeering ExpressRouteCircuitPeeringId `json:"expressRouteCircuitPeering"` - ExpressRouteGatewayBypass *bool `json:"expressRouteGatewayBypass,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` - RoutingWeight *int64 `json:"routingWeight,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_propagatedroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_propagatedroutetable.go deleted file mode 100644 index 7279e13359ca..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_propagatedroutetable.go +++ /dev/null @@ -1,9 +0,0 @@ -package expressrouteconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PropagatedRouteTable struct { - Ids *[]SubResource `json:"ids,omitempty"` - Labels *[]string `json:"labels,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_routingconfiguration.go deleted file mode 100644 index 4e1904d9c6e2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_routingconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package expressrouteconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RoutingConfiguration struct { - AssociatedRouteTable *SubResource `json:"associatedRouteTable,omitempty"` - InboundRouteMap *SubResource `json:"inboundRouteMap,omitempty"` - OutboundRouteMap *SubResource `json:"outboundRouteMap,omitempty"` - PropagatedRouteTables *PropagatedRouteTable `json:"propagatedRouteTables,omitempty"` - VnetRoutes *VnetRoute `json:"vnetRoutes,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_staticroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_staticroute.go deleted file mode 100644 index c1e414bbe16f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_staticroute.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressrouteconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StaticRoute struct { - AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` - Name *string `json:"name,omitempty"` - NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_staticroutesconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_staticroutesconfig.go deleted file mode 100644 index 9ee286419ac8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_staticroutesconfig.go +++ /dev/null @@ -1,9 +0,0 @@ -package expressrouteconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StaticRoutesConfig struct { - PropagateStaticRoutes *bool `json:"propagateStaticRoutes,omitempty"` - VnetLocalRouteOverrideCriteria *VnetLocalRouteOverrideCriteria `json:"vnetLocalRouteOverrideCriteria,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_subresource.go deleted file mode 100644 index 5a5f53696f80..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package expressrouteconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_vnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_vnetroute.go deleted file mode 100644 index 9e296eed5de6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_vnetroute.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressrouteconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VnetRoute struct { - BgpConnections *[]SubResource `json:"bgpConnections,omitempty"` - StaticRoutes *[]StaticRoute `json:"staticRoutes,omitempty"` - StaticRoutesConfig *StaticRoutesConfig `json:"staticRoutesConfig,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/version.go deleted file mode 100644 index 4059fb601ed4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressrouteconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressrouteconnections/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/README.md deleted file mode 100644 index fb4c6d7d8f54..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations` Documentation - -The `expressrouteportauthorizations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations" -``` - - -### Client Initialization - -```go -client := expressrouteportauthorizations.NewExpressRoutePortAuthorizationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRoutePortAuthorizationsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "authorizationName") - -payload := expressrouteportauthorizations.ExpressRoutePortAuthorization{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRoutePortAuthorizationsClient.Delete` - -```go -ctx := context.TODO() -id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "authorizationName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRoutePortAuthorizationsClient.Get` - -```go -ctx := context.TODO() -id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "authorizationName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExpressRoutePortAuthorizationsClient.List` - -```go -ctx := context.TODO() -id := expressrouteportauthorizations.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/client.go deleted file mode 100644 index 3405a1acb863..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package expressrouteportauthorizations - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRoutePortAuthorizationsClient struct { - Client *resourcemanager.Client -} - -func NewExpressRoutePortAuthorizationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRoutePortAuthorizationsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "expressrouteportauthorizations", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating ExpressRoutePortAuthorizationsClient: %+v", err) - } - - return &ExpressRoutePortAuthorizationsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/constants.go deleted file mode 100644 index 3fbd20f1075d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/constants.go +++ /dev/null @@ -1,98 +0,0 @@ -package expressrouteportauthorizations - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRoutePortAuthorizationUseStatus string - -const ( - ExpressRoutePortAuthorizationUseStatusAvailable ExpressRoutePortAuthorizationUseStatus = "Available" - ExpressRoutePortAuthorizationUseStatusInUse ExpressRoutePortAuthorizationUseStatus = "InUse" -) - -func PossibleValuesForExpressRoutePortAuthorizationUseStatus() []string { - return []string{ - string(ExpressRoutePortAuthorizationUseStatusAvailable), - string(ExpressRoutePortAuthorizationUseStatusInUse), - } -} - -func (s *ExpressRoutePortAuthorizationUseStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseExpressRoutePortAuthorizationUseStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseExpressRoutePortAuthorizationUseStatus(input string) (*ExpressRoutePortAuthorizationUseStatus, error) { - vals := map[string]ExpressRoutePortAuthorizationUseStatus{ - "available": ExpressRoutePortAuthorizationUseStatusAvailable, - "inuse": ExpressRoutePortAuthorizationUseStatusInUse, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ExpressRoutePortAuthorizationUseStatus(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteport.go deleted file mode 100644 index b9d13e5b8432..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteport.go +++ /dev/null @@ -1,130 +0,0 @@ -package expressrouteportauthorizations - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&ExpressRoutePortId{}) -} - -var _ resourceids.ResourceId = &ExpressRoutePortId{} - -// ExpressRoutePortId is a struct representing the Resource ID for a Express Route Port -type ExpressRoutePortId struct { - SubscriptionId string - ResourceGroupName string - ExpressRoutePortName string -} - -// NewExpressRoutePortID returns a new ExpressRoutePortId struct -func NewExpressRoutePortID(subscriptionId string, resourceGroupName string, expressRoutePortName string) ExpressRoutePortId { - return ExpressRoutePortId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - ExpressRoutePortName: expressRoutePortName, - } -} - -// ParseExpressRoutePortID parses 'input' into a ExpressRoutePortId -func ParseExpressRoutePortID(input string) (*ExpressRoutePortId, error) { - parser := resourceids.NewParserFromResourceIdType(&ExpressRoutePortId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ExpressRoutePortId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseExpressRoutePortIDInsensitively parses 'input' case-insensitively into a ExpressRoutePortId -// note: this method should only be used for API response data and not user input -func ParseExpressRoutePortIDInsensitively(input string) (*ExpressRoutePortId, error) { - parser := resourceids.NewParserFromResourceIdType(&ExpressRoutePortId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ExpressRoutePortId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *ExpressRoutePortId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.ExpressRoutePortName, ok = input.Parsed["expressRoutePortName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "expressRoutePortName", input) - } - - return nil -} - -// ValidateExpressRoutePortID checks that 'input' can be parsed as a Express Route Port ID -func ValidateExpressRoutePortID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseExpressRoutePortID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Express Route Port ID -func (id ExpressRoutePortId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRoutePorts/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRoutePortName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Express Route Port ID -func (id ExpressRoutePortId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticExpressRoutePorts", "expressRoutePorts", "expressRoutePorts"), - resourceids.UserSpecifiedSegment("expressRoutePortName", "expressRoutePortName"), - } -} - -// String returns a human-readable description of this Express Route Port ID -func (id ExpressRoutePortId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Express Route Port Name: %q", id.ExpressRoutePortName), - } - return fmt.Sprintf("Express Route Port (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteportauthorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteportauthorization.go deleted file mode 100644 index f0a6e19528d4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteportauthorization.go +++ /dev/null @@ -1,139 +0,0 @@ -package expressrouteportauthorizations - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&ExpressRoutePortAuthorizationId{}) -} - -var _ resourceids.ResourceId = &ExpressRoutePortAuthorizationId{} - -// ExpressRoutePortAuthorizationId is a struct representing the Resource ID for a Express Route Port Authorization -type ExpressRoutePortAuthorizationId struct { - SubscriptionId string - ResourceGroupName string - ExpressRoutePortName string - AuthorizationName string -} - -// NewExpressRoutePortAuthorizationID returns a new ExpressRoutePortAuthorizationId struct -func NewExpressRoutePortAuthorizationID(subscriptionId string, resourceGroupName string, expressRoutePortName string, authorizationName string) ExpressRoutePortAuthorizationId { - return ExpressRoutePortAuthorizationId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - ExpressRoutePortName: expressRoutePortName, - AuthorizationName: authorizationName, - } -} - -// ParseExpressRoutePortAuthorizationID parses 'input' into a ExpressRoutePortAuthorizationId -func ParseExpressRoutePortAuthorizationID(input string) (*ExpressRoutePortAuthorizationId, error) { - parser := resourceids.NewParserFromResourceIdType(&ExpressRoutePortAuthorizationId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ExpressRoutePortAuthorizationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseExpressRoutePortAuthorizationIDInsensitively parses 'input' case-insensitively into a ExpressRoutePortAuthorizationId -// note: this method should only be used for API response data and not user input -func ParseExpressRoutePortAuthorizationIDInsensitively(input string) (*ExpressRoutePortAuthorizationId, error) { - parser := resourceids.NewParserFromResourceIdType(&ExpressRoutePortAuthorizationId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ExpressRoutePortAuthorizationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *ExpressRoutePortAuthorizationId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.ExpressRoutePortName, ok = input.Parsed["expressRoutePortName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "expressRoutePortName", input) - } - - if id.AuthorizationName, ok = input.Parsed["authorizationName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "authorizationName", input) - } - - return nil -} - -// ValidateExpressRoutePortAuthorizationID checks that 'input' can be parsed as a Express Route Port Authorization ID -func ValidateExpressRoutePortAuthorizationID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseExpressRoutePortAuthorizationID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Express Route Port Authorization ID -func (id ExpressRoutePortAuthorizationId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRoutePorts/%s/authorizations/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRoutePortName, id.AuthorizationName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Express Route Port Authorization ID -func (id ExpressRoutePortAuthorizationId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticExpressRoutePorts", "expressRoutePorts", "expressRoutePorts"), - resourceids.UserSpecifiedSegment("expressRoutePortName", "expressRoutePortName"), - resourceids.StaticSegment("staticAuthorizations", "authorizations", "authorizations"), - resourceids.UserSpecifiedSegment("authorizationName", "authorizationName"), - } -} - -// String returns a human-readable description of this Express Route Port Authorization ID -func (id ExpressRoutePortAuthorizationId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Express Route Port Name: %q", id.ExpressRoutePortName), - fmt.Sprintf("Authorization Name: %q", id.AuthorizationName), - } - return fmt.Sprintf("Express Route Port Authorization (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_createorupdate.go deleted file mode 100644 index 9e08a949ed3c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package expressrouteportauthorizations - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *ExpressRoutePortAuthorization -} - -// CreateOrUpdate ... -func (c ExpressRoutePortAuthorizationsClient) CreateOrUpdate(ctx context.Context, id ExpressRoutePortAuthorizationId, input ExpressRoutePortAuthorization) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c ExpressRoutePortAuthorizationsClient) CreateOrUpdateThenPoll(ctx context.Context, id ExpressRoutePortAuthorizationId, input ExpressRoutePortAuthorization) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_delete.go deleted file mode 100644 index 8940670b6150..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package expressrouteportauthorizations - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c ExpressRoutePortAuthorizationsClient) Delete(ctx context.Context, id ExpressRoutePortAuthorizationId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c ExpressRoutePortAuthorizationsClient) DeleteThenPoll(ctx context.Context, id ExpressRoutePortAuthorizationId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_get.go deleted file mode 100644 index c8df23b8dfde..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package expressrouteportauthorizations - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ExpressRoutePortAuthorization -} - -// Get ... -func (c ExpressRoutePortAuthorizationsClient) Get(ctx context.Context, id ExpressRoutePortAuthorizationId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ExpressRoutePortAuthorization - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_list.go deleted file mode 100644 index 66e64adc644e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_list.go +++ /dev/null @@ -1,105 +0,0 @@ -package expressrouteportauthorizations - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ExpressRoutePortAuthorization -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []ExpressRoutePortAuthorization -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c ExpressRoutePortAuthorizationsClient) List(ctx context.Context, id ExpressRoutePortId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/authorizations", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]ExpressRoutePortAuthorization `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c ExpressRoutePortAuthorizationsClient) ListComplete(ctx context.Context, id ExpressRoutePortId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, ExpressRoutePortAuthorizationOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ExpressRoutePortAuthorizationsClient) ListCompleteMatchingPredicate(ctx context.Context, id ExpressRoutePortId, predicate ExpressRoutePortAuthorizationOperationPredicate) (result ListCompleteResult, err error) { - items := make([]ExpressRoutePortAuthorization, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/model_expressrouteportauthorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/model_expressrouteportauthorization.go deleted file mode 100644 index aee29af0a991..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/model_expressrouteportauthorization.go +++ /dev/null @@ -1,12 +0,0 @@ -package expressrouteportauthorizations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRoutePortAuthorization struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ExpressRoutePortAuthorizationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/model_expressrouteportauthorizationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/model_expressrouteportauthorizationpropertiesformat.go deleted file mode 100644 index 9370c4f6323a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/model_expressrouteportauthorizationpropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package expressrouteportauthorizations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRoutePortAuthorizationPropertiesFormat struct { - AuthorizationKey *string `json:"authorizationKey,omitempty"` - AuthorizationUseStatus *ExpressRoutePortAuthorizationUseStatus `json:"authorizationUseStatus,omitempty"` - CircuitResourceUri *string `json:"circuitResourceUri,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/predicates.go deleted file mode 100644 index d12fc29e52a3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package expressrouteportauthorizations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRoutePortAuthorizationOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p ExpressRoutePortAuthorizationOperationPredicate) Matches(input ExpressRoutePortAuthorization) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/version.go deleted file mode 100644 index 1bf60f25da32..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressrouteportauthorizations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressrouteportauthorizations/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/README.md deleted file mode 100644 index 10bf14d64488..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups` Documentation - -The `firewallpolicyrulecollectiongroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups" -``` - - -### Client Initialization - -```go -client := firewallpolicyrulecollectiongroups.NewFirewallPolicyRuleCollectionGroupsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `FirewallPolicyRuleCollectionGroupsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") - -payload := firewallpolicyrulecollectiongroups.FirewallPolicyRuleCollectionGroup{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `FirewallPolicyRuleCollectionGroupsClient.Delete` - -```go -ctx := context.TODO() -id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `FirewallPolicyRuleCollectionGroupsClient.Get` - -```go -ctx := context.TODO() -id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `FirewallPolicyRuleCollectionGroupsClient.List` - -```go -ctx := context.TODO() -id := firewallpolicyrulecollectiongroups.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/client.go deleted file mode 100644 index 2c48ff99f6d7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package firewallpolicyrulecollectiongroups - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FirewallPolicyRuleCollectionGroupsClient struct { - Client *resourcemanager.Client -} - -func NewFirewallPolicyRuleCollectionGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallPolicyRuleCollectionGroupsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "firewallpolicyrulecollectiongroups", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating FirewallPolicyRuleCollectionGroupsClient: %+v", err) - } - - return &FirewallPolicyRuleCollectionGroupsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/constants.go deleted file mode 100644 index 73fd6902a8b9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/constants.go +++ /dev/null @@ -1,309 +0,0 @@ -package firewallpolicyrulecollectiongroups - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FirewallPolicyFilterRuleCollectionActionType string - -const ( - FirewallPolicyFilterRuleCollectionActionTypeAllow FirewallPolicyFilterRuleCollectionActionType = "Allow" - FirewallPolicyFilterRuleCollectionActionTypeDeny FirewallPolicyFilterRuleCollectionActionType = "Deny" -) - -func PossibleValuesForFirewallPolicyFilterRuleCollectionActionType() []string { - return []string{ - string(FirewallPolicyFilterRuleCollectionActionTypeAllow), - string(FirewallPolicyFilterRuleCollectionActionTypeDeny), - } -} - -func (s *FirewallPolicyFilterRuleCollectionActionType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseFirewallPolicyFilterRuleCollectionActionType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseFirewallPolicyFilterRuleCollectionActionType(input string) (*FirewallPolicyFilterRuleCollectionActionType, error) { - vals := map[string]FirewallPolicyFilterRuleCollectionActionType{ - "allow": FirewallPolicyFilterRuleCollectionActionTypeAllow, - "deny": FirewallPolicyFilterRuleCollectionActionTypeDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := FirewallPolicyFilterRuleCollectionActionType(input) - return &out, nil -} - -type FirewallPolicyNatRuleCollectionActionType string - -const ( - FirewallPolicyNatRuleCollectionActionTypeDNAT FirewallPolicyNatRuleCollectionActionType = "DNAT" -) - -func PossibleValuesForFirewallPolicyNatRuleCollectionActionType() []string { - return []string{ - string(FirewallPolicyNatRuleCollectionActionTypeDNAT), - } -} - -func (s *FirewallPolicyNatRuleCollectionActionType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseFirewallPolicyNatRuleCollectionActionType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseFirewallPolicyNatRuleCollectionActionType(input string) (*FirewallPolicyNatRuleCollectionActionType, error) { - vals := map[string]FirewallPolicyNatRuleCollectionActionType{ - "dnat": FirewallPolicyNatRuleCollectionActionTypeDNAT, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := FirewallPolicyNatRuleCollectionActionType(input) - return &out, nil -} - -type FirewallPolicyRuleApplicationProtocolType string - -const ( - FirewallPolicyRuleApplicationProtocolTypeHTTP FirewallPolicyRuleApplicationProtocolType = "Http" - FirewallPolicyRuleApplicationProtocolTypeHTTPS FirewallPolicyRuleApplicationProtocolType = "Https" -) - -func PossibleValuesForFirewallPolicyRuleApplicationProtocolType() []string { - return []string{ - string(FirewallPolicyRuleApplicationProtocolTypeHTTP), - string(FirewallPolicyRuleApplicationProtocolTypeHTTPS), - } -} - -func (s *FirewallPolicyRuleApplicationProtocolType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseFirewallPolicyRuleApplicationProtocolType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseFirewallPolicyRuleApplicationProtocolType(input string) (*FirewallPolicyRuleApplicationProtocolType, error) { - vals := map[string]FirewallPolicyRuleApplicationProtocolType{ - "http": FirewallPolicyRuleApplicationProtocolTypeHTTP, - "https": FirewallPolicyRuleApplicationProtocolTypeHTTPS, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := FirewallPolicyRuleApplicationProtocolType(input) - return &out, nil -} - -type FirewallPolicyRuleCollectionType string - -const ( - FirewallPolicyRuleCollectionTypeFirewallPolicyFilterRuleCollection FirewallPolicyRuleCollectionType = "FirewallPolicyFilterRuleCollection" - FirewallPolicyRuleCollectionTypeFirewallPolicyNatRuleCollection FirewallPolicyRuleCollectionType = "FirewallPolicyNatRuleCollection" -) - -func PossibleValuesForFirewallPolicyRuleCollectionType() []string { - return []string{ - string(FirewallPolicyRuleCollectionTypeFirewallPolicyFilterRuleCollection), - string(FirewallPolicyRuleCollectionTypeFirewallPolicyNatRuleCollection), - } -} - -func (s *FirewallPolicyRuleCollectionType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseFirewallPolicyRuleCollectionType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseFirewallPolicyRuleCollectionType(input string) (*FirewallPolicyRuleCollectionType, error) { - vals := map[string]FirewallPolicyRuleCollectionType{ - "firewallpolicyfilterrulecollection": FirewallPolicyRuleCollectionTypeFirewallPolicyFilterRuleCollection, - "firewallpolicynatrulecollection": FirewallPolicyRuleCollectionTypeFirewallPolicyNatRuleCollection, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := FirewallPolicyRuleCollectionType(input) - return &out, nil -} - -type FirewallPolicyRuleNetworkProtocol string - -const ( - FirewallPolicyRuleNetworkProtocolAny FirewallPolicyRuleNetworkProtocol = "Any" - FirewallPolicyRuleNetworkProtocolICMP FirewallPolicyRuleNetworkProtocol = "ICMP" - FirewallPolicyRuleNetworkProtocolTCP FirewallPolicyRuleNetworkProtocol = "TCP" - FirewallPolicyRuleNetworkProtocolUDP FirewallPolicyRuleNetworkProtocol = "UDP" -) - -func PossibleValuesForFirewallPolicyRuleNetworkProtocol() []string { - return []string{ - string(FirewallPolicyRuleNetworkProtocolAny), - string(FirewallPolicyRuleNetworkProtocolICMP), - string(FirewallPolicyRuleNetworkProtocolTCP), - string(FirewallPolicyRuleNetworkProtocolUDP), - } -} - -func (s *FirewallPolicyRuleNetworkProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseFirewallPolicyRuleNetworkProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseFirewallPolicyRuleNetworkProtocol(input string) (*FirewallPolicyRuleNetworkProtocol, error) { - vals := map[string]FirewallPolicyRuleNetworkProtocol{ - "any": FirewallPolicyRuleNetworkProtocolAny, - "icmp": FirewallPolicyRuleNetworkProtocolICMP, - "tcp": FirewallPolicyRuleNetworkProtocolTCP, - "udp": FirewallPolicyRuleNetworkProtocolUDP, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := FirewallPolicyRuleNetworkProtocol(input) - return &out, nil -} - -type FirewallPolicyRuleType string - -const ( - FirewallPolicyRuleTypeApplicationRule FirewallPolicyRuleType = "ApplicationRule" - FirewallPolicyRuleTypeNatRule FirewallPolicyRuleType = "NatRule" - FirewallPolicyRuleTypeNetworkRule FirewallPolicyRuleType = "NetworkRule" -) - -func PossibleValuesForFirewallPolicyRuleType() []string { - return []string{ - string(FirewallPolicyRuleTypeApplicationRule), - string(FirewallPolicyRuleTypeNatRule), - string(FirewallPolicyRuleTypeNetworkRule), - } -} - -func (s *FirewallPolicyRuleType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseFirewallPolicyRuleType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseFirewallPolicyRuleType(input string) (*FirewallPolicyRuleType, error) { - vals := map[string]FirewallPolicyRuleType{ - "applicationrule": FirewallPolicyRuleTypeApplicationRule, - "natrule": FirewallPolicyRuleTypeNatRule, - "networkrule": FirewallPolicyRuleTypeNetworkRule, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := FirewallPolicyRuleType(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_firewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_firewallpolicy.go deleted file mode 100644 index fbd53108c846..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_firewallpolicy.go +++ /dev/null @@ -1,130 +0,0 @@ -package firewallpolicyrulecollectiongroups - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&FirewallPolicyId{}) -} - -var _ resourceids.ResourceId = &FirewallPolicyId{} - -// FirewallPolicyId is a struct representing the Resource ID for a Firewall Policy -type FirewallPolicyId struct { - SubscriptionId string - ResourceGroupName string - FirewallPolicyName string -} - -// NewFirewallPolicyID returns a new FirewallPolicyId struct -func NewFirewallPolicyID(subscriptionId string, resourceGroupName string, firewallPolicyName string) FirewallPolicyId { - return FirewallPolicyId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - FirewallPolicyName: firewallPolicyName, - } -} - -// ParseFirewallPolicyID parses 'input' into a FirewallPolicyId -func ParseFirewallPolicyID(input string) (*FirewallPolicyId, error) { - parser := resourceids.NewParserFromResourceIdType(&FirewallPolicyId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := FirewallPolicyId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseFirewallPolicyIDInsensitively parses 'input' case-insensitively into a FirewallPolicyId -// note: this method should only be used for API response data and not user input -func ParseFirewallPolicyIDInsensitively(input string) (*FirewallPolicyId, error) { - parser := resourceids.NewParserFromResourceIdType(&FirewallPolicyId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := FirewallPolicyId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *FirewallPolicyId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.FirewallPolicyName, ok = input.Parsed["firewallPolicyName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "firewallPolicyName", input) - } - - return nil -} - -// ValidateFirewallPolicyID checks that 'input' can be parsed as a Firewall Policy ID -func ValidateFirewallPolicyID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseFirewallPolicyID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Firewall Policy ID -func (id FirewallPolicyId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/firewallPolicies/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FirewallPolicyName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Firewall Policy ID -func (id FirewallPolicyId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticFirewallPolicies", "firewallPolicies", "firewallPolicies"), - resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyName"), - } -} - -// String returns a human-readable description of this Firewall Policy ID -func (id FirewallPolicyId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Firewall Policy Name: %q", id.FirewallPolicyName), - } - return fmt.Sprintf("Firewall Policy (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_rulecollectiongroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_rulecollectiongroup.go deleted file mode 100644 index 6828a1a73813..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_rulecollectiongroup.go +++ /dev/null @@ -1,139 +0,0 @@ -package firewallpolicyrulecollectiongroups - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&RuleCollectionGroupId{}) -} - -var _ resourceids.ResourceId = &RuleCollectionGroupId{} - -// RuleCollectionGroupId is a struct representing the Resource ID for a Rule Collection Group -type RuleCollectionGroupId struct { - SubscriptionId string - ResourceGroupName string - FirewallPolicyName string - RuleCollectionGroupName string -} - -// NewRuleCollectionGroupID returns a new RuleCollectionGroupId struct -func NewRuleCollectionGroupID(subscriptionId string, resourceGroupName string, firewallPolicyName string, ruleCollectionGroupName string) RuleCollectionGroupId { - return RuleCollectionGroupId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - FirewallPolicyName: firewallPolicyName, - RuleCollectionGroupName: ruleCollectionGroupName, - } -} - -// ParseRuleCollectionGroupID parses 'input' into a RuleCollectionGroupId -func ParseRuleCollectionGroupID(input string) (*RuleCollectionGroupId, error) { - parser := resourceids.NewParserFromResourceIdType(&RuleCollectionGroupId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RuleCollectionGroupId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseRuleCollectionGroupIDInsensitively parses 'input' case-insensitively into a RuleCollectionGroupId -// note: this method should only be used for API response data and not user input -func ParseRuleCollectionGroupIDInsensitively(input string) (*RuleCollectionGroupId, error) { - parser := resourceids.NewParserFromResourceIdType(&RuleCollectionGroupId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RuleCollectionGroupId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *RuleCollectionGroupId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.FirewallPolicyName, ok = input.Parsed["firewallPolicyName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "firewallPolicyName", input) - } - - if id.RuleCollectionGroupName, ok = input.Parsed["ruleCollectionGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionGroupName", input) - } - - return nil -} - -// ValidateRuleCollectionGroupID checks that 'input' can be parsed as a Rule Collection Group ID -func ValidateRuleCollectionGroupID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseRuleCollectionGroupID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Rule Collection Group ID -func (id RuleCollectionGroupId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/firewallPolicies/%s/ruleCollectionGroups/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FirewallPolicyName, id.RuleCollectionGroupName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Rule Collection Group ID -func (id RuleCollectionGroupId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticFirewallPolicies", "firewallPolicies", "firewallPolicies"), - resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyName"), - resourceids.StaticSegment("staticRuleCollectionGroups", "ruleCollectionGroups", "ruleCollectionGroups"), - resourceids.UserSpecifiedSegment("ruleCollectionGroupName", "ruleCollectionGroupName"), - } -} - -// String returns a human-readable description of this Rule Collection Group ID -func (id RuleCollectionGroupId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Firewall Policy Name: %q", id.FirewallPolicyName), - fmt.Sprintf("Rule Collection Group Name: %q", id.RuleCollectionGroupName), - } - return fmt.Sprintf("Rule Collection Group (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_createorupdate.go deleted file mode 100644 index b067734262ca..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package firewallpolicyrulecollectiongroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *FirewallPolicyRuleCollectionGroup -} - -// CreateOrUpdate ... -func (c FirewallPolicyRuleCollectionGroupsClient) CreateOrUpdate(ctx context.Context, id RuleCollectionGroupId, input FirewallPolicyRuleCollectionGroup) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c FirewallPolicyRuleCollectionGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id RuleCollectionGroupId, input FirewallPolicyRuleCollectionGroup) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_delete.go deleted file mode 100644 index 159bb061b841..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package firewallpolicyrulecollectiongroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c FirewallPolicyRuleCollectionGroupsClient) Delete(ctx context.Context, id RuleCollectionGroupId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c FirewallPolicyRuleCollectionGroupsClient) DeleteThenPoll(ctx context.Context, id RuleCollectionGroupId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_get.go deleted file mode 100644 index 2f494c219705..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package firewallpolicyrulecollectiongroups - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *FirewallPolicyRuleCollectionGroup -} - -// Get ... -func (c FirewallPolicyRuleCollectionGroupsClient) Get(ctx context.Context, id RuleCollectionGroupId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model FirewallPolicyRuleCollectionGroup - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_list.go deleted file mode 100644 index 09dd83c8896c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_list.go +++ /dev/null @@ -1,105 +0,0 @@ -package firewallpolicyrulecollectiongroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]FirewallPolicyRuleCollectionGroup -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []FirewallPolicyRuleCollectionGroup -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c FirewallPolicyRuleCollectionGroupsClient) List(ctx context.Context, id FirewallPolicyId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/ruleCollectionGroups", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]FirewallPolicyRuleCollectionGroup `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c FirewallPolicyRuleCollectionGroupsClient) ListComplete(ctx context.Context, id FirewallPolicyId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, FirewallPolicyRuleCollectionGroupOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c FirewallPolicyRuleCollectionGroupsClient) ListCompleteMatchingPredicate(ctx context.Context, id FirewallPolicyId, predicate FirewallPolicyRuleCollectionGroupOperationPredicate) (result ListCompleteResult, err error) { - items := make([]FirewallPolicyRuleCollectionGroup, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_applicationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_applicationrule.go deleted file mode 100644 index 1684b7ab31bd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_applicationrule.go +++ /dev/null @@ -1,63 +0,0 @@ -package firewallpolicyrulecollectiongroups - -import ( - "encoding/json" - "fmt" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -var _ FirewallPolicyRule = ApplicationRule{} - -type ApplicationRule struct { - DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` - FqdnTags *[]string `json:"fqdnTags,omitempty"` - HTTPHeadersToInsert *[]FirewallPolicyHTTPHeaderToInsert `json:"httpHeadersToInsert,omitempty"` - Protocols *[]FirewallPolicyRuleApplicationProtocol `json:"protocols,omitempty"` - SourceAddresses *[]string `json:"sourceAddresses,omitempty"` - SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` - TargetFqdns *[]string `json:"targetFqdns,omitempty"` - TargetURLs *[]string `json:"targetUrls,omitempty"` - TerminateTLS *bool `json:"terminateTLS,omitempty"` - WebCategories *[]string `json:"webCategories,omitempty"` - - // Fields inherited from FirewallPolicyRule - - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - RuleType FirewallPolicyRuleType `json:"ruleType"` -} - -func (s ApplicationRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { - return BaseFirewallPolicyRuleImpl{ - Description: s.Description, - Name: s.Name, - RuleType: s.RuleType, - } -} - -var _ json.Marshaler = ApplicationRule{} - -func (s ApplicationRule) MarshalJSON() ([]byte, error) { - type wrapper ApplicationRule - wrapped := wrapper(s) - encoded, err := json.Marshal(wrapped) - if err != nil { - return nil, fmt.Errorf("marshaling ApplicationRule: %+v", err) - } - - var decoded map[string]interface{} - if err = json.Unmarshal(encoded, &decoded); err != nil { - return nil, fmt.Errorf("unmarshaling ApplicationRule: %+v", err) - } - - decoded["ruleType"] = "ApplicationRule" - - encoded, err = json.Marshal(decoded) - if err != nil { - return nil, fmt.Errorf("re-marshaling ApplicationRule: %+v", err) - } - - return encoded, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollection.go deleted file mode 100644 index 142e33508f8a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollection.go +++ /dev/null @@ -1,98 +0,0 @@ -package firewallpolicyrulecollectiongroups - -import ( - "encoding/json" - "fmt" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -var _ FirewallPolicyRuleCollection = FirewallPolicyFilterRuleCollection{} - -type FirewallPolicyFilterRuleCollection struct { - Action *FirewallPolicyFilterRuleCollectionAction `json:"action,omitempty"` - Rules *[]FirewallPolicyRule `json:"rules,omitempty"` - - // Fields inherited from FirewallPolicyRuleCollection - - Name *string `json:"name,omitempty"` - Priority *int64 `json:"priority,omitempty"` - RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` -} - -func (s FirewallPolicyFilterRuleCollection) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { - return BaseFirewallPolicyRuleCollectionImpl{ - Name: s.Name, - Priority: s.Priority, - RuleCollectionType: s.RuleCollectionType, - } -} - -var _ json.Marshaler = FirewallPolicyFilterRuleCollection{} - -func (s FirewallPolicyFilterRuleCollection) MarshalJSON() ([]byte, error) { - type wrapper FirewallPolicyFilterRuleCollection - wrapped := wrapper(s) - encoded, err := json.Marshal(wrapped) - if err != nil { - return nil, fmt.Errorf("marshaling FirewallPolicyFilterRuleCollection: %+v", err) - } - - var decoded map[string]interface{} - if err = json.Unmarshal(encoded, &decoded); err != nil { - return nil, fmt.Errorf("unmarshaling FirewallPolicyFilterRuleCollection: %+v", err) - } - - decoded["ruleCollectionType"] = "FirewallPolicyFilterRuleCollection" - - encoded, err = json.Marshal(decoded) - if err != nil { - return nil, fmt.Errorf("re-marshaling FirewallPolicyFilterRuleCollection: %+v", err) - } - - return encoded, nil -} - -var _ json.Unmarshaler = &FirewallPolicyFilterRuleCollection{} - -func (s *FirewallPolicyFilterRuleCollection) UnmarshalJSON(bytes []byte) error { - var decoded struct { - Action *FirewallPolicyFilterRuleCollectionAction `json:"action,omitempty"` - Name *string `json:"name,omitempty"` - Priority *int64 `json:"priority,omitempty"` - RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` - } - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - - s.Action = decoded.Action - s.Name = decoded.Name - s.Priority = decoded.Priority - s.RuleCollectionType = decoded.RuleCollectionType - - var temp map[string]json.RawMessage - if err := json.Unmarshal(bytes, &temp); err != nil { - return fmt.Errorf("unmarshaling FirewallPolicyFilterRuleCollection into map[string]json.RawMessage: %+v", err) - } - - if v, ok := temp["rules"]; ok { - var listTemp []json.RawMessage - if err := json.Unmarshal(v, &listTemp); err != nil { - return fmt.Errorf("unmarshaling Rules into list []json.RawMessage: %+v", err) - } - - output := make([]FirewallPolicyRule, 0) - for i, val := range listTemp { - impl, err := UnmarshalFirewallPolicyRuleImplementation(val) - if err != nil { - return fmt.Errorf("unmarshaling index %d field 'Rules' for 'FirewallPolicyFilterRuleCollection': %+v", i, err) - } - output = append(output, impl) - } - s.Rules = &output - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollectionaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollectionaction.go deleted file mode 100644 index 42d0cb7d1278..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollectionaction.go +++ /dev/null @@ -1,8 +0,0 @@ -package firewallpolicyrulecollectiongroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FirewallPolicyFilterRuleCollectionAction struct { - Type *FirewallPolicyFilterRuleCollectionActionType `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyhttpheadertoinsert.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyhttpheadertoinsert.go deleted file mode 100644 index f7dd43c60896..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyhttpheadertoinsert.go +++ /dev/null @@ -1,9 +0,0 @@ -package firewallpolicyrulecollectiongroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FirewallPolicyHTTPHeaderToInsert struct { - HeaderName *string `json:"headerName,omitempty"` - HeaderValue *string `json:"headerValue,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollection.go deleted file mode 100644 index 5e7e93c25d3b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollection.go +++ /dev/null @@ -1,98 +0,0 @@ -package firewallpolicyrulecollectiongroups - -import ( - "encoding/json" - "fmt" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -var _ FirewallPolicyRuleCollection = FirewallPolicyNatRuleCollection{} - -type FirewallPolicyNatRuleCollection struct { - Action *FirewallPolicyNatRuleCollectionAction `json:"action,omitempty"` - Rules *[]FirewallPolicyRule `json:"rules,omitempty"` - - // Fields inherited from FirewallPolicyRuleCollection - - Name *string `json:"name,omitempty"` - Priority *int64 `json:"priority,omitempty"` - RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` -} - -func (s FirewallPolicyNatRuleCollection) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { - return BaseFirewallPolicyRuleCollectionImpl{ - Name: s.Name, - Priority: s.Priority, - RuleCollectionType: s.RuleCollectionType, - } -} - -var _ json.Marshaler = FirewallPolicyNatRuleCollection{} - -func (s FirewallPolicyNatRuleCollection) MarshalJSON() ([]byte, error) { - type wrapper FirewallPolicyNatRuleCollection - wrapped := wrapper(s) - encoded, err := json.Marshal(wrapped) - if err != nil { - return nil, fmt.Errorf("marshaling FirewallPolicyNatRuleCollection: %+v", err) - } - - var decoded map[string]interface{} - if err = json.Unmarshal(encoded, &decoded); err != nil { - return nil, fmt.Errorf("unmarshaling FirewallPolicyNatRuleCollection: %+v", err) - } - - decoded["ruleCollectionType"] = "FirewallPolicyNatRuleCollection" - - encoded, err = json.Marshal(decoded) - if err != nil { - return nil, fmt.Errorf("re-marshaling FirewallPolicyNatRuleCollection: %+v", err) - } - - return encoded, nil -} - -var _ json.Unmarshaler = &FirewallPolicyNatRuleCollection{} - -func (s *FirewallPolicyNatRuleCollection) UnmarshalJSON(bytes []byte) error { - var decoded struct { - Action *FirewallPolicyNatRuleCollectionAction `json:"action,omitempty"` - Name *string `json:"name,omitempty"` - Priority *int64 `json:"priority,omitempty"` - RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` - } - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - - s.Action = decoded.Action - s.Name = decoded.Name - s.Priority = decoded.Priority - s.RuleCollectionType = decoded.RuleCollectionType - - var temp map[string]json.RawMessage - if err := json.Unmarshal(bytes, &temp); err != nil { - return fmt.Errorf("unmarshaling FirewallPolicyNatRuleCollection into map[string]json.RawMessage: %+v", err) - } - - if v, ok := temp["rules"]; ok { - var listTemp []json.RawMessage - if err := json.Unmarshal(v, &listTemp); err != nil { - return fmt.Errorf("unmarshaling Rules into list []json.RawMessage: %+v", err) - } - - output := make([]FirewallPolicyRule, 0) - for i, val := range listTemp { - impl, err := UnmarshalFirewallPolicyRuleImplementation(val) - if err != nil { - return fmt.Errorf("unmarshaling index %d field 'Rules' for 'FirewallPolicyNatRuleCollection': %+v", i, err) - } - output = append(output, impl) - } - s.Rules = &output - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollectionaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollectionaction.go deleted file mode 100644 index 0b31f5d8ffa1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollectionaction.go +++ /dev/null @@ -1,8 +0,0 @@ -package firewallpolicyrulecollectiongroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FirewallPolicyNatRuleCollectionAction struct { - Type *FirewallPolicyNatRuleCollectionActionType `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrule.go deleted file mode 100644 index 01e93308b207..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrule.go +++ /dev/null @@ -1,93 +0,0 @@ -package firewallpolicyrulecollectiongroups - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FirewallPolicyRule interface { - FirewallPolicyRule() BaseFirewallPolicyRuleImpl -} - -var _ FirewallPolicyRule = BaseFirewallPolicyRuleImpl{} - -type BaseFirewallPolicyRuleImpl struct { - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - RuleType FirewallPolicyRuleType `json:"ruleType"` -} - -func (s BaseFirewallPolicyRuleImpl) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { - return s -} - -var _ FirewallPolicyRule = RawFirewallPolicyRuleImpl{} - -// RawFirewallPolicyRuleImpl is returned when the Discriminated Value doesn't match any of the defined types -// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) -// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). -type RawFirewallPolicyRuleImpl struct { - firewallPolicyRule BaseFirewallPolicyRuleImpl - Type string - Values map[string]interface{} -} - -func (s RawFirewallPolicyRuleImpl) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { - return s.firewallPolicyRule -} - -func UnmarshalFirewallPolicyRuleImplementation(input []byte) (FirewallPolicyRule, error) { - if input == nil { - return nil, nil - } - - var temp map[string]interface{} - if err := json.Unmarshal(input, &temp); err != nil { - return nil, fmt.Errorf("unmarshaling FirewallPolicyRule into map[string]interface: %+v", err) - } - - var value string - if v, ok := temp["ruleType"]; ok { - value = fmt.Sprintf("%v", v) - } - - if strings.EqualFold(value, "ApplicationRule") { - var out ApplicationRule - if err := json.Unmarshal(input, &out); err != nil { - return nil, fmt.Errorf("unmarshaling into ApplicationRule: %+v", err) - } - return out, nil - } - - if strings.EqualFold(value, "NatRule") { - var out NatRule - if err := json.Unmarshal(input, &out); err != nil { - return nil, fmt.Errorf("unmarshaling into NatRule: %+v", err) - } - return out, nil - } - - if strings.EqualFold(value, "NetworkRule") { - var out NetworkRule - if err := json.Unmarshal(input, &out); err != nil { - return nil, fmt.Errorf("unmarshaling into NetworkRule: %+v", err) - } - return out, nil - } - - var parent BaseFirewallPolicyRuleImpl - if err := json.Unmarshal(input, &parent); err != nil { - return nil, fmt.Errorf("unmarshaling into BaseFirewallPolicyRuleImpl: %+v", err) - } - - return RawFirewallPolicyRuleImpl{ - firewallPolicyRule: parent, - Type: value, - Values: temp, - }, nil - -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyruleapplicationprotocol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyruleapplicationprotocol.go deleted file mode 100644 index cc2db178d08f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyruleapplicationprotocol.go +++ /dev/null @@ -1,9 +0,0 @@ -package firewallpolicyrulecollectiongroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FirewallPolicyRuleApplicationProtocol struct { - Port *int64 `json:"port,omitempty"` - ProtocolType *FirewallPolicyRuleApplicationProtocolType `json:"protocolType,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollection.go deleted file mode 100644 index 8f68d85c04f1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollection.go +++ /dev/null @@ -1,85 +0,0 @@ -package firewallpolicyrulecollectiongroups - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FirewallPolicyRuleCollection interface { - FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl -} - -var _ FirewallPolicyRuleCollection = BaseFirewallPolicyRuleCollectionImpl{} - -type BaseFirewallPolicyRuleCollectionImpl struct { - Name *string `json:"name,omitempty"` - Priority *int64 `json:"priority,omitempty"` - RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` -} - -func (s BaseFirewallPolicyRuleCollectionImpl) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { - return s -} - -var _ FirewallPolicyRuleCollection = RawFirewallPolicyRuleCollectionImpl{} - -// RawFirewallPolicyRuleCollectionImpl is returned when the Discriminated Value doesn't match any of the defined types -// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) -// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). -type RawFirewallPolicyRuleCollectionImpl struct { - firewallPolicyRuleCollection BaseFirewallPolicyRuleCollectionImpl - Type string - Values map[string]interface{} -} - -func (s RawFirewallPolicyRuleCollectionImpl) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { - return s.firewallPolicyRuleCollection -} - -func UnmarshalFirewallPolicyRuleCollectionImplementation(input []byte) (FirewallPolicyRuleCollection, error) { - if input == nil { - return nil, nil - } - - var temp map[string]interface{} - if err := json.Unmarshal(input, &temp); err != nil { - return nil, fmt.Errorf("unmarshaling FirewallPolicyRuleCollection into map[string]interface: %+v", err) - } - - var value string - if v, ok := temp["ruleCollectionType"]; ok { - value = fmt.Sprintf("%v", v) - } - - if strings.EqualFold(value, "FirewallPolicyFilterRuleCollection") { - var out FirewallPolicyFilterRuleCollection - if err := json.Unmarshal(input, &out); err != nil { - return nil, fmt.Errorf("unmarshaling into FirewallPolicyFilterRuleCollection: %+v", err) - } - return out, nil - } - - if strings.EqualFold(value, "FirewallPolicyNatRuleCollection") { - var out FirewallPolicyNatRuleCollection - if err := json.Unmarshal(input, &out); err != nil { - return nil, fmt.Errorf("unmarshaling into FirewallPolicyNatRuleCollection: %+v", err) - } - return out, nil - } - - var parent BaseFirewallPolicyRuleCollectionImpl - if err := json.Unmarshal(input, &parent); err != nil { - return nil, fmt.Errorf("unmarshaling into BaseFirewallPolicyRuleCollectionImpl: %+v", err) - } - - return RawFirewallPolicyRuleCollectionImpl{ - firewallPolicyRuleCollection: parent, - Type: value, - Values: temp, - }, nil - -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroup.go deleted file mode 100644 index 3cd2b9489056..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroup.go +++ /dev/null @@ -1,12 +0,0 @@ -package firewallpolicyrulecollectiongroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FirewallPolicyRuleCollectionGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FirewallPolicyRuleCollectionGroupProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroupproperties.go deleted file mode 100644 index ae95dcb3fd9a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroupproperties.go +++ /dev/null @@ -1,57 +0,0 @@ -package firewallpolicyrulecollectiongroups - -import ( - "encoding/json" - "fmt" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FirewallPolicyRuleCollectionGroupProperties struct { - Priority *int64 `json:"priority,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RuleCollections *[]FirewallPolicyRuleCollection `json:"ruleCollections,omitempty"` - Size *string `json:"size,omitempty"` -} - -var _ json.Unmarshaler = &FirewallPolicyRuleCollectionGroupProperties{} - -func (s *FirewallPolicyRuleCollectionGroupProperties) UnmarshalJSON(bytes []byte) error { - var decoded struct { - Priority *int64 `json:"priority,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Size *string `json:"size,omitempty"` - } - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - - s.Priority = decoded.Priority - s.ProvisioningState = decoded.ProvisioningState - s.Size = decoded.Size - - var temp map[string]json.RawMessage - if err := json.Unmarshal(bytes, &temp); err != nil { - return fmt.Errorf("unmarshaling FirewallPolicyRuleCollectionGroupProperties into map[string]json.RawMessage: %+v", err) - } - - if v, ok := temp["ruleCollections"]; ok { - var listTemp []json.RawMessage - if err := json.Unmarshal(v, &listTemp); err != nil { - return fmt.Errorf("unmarshaling RuleCollections into list []json.RawMessage: %+v", err) - } - - output := make([]FirewallPolicyRuleCollection, 0) - for i, val := range listTemp { - impl, err := UnmarshalFirewallPolicyRuleCollectionImplementation(val) - if err != nil { - return fmt.Errorf("unmarshaling index %d field 'RuleCollections' for 'FirewallPolicyRuleCollectionGroupProperties': %+v", i, err) - } - output = append(output, impl) - } - s.RuleCollections = &output - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_natrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_natrule.go deleted file mode 100644 index 2e80421cd233..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_natrule.go +++ /dev/null @@ -1,61 +0,0 @@ -package firewallpolicyrulecollectiongroups - -import ( - "encoding/json" - "fmt" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -var _ FirewallPolicyRule = NatRule{} - -type NatRule struct { - DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` - DestinationPorts *[]string `json:"destinationPorts,omitempty"` - IPProtocols *[]FirewallPolicyRuleNetworkProtocol `json:"ipProtocols,omitempty"` - SourceAddresses *[]string `json:"sourceAddresses,omitempty"` - SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` - TranslatedAddress *string `json:"translatedAddress,omitempty"` - TranslatedFqdn *string `json:"translatedFqdn,omitempty"` - TranslatedPort *string `json:"translatedPort,omitempty"` - - // Fields inherited from FirewallPolicyRule - - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - RuleType FirewallPolicyRuleType `json:"ruleType"` -} - -func (s NatRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { - return BaseFirewallPolicyRuleImpl{ - Description: s.Description, - Name: s.Name, - RuleType: s.RuleType, - } -} - -var _ json.Marshaler = NatRule{} - -func (s NatRule) MarshalJSON() ([]byte, error) { - type wrapper NatRule - wrapped := wrapper(s) - encoded, err := json.Marshal(wrapped) - if err != nil { - return nil, fmt.Errorf("marshaling NatRule: %+v", err) - } - - var decoded map[string]interface{} - if err = json.Unmarshal(encoded, &decoded); err != nil { - return nil, fmt.Errorf("unmarshaling NatRule: %+v", err) - } - - decoded["ruleType"] = "NatRule" - - encoded, err = json.Marshal(decoded) - if err != nil { - return nil, fmt.Errorf("re-marshaling NatRule: %+v", err) - } - - return encoded, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_networkrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_networkrule.go deleted file mode 100644 index 902314377596..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_networkrule.go +++ /dev/null @@ -1,60 +0,0 @@ -package firewallpolicyrulecollectiongroups - -import ( - "encoding/json" - "fmt" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -var _ FirewallPolicyRule = NetworkRule{} - -type NetworkRule struct { - DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` - DestinationFqdns *[]string `json:"destinationFqdns,omitempty"` - DestinationIPGroups *[]string `json:"destinationIpGroups,omitempty"` - DestinationPorts *[]string `json:"destinationPorts,omitempty"` - IPProtocols *[]FirewallPolicyRuleNetworkProtocol `json:"ipProtocols,omitempty"` - SourceAddresses *[]string `json:"sourceAddresses,omitempty"` - SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` - - // Fields inherited from FirewallPolicyRule - - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - RuleType FirewallPolicyRuleType `json:"ruleType"` -} - -func (s NetworkRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { - return BaseFirewallPolicyRuleImpl{ - Description: s.Description, - Name: s.Name, - RuleType: s.RuleType, - } -} - -var _ json.Marshaler = NetworkRule{} - -func (s NetworkRule) MarshalJSON() ([]byte, error) { - type wrapper NetworkRule - wrapped := wrapper(s) - encoded, err := json.Marshal(wrapped) - if err != nil { - return nil, fmt.Errorf("marshaling NetworkRule: %+v", err) - } - - var decoded map[string]interface{} - if err = json.Unmarshal(encoded, &decoded); err != nil { - return nil, fmt.Errorf("unmarshaling NetworkRule: %+v", err) - } - - decoded["ruleType"] = "NetworkRule" - - encoded, err = json.Marshal(decoded) - if err != nil { - return nil, fmt.Errorf("re-marshaling NetworkRule: %+v", err) - } - - return encoded, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/predicates.go deleted file mode 100644 index 9762acada56f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package firewallpolicyrulecollectiongroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FirewallPolicyRuleCollectionGroupOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p FirewallPolicyRuleCollectionGroupOperationPredicate) Matches(input FirewallPolicyRuleCollectionGroup) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/version.go deleted file mode 100644 index 5a0c081ae4ad..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package firewallpolicyrulecollectiongroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/firewallpolicyrulecollectiongroups/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/README.md deleted file mode 100644 index cbb5c4df3737..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/README.md +++ /dev/null @@ -1,103 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs` Documentation - -The `flowlogs` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs" -``` - - -### Client Initialization - -```go -client := flowlogs.NewFlowLogsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `FlowLogsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") - -payload := flowlogs.FlowLog{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `FlowLogsClient.Delete` - -```go -ctx := context.TODO() -id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `FlowLogsClient.Get` - -```go -ctx := context.TODO() -id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `FlowLogsClient.List` - -```go -ctx := context.TODO() -id := flowlogs.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `FlowLogsClient.UpdateTags` - -```go -ctx := context.TODO() -id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") - -payload := flowlogs.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/client.go deleted file mode 100644 index 6294aac57742..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package flowlogs - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogsClient struct { - Client *resourcemanager.Client -} - -func NewFlowLogsClientWithBaseURI(sdkApi sdkEnv.Api) (*FlowLogsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "flowlogs", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating FlowLogsClient: %+v", err) - } - - return &FlowLogsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/constants.go deleted file mode 100644 index e5e97eea1091..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/constants.go +++ /dev/null @@ -1,95 +0,0 @@ -package flowlogs - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogFormatType string - -const ( - FlowLogFormatTypeJSON FlowLogFormatType = "JSON" -) - -func PossibleValuesForFlowLogFormatType() []string { - return []string{ - string(FlowLogFormatTypeJSON), - } -} - -func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseFlowLogFormatType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { - vals := map[string]FlowLogFormatType{ - "json": FlowLogFormatTypeJSON, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := FlowLogFormatType(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_flowlog.go deleted file mode 100644 index 17a0f248d39b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_flowlog.go +++ /dev/null @@ -1,139 +0,0 @@ -package flowlogs - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&FlowLogId{}) -} - -var _ resourceids.ResourceId = &FlowLogId{} - -// FlowLogId is a struct representing the Resource ID for a Flow Log -type FlowLogId struct { - SubscriptionId string - ResourceGroupName string - NetworkWatcherName string - FlowLogName string -} - -// NewFlowLogID returns a new FlowLogId struct -func NewFlowLogID(subscriptionId string, resourceGroupName string, networkWatcherName string, flowLogName string) FlowLogId { - return FlowLogId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkWatcherName: networkWatcherName, - FlowLogName: flowLogName, - } -} - -// ParseFlowLogID parses 'input' into a FlowLogId -func ParseFlowLogID(input string) (*FlowLogId, error) { - parser := resourceids.NewParserFromResourceIdType(&FlowLogId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := FlowLogId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseFlowLogIDInsensitively parses 'input' case-insensitively into a FlowLogId -// note: this method should only be used for API response data and not user input -func ParseFlowLogIDInsensitively(input string) (*FlowLogId, error) { - parser := resourceids.NewParserFromResourceIdType(&FlowLogId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := FlowLogId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *FlowLogId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkWatcherName, ok = input.Parsed["networkWatcherName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkWatcherName", input) - } - - if id.FlowLogName, ok = input.Parsed["flowLogName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "flowLogName", input) - } - - return nil -} - -// ValidateFlowLogID checks that 'input' can be parsed as a Flow Log ID -func ValidateFlowLogID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseFlowLogID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Flow Log ID -func (id FlowLogId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkWatchers/%s/flowLogs/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkWatcherName, id.FlowLogName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Flow Log ID -func (id FlowLogId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), - resourceids.StaticSegment("staticFlowLogs", "flowLogs", "flowLogs"), - resourceids.UserSpecifiedSegment("flowLogName", "flowLogName"), - } -} - -// String returns a human-readable description of this Flow Log ID -func (id FlowLogId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Watcher Name: %q", id.NetworkWatcherName), - fmt.Sprintf("Flow Log Name: %q", id.FlowLogName), - } - return fmt.Sprintf("Flow Log (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_networkwatcher.go deleted file mode 100644 index 2862a3cc6b0c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_networkwatcher.go +++ /dev/null @@ -1,130 +0,0 @@ -package flowlogs - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&NetworkWatcherId{}) -} - -var _ resourceids.ResourceId = &NetworkWatcherId{} - -// NetworkWatcherId is a struct representing the Resource ID for a Network Watcher -type NetworkWatcherId struct { - SubscriptionId string - ResourceGroupName string - NetworkWatcherName string -} - -// NewNetworkWatcherID returns a new NetworkWatcherId struct -func NewNetworkWatcherID(subscriptionId string, resourceGroupName string, networkWatcherName string) NetworkWatcherId { - return NetworkWatcherId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkWatcherName: networkWatcherName, - } -} - -// ParseNetworkWatcherID parses 'input' into a NetworkWatcherId -func ParseNetworkWatcherID(input string) (*NetworkWatcherId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkWatcherId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkWatcherId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseNetworkWatcherIDInsensitively parses 'input' case-insensitively into a NetworkWatcherId -// note: this method should only be used for API response data and not user input -func ParseNetworkWatcherIDInsensitively(input string) (*NetworkWatcherId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkWatcherId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkWatcherId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *NetworkWatcherId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkWatcherName, ok = input.Parsed["networkWatcherName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkWatcherName", input) - } - - return nil -} - -// ValidateNetworkWatcherID checks that 'input' can be parsed as a Network Watcher ID -func ValidateNetworkWatcherID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseNetworkWatcherID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Network Watcher ID -func (id NetworkWatcherId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkWatchers/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkWatcherName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Network Watcher ID -func (id NetworkWatcherId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), - } -} - -// String returns a human-readable description of this Network Watcher ID -func (id NetworkWatcherId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Watcher Name: %q", id.NetworkWatcherName), - } - return fmt.Sprintf("Network Watcher (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_createorupdate.go deleted file mode 100644 index 9469b674d325..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package flowlogs - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *FlowLog -} - -// CreateOrUpdate ... -func (c FlowLogsClient) CreateOrUpdate(ctx context.Context, id FlowLogId, input FlowLog) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c FlowLogsClient) CreateOrUpdateThenPoll(ctx context.Context, id FlowLogId, input FlowLog) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_delete.go deleted file mode 100644 index 1ff7776fa733..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_delete.go +++ /dev/null @@ -1,70 +0,0 @@ -package flowlogs - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c FlowLogsClient) Delete(ctx context.Context, id FlowLogId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c FlowLogsClient) DeleteThenPoll(ctx context.Context, id FlowLogId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_get.go deleted file mode 100644 index 8677d6603547..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package flowlogs - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *FlowLog -} - -// Get ... -func (c FlowLogsClient) Get(ctx context.Context, id FlowLogId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model FlowLog - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_list.go deleted file mode 100644 index 6652ea30f55b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_list.go +++ /dev/null @@ -1,105 +0,0 @@ -package flowlogs - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]FlowLog -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []FlowLog -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c FlowLogsClient) List(ctx context.Context, id NetworkWatcherId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/flowLogs", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]FlowLog `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c FlowLogsClient) ListComplete(ctx context.Context, id NetworkWatcherId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, FlowLogOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c FlowLogsClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkWatcherId, predicate FlowLogOperationPredicate) (result ListCompleteResult, err error) { - items := make([]FlowLog, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_updatetags.go deleted file mode 100644 index 1f7aec168713..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_updatetags.go +++ /dev/null @@ -1,57 +0,0 @@ -package flowlogs - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateTagsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *FlowLog -} - -// UpdateTags ... -func (c FlowLogsClient) UpdateTags(ctx context.Context, id FlowLogId, input TagsObject) (result UpdateTagsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model FlowLog - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlog.go deleted file mode 100644 index 6cb0c1a33b59..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package flowlogs - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlogformatparameters.go deleted file mode 100644 index 16ca58e95a3f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlogformatparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package flowlogs - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogFormatParameters struct { - Type *FlowLogFormatType `json:"type,omitempty"` - Version *int64 `json:"version,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlogpropertiesformat.go deleted file mode 100644 index e08f8fc61241..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package flowlogs - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_retentionpolicyparameters.go deleted file mode 100644 index 37f07668beab..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_retentionpolicyparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package flowlogs - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RetentionPolicyParameters struct { - Days *int64 `json:"days,omitempty"` - Enabled *bool `json:"enabled,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_tagsobject.go deleted file mode 100644 index c5cd354ef299..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package flowlogs - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_trafficanalyticsconfigurationproperties.go deleted file mode 100644 index 5b935e5f27b0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_trafficanalyticsconfigurationproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package flowlogs - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TrafficAnalyticsConfigurationProperties struct { - Enabled *bool `json:"enabled,omitempty"` - TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` - WorkspaceId *string `json:"workspaceId,omitempty"` - WorkspaceRegion *string `json:"workspaceRegion,omitempty"` - WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_trafficanalyticsproperties.go deleted file mode 100644 index d6d9faede4b7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_trafficanalyticsproperties.go +++ /dev/null @@ -1,8 +0,0 @@ -package flowlogs - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TrafficAnalyticsProperties struct { - NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/predicates.go deleted file mode 100644 index 746df2611ccf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/predicates.go +++ /dev/null @@ -1,37 +0,0 @@ -package flowlogs - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p FlowLogOperationPredicate) Matches(input FlowLog) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/version.go deleted file mode 100644 index 18b431977a55..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package flowlogs - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/flowlogs/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/README.md deleted file mode 100644 index ed40ba5f194e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/README.md +++ /dev/null @@ -1,121 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups` Documentation - -The `ipgroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups" -``` - - -### Client Initialization - -```go -client := ipgroups.NewIPGroupsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `IPGroupsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupName") - -payload := ipgroups.IPGroup{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `IPGroupsClient.Delete` - -```go -ctx := context.TODO() -id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `IPGroupsClient.Get` - -```go -ctx := context.TODO() -id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupName") - -read, err := client.Get(ctx, id, ipgroups.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `IPGroupsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `IPGroupsClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `IPGroupsClient.UpdateGroups` - -```go -ctx := context.TODO() -id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupName") - -payload := ipgroups.TagsObject{ - // ... -} - - -read, err := client.UpdateGroups(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/client.go deleted file mode 100644 index 2e7f5ae81168..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package ipgroups - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPGroupsClient struct { - Client *resourcemanager.Client -} - -func NewIPGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*IPGroupsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "ipgroups", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating IPGroupsClient: %+v", err) - } - - return &IPGroupsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/constants.go deleted file mode 100644 index a50092f263a2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/constants.go +++ /dev/null @@ -1,57 +0,0 @@ -package ipgroups - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/id_ipgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/id_ipgroup.go deleted file mode 100644 index 441c7301b565..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/id_ipgroup.go +++ /dev/null @@ -1,130 +0,0 @@ -package ipgroups - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&IPGroupId{}) -} - -var _ resourceids.ResourceId = &IPGroupId{} - -// IPGroupId is a struct representing the Resource ID for a I P Group -type IPGroupId struct { - SubscriptionId string - ResourceGroupName string - IpGroupName string -} - -// NewIPGroupID returns a new IPGroupId struct -func NewIPGroupID(subscriptionId string, resourceGroupName string, ipGroupName string) IPGroupId { - return IPGroupId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - IpGroupName: ipGroupName, - } -} - -// ParseIPGroupID parses 'input' into a IPGroupId -func ParseIPGroupID(input string) (*IPGroupId, error) { - parser := resourceids.NewParserFromResourceIdType(&IPGroupId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := IPGroupId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseIPGroupIDInsensitively parses 'input' case-insensitively into a IPGroupId -// note: this method should only be used for API response data and not user input -func ParseIPGroupIDInsensitively(input string) (*IPGroupId, error) { - parser := resourceids.NewParserFromResourceIdType(&IPGroupId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := IPGroupId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *IPGroupId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.IpGroupName, ok = input.Parsed["ipGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "ipGroupName", input) - } - - return nil -} - -// ValidateIPGroupID checks that 'input' can be parsed as a I P Group ID -func ValidateIPGroupID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseIPGroupID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted I P Group ID -func (id IPGroupId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/ipGroups/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.IpGroupName) -} - -// Segments returns a slice of Resource ID Segments which comprise this I P Group ID -func (id IPGroupId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticIpGroups", "ipGroups", "ipGroups"), - resourceids.UserSpecifiedSegment("ipGroupName", "ipGroupName"), - } -} - -// String returns a human-readable description of this I P Group ID -func (id IPGroupId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Ip Group Name: %q", id.IpGroupName), - } - return fmt.Sprintf("I P Group (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_createorupdate.go deleted file mode 100644 index fe09b1c7bf6a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package ipgroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *IPGroup -} - -// CreateOrUpdate ... -func (c IPGroupsClient) CreateOrUpdate(ctx context.Context, id IPGroupId, input IPGroup) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c IPGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id IPGroupId, input IPGroup) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_delete.go deleted file mode 100644 index 1e1797dd8d33..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package ipgroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c IPGroupsClient) Delete(ctx context.Context, id IPGroupId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c IPGroupsClient) DeleteThenPoll(ctx context.Context, id IPGroupId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_get.go deleted file mode 100644 index 8e06e373c584..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_get.go +++ /dev/null @@ -1,83 +0,0 @@ -package ipgroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *IPGroup -} - -type GetOperationOptions struct { - Expand *string -} - -func DefaultGetOperationOptions() GetOperationOptions { - return GetOperationOptions{} -} - -func (o GetOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o GetOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o GetOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Expand != nil { - out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) - } - return &out -} - -// Get ... -func (c IPGroupsClient) Get(ctx context.Context, id IPGroupId, options GetOperationOptions) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model IPGroup - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_list.go deleted file mode 100644 index 76ec56d59900..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package ipgroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]IPGroup -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []IPGroup -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c IPGroupsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipGroups", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]IPGroup `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c IPGroupsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, IPGroupOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c IPGroupsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate IPGroupOperationPredicate) (result ListCompleteResult, err error) { - items := make([]IPGroup, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_listbyresourcegroup.go deleted file mode 100644 index 16ea08e273bf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_listbyresourcegroup.go +++ /dev/null @@ -1,106 +0,0 @@ -package ipgroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListByResourceGroupOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]IPGroup -} - -type ListByResourceGroupCompleteResult struct { - LatestHttpResponse *http.Response - Items []IPGroup -} - -type ListByResourceGroupCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListByResourceGroup ... -func (c IPGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListByResourceGroupCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipGroups", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]IPGroup `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListByResourceGroupComplete retrieves all the results into a single object -func (c IPGroupsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { - return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, IPGroupOperationPredicate{}) -} - -// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c IPGroupsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate IPGroupOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { - items := make([]IPGroup, 0) - - resp, err := c.ListByResourceGroup(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListByResourceGroupCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_updategroups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_updategroups.go deleted file mode 100644 index bce76083d7a7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_updategroups.go +++ /dev/null @@ -1,57 +0,0 @@ -package ipgroups - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateGroupsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *IPGroup -} - -// UpdateGroups ... -func (c IPGroupsClient) UpdateGroups(ctx context.Context, id IPGroupId, input TagsObject) (result UpdateGroupsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model IPGroup - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_ipgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_ipgroup.go deleted file mode 100644 index 7f586ce2b068..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_ipgroup.go +++ /dev/null @@ -1,14 +0,0 @@ -package ipgroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *IPGroupPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_ipgrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_ipgrouppropertiesformat.go deleted file mode 100644 index 866075a10384..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_ipgrouppropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package ipgroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPGroupPropertiesFormat struct { - FirewallPolicies *[]SubResource `json:"firewallPolicies,omitempty"` - Firewalls *[]SubResource `json:"firewalls,omitempty"` - IPAddresses *[]string `json:"ipAddresses,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_subresource.go deleted file mode 100644 index 5e6c0552f0cf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package ipgroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_tagsobject.go deleted file mode 100644 index df59e42aff45..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package ipgroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/predicates.go deleted file mode 100644 index a64e98c22900..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/predicates.go +++ /dev/null @@ -1,37 +0,0 @@ -package ipgroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPGroupOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p IPGroupOperationPredicate) Matches(input IPGroup) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/version.go deleted file mode 100644 index c2080311cc25..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package ipgroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/ipgroups/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/README.md deleted file mode 100644 index e7dc9a7b6006..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/README.md +++ /dev/null @@ -1,121 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways` Documentation - -The `natgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" -``` - - -### Client Initialization - -```go -client := natgateways.NewNatGatewaysClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NatGatewaysClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") - -payload := natgateways.NatGateway{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NatGatewaysClient.Delete` - -```go -ctx := context.TODO() -id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `NatGatewaysClient.Get` - -```go -ctx := context.TODO() -id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") - -read, err := client.Get(ctx, id, natgateways.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NatGatewaysClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NatGatewaysClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NatGatewaysClient.UpdateTags` - -```go -ctx := context.TODO() -id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") - -payload := natgateways.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/client.go deleted file mode 100644 index 13334ca10a15..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package natgateways - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGatewaysClient struct { - Client *resourcemanager.Client -} - -func NewNatGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*NatGatewaysClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "natgateways", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating NatGatewaysClient: %+v", err) - } - - return &NatGatewaysClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/constants.go deleted file mode 100644 index db752936aa38..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/constants.go +++ /dev/null @@ -1,95 +0,0 @@ -package natgateways - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGatewaySkuName string - -const ( - NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" -) - -func PossibleValuesForNatGatewaySkuName() []string { - return []string{ - string(NatGatewaySkuNameStandard), - } -} - -func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNatGatewaySkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { - vals := map[string]NatGatewaySkuName{ - "standard": NatGatewaySkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NatGatewaySkuName(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/id_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/id_natgateway.go deleted file mode 100644 index f830790bd5d8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/id_natgateway.go +++ /dev/null @@ -1,130 +0,0 @@ -package natgateways - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&NatGatewayId{}) -} - -var _ resourceids.ResourceId = &NatGatewayId{} - -// NatGatewayId is a struct representing the Resource ID for a Nat Gateway -type NatGatewayId struct { - SubscriptionId string - ResourceGroupName string - NatGatewayName string -} - -// NewNatGatewayID returns a new NatGatewayId struct -func NewNatGatewayID(subscriptionId string, resourceGroupName string, natGatewayName string) NatGatewayId { - return NatGatewayId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NatGatewayName: natGatewayName, - } -} - -// ParseNatGatewayID parses 'input' into a NatGatewayId -func ParseNatGatewayID(input string) (*NatGatewayId, error) { - parser := resourceids.NewParserFromResourceIdType(&NatGatewayId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NatGatewayId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseNatGatewayIDInsensitively parses 'input' case-insensitively into a NatGatewayId -// note: this method should only be used for API response data and not user input -func ParseNatGatewayIDInsensitively(input string) (*NatGatewayId, error) { - parser := resourceids.NewParserFromResourceIdType(&NatGatewayId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NatGatewayId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *NatGatewayId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NatGatewayName, ok = input.Parsed["natGatewayName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "natGatewayName", input) - } - - return nil -} - -// ValidateNatGatewayID checks that 'input' can be parsed as a Nat Gateway ID -func ValidateNatGatewayID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseNatGatewayID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Nat Gateway ID -func (id NatGatewayId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/natGateways/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NatGatewayName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Nat Gateway ID -func (id NatGatewayId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNatGateways", "natGateways", "natGateways"), - resourceids.UserSpecifiedSegment("natGatewayName", "natGatewayName"), - } -} - -// String returns a human-readable description of this Nat Gateway ID -func (id NatGatewayId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Nat Gateway Name: %q", id.NatGatewayName), - } - return fmt.Sprintf("Nat Gateway (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_createorupdate.go deleted file mode 100644 index 34a53aff5ac4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_createorupdate.go +++ /dev/null @@ -1,76 +0,0 @@ -package natgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *NatGateway -} - -// CreateOrUpdate ... -func (c NatGatewaysClient) CreateOrUpdate(ctx context.Context, id NatGatewayId, input NatGateway) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c NatGatewaysClient) CreateOrUpdateThenPoll(ctx context.Context, id NatGatewayId, input NatGateway) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_delete.go deleted file mode 100644 index d03d142add6e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package natgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c NatGatewaysClient) Delete(ctx context.Context, id NatGatewayId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c NatGatewaysClient) DeleteThenPoll(ctx context.Context, id NatGatewayId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_get.go deleted file mode 100644 index 3997df407c6c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_get.go +++ /dev/null @@ -1,83 +0,0 @@ -package natgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NatGateway -} - -type GetOperationOptions struct { - Expand *string -} - -func DefaultGetOperationOptions() GetOperationOptions { - return GetOperationOptions{} -} - -func (o GetOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o GetOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o GetOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Expand != nil { - out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) - } - return &out -} - -// Get ... -func (c NatGatewaysClient) Get(ctx context.Context, id NatGatewayId, options GetOperationOptions) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NatGateway - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_list.go deleted file mode 100644 index cf6c19572e21..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package natgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NatGateway -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []NatGateway -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c NatGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/natGateways", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NatGateway `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c NatGatewaysClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, NatGatewayOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NatGatewaysClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate NatGatewayOperationPredicate) (result ListCompleteResult, err error) { - items := make([]NatGateway, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_listall.go deleted file mode 100644 index c417f6a9c198..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_listall.go +++ /dev/null @@ -1,106 +0,0 @@ -package natgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListAllOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NatGateway -} - -type ListAllCompleteResult struct { - LatestHttpResponse *http.Response - Items []NatGateway -} - -type ListAllCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListAllCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListAll ... -func (c NatGatewaysClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListAllCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/natGateways", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NatGateway `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListAllComplete retrieves all the results into a single object -func (c NatGatewaysClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { - return c.ListAllCompleteMatchingPredicate(ctx, id, NatGatewayOperationPredicate{}) -} - -// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NatGatewaysClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate NatGatewayOperationPredicate) (result ListAllCompleteResult, err error) { - items := make([]NatGateway, 0) - - resp, err := c.ListAll(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListAllCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_updatetags.go deleted file mode 100644 index 2480442d1cdc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_updatetags.go +++ /dev/null @@ -1,57 +0,0 @@ -package natgateways - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateTagsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NatGateway -} - -// UpdateTags ... -func (c NatGatewaysClient) UpdateTags(ctx context.Context, id NatGatewayId, input TagsObject) (result UpdateTagsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NatGateway - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgateway.go deleted file mode 100644 index 0aabf1ead87a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgateway.go +++ /dev/null @@ -1,20 +0,0 @@ -package natgateways - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGateway struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` - Sku *NatGatewaySku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgatewaypropertiesformat.go deleted file mode 100644 index 7bfde80e4d90..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgatewaypropertiesformat.go +++ /dev/null @@ -1,13 +0,0 @@ -package natgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGatewayPropertiesFormat struct { - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` - PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - Subnets *[]SubResource `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgatewaysku.go deleted file mode 100644 index 962d747cc176..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgatewaysku.go +++ /dev/null @@ -1,8 +0,0 @@ -package natgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGatewaySku struct { - Name *NatGatewaySkuName `json:"name,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_subresource.go deleted file mode 100644 index ea00694667d7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package natgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_tagsobject.go deleted file mode 100644 index c5e055c3a58e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package natgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/predicates.go deleted file mode 100644 index c0e09cf2f077..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/predicates.go +++ /dev/null @@ -1,37 +0,0 @@ -package natgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGatewayOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p NatGatewayOperationPredicate) Matches(input NatGateway) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/version.go deleted file mode 100644 index e81482d13fd1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package natgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/natgateways/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/README.md deleted file mode 100644 index 2e21ff9935d9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/README.md +++ /dev/null @@ -1,86 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups` Documentation - -The `networkgroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups" -``` - - -### Client Initialization - -```go -client := networkgroups.NewNetworkGroupsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkGroupsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") - -payload := networkgroups.NetworkGroup{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload, networkgroups.DefaultCreateOrUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkGroupsClient.Delete` - -```go -ctx := context.TODO() -id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") - -if err := client.DeleteThenPoll(ctx, id, networkgroups.DefaultDeleteOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkGroupsClient.Get` - -```go -ctx := context.TODO() -id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkGroupsClient.List` - -```go -ctx := context.TODO() -id := networkgroups.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -// alternatively `client.List(ctx, id, networkgroups.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, networkgroups.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/client.go deleted file mode 100644 index 89171a64b6d3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package networkgroups - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkGroupsClient struct { - Client *resourcemanager.Client -} - -func NewNetworkGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkGroupsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "networkgroups", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating NetworkGroupsClient: %+v", err) - } - - return &NetworkGroupsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/constants.go deleted file mode 100644 index 3bc1d35bd511..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/constants.go +++ /dev/null @@ -1,57 +0,0 @@ -package networkgroups - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkgroup.go deleted file mode 100644 index 912a7fb25c3b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkgroup.go +++ /dev/null @@ -1,139 +0,0 @@ -package networkgroups - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&NetworkGroupId{}) -} - -var _ resourceids.ResourceId = &NetworkGroupId{} - -// NetworkGroupId is a struct representing the Resource ID for a Network Group -type NetworkGroupId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string - NetworkGroupName string -} - -// NewNetworkGroupID returns a new NetworkGroupId struct -func NewNetworkGroupID(subscriptionId string, resourceGroupName string, networkManagerName string, networkGroupName string) NetworkGroupId { - return NetworkGroupId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - NetworkGroupName: networkGroupName, - } -} - -// ParseNetworkGroupID parses 'input' into a NetworkGroupId -func ParseNetworkGroupID(input string) (*NetworkGroupId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkGroupId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkGroupId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseNetworkGroupIDInsensitively parses 'input' case-insensitively into a NetworkGroupId -// note: this method should only be used for API response data and not user input -func ParseNetworkGroupIDInsensitively(input string) (*NetworkGroupId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkGroupId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkGroupId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *NetworkGroupId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - if id.NetworkGroupName, ok = input.Parsed["networkGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkGroupName", input) - } - - return nil -} - -// ValidateNetworkGroupID checks that 'input' can be parsed as a Network Group ID -func ValidateNetworkGroupID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseNetworkGroupID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Network Group ID -func (id NetworkGroupId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/networkGroups/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.NetworkGroupName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Network Group ID -func (id NetworkGroupId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - resourceids.StaticSegment("staticNetworkGroups", "networkGroups", "networkGroups"), - resourceids.UserSpecifiedSegment("networkGroupName", "networkGroupName"), - } -} - -// String returns a human-readable description of this Network Group ID -func (id NetworkGroupId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - fmt.Sprintf("Network Group Name: %q", id.NetworkGroupName), - } - return fmt.Sprintf("Network Group (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkmanager.go deleted file mode 100644 index 427d707220af..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkmanager.go +++ /dev/null @@ -1,130 +0,0 @@ -package networkgroups - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&NetworkManagerId{}) -} - -var _ resourceids.ResourceId = &NetworkManagerId{} - -// NetworkManagerId is a struct representing the Resource ID for a Network Manager -type NetworkManagerId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string -} - -// NewNetworkManagerID returns a new NetworkManagerId struct -func NewNetworkManagerID(subscriptionId string, resourceGroupName string, networkManagerName string) NetworkManagerId { - return NetworkManagerId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - } -} - -// ParseNetworkManagerID parses 'input' into a NetworkManagerId -func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkManagerId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseNetworkManagerIDInsensitively parses 'input' case-insensitively into a NetworkManagerId -// note: this method should only be used for API response data and not user input -func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkManagerId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *NetworkManagerId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - return nil -} - -// ValidateNetworkManagerID checks that 'input' can be parsed as a Network Manager ID -func ValidateNetworkManagerID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseNetworkManagerID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Network Manager ID -func (id NetworkManagerId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Network Manager ID -func (id NetworkManagerId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - } -} - -// String returns a human-readable description of this Network Manager ID -func (id NetworkManagerId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - } - return fmt.Sprintf("Network Manager (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_createorupdate.go deleted file mode 100644 index 89e0b5c2b0c9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_createorupdate.go +++ /dev/null @@ -1,88 +0,0 @@ -package networkgroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkGroup -} - -type CreateOrUpdateOperationOptions struct { - IfMatch *string -} - -func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions { - return CreateOrUpdateOperationOptions{} -} - -func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - if o.IfMatch != nil { - out.Append("If-Match", fmt.Sprintf("%v", *o.IfMatch)) - } - return &out -} - -func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - - return &out -} - -// CreateOrUpdate ... -func (c NetworkGroupsClient) CreateOrUpdate(ctx context.Context, id NetworkGroupId, input NetworkGroup, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkGroup - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_delete.go deleted file mode 100644 index 45f93907f238..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_delete.go +++ /dev/null @@ -1,100 +0,0 @@ -package networkgroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -type DeleteOperationOptions struct { - Force *bool -} - -func DefaultDeleteOperationOptions() DeleteOperationOptions { - return DeleteOperationOptions{} -} - -func (o DeleteOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o DeleteOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o DeleteOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Force != nil { - out.Append("force", fmt.Sprintf("%v", *o.Force)) - } - return &out -} - -// Delete ... -func (c NetworkGroupsClient) Delete(ctx context.Context, id NetworkGroupId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c NetworkGroupsClient) DeleteThenPoll(ctx context.Context, id NetworkGroupId, options DeleteOperationOptions) error { - result, err := c.Delete(ctx, id, options) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_get.go deleted file mode 100644 index 503719a73d9c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package networkgroups - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkGroup -} - -// Get ... -func (c NetworkGroupsClient) Get(ctx context.Context, id NetworkGroupId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkGroup - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_list.go deleted file mode 100644 index 360af82528fe..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_list.go +++ /dev/null @@ -1,134 +0,0 @@ -package networkgroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkGroup -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkGroup -} - -type ListOperationOptions struct { - Top *int64 -} - -func DefaultListOperationOptions() ListOperationOptions { - return ListOperationOptions{} -} - -func (o ListOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o ListOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o ListOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Top != nil { - out.Append("$top", fmt.Sprintf("%v", *o.Top)) - } - return &out -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c NetworkGroupsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/networkGroups", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkGroup `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c NetworkGroupsClient) ListComplete(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, options, NetworkGroupOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkGroupsClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkManagerId, options ListOperationOptions, predicate NetworkGroupOperationPredicate) (result ListCompleteResult, err error) { - items := make([]NetworkGroup, 0) - - resp, err := c.List(ctx, id, options) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/model_networkgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/model_networkgroup.go deleted file mode 100644 index c35ded0ac80a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/model_networkgroup.go +++ /dev/null @@ -1,17 +0,0 @@ -package networkgroups - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkGroupProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/model_networkgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/model_networkgroupproperties.go deleted file mode 100644 index 69e5d9d5b225..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/model_networkgroupproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkgroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkGroupProperties struct { - Description *string `json:"description,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/predicates.go deleted file mode 100644 index 621d0d7b40aa..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package networkgroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkGroupOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p NetworkGroupOperationPredicate) Matches(input NetworkGroup) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/version.go deleted file mode 100644 index fe2835422749..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkgroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkgroups/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/README.md deleted file mode 100644 index a86d8c6d7409..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/README.md +++ /dev/null @@ -1,161 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections` Documentation - -The `networkmanagerconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections" -``` - - -### Client Initialization - -```go -client := networkmanagerconnections.NewNetworkManagerConnectionsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkManagerConnectionsClient.ManagementGroupNetworkManagerConnectionsCreateOrUpdate` - -```go -ctx := context.TODO() -id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupId", "networkManagerConnectionName") - -payload := networkmanagerconnections.NetworkManagerConnection{ - // ... -} - - -read, err := client.ManagementGroupNetworkManagerConnectionsCreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagerConnectionsClient.ManagementGroupNetworkManagerConnectionsDelete` - -```go -ctx := context.TODO() -id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupId", "networkManagerConnectionName") - -read, err := client.ManagementGroupNetworkManagerConnectionsDelete(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagerConnectionsClient.ManagementGroupNetworkManagerConnectionsGet` - -```go -ctx := context.TODO() -id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupId", "networkManagerConnectionName") - -read, err := client.ManagementGroupNetworkManagerConnectionsGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagerConnectionsClient.ManagementGroupNetworkManagerConnectionsList` - -```go -ctx := context.TODO() -id := commonids.NewManagementGroupID("groupId") - -// alternatively `client.ManagementGroupNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination -items, err := client.ManagementGroupNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkManagerConnectionsClient.SubscriptionNetworkManagerConnectionsCreateOrUpdate` - -```go -ctx := context.TODO() -id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionName") - -payload := networkmanagerconnections.NetworkManagerConnection{ - // ... -} - - -read, err := client.SubscriptionNetworkManagerConnectionsCreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagerConnectionsClient.SubscriptionNetworkManagerConnectionsDelete` - -```go -ctx := context.TODO() -id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionName") - -read, err := client.SubscriptionNetworkManagerConnectionsDelete(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagerConnectionsClient.SubscriptionNetworkManagerConnectionsGet` - -```go -ctx := context.TODO() -id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionName") - -read, err := client.SubscriptionNetworkManagerConnectionsGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagerConnectionsClient.SubscriptionNetworkManagerConnectionsList` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.SubscriptionNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultSubscriptionNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination -items, err := client.SubscriptionNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultSubscriptionNetworkManagerConnectionsListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/client.go deleted file mode 100644 index 809f42be8790..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package networkmanagerconnections - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkManagerConnectionsClient struct { - Client *resourcemanager.Client -} - -func NewNetworkManagerConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkManagerConnectionsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "networkmanagerconnections", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating NetworkManagerConnectionsClient: %+v", err) - } - - return &NetworkManagerConnectionsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/constants.go deleted file mode 100644 index 47d6adfd2071..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/constants.go +++ /dev/null @@ -1,60 +0,0 @@ -package networkmanagerconnections - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ScopeConnectionState string - -const ( - ScopeConnectionStateConflict ScopeConnectionState = "Conflict" - ScopeConnectionStateConnected ScopeConnectionState = "Connected" - ScopeConnectionStatePending ScopeConnectionState = "Pending" - ScopeConnectionStateRejected ScopeConnectionState = "Rejected" - ScopeConnectionStateRevoked ScopeConnectionState = "Revoked" -) - -func PossibleValuesForScopeConnectionState() []string { - return []string{ - string(ScopeConnectionStateConflict), - string(ScopeConnectionStateConnected), - string(ScopeConnectionStatePending), - string(ScopeConnectionStateRejected), - string(ScopeConnectionStateRevoked), - } -} - -func (s *ScopeConnectionState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseScopeConnectionState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseScopeConnectionState(input string) (*ScopeConnectionState, error) { - vals := map[string]ScopeConnectionState{ - "conflict": ScopeConnectionStateConflict, - "connected": ScopeConnectionStateConnected, - "pending": ScopeConnectionStatePending, - "rejected": ScopeConnectionStateRejected, - "revoked": ScopeConnectionStateRevoked, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ScopeConnectionState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_networkmanagerconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_networkmanagerconnection.go deleted file mode 100644 index a3050ef7c66a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_networkmanagerconnection.go +++ /dev/null @@ -1,121 +0,0 @@ -package networkmanagerconnections - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&NetworkManagerConnectionId{}) -} - -var _ resourceids.ResourceId = &NetworkManagerConnectionId{} - -// NetworkManagerConnectionId is a struct representing the Resource ID for a Network Manager Connection -type NetworkManagerConnectionId struct { - SubscriptionId string - NetworkManagerConnectionName string -} - -// NewNetworkManagerConnectionID returns a new NetworkManagerConnectionId struct -func NewNetworkManagerConnectionID(subscriptionId string, networkManagerConnectionName string) NetworkManagerConnectionId { - return NetworkManagerConnectionId{ - SubscriptionId: subscriptionId, - NetworkManagerConnectionName: networkManagerConnectionName, - } -} - -// ParseNetworkManagerConnectionID parses 'input' into a NetworkManagerConnectionId -func ParseNetworkManagerConnectionID(input string) (*NetworkManagerConnectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkManagerConnectionId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkManagerConnectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseNetworkManagerConnectionIDInsensitively parses 'input' case-insensitively into a NetworkManagerConnectionId -// note: this method should only be used for API response data and not user input -func ParseNetworkManagerConnectionIDInsensitively(input string) (*NetworkManagerConnectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkManagerConnectionId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkManagerConnectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *NetworkManagerConnectionId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.NetworkManagerConnectionName, ok = input.Parsed["networkManagerConnectionName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerConnectionName", input) - } - - return nil -} - -// ValidateNetworkManagerConnectionID checks that 'input' can be parsed as a Network Manager Connection ID -func ValidateNetworkManagerConnectionID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseNetworkManagerConnectionID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Network Manager Connection ID -func (id NetworkManagerConnectionId) ID() string { - fmtString := "/subscriptions/%s/providers/Microsoft.Network/networkManagerConnections/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.NetworkManagerConnectionName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Network Manager Connection ID -func (id NetworkManagerConnectionId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagerConnections", "networkManagerConnections", "networkManagerConnections"), - resourceids.UserSpecifiedSegment("networkManagerConnectionName", "networkManagerConnectionName"), - } -} - -// String returns a human-readable description of this Network Manager Connection ID -func (id NetworkManagerConnectionId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Network Manager Connection Name: %q", id.NetworkManagerConnectionName), - } - return fmt.Sprintf("Network Manager Connection (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_providers2networkmanagerconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_providers2networkmanagerconnection.go deleted file mode 100644 index a0bb33d6bc5b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_providers2networkmanagerconnection.go +++ /dev/null @@ -1,123 +0,0 @@ -package networkmanagerconnections - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&Providers2NetworkManagerConnectionId{}) -} - -var _ resourceids.ResourceId = &Providers2NetworkManagerConnectionId{} - -// Providers2NetworkManagerConnectionId is a struct representing the Resource ID for a Providers 2 Network Manager Connection -type Providers2NetworkManagerConnectionId struct { - ManagementGroupId string - NetworkManagerConnectionName string -} - -// NewProviders2NetworkManagerConnectionID returns a new Providers2NetworkManagerConnectionId struct -func NewProviders2NetworkManagerConnectionID(managementGroupId string, networkManagerConnectionName string) Providers2NetworkManagerConnectionId { - return Providers2NetworkManagerConnectionId{ - ManagementGroupId: managementGroupId, - NetworkManagerConnectionName: networkManagerConnectionName, - } -} - -// ParseProviders2NetworkManagerConnectionID parses 'input' into a Providers2NetworkManagerConnectionId -func ParseProviders2NetworkManagerConnectionID(input string) (*Providers2NetworkManagerConnectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&Providers2NetworkManagerConnectionId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := Providers2NetworkManagerConnectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseProviders2NetworkManagerConnectionIDInsensitively parses 'input' case-insensitively into a Providers2NetworkManagerConnectionId -// note: this method should only be used for API response data and not user input -func ParseProviders2NetworkManagerConnectionIDInsensitively(input string) (*Providers2NetworkManagerConnectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&Providers2NetworkManagerConnectionId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := Providers2NetworkManagerConnectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *Providers2NetworkManagerConnectionId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.ManagementGroupId, ok = input.Parsed["managementGroupId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "managementGroupId", input) - } - - if id.NetworkManagerConnectionName, ok = input.Parsed["networkManagerConnectionName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerConnectionName", input) - } - - return nil -} - -// ValidateProviders2NetworkManagerConnectionID checks that 'input' can be parsed as a Providers 2 Network Manager Connection ID -func ValidateProviders2NetworkManagerConnectionID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseProviders2NetworkManagerConnectionID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Providers 2 Network Manager Connection ID -func (id Providers2NetworkManagerConnectionId) ID() string { - fmtString := "/providers/Microsoft.Management/managementGroups/%s/providers/Microsoft.Network/networkManagerConnections/%s" - return fmt.Sprintf(fmtString, id.ManagementGroupId, id.NetworkManagerConnectionName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Providers 2 Network Manager Connection ID -func (id Providers2NetworkManagerConnectionId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftManagement", "Microsoft.Management", "Microsoft.Management"), - resourceids.StaticSegment("staticManagementGroups", "managementGroups", "managementGroups"), - resourceids.UserSpecifiedSegment("managementGroupId", "managementGroupId"), - resourceids.StaticSegment("staticProviders2", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagerConnections", "networkManagerConnections", "networkManagerConnections"), - resourceids.UserSpecifiedSegment("networkManagerConnectionName", "networkManagerConnectionName"), - } -} - -// String returns a human-readable description of this Providers 2 Network Manager Connection ID -func (id Providers2NetworkManagerConnectionId) String() string { - components := []string{ - fmt.Sprintf("Management Group: %q", id.ManagementGroupId), - fmt.Sprintf("Network Manager Connection Name: %q", id.NetworkManagerConnectionName), - } - return fmt.Sprintf("Providers 2 Network Manager Connection (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionscreateorupdate.go deleted file mode 100644 index 116a8f3da7a6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionscreateorupdate.go +++ /dev/null @@ -1,58 +0,0 @@ -package networkmanagerconnections - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ManagementGroupNetworkManagerConnectionsCreateOrUpdateOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkManagerConnection -} - -// ManagementGroupNetworkManagerConnectionsCreateOrUpdate ... -func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnectionsCreateOrUpdate(ctx context.Context, id Providers2NetworkManagerConnectionId, input NetworkManagerConnection) (result ManagementGroupNetworkManagerConnectionsCreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkManagerConnection - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsdelete.go deleted file mode 100644 index 83c0e93f95b5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsdelete.go +++ /dev/null @@ -1,47 +0,0 @@ -package networkmanagerconnections - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ManagementGroupNetworkManagerConnectionsDeleteOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData -} - -// ManagementGroupNetworkManagerConnectionsDelete ... -func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnectionsDelete(ctx context.Context, id Providers2NetworkManagerConnectionId) (result ManagementGroupNetworkManagerConnectionsDeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsget.go deleted file mode 100644 index c4f20220fbe6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsget.go +++ /dev/null @@ -1,53 +0,0 @@ -package networkmanagerconnections - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ManagementGroupNetworkManagerConnectionsGetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkManagerConnection -} - -// ManagementGroupNetworkManagerConnectionsGet ... -func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnectionsGet(ctx context.Context, id Providers2NetworkManagerConnectionId) (result ManagementGroupNetworkManagerConnectionsGetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkManagerConnection - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go deleted file mode 100644 index d8b68e162ab2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go +++ /dev/null @@ -1,135 +0,0 @@ -package networkmanagerconnections - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ManagementGroupNetworkManagerConnectionsListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkManagerConnection -} - -type ManagementGroupNetworkManagerConnectionsListCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkManagerConnection -} - -type ManagementGroupNetworkManagerConnectionsListOperationOptions struct { - Top *int64 -} - -func DefaultManagementGroupNetworkManagerConnectionsListOperationOptions() ManagementGroupNetworkManagerConnectionsListOperationOptions { - return ManagementGroupNetworkManagerConnectionsListOperationOptions{} -} - -func (o ManagementGroupNetworkManagerConnectionsListOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o ManagementGroupNetworkManagerConnectionsListOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o ManagementGroupNetworkManagerConnectionsListOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Top != nil { - out.Append("$top", fmt.Sprintf("%v", *o.Top)) - } - return &out -} - -type ManagementGroupNetworkManagerConnectionsListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ManagementGroupNetworkManagerConnectionsListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ManagementGroupNetworkManagerConnectionsList ... -func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnectionsList(ctx context.Context, id commonids.ManagementGroupId, options ManagementGroupNetworkManagerConnectionsListOperationOptions) (result ManagementGroupNetworkManagerConnectionsListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Pager: &ManagementGroupNetworkManagerConnectionsListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkManagerConnection `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ManagementGroupNetworkManagerConnectionsListComplete retrieves all the results into a single object -func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnectionsListComplete(ctx context.Context, id commonids.ManagementGroupId, options ManagementGroupNetworkManagerConnectionsListOperationOptions) (ManagementGroupNetworkManagerConnectionsListCompleteResult, error) { - return c.ManagementGroupNetworkManagerConnectionsListCompleteMatchingPredicate(ctx, id, options, NetworkManagerConnectionOperationPredicate{}) -} - -// ManagementGroupNetworkManagerConnectionsListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnectionsListCompleteMatchingPredicate(ctx context.Context, id commonids.ManagementGroupId, options ManagementGroupNetworkManagerConnectionsListOperationOptions, predicate NetworkManagerConnectionOperationPredicate) (result ManagementGroupNetworkManagerConnectionsListCompleteResult, err error) { - items := make([]NetworkManagerConnection, 0) - - resp, err := c.ManagementGroupNetworkManagerConnectionsList(ctx, id, options) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ManagementGroupNetworkManagerConnectionsListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionscreateorupdate.go deleted file mode 100644 index 2d07c99634c5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionscreateorupdate.go +++ /dev/null @@ -1,58 +0,0 @@ -package networkmanagerconnections - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubscriptionNetworkManagerConnectionsCreateOrUpdateOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkManagerConnection -} - -// SubscriptionNetworkManagerConnectionsCreateOrUpdate ... -func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsCreateOrUpdate(ctx context.Context, id NetworkManagerConnectionId, input NetworkManagerConnection) (result SubscriptionNetworkManagerConnectionsCreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkManagerConnection - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsdelete.go deleted file mode 100644 index 43ebf8bb5e48..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsdelete.go +++ /dev/null @@ -1,47 +0,0 @@ -package networkmanagerconnections - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubscriptionNetworkManagerConnectionsDeleteOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData -} - -// SubscriptionNetworkManagerConnectionsDelete ... -func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsDelete(ctx context.Context, id NetworkManagerConnectionId) (result SubscriptionNetworkManagerConnectionsDeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsget.go deleted file mode 100644 index 4b89ca96feb0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsget.go +++ /dev/null @@ -1,53 +0,0 @@ -package networkmanagerconnections - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubscriptionNetworkManagerConnectionsGetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkManagerConnection -} - -// SubscriptionNetworkManagerConnectionsGet ... -func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsGet(ctx context.Context, id NetworkManagerConnectionId) (result SubscriptionNetworkManagerConnectionsGetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkManagerConnection - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go deleted file mode 100644 index a08f8b1adfc6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go +++ /dev/null @@ -1,135 +0,0 @@ -package networkmanagerconnections - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubscriptionNetworkManagerConnectionsListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkManagerConnection -} - -type SubscriptionNetworkManagerConnectionsListCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkManagerConnection -} - -type SubscriptionNetworkManagerConnectionsListOperationOptions struct { - Top *int64 -} - -func DefaultSubscriptionNetworkManagerConnectionsListOperationOptions() SubscriptionNetworkManagerConnectionsListOperationOptions { - return SubscriptionNetworkManagerConnectionsListOperationOptions{} -} - -func (o SubscriptionNetworkManagerConnectionsListOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o SubscriptionNetworkManagerConnectionsListOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o SubscriptionNetworkManagerConnectionsListOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Top != nil { - out.Append("$top", fmt.Sprintf("%v", *o.Top)) - } - return &out -} - -type SubscriptionNetworkManagerConnectionsListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *SubscriptionNetworkManagerConnectionsListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// SubscriptionNetworkManagerConnectionsList ... -func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsList(ctx context.Context, id commonids.SubscriptionId, options SubscriptionNetworkManagerConnectionsListOperationOptions) (result SubscriptionNetworkManagerConnectionsListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Pager: &SubscriptionNetworkManagerConnectionsListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkManagerConnection `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// SubscriptionNetworkManagerConnectionsListComplete retrieves all the results into a single object -func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsListComplete(ctx context.Context, id commonids.SubscriptionId, options SubscriptionNetworkManagerConnectionsListOperationOptions) (SubscriptionNetworkManagerConnectionsListCompleteResult, error) { - return c.SubscriptionNetworkManagerConnectionsListCompleteMatchingPredicate(ctx, id, options, NetworkManagerConnectionOperationPredicate{}) -} - -// SubscriptionNetworkManagerConnectionsListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options SubscriptionNetworkManagerConnectionsListOperationOptions, predicate NetworkManagerConnectionOperationPredicate) (result SubscriptionNetworkManagerConnectionsListCompleteResult, err error) { - items := make([]NetworkManagerConnection, 0) - - resp, err := c.SubscriptionNetworkManagerConnectionsList(ctx, id, options) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = SubscriptionNetworkManagerConnectionsListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/model_networkmanagerconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/model_networkmanagerconnection.go deleted file mode 100644 index a7548b736992..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/model_networkmanagerconnection.go +++ /dev/null @@ -1,17 +0,0 @@ -package networkmanagerconnections - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkManagerConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkManagerConnectionProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/model_networkmanagerconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/model_networkmanagerconnectionproperties.go deleted file mode 100644 index faec43c2f304..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/model_networkmanagerconnectionproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkmanagerconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkManagerConnectionProperties struct { - ConnectionState *ScopeConnectionState `json:"connectionState,omitempty"` - Description *string `json:"description,omitempty"` - NetworkManagerId *string `json:"networkManagerId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/predicates.go deleted file mode 100644 index 145b7b7261a2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package networkmanagerconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkManagerConnectionOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p NetworkManagerConnectionOperationPredicate) Matches(input NetworkManagerConnection) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/version.go deleted file mode 100644 index 3c6374ebb17e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkmanagerconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkmanagerconnections/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/README.md deleted file mode 100644 index 35f01c2151f8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/README.md +++ /dev/null @@ -1,163 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers` Documentation - -The `networkmanagers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers" -``` - - -### Client Initialization - -```go -client := networkmanagers.NewNetworkManagersClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkManagersClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -payload := networkmanagers.NetworkManager{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagersClient.Delete` - -```go -ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -if err := client.DeleteThenPoll(ctx, id, networkmanagers.DefaultDeleteOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkManagersClient.Get` - -```go -ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagersClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id, networkmanagers.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, networkmanagers.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkManagersClient.ListBySubscription` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListBySubscription(ctx, id, networkmanagers.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination -items, err := client.ListBySubscriptionComplete(ctx, id, networkmanagers.DefaultListBySubscriptionOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkManagersClient.NetworkManagerCommitsPost` - -```go -ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -payload := networkmanagers.NetworkManagerCommit{ - // ... -} - - -if err := client.NetworkManagerCommitsPostThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkManagersClient.NetworkManagerDeploymentStatusList` - -```go -ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -payload := networkmanagers.NetworkManagerDeploymentStatusParameter{ - // ... -} - - -read, err := client.NetworkManagerDeploymentStatusList(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagersClient.Patch` - -```go -ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -payload := networkmanagers.PatchObject{ - // ... -} - - -read, err := client.Patch(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/client.go deleted file mode 100644 index 64a4e7996462..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package networkmanagers - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkManagersClient struct { - Client *resourcemanager.Client -} - -func NewNetworkManagersClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkManagersClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "networkmanagers", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating NetworkManagersClient: %+v", err) - } - - return &NetworkManagersClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/constants.go deleted file mode 100644 index 2aa86ac19639..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/constants.go +++ /dev/null @@ -1,145 +0,0 @@ -package networkmanagers - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConfigurationType string - -const ( - ConfigurationTypeConnectivity ConfigurationType = "Connectivity" - ConfigurationTypeSecurityAdmin ConfigurationType = "SecurityAdmin" -) - -func PossibleValuesForConfigurationType() []string { - return []string{ - string(ConfigurationTypeConnectivity), - string(ConfigurationTypeSecurityAdmin), - } -} - -func (s *ConfigurationType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseConfigurationType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseConfigurationType(input string) (*ConfigurationType, error) { - vals := map[string]ConfigurationType{ - "connectivity": ConfigurationTypeConnectivity, - "securityadmin": ConfigurationTypeSecurityAdmin, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ConfigurationType(input) - return &out, nil -} - -type DeploymentStatus string - -const ( - DeploymentStatusDeployed DeploymentStatus = "Deployed" - DeploymentStatusDeploying DeploymentStatus = "Deploying" - DeploymentStatusFailed DeploymentStatus = "Failed" - DeploymentStatusNotStarted DeploymentStatus = "NotStarted" -) - -func PossibleValuesForDeploymentStatus() []string { - return []string{ - string(DeploymentStatusDeployed), - string(DeploymentStatusDeploying), - string(DeploymentStatusFailed), - string(DeploymentStatusNotStarted), - } -} - -func (s *DeploymentStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDeploymentStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDeploymentStatus(input string) (*DeploymentStatus, error) { - vals := map[string]DeploymentStatus{ - "deployed": DeploymentStatusDeployed, - "deploying": DeploymentStatusDeploying, - "failed": DeploymentStatusFailed, - "notstarted": DeploymentStatusNotStarted, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DeploymentStatus(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/id_networkmanager.go deleted file mode 100644 index 35d0899f86c6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/id_networkmanager.go +++ /dev/null @@ -1,130 +0,0 @@ -package networkmanagers - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&NetworkManagerId{}) -} - -var _ resourceids.ResourceId = &NetworkManagerId{} - -// NetworkManagerId is a struct representing the Resource ID for a Network Manager -type NetworkManagerId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string -} - -// NewNetworkManagerID returns a new NetworkManagerId struct -func NewNetworkManagerID(subscriptionId string, resourceGroupName string, networkManagerName string) NetworkManagerId { - return NetworkManagerId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - } -} - -// ParseNetworkManagerID parses 'input' into a NetworkManagerId -func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkManagerId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseNetworkManagerIDInsensitively parses 'input' case-insensitively into a NetworkManagerId -// note: this method should only be used for API response data and not user input -func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkManagerId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *NetworkManagerId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - return nil -} - -// ValidateNetworkManagerID checks that 'input' can be parsed as a Network Manager ID -func ValidateNetworkManagerID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseNetworkManagerID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Network Manager ID -func (id NetworkManagerId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Network Manager ID -func (id NetworkManagerId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - } -} - -// String returns a human-readable description of this Network Manager ID -func (id NetworkManagerId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - } - return fmt.Sprintf("Network Manager (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_createorupdate.go deleted file mode 100644 index cdce0892e43c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_createorupdate.go +++ /dev/null @@ -1,58 +0,0 @@ -package networkmanagers - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkManager -} - -// CreateOrUpdate ... -func (c NetworkManagersClient) CreateOrUpdate(ctx context.Context, id NetworkManagerId, input NetworkManager) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkManager - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_delete.go deleted file mode 100644 index a9619efb0e22..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_delete.go +++ /dev/null @@ -1,100 +0,0 @@ -package networkmanagers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -type DeleteOperationOptions struct { - Force *bool -} - -func DefaultDeleteOperationOptions() DeleteOperationOptions { - return DeleteOperationOptions{} -} - -func (o DeleteOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o DeleteOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o DeleteOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Force != nil { - out.Append("force", fmt.Sprintf("%v", *o.Force)) - } - return &out -} - -// Delete ... -func (c NetworkManagersClient) Delete(ctx context.Context, id NetworkManagerId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c NetworkManagersClient) DeleteThenPoll(ctx context.Context, id NetworkManagerId, options DeleteOperationOptions) error { - result, err := c.Delete(ctx, id, options) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_get.go deleted file mode 100644 index ed6b5d9ec820..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package networkmanagers - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkManager -} - -// Get ... -func (c NetworkManagersClient) Get(ctx context.Context, id NetworkManagerId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkManager - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_list.go deleted file mode 100644 index 902c41d52b33..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_list.go +++ /dev/null @@ -1,135 +0,0 @@ -package networkmanagers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkManager -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkManager -} - -type ListOperationOptions struct { - Top *int64 -} - -func DefaultListOperationOptions() ListOperationOptions { - return ListOperationOptions{} -} - -func (o ListOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o ListOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o ListOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Top != nil { - out.Append("$top", fmt.Sprintf("%v", *o.Top)) - } - return &out -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c NetworkManagersClient) List(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkManager `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c NetworkManagersClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, options, NetworkManagerOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkManagersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions, predicate NetworkManagerOperationPredicate) (result ListCompleteResult, err error) { - items := make([]NetworkManager, 0) - - resp, err := c.List(ctx, id, options) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_listbysubscription.go deleted file mode 100644 index d1e8f2d72a38..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_listbysubscription.go +++ /dev/null @@ -1,135 +0,0 @@ -package networkmanagers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListBySubscriptionOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkManager -} - -type ListBySubscriptionCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkManager -} - -type ListBySubscriptionOperationOptions struct { - Top *int64 -} - -func DefaultListBySubscriptionOperationOptions() ListBySubscriptionOperationOptions { - return ListBySubscriptionOperationOptions{} -} - -func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Top != nil { - out.Append("$top", fmt.Sprintf("%v", *o.Top)) - } - return &out -} - -type ListBySubscriptionCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListBySubscription ... -func (c NetworkManagersClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Pager: &ListBySubscriptionCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkManager `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListBySubscriptionComplete retrieves all the results into a single object -func (c NetworkManagersClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (ListBySubscriptionCompleteResult, error) { - return c.ListBySubscriptionCompleteMatchingPredicate(ctx, id, options, NetworkManagerOperationPredicate{}) -} - -// ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkManagersClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions, predicate NetworkManagerOperationPredicate) (result ListBySubscriptionCompleteResult, err error) { - items := make([]NetworkManager, 0) - - resp, err := c.ListBySubscription(ctx, id, options) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListBySubscriptionCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_networkmanagercommitspost.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_networkmanagercommitspost.go deleted file mode 100644 index 6d93c0512d6e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_networkmanagercommitspost.go +++ /dev/null @@ -1,75 +0,0 @@ -package networkmanagers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkManagerCommitsPostOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *NetworkManagerCommit -} - -// NetworkManagerCommitsPost ... -func (c NetworkManagersClient) NetworkManagerCommitsPost(ctx context.Context, id NetworkManagerId, input NetworkManagerCommit) (result NetworkManagerCommitsPostOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/commit", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// NetworkManagerCommitsPostThenPoll performs NetworkManagerCommitsPost then polls until it's completed -func (c NetworkManagersClient) NetworkManagerCommitsPostThenPoll(ctx context.Context, id NetworkManagerId, input NetworkManagerCommit) error { - result, err := c.NetworkManagerCommitsPost(ctx, id, input) - if err != nil { - return fmt.Errorf("performing NetworkManagerCommitsPost: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after NetworkManagerCommitsPost: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go deleted file mode 100644 index db1a1d144ac4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go +++ /dev/null @@ -1,58 +0,0 @@ -package networkmanagers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkManagerDeploymentStatusListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkManagerDeploymentStatusListResult -} - -// NetworkManagerDeploymentStatusList ... -func (c NetworkManagersClient) NetworkManagerDeploymentStatusList(ctx context.Context, id NetworkManagerId, input NetworkManagerDeploymentStatusParameter) (result NetworkManagerDeploymentStatusListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listDeploymentStatus", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkManagerDeploymentStatusListResult - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_patch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_patch.go deleted file mode 100644 index 4aae0d607098..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_patch.go +++ /dev/null @@ -1,57 +0,0 @@ -package networkmanagers - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PatchOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkManager -} - -// Patch ... -func (c NetworkManagersClient) Patch(ctx context.Context, id NetworkManagerId, input PatchObject) (result PatchOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkManager - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_crosstenantscopes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_crosstenantscopes.go deleted file mode 100644 index 537d9c70d4ac..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_crosstenantscopes.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkmanagers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CrossTenantScopes struct { - ManagementGroups *[]string `json:"managementGroups,omitempty"` - Subscriptions *[]string `json:"subscriptions,omitempty"` - TenantId *string `json:"tenantId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanager.go deleted file mode 100644 index 8f98dec3ed26..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanager.go +++ /dev/null @@ -1,19 +0,0 @@ -package networkmanagers - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkManager struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkManagerProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagercommit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagercommit.go deleted file mode 100644 index 8649d0c0da81..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagercommit.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkmanagers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkManagerCommit struct { - CommitId *string `json:"commitId,omitempty"` - CommitType ConfigurationType `json:"commitType"` - ConfigurationIds *[]string `json:"configurationIds,omitempty"` - TargetLocations []string `json:"targetLocations"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatus.go deleted file mode 100644 index 5727d45e8481..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatus.go +++ /dev/null @@ -1,31 +0,0 @@ -package networkmanagers - -import ( - "time" - - "github.com/hashicorp/go-azure-helpers/lang/dates" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkManagerDeploymentStatus struct { - CommitTime *string `json:"commitTime,omitempty"` - ConfigurationIds *[]string `json:"configurationIds,omitempty"` - DeploymentStatus *DeploymentStatus `json:"deploymentStatus,omitempty"` - DeploymentType *ConfigurationType `json:"deploymentType,omitempty"` - ErrorMessage *string `json:"errorMessage,omitempty"` - Region *string `json:"region,omitempty"` -} - -func (o *NetworkManagerDeploymentStatus) GetCommitTimeAsTime() (*time.Time, error) { - if o.CommitTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.CommitTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *NetworkManagerDeploymentStatus) SetCommitTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.CommitTime = &formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatuslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatuslistresult.go deleted file mode 100644 index 26a44c297a29..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatuslistresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkmanagers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkManagerDeploymentStatusListResult struct { - SkipToken *string `json:"skipToken,omitempty"` - Value *[]NetworkManagerDeploymentStatus `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatusparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatusparameter.go deleted file mode 100644 index 1eb70a07ac3b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatusparameter.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkmanagers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkManagerDeploymentStatusParameter struct { - DeploymentTypes *[]ConfigurationType `json:"deploymentTypes,omitempty"` - Regions *[]string `json:"regions,omitempty"` - SkipToken *string `json:"skipToken,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerproperties.go deleted file mode 100644 index 46dc5161ee2c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkmanagers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkManagerProperties struct { - Description *string `json:"description,omitempty"` - NetworkManagerScopeAccesses []ConfigurationType `json:"networkManagerScopeAccesses"` - NetworkManagerScopes NetworkManagerPropertiesNetworkManagerScopes `json:"networkManagerScopes"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerpropertiesnetworkmanagerscopes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerpropertiesnetworkmanagerscopes.go deleted file mode 100644 index 2a91fc5b6013..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerpropertiesnetworkmanagerscopes.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkmanagers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkManagerPropertiesNetworkManagerScopes struct { - CrossTenantScopes *[]CrossTenantScopes `json:"crossTenantScopes,omitempty"` - ManagementGroups *[]string `json:"managementGroups,omitempty"` - Subscriptions *[]string `json:"subscriptions,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_patchobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_patchobject.go deleted file mode 100644 index 775ef5986854..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_patchobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkmanagers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PatchObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/predicates.go deleted file mode 100644 index 7c1597c26669..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/predicates.go +++ /dev/null @@ -1,37 +0,0 @@ -package networkmanagers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkManagerOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p NetworkManagerOperationPredicate) Matches(input NetworkManager) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/version.go deleted file mode 100644 index 50a239122378..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkmanagers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkmanagers/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/README.md deleted file mode 100644 index 1ce5978118fd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/README.md +++ /dev/null @@ -1,125 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles` Documentation - -The `networkprofiles` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles" -``` - - -### Client Initialization - -```go -client := networkprofiles.NewNetworkProfilesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkProfilesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") - -payload := networkprofiles.NetworkProfile{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkProfilesClient.Delete` - -```go -ctx := context.TODO() -id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkProfilesClient.Get` - -```go -ctx := context.TODO() -id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") - -read, err := client.Get(ctx, id, networkprofiles.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkProfilesClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkProfilesClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkProfilesClient.UpdateTags` - -```go -ctx := context.TODO() -id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") - -payload := networkprofiles.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/client.go deleted file mode 100644 index 33a4e0626aae..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package networkprofiles - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkProfilesClient struct { - Client *resourcemanager.Client -} - -func NewNetworkProfilesClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkProfilesClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "networkprofiles", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating NetworkProfilesClient: %+v", err) - } - - return &NetworkProfilesClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/constants.go deleted file mode 100644 index d3159767fb9c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/constants.go +++ /dev/null @@ -1,1198 +0,0 @@ -package networkprofiles - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosSettingsProtectionMode string - -const ( - DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" - DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" - DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" -) - -func PossibleValuesForDdosSettingsProtectionMode() []string { - return []string{ - string(DdosSettingsProtectionModeDisabled), - string(DdosSettingsProtectionModeEnabled), - string(DdosSettingsProtectionModeVirtualNetworkInherited), - } -} - -func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDdosSettingsProtectionMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { - vals := map[string]DdosSettingsProtectionMode{ - "disabled": DdosSettingsProtectionModeDisabled, - "enabled": DdosSettingsProtectionModeEnabled, - "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DdosSettingsProtectionMode(input) - return &out, nil -} - -type DeleteOptions string - -const ( - DeleteOptionsDelete DeleteOptions = "Delete" - DeleteOptionsDetach DeleteOptions = "Detach" -) - -func PossibleValuesForDeleteOptions() []string { - return []string{ - string(DeleteOptionsDelete), - string(DeleteOptionsDetach), - } -} - -func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDeleteOptions(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDeleteOptions(input string) (*DeleteOptions, error) { - vals := map[string]DeleteOptions{ - "delete": DeleteOptionsDelete, - "detach": DeleteOptionsDetach, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DeleteOptions(input) - return &out, nil -} - -type FlowLogFormatType string - -const ( - FlowLogFormatTypeJSON FlowLogFormatType = "JSON" -) - -func PossibleValuesForFlowLogFormatType() []string { - return []string{ - string(FlowLogFormatTypeJSON), - } -} - -func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseFlowLogFormatType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { - vals := map[string]FlowLogFormatType{ - "json": FlowLogFormatTypeJSON, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := FlowLogFormatType(input) - return &out, nil -} - -type GatewayLoadBalancerTunnelInterfaceType string - -const ( - GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" - GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" - GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" -) - -func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { - return []string{ - string(GatewayLoadBalancerTunnelInterfaceTypeExternal), - string(GatewayLoadBalancerTunnelInterfaceTypeInternal), - string(GatewayLoadBalancerTunnelInterfaceTypeNone), - } -} - -func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { - vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ - "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, - "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, - "none": GatewayLoadBalancerTunnelInterfaceTypeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GatewayLoadBalancerTunnelInterfaceType(input) - return &out, nil -} - -type GatewayLoadBalancerTunnelProtocol string - -const ( - GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" - GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" - GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" -) - -func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { - return []string{ - string(GatewayLoadBalancerTunnelProtocolNative), - string(GatewayLoadBalancerTunnelProtocolNone), - string(GatewayLoadBalancerTunnelProtocolVXLAN), - } -} - -func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { - vals := map[string]GatewayLoadBalancerTunnelProtocol{ - "native": GatewayLoadBalancerTunnelProtocolNative, - "none": GatewayLoadBalancerTunnelProtocolNone, - "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GatewayLoadBalancerTunnelProtocol(input) - return &out, nil -} - -type IPAllocationMethod string - -const ( - IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" - IPAllocationMethodStatic IPAllocationMethod = "Static" -) - -func PossibleValuesForIPAllocationMethod() []string { - return []string{ - string(IPAllocationMethodDynamic), - string(IPAllocationMethodStatic), - } -} - -func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPAllocationMethod(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { - vals := map[string]IPAllocationMethod{ - "dynamic": IPAllocationMethodDynamic, - "static": IPAllocationMethodStatic, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPAllocationMethod(input) - return &out, nil -} - -type IPVersion string - -const ( - IPVersionIPvFour IPVersion = "IPv4" - IPVersionIPvSix IPVersion = "IPv6" -) - -func PossibleValuesForIPVersion() []string { - return []string{ - string(IPVersionIPvFour), - string(IPVersionIPvSix), - } -} - -func (s *IPVersion) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPVersion(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPVersion(input string) (*IPVersion, error) { - vals := map[string]IPVersion{ - "ipv4": IPVersionIPvFour, - "ipv6": IPVersionIPvSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPVersion(input) - return &out, nil -} - -type LoadBalancerBackendAddressAdminState string - -const ( - LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" - LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" - LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" -) - -func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { - return []string{ - string(LoadBalancerBackendAddressAdminStateDown), - string(LoadBalancerBackendAddressAdminStateNone), - string(LoadBalancerBackendAddressAdminStateUp), - } -} - -func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerBackendAddressAdminState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { - vals := map[string]LoadBalancerBackendAddressAdminState{ - "down": LoadBalancerBackendAddressAdminStateDown, - "none": LoadBalancerBackendAddressAdminStateNone, - "up": LoadBalancerBackendAddressAdminStateUp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerBackendAddressAdminState(input) - return &out, nil -} - -type NatGatewaySkuName string - -const ( - NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" -) - -func PossibleValuesForNatGatewaySkuName() []string { - return []string{ - string(NatGatewaySkuNameStandard), - } -} - -func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNatGatewaySkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { - vals := map[string]NatGatewaySkuName{ - "standard": NatGatewaySkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NatGatewaySkuName(input) - return &out, nil -} - -type NetworkInterfaceAuxiliaryMode string - -const ( - NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" - NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" - NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" - NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" -) - -func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { - return []string{ - string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), - string(NetworkInterfaceAuxiliaryModeFloating), - string(NetworkInterfaceAuxiliaryModeMaxConnections), - string(NetworkInterfaceAuxiliaryModeNone), - } -} - -func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceAuxiliaryMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { - vals := map[string]NetworkInterfaceAuxiliaryMode{ - "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, - "floating": NetworkInterfaceAuxiliaryModeFloating, - "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, - "none": NetworkInterfaceAuxiliaryModeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceAuxiliaryMode(input) - return &out, nil -} - -type NetworkInterfaceAuxiliarySku string - -const ( - NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" - NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" - NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" - NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" - NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" -) - -func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { - return []string{ - string(NetworkInterfaceAuxiliarySkuAEight), - string(NetworkInterfaceAuxiliarySkuAFour), - string(NetworkInterfaceAuxiliarySkuAOne), - string(NetworkInterfaceAuxiliarySkuATwo), - string(NetworkInterfaceAuxiliarySkuNone), - } -} - -func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceAuxiliarySku(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { - vals := map[string]NetworkInterfaceAuxiliarySku{ - "a8": NetworkInterfaceAuxiliarySkuAEight, - "a4": NetworkInterfaceAuxiliarySkuAFour, - "a1": NetworkInterfaceAuxiliarySkuAOne, - "a2": NetworkInterfaceAuxiliarySkuATwo, - "none": NetworkInterfaceAuxiliarySkuNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceAuxiliarySku(input) - return &out, nil -} - -type NetworkInterfaceMigrationPhase string - -const ( - NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" - NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" - NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" - NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" - NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" -) - -func PossibleValuesForNetworkInterfaceMigrationPhase() []string { - return []string{ - string(NetworkInterfaceMigrationPhaseAbort), - string(NetworkInterfaceMigrationPhaseCommit), - string(NetworkInterfaceMigrationPhaseCommitted), - string(NetworkInterfaceMigrationPhaseNone), - string(NetworkInterfaceMigrationPhasePrepare), - } -} - -func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceMigrationPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { - vals := map[string]NetworkInterfaceMigrationPhase{ - "abort": NetworkInterfaceMigrationPhaseAbort, - "commit": NetworkInterfaceMigrationPhaseCommit, - "committed": NetworkInterfaceMigrationPhaseCommitted, - "none": NetworkInterfaceMigrationPhaseNone, - "prepare": NetworkInterfaceMigrationPhasePrepare, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceMigrationPhase(input) - return &out, nil -} - -type NetworkInterfaceNicType string - -const ( - NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" - NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" -) - -func PossibleValuesForNetworkInterfaceNicType() []string { - return []string{ - string(NetworkInterfaceNicTypeElastic), - string(NetworkInterfaceNicTypeStandard), - } -} - -func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceNicType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { - vals := map[string]NetworkInterfaceNicType{ - "elastic": NetworkInterfaceNicTypeElastic, - "standard": NetworkInterfaceNicTypeStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceNicType(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type PublicIPAddressDnsSettingsDomainNameLabelScope string - -const ( - PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" -) - -func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { - return []string{ - string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), - } -} - -func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { - vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ - "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, - "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, - "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, - "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) - return &out, nil -} - -type PublicIPAddressMigrationPhase string - -const ( - PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" - PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" - PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" - PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" - PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" -) - -func PossibleValuesForPublicIPAddressMigrationPhase() []string { - return []string{ - string(PublicIPAddressMigrationPhaseAbort), - string(PublicIPAddressMigrationPhaseCommit), - string(PublicIPAddressMigrationPhaseCommitted), - string(PublicIPAddressMigrationPhaseNone), - string(PublicIPAddressMigrationPhasePrepare), - } -} - -func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressMigrationPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { - vals := map[string]PublicIPAddressMigrationPhase{ - "abort": PublicIPAddressMigrationPhaseAbort, - "commit": PublicIPAddressMigrationPhaseCommit, - "committed": PublicIPAddressMigrationPhaseCommitted, - "none": PublicIPAddressMigrationPhaseNone, - "prepare": PublicIPAddressMigrationPhasePrepare, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressMigrationPhase(input) - return &out, nil -} - -type PublicIPAddressSkuName string - -const ( - PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" - PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" -) - -func PossibleValuesForPublicIPAddressSkuName() []string { - return []string{ - string(PublicIPAddressSkuNameBasic), - string(PublicIPAddressSkuNameStandard), - } -} - -func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { - vals := map[string]PublicIPAddressSkuName{ - "basic": PublicIPAddressSkuNameBasic, - "standard": PublicIPAddressSkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressSkuName(input) - return &out, nil -} - -type PublicIPAddressSkuTier string - -const ( - PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" - PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" -) - -func PossibleValuesForPublicIPAddressSkuTier() []string { - return []string{ - string(PublicIPAddressSkuTierGlobal), - string(PublicIPAddressSkuTierRegional), - } -} - -func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { - vals := map[string]PublicIPAddressSkuTier{ - "global": PublicIPAddressSkuTierGlobal, - "regional": PublicIPAddressSkuTierRegional, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressSkuTier(input) - return &out, nil -} - -type RouteNextHopType string - -const ( - RouteNextHopTypeInternet RouteNextHopType = "Internet" - RouteNextHopTypeNone RouteNextHopType = "None" - RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" - RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" - RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" -) - -func PossibleValuesForRouteNextHopType() []string { - return []string{ - string(RouteNextHopTypeInternet), - string(RouteNextHopTypeNone), - string(RouteNextHopTypeVirtualAppliance), - string(RouteNextHopTypeVirtualNetworkGateway), - string(RouteNextHopTypeVnetLocal), - } -} - -func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseRouteNextHopType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseRouteNextHopType(input string) (*RouteNextHopType, error) { - vals := map[string]RouteNextHopType{ - "internet": RouteNextHopTypeInternet, - "none": RouteNextHopTypeNone, - "virtualappliance": RouteNextHopTypeVirtualAppliance, - "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, - "vnetlocal": RouteNextHopTypeVnetLocal, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := RouteNextHopType(input) - return &out, nil -} - -type SecurityRuleAccess string - -const ( - SecurityRuleAccessAllow SecurityRuleAccess = "Allow" - SecurityRuleAccessDeny SecurityRuleAccess = "Deny" -) - -func PossibleValuesForSecurityRuleAccess() []string { - return []string{ - string(SecurityRuleAccessAllow), - string(SecurityRuleAccessDeny), - } -} - -func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { - vals := map[string]SecurityRuleAccess{ - "allow": SecurityRuleAccessAllow, - "deny": SecurityRuleAccessDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleAccess(input) - return &out, nil -} - -type SecurityRuleDirection string - -const ( - SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" - SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" -) - -func PossibleValuesForSecurityRuleDirection() []string { - return []string{ - string(SecurityRuleDirectionInbound), - string(SecurityRuleDirectionOutbound), - } -} - -func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleDirection(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { - vals := map[string]SecurityRuleDirection{ - "inbound": SecurityRuleDirectionInbound, - "outbound": SecurityRuleDirectionOutbound, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleDirection(input) - return &out, nil -} - -type SecurityRuleProtocol string - -const ( - SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" - SecurityRuleProtocolAny SecurityRuleProtocol = "*" - SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" - SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" - SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" - SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" -) - -func PossibleValuesForSecurityRuleProtocol() []string { - return []string{ - string(SecurityRuleProtocolAh), - string(SecurityRuleProtocolAny), - string(SecurityRuleProtocolEsp), - string(SecurityRuleProtocolIcmp), - string(SecurityRuleProtocolTcp), - string(SecurityRuleProtocolUdp), - } -} - -func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { - vals := map[string]SecurityRuleProtocol{ - "ah": SecurityRuleProtocolAh, - "*": SecurityRuleProtocolAny, - "esp": SecurityRuleProtocolEsp, - "icmp": SecurityRuleProtocolIcmp, - "tcp": SecurityRuleProtocolTcp, - "udp": SecurityRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleProtocol(input) - return &out, nil -} - -type SharingScope string - -const ( - SharingScopeDelegatedServices SharingScope = "DelegatedServices" - SharingScopeTenant SharingScope = "Tenant" -) - -func PossibleValuesForSharingScope() []string { - return []string{ - string(SharingScopeDelegatedServices), - string(SharingScopeTenant), - } -} - -func (s *SharingScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSharingScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSharingScope(input string) (*SharingScope, error) { - vals := map[string]SharingScope{ - "delegatedservices": SharingScopeDelegatedServices, - "tenant": SharingScopeTenant, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SharingScope(input) - return &out, nil -} - -type SyncMode string - -const ( - SyncModeAutomatic SyncMode = "Automatic" - SyncModeManual SyncMode = "Manual" -) - -func PossibleValuesForSyncMode() []string { - return []string{ - string(SyncModeAutomatic), - string(SyncModeManual), - } -} - -func (s *SyncMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSyncMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSyncMode(input string) (*SyncMode, error) { - vals := map[string]SyncMode{ - "automatic": SyncModeAutomatic, - "manual": SyncModeManual, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SyncMode(input) - return &out, nil -} - -type TransportProtocol string - -const ( - TransportProtocolAll TransportProtocol = "All" - TransportProtocolTcp TransportProtocol = "Tcp" - TransportProtocolUdp TransportProtocol = "Udp" -) - -func PossibleValuesForTransportProtocol() []string { - return []string{ - string(TransportProtocolAll), - string(TransportProtocolTcp), - string(TransportProtocolUdp), - } -} - -func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseTransportProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseTransportProtocol(input string) (*TransportProtocol, error) { - vals := map[string]TransportProtocol{ - "all": TransportProtocolAll, - "tcp": TransportProtocolTcp, - "udp": TransportProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := TransportProtocol(input) - return &out, nil -} - -type VirtualNetworkPrivateEndpointNetworkPolicies string - -const ( - VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" - VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" - VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" - VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" -) - -func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { - return []string{ - string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), - } -} - -func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { - vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ - "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, - "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, - "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, - "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPrivateEndpointNetworkPolicies(input) - return &out, nil -} - -type VirtualNetworkPrivateLinkServiceNetworkPolicies string - -const ( - VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" - VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" -) - -func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { - return []string{ - string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), - string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), - } -} - -func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { - vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ - "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, - "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/id_networkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/id_networkprofile.go deleted file mode 100644 index e2a16f7fdfa6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/id_networkprofile.go +++ /dev/null @@ -1,130 +0,0 @@ -package networkprofiles - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&NetworkProfileId{}) -} - -var _ resourceids.ResourceId = &NetworkProfileId{} - -// NetworkProfileId is a struct representing the Resource ID for a Network Profile -type NetworkProfileId struct { - SubscriptionId string - ResourceGroupName string - NetworkProfileName string -} - -// NewNetworkProfileID returns a new NetworkProfileId struct -func NewNetworkProfileID(subscriptionId string, resourceGroupName string, networkProfileName string) NetworkProfileId { - return NetworkProfileId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkProfileName: networkProfileName, - } -} - -// ParseNetworkProfileID parses 'input' into a NetworkProfileId -func ParseNetworkProfileID(input string) (*NetworkProfileId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkProfileId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkProfileId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseNetworkProfileIDInsensitively parses 'input' case-insensitively into a NetworkProfileId -// note: this method should only be used for API response data and not user input -func ParseNetworkProfileIDInsensitively(input string) (*NetworkProfileId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkProfileId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkProfileId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *NetworkProfileId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkProfileName, ok = input.Parsed["networkProfileName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkProfileName", input) - } - - return nil -} - -// ValidateNetworkProfileID checks that 'input' can be parsed as a Network Profile ID -func ValidateNetworkProfileID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseNetworkProfileID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Network Profile ID -func (id NetworkProfileId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkProfiles/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkProfileName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Network Profile ID -func (id NetworkProfileId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkProfiles", "networkProfiles", "networkProfiles"), - resourceids.UserSpecifiedSegment("networkProfileName", "networkProfileName"), - } -} - -// String returns a human-readable description of this Network Profile ID -func (id NetworkProfileId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Profile Name: %q", id.NetworkProfileName), - } - return fmt.Sprintf("Network Profile (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_createorupdate.go deleted file mode 100644 index 24ed5940195d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_createorupdate.go +++ /dev/null @@ -1,58 +0,0 @@ -package networkprofiles - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkProfile -} - -// CreateOrUpdate ... -func (c NetworkProfilesClient) CreateOrUpdate(ctx context.Context, id NetworkProfileId, input NetworkProfile) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkProfile - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_delete.go deleted file mode 100644 index c5564f89c854..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package networkprofiles - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c NetworkProfilesClient) Delete(ctx context.Context, id NetworkProfileId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c NetworkProfilesClient) DeleteThenPoll(ctx context.Context, id NetworkProfileId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_get.go deleted file mode 100644 index a0149c188f79..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_get.go +++ /dev/null @@ -1,83 +0,0 @@ -package networkprofiles - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkProfile -} - -type GetOperationOptions struct { - Expand *string -} - -func DefaultGetOperationOptions() GetOperationOptions { - return GetOperationOptions{} -} - -func (o GetOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o GetOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o GetOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Expand != nil { - out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) - } - return &out -} - -// Get ... -func (c NetworkProfilesClient) Get(ctx context.Context, id NetworkProfileId, options GetOperationOptions) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkProfile - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_list.go deleted file mode 100644 index e1bce2a2aa63..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package networkprofiles - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkProfile -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkProfile -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c NetworkProfilesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkProfiles", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkProfile `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c NetworkProfilesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, NetworkProfileOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkProfilesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate NetworkProfileOperationPredicate) (result ListCompleteResult, err error) { - items := make([]NetworkProfile, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_listall.go deleted file mode 100644 index c8509368cef8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_listall.go +++ /dev/null @@ -1,106 +0,0 @@ -package networkprofiles - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListAllOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkProfile -} - -type ListAllCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkProfile -} - -type ListAllCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListAllCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListAll ... -func (c NetworkProfilesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListAllCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkProfiles", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkProfile `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListAllComplete retrieves all the results into a single object -func (c NetworkProfilesClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { - return c.ListAllCompleteMatchingPredicate(ctx, id, NetworkProfileOperationPredicate{}) -} - -// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkProfilesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate NetworkProfileOperationPredicate) (result ListAllCompleteResult, err error) { - items := make([]NetworkProfile, 0) - - resp, err := c.ListAll(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListAllCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_updatetags.go deleted file mode 100644 index 757952def309..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_updatetags.go +++ /dev/null @@ -1,57 +0,0 @@ -package networkprofiles - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateTagsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkProfile -} - -// UpdateTags ... -func (c NetworkProfilesClient) UpdateTags(ctx context.Context, id NetworkProfileId, input TagsObject) (result UpdateTagsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkProfile - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddress.go deleted file mode 100644 index 0452928be632..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddress.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayBackendAddress struct { - Fqdn *string `json:"fqdn,omitempty"` - IPAddress *string `json:"ipAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddresspool.go deleted file mode 100644 index 03bee9ad4aeb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddresspool.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayBackendAddressPool struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddresspoolpropertiesformat.go deleted file mode 100644 index 7a1eea7761a8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddresspoolpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { - BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` - BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewayipconfiguration.go deleted file mode 100644 index 4e9c7a30701b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewayipconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewayipconfigurationpropertiesformat.go deleted file mode 100644 index b3a527e56787..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewayipconfigurationpropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayIPConfigurationPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *SubResource `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationsecuritygroup.go deleted file mode 100644 index a3c9e8c40261..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationsecuritygroup.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationsecuritygrouppropertiesformat.go deleted file mode 100644 index 962d80f7a836..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationsecuritygrouppropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroupPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_backendaddresspool.go deleted file mode 100644 index b7491b172edb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_backendaddresspool.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BackendAddressPool struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_backendaddresspoolpropertiesformat.go deleted file mode 100644 index d1e4d94bf274..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_backendaddresspoolpropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BackendAddressPoolPropertiesFormat struct { - BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` - DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` - InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` - LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` - LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` - Location *string `json:"location,omitempty"` - OutboundRule *SubResource `json:"outboundRule,omitempty"` - OutboundRules *[]SubResource `json:"outboundRules,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - SyncMode *SyncMode `json:"syncMode,omitempty"` - TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` - VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterface.go deleted file mode 100644 index 8319fdf7442e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterface.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerNetworkInterface struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ContainerNetworkInterfacePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceconfiguration.go deleted file mode 100644 index 1d0f89e15b46..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerNetworkInterfaceConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ContainerNetworkInterfaceConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceconfigurationpropertiesformat.go deleted file mode 100644 index 1e85f54153a1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceconfigurationpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerNetworkInterfaceConfigurationPropertiesFormat struct { - ContainerNetworkInterfaces *[]SubResource `json:"containerNetworkInterfaces,omitempty"` - IPConfigurations *[]IPConfigurationProfile `json:"ipConfigurations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceipconfiguration.go deleted file mode 100644 index e74b8c6d59e6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceipconfiguration.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerNetworkInterfaceIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ContainerNetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceipconfigurationpropertiesformat.go deleted file mode 100644 index 07db6c62c7a4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceipconfigurationpropertiesformat.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerNetworkInterfaceIPConfigurationPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfacepropertiesformat.go deleted file mode 100644 index 1c1efc89484e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfacepropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ContainerNetworkInterfacePropertiesFormat struct { - Container *SubResource `json:"container,omitempty"` - ContainerNetworkInterfaceConfiguration *ContainerNetworkInterfaceConfiguration `json:"containerNetworkInterfaceConfiguration,omitempty"` - IPConfigurations *[]ContainerNetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_customdnsconfigpropertiesformat.go deleted file mode 100644 index 4860aa0e2f30..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_customdnsconfigpropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CustomDnsConfigPropertiesFormat struct { - Fqdn *string `json:"fqdn,omitempty"` - IPAddresses *[]string `json:"ipAddresses,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ddossettings.go deleted file mode 100644 index c5dc78bcc06d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ddossettings.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosSettings struct { - DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` - ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_delegation.go deleted file mode 100644 index 0195b7d30c33..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_delegation.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Delegation struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlog.go deleted file mode 100644 index f60e3c562cbc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlogformatparameters.go deleted file mode 100644 index b92557232fff..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlogformatparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogFormatParameters struct { - Type *FlowLogFormatType `json:"type,omitempty"` - Version *int64 `json:"version,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlogpropertiesformat.go deleted file mode 100644 index adaaab9bc0c0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_frontendipconfiguration.go deleted file mode 100644 index db5d69389982..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_frontendipconfiguration.go +++ /dev/null @@ -1,17 +0,0 @@ -package networkprofiles - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FrontendIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_frontendipconfigurationpropertiesformat.go deleted file mode 100644 index 82aea1832995..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_frontendipconfigurationpropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FrontendIPConfigurationPropertiesFormat struct { - GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` - InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` - InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` - LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` - OutboundRules *[]SubResource `json:"outboundRules,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` - PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_gatewayloadbalancertunnelinterface.go deleted file mode 100644 index cb7a2956f0ec..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_gatewayloadbalancertunnelinterface.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GatewayLoadBalancerTunnelInterface struct { - Identifier *int64 `json:"identifier,omitempty"` - Port *int64 `json:"port,omitempty"` - Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` - Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_inboundnatrule.go deleted file mode 100644 index 6b089d6c65c5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_inboundnatrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundNatRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_inboundnatrulepropertiesformat.go deleted file mode 100644 index 0a3a07799325..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_inboundnatrulepropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundNatRulePropertiesFormat struct { - BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` - BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` - BackendPort *int64 `json:"backendPort,omitempty"` - EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` - EnableTcpReset *bool `json:"enableTcpReset,omitempty"` - FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` - FrontendPort *int64 `json:"frontendPort,omitempty"` - FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` - FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - Protocol *TransportProtocol `json:"protocol,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfiguration.go deleted file mode 100644 index 940760b2c92f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfiguration.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationprofile.go deleted file mode 100644 index 373777029b11..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationprofile.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfigurationProfile struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationprofilepropertiesformat.go deleted file mode 100644 index ad8fa03c4f4f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationprofilepropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfigurationProfilePropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationpropertiesformat.go deleted file mode 100644 index b90aa191e929..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationpropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfigurationPropertiesFormat struct { - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_iptag.go deleted file mode 100644 index 2e45e4540604..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_iptag.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPTag struct { - IPTagType *string `json:"ipTagType,omitempty"` - Tag *string `json:"tag,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_loadbalancerbackendaddress.go deleted file mode 100644 index 4484795804f4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_loadbalancerbackendaddress.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LoadBalancerBackendAddress struct { - Name *string `json:"name,omitempty"` - Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_loadbalancerbackendaddresspropertiesformat.go deleted file mode 100644 index 203a8fab13ec..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_loadbalancerbackendaddresspropertiesformat.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LoadBalancerBackendAddressPropertiesFormat struct { - AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` - IPAddress *string `json:"ipAddress,omitempty"` - InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` - LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` - NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` - Subnet *SubResource `json:"subnet,omitempty"` - VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgateway.go deleted file mode 100644 index 6197c6237637..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgateway.go +++ /dev/null @@ -1,20 +0,0 @@ -package networkprofiles - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGateway struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` - Sku *NatGatewaySku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgatewaypropertiesformat.go deleted file mode 100644 index 1c1b918fa254..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgatewaypropertiesformat.go +++ /dev/null @@ -1,13 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGatewayPropertiesFormat struct { - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` - PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - Subnets *[]SubResource `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgatewaysku.go deleted file mode 100644 index c3c91d290f2d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgatewaysku.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGatewaySku struct { - Name *NatGatewaySkuName `json:"name,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natruleportmapping.go deleted file mode 100644 index 033011c8a8b0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natruleportmapping.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatRulePortMapping struct { - BackendPort *int64 `json:"backendPort,omitempty"` - FrontendPort *int64 `json:"frontendPort,omitempty"` - InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterface.go deleted file mode 100644 index 68e610eeff9a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterface.go +++ /dev/null @@ -1,19 +0,0 @@ -package networkprofiles - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterface struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacednssettings.go deleted file mode 100644 index 8451913a32f8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacednssettings.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceDnsSettings struct { - AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` - DnsServers *[]string `json:"dnsServers,omitempty"` - InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` - InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` - InternalFqdn *string `json:"internalFqdn,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfiguration.go deleted file mode 100644 index 139342da9311..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go deleted file mode 100644 index 2456f55b9277..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { - Fqdns *[]string `json:"fqdns,omitempty"` - GroupId *string `json:"groupId,omitempty"` - RequiredMemberName *string `json:"requiredMemberName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfigurationpropertiesformat.go deleted file mode 100644 index 34110f0cec54..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfigurationpropertiesformat.go +++ /dev/null @@ -1,22 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfigurationPropertiesFormat struct { - ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` - ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` - GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` - LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` - LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` - Primary *bool `json:"primary,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` - VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacepropertiesformat.go deleted file mode 100644 index 8e4c0b29d333..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacepropertiesformat.go +++ /dev/null @@ -1,29 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfacePropertiesFormat struct { - AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` - AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` - DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` - DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` - DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` - EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` - EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` - HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` - IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` - MacAddress *string `json:"macAddress,omitempty"` - MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` - NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` - NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` - Primary *bool `json:"primary,omitempty"` - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` - PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` - VirtualMachine *SubResource `json:"virtualMachine,omitempty"` - VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` - WorkloadType *string `json:"workloadType,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacetapconfiguration.go deleted file mode 100644 index daf580431c6d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacetapconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceTapConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacetapconfigurationpropertiesformat.go deleted file mode 100644 index 8a7e2121888e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacetapconfigurationpropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceTapConfigurationPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkprofile.go deleted file mode 100644 index b11865bfdd65..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkprofile.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkProfile struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkProfilePropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkprofilepropertiesformat.go deleted file mode 100644 index cf66d34892c5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkprofilepropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkProfilePropertiesFormat struct { - ContainerNetworkInterfaceConfigurations *[]ContainerNetworkInterfaceConfiguration `json:"containerNetworkInterfaceConfigurations,omitempty"` - ContainerNetworkInterfaces *[]ContainerNetworkInterface `json:"containerNetworkInterfaces,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networksecuritygroup.go deleted file mode 100644 index b24d89a9bdfc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networksecuritygroup.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkSecurityGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networksecuritygrouppropertiesformat.go deleted file mode 100644 index 4a7e6641883f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networksecuritygrouppropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkSecurityGroupPropertiesFormat struct { - DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` - FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` - FlushConnection *bool `json:"flushConnection,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpoint.go deleted file mode 100644 index 5fcc4823c22b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpoint.go +++ /dev/null @@ -1,19 +0,0 @@ -package networkprofiles - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpoint struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointProperties `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointconnection.go deleted file mode 100644 index 5ef26aa759dd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointconnection.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointconnectionproperties.go deleted file mode 100644 index ae03a2042411..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointconnectionproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointConnectionProperties struct { - LinkIdentifier *string `json:"linkIdentifier,omitempty"` - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` - PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` - PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointipconfiguration.go deleted file mode 100644 index eb56313d0fe1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointipconfiguration.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointipconfigurationproperties.go deleted file mode 100644 index c252cc443f75..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointipconfigurationproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointIPConfigurationProperties struct { - GroupId *string `json:"groupId,omitempty"` - MemberName *string `json:"memberName,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointproperties.go deleted file mode 100644 index d63068a30ea8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointproperties.go +++ /dev/null @@ -1,16 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointProperties struct { - ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` - CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` - CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` - IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` - ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkservice.go deleted file mode 100644 index 13e1f313103c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkservice.go +++ /dev/null @@ -1,19 +0,0 @@ -package networkprofiles - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkService struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnection.go deleted file mode 100644 index f7c7b9815119..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnection.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnectionproperties.go deleted file mode 100644 index 36ba1ab614d5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnectionproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceConnectionProperties struct { - GroupIds *[]string `json:"groupIds,omitempty"` - PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` - PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RequestMessage *string `json:"requestMessage,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnectionstate.go deleted file mode 100644 index 6c4d7083fb95..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnectionstate.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceConnectionState struct { - ActionsRequired *string `json:"actionsRequired,omitempty"` - Description *string `json:"description,omitempty"` - Status *string `json:"status,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceipconfiguration.go deleted file mode 100644 index 556206b60403..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceipconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceipconfigurationproperties.go deleted file mode 100644 index 7cdb9347d513..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceipconfigurationproperties.go +++ /dev/null @@ -1,13 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceIPConfigurationProperties struct { - Primary *bool `json:"primary,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceproperties.go deleted file mode 100644 index bc001bea3c03..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddress.go deleted file mode 100644 index 040a0bb56e86..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddress.go +++ /dev/null @@ -1,22 +0,0 @@ -package networkprofiles - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddress struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` - Sku *PublicIPAddressSku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddressdnssettings.go deleted file mode 100644 index 3172667a9f86..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddressdnssettings.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressDnsSettings struct { - DomainNameLabel *string `json:"domainNameLabel,omitempty"` - DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` - Fqdn *string `json:"fqdn,omitempty"` - ReverseFqdn *string `json:"reverseFqdn,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddresspropertiesformat.go deleted file mode 100644 index 9e8c3ce846b8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddresspropertiesformat.go +++ /dev/null @@ -1,23 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressPropertiesFormat struct { - DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` - DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` - DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` - IPAddress *string `json:"ipAddress,omitempty"` - IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` - IPTags *[]IPTag `json:"ipTags,omitempty"` - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` - MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` - NatGateway *NatGateway `json:"natGateway,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` - PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` - PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddresssku.go deleted file mode 100644 index af7b63fcdc58..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddresssku.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressSku struct { - Name *PublicIPAddressSkuName `json:"name,omitempty"` - Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourcenavigationlink.go deleted file mode 100644 index d8706b6bc4da..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourcenavigationlink.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceNavigationLink struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourcenavigationlinkformat.go deleted file mode 100644 index b9a518cd2ae5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourcenavigationlinkformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceNavigationLinkFormat struct { - Link *string `json:"link,omitempty"` - LinkedResourceType *string `json:"linkedResourceType,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourceset.go deleted file mode 100644 index 028384b44672..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourceset.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceSet struct { - Subscriptions *[]string `json:"subscriptions,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_retentionpolicyparameters.go deleted file mode 100644 index a39da241fee2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_retentionpolicyparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RetentionPolicyParameters struct { - Days *int64 `json:"days,omitempty"` - Enabled *bool `json:"enabled,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_route.go deleted file mode 100644 index 01d1b1aee3be..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_route.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Route struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *RoutePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routepropertiesformat.go deleted file mode 100644 index a0fba15da362..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routepropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RoutePropertiesFormat struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` - NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` - NextHopType RouteNextHopType `json:"nextHopType"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routetable.go deleted file mode 100644 index e98510e4a998..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routetable.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteTable struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routetablepropertiesformat.go deleted file mode 100644 index d3d001ea19c9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routetablepropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteTablePropertiesFormat struct { - DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - Routes *[]Route `json:"routes,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_securityrule.go deleted file mode 100644 index d3a303b69a84..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_securityrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_securityrulepropertiesformat.go deleted file mode 100644 index 5a6f05507602..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_securityrulepropertiesformat.go +++ /dev/null @@ -1,23 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRulePropertiesFormat struct { - Access SecurityRuleAccess `json:"access"` - Description *string `json:"description,omitempty"` - DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` - DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` - DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` - DestinationPortRange *string `json:"destinationPortRange,omitempty"` - DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` - Direction SecurityRuleDirection `json:"direction"` - Priority int64 `json:"priority"` - Protocol SecurityRuleProtocol `json:"protocol"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` - SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` - SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` - SourcePortRange *string `json:"sourcePortRange,omitempty"` - SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceassociationlink.go deleted file mode 100644 index 185baa31acbe..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceassociationlink.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceAssociationLink struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceassociationlinkpropertiesformat.go deleted file mode 100644 index a8ddcda5b291..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceassociationlinkpropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceAssociationLinkPropertiesFormat struct { - AllowDelete *bool `json:"allowDelete,omitempty"` - Link *string `json:"link,omitempty"` - LinkedResourceType *string `json:"linkedResourceType,omitempty"` - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_servicedelegationpropertiesformat.go deleted file mode 100644 index bbe89cb1074b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_servicedelegationpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceDelegationPropertiesFormat struct { - Actions *[]string `json:"actions,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ServiceName *string `json:"serviceName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicy.go deleted file mode 100644 index fc7682e49f7e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicy.go +++ /dev/null @@ -1,15 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicy struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicydefinition.go deleted file mode 100644 index 49d3abcfdf16..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicydefinition.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicyDefinition struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicydefinitionpropertiesformat.go deleted file mode 100644 index 59c9a98a4df4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicydefinitionpropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicyDefinitionPropertiesFormat struct { - Description *string `json:"description,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` - ServiceResources *[]string `json:"serviceResources,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicypropertiesformat.go deleted file mode 100644 index c41bd5c801ba..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicypropertiesformat.go +++ /dev/null @@ -1,13 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicyPropertiesFormat struct { - ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - ServiceAlias *string `json:"serviceAlias,omitempty"` - ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpropertiesformat.go deleted file mode 100644 index e791f2598de3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subnet.go deleted file mode 100644 index 92e0d90839e9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subnet.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Subnet struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SubnetPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subnetpropertiesformat.go deleted file mode 100644 index 1e4d43ddb3d6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subnetpropertiesformat.go +++ /dev/null @@ -1,28 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubnetPropertiesFormat struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` - ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` - DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` - Delegations *[]Delegation `json:"delegations,omitempty"` - IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` - IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` - IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` - NatGateway *SubResource `json:"natGateway,omitempty"` - NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` - PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` - PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` - PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Purpose *string `json:"purpose,omitempty"` - ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` - RouteTable *RouteTable `json:"routeTable,omitempty"` - ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` - ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` - ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` - SharingScope *SharingScope `json:"sharingScope,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subresource.go deleted file mode 100644 index e7710003aae7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_tagsobject.go deleted file mode 100644 index 4b300699106a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_trafficanalyticsconfigurationproperties.go deleted file mode 100644 index 43e8bd0f29a9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_trafficanalyticsconfigurationproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TrafficAnalyticsConfigurationProperties struct { - Enabled *bool `json:"enabled,omitempty"` - TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` - WorkspaceId *string `json:"workspaceId,omitempty"` - WorkspaceRegion *string `json:"workspaceRegion,omitempty"` - WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_trafficanalyticsproperties.go deleted file mode 100644 index 67da0952e734..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_trafficanalyticsproperties.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TrafficAnalyticsProperties struct { - NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_virtualnetworktap.go deleted file mode 100644 index 21bb960f5719..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_virtualnetworktap.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkTap struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_virtualnetworktappropertiesformat.go deleted file mode 100644 index 3e8521e5beb1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_virtualnetworktappropertiesformat.go +++ /dev/null @@ -1,13 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkTapPropertiesFormat struct { - DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` - DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` - DestinationPort *int64 `json:"destinationPort,omitempty"` - NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/predicates.go deleted file mode 100644 index c8b72ff46b29..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/predicates.go +++ /dev/null @@ -1,37 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkProfileOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p NetworkProfileOperationPredicate) Matches(input NetworkProfile) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/version.go deleted file mode 100644 index 69bb459bdeeb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkprofiles/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/README.md deleted file mode 100644 index 9997da971d24..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/README.md +++ /dev/null @@ -1,155 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances` Documentation - -The `networkvirtualappliances` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances" -``` - - -### Client Initialization - -```go -client := networkvirtualappliances.NewNetworkVirtualAppliancesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkVirtualAppliancesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") - -payload := networkvirtualappliances.NetworkVirtualAppliance{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkVirtualAppliancesClient.Delete` - -```go -ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkVirtualAppliancesClient.Get` - -```go -ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") - -read, err := client.Get(ctx, id, networkvirtualappliances.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkVirtualAppliancesClient.InboundSecurityRuleCreateOrUpdate` - -```go -ctx := context.TODO() -id := networkvirtualappliances.NewInboundSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "inboundSecurityRuleName") - -payload := networkvirtualappliances.InboundSecurityRule{ - // ... -} - - -if err := client.InboundSecurityRuleCreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkVirtualAppliancesClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkVirtualAppliancesClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkVirtualAppliancesClient.Restart` - -```go -ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") - -payload := networkvirtualappliances.NetworkVirtualApplianceInstanceIds{ - // ... -} - - -if err := client.RestartThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkVirtualAppliancesClient.UpdateTags` - -```go -ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") - -payload := networkvirtualappliances.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/client.go deleted file mode 100644 index ab8d70fafa5e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package networkvirtualappliances - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkVirtualAppliancesClient struct { - Client *resourcemanager.Client -} - -func NewNetworkVirtualAppliancesClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkVirtualAppliancesClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "networkvirtualappliances", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating NetworkVirtualAppliancesClient: %+v", err) - } - - return &NetworkVirtualAppliancesClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/constants.go deleted file mode 100644 index a36e7b6985db..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/constants.go +++ /dev/null @@ -1,224 +0,0 @@ -package networkvirtualappliances - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundSecurityRuleType string - -const ( - InboundSecurityRuleTypeAutoExpire InboundSecurityRuleType = "AutoExpire" - InboundSecurityRuleTypePermanent InboundSecurityRuleType = "Permanent" -) - -func PossibleValuesForInboundSecurityRuleType() []string { - return []string{ - string(InboundSecurityRuleTypeAutoExpire), - string(InboundSecurityRuleTypePermanent), - } -} - -func (s *InboundSecurityRuleType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseInboundSecurityRuleType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseInboundSecurityRuleType(input string) (*InboundSecurityRuleType, error) { - vals := map[string]InboundSecurityRuleType{ - "autoexpire": InboundSecurityRuleTypeAutoExpire, - "permanent": InboundSecurityRuleTypePermanent, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := InboundSecurityRuleType(input) - return &out, nil -} - -type InboundSecurityRulesProtocol string - -const ( - InboundSecurityRulesProtocolTCP InboundSecurityRulesProtocol = "TCP" - InboundSecurityRulesProtocolUDP InboundSecurityRulesProtocol = "UDP" -) - -func PossibleValuesForInboundSecurityRulesProtocol() []string { - return []string{ - string(InboundSecurityRulesProtocolTCP), - string(InboundSecurityRulesProtocolUDP), - } -} - -func (s *InboundSecurityRulesProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseInboundSecurityRulesProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseInboundSecurityRulesProtocol(input string) (*InboundSecurityRulesProtocol, error) { - vals := map[string]InboundSecurityRulesProtocol{ - "tcp": InboundSecurityRulesProtocolTCP, - "udp": InboundSecurityRulesProtocolUDP, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := InboundSecurityRulesProtocol(input) - return &out, nil -} - -type NicTypeInRequest string - -const ( - NicTypeInRequestPrivateNic NicTypeInRequest = "PrivateNic" - NicTypeInRequestPublicNic NicTypeInRequest = "PublicNic" -) - -func PossibleValuesForNicTypeInRequest() []string { - return []string{ - string(NicTypeInRequestPrivateNic), - string(NicTypeInRequestPublicNic), - } -} - -func (s *NicTypeInRequest) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNicTypeInRequest(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNicTypeInRequest(input string) (*NicTypeInRequest, error) { - vals := map[string]NicTypeInRequest{ - "privatenic": NicTypeInRequestPrivateNic, - "publicnic": NicTypeInRequestPublicNic, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NicTypeInRequest(input) - return &out, nil -} - -type NicTypeInResponse string - -const ( - NicTypeInResponseAdditionalNic NicTypeInResponse = "AdditionalNic" - NicTypeInResponsePrivateNic NicTypeInResponse = "PrivateNic" - NicTypeInResponsePublicNic NicTypeInResponse = "PublicNic" -) - -func PossibleValuesForNicTypeInResponse() []string { - return []string{ - string(NicTypeInResponseAdditionalNic), - string(NicTypeInResponsePrivateNic), - string(NicTypeInResponsePublicNic), - } -} - -func (s *NicTypeInResponse) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNicTypeInResponse(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNicTypeInResponse(input string) (*NicTypeInResponse, error) { - vals := map[string]NicTypeInResponse{ - "additionalnic": NicTypeInResponseAdditionalNic, - "privatenic": NicTypeInResponsePrivateNic, - "publicnic": NicTypeInResponsePublicNic, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NicTypeInResponse(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_inboundsecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_inboundsecurityrule.go deleted file mode 100644 index 4da7242be6d4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_inboundsecurityrule.go +++ /dev/null @@ -1,139 +0,0 @@ -package networkvirtualappliances - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&InboundSecurityRuleId{}) -} - -var _ resourceids.ResourceId = &InboundSecurityRuleId{} - -// InboundSecurityRuleId is a struct representing the Resource ID for a Inbound Security Rule -type InboundSecurityRuleId struct { - SubscriptionId string - ResourceGroupName string - NetworkVirtualApplianceName string - InboundSecurityRuleName string -} - -// NewInboundSecurityRuleID returns a new InboundSecurityRuleId struct -func NewInboundSecurityRuleID(subscriptionId string, resourceGroupName string, networkVirtualApplianceName string, inboundSecurityRuleName string) InboundSecurityRuleId { - return InboundSecurityRuleId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkVirtualApplianceName: networkVirtualApplianceName, - InboundSecurityRuleName: inboundSecurityRuleName, - } -} - -// ParseInboundSecurityRuleID parses 'input' into a InboundSecurityRuleId -func ParseInboundSecurityRuleID(input string) (*InboundSecurityRuleId, error) { - parser := resourceids.NewParserFromResourceIdType(&InboundSecurityRuleId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := InboundSecurityRuleId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseInboundSecurityRuleIDInsensitively parses 'input' case-insensitively into a InboundSecurityRuleId -// note: this method should only be used for API response data and not user input -func ParseInboundSecurityRuleIDInsensitively(input string) (*InboundSecurityRuleId, error) { - parser := resourceids.NewParserFromResourceIdType(&InboundSecurityRuleId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := InboundSecurityRuleId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *InboundSecurityRuleId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkVirtualApplianceName, ok = input.Parsed["networkVirtualApplianceName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkVirtualApplianceName", input) - } - - if id.InboundSecurityRuleName, ok = input.Parsed["inboundSecurityRuleName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "inboundSecurityRuleName", input) - } - - return nil -} - -// ValidateInboundSecurityRuleID checks that 'input' can be parsed as a Inbound Security Rule ID -func ValidateInboundSecurityRuleID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseInboundSecurityRuleID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Inbound Security Rule ID -func (id InboundSecurityRuleId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkVirtualAppliances/%s/inboundSecurityRules/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkVirtualApplianceName, id.InboundSecurityRuleName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Inbound Security Rule ID -func (id InboundSecurityRuleId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), - resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), - resourceids.StaticSegment("staticInboundSecurityRules", "inboundSecurityRules", "inboundSecurityRules"), - resourceids.UserSpecifiedSegment("inboundSecurityRuleName", "inboundSecurityRuleName"), - } -} - -// String returns a human-readable description of this Inbound Security Rule ID -func (id InboundSecurityRuleId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Virtual Appliance Name: %q", id.NetworkVirtualApplianceName), - fmt.Sprintf("Inbound Security Rule Name: %q", id.InboundSecurityRuleName), - } - return fmt.Sprintf("Inbound Security Rule (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_networkvirtualappliance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_networkvirtualappliance.go deleted file mode 100644 index a412e45cbba5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_networkvirtualappliance.go +++ /dev/null @@ -1,130 +0,0 @@ -package networkvirtualappliances - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&NetworkVirtualApplianceId{}) -} - -var _ resourceids.ResourceId = &NetworkVirtualApplianceId{} - -// NetworkVirtualApplianceId is a struct representing the Resource ID for a Network Virtual Appliance -type NetworkVirtualApplianceId struct { - SubscriptionId string - ResourceGroupName string - NetworkVirtualApplianceName string -} - -// NewNetworkVirtualApplianceID returns a new NetworkVirtualApplianceId struct -func NewNetworkVirtualApplianceID(subscriptionId string, resourceGroupName string, networkVirtualApplianceName string) NetworkVirtualApplianceId { - return NetworkVirtualApplianceId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkVirtualApplianceName: networkVirtualApplianceName, - } -} - -// ParseNetworkVirtualApplianceID parses 'input' into a NetworkVirtualApplianceId -func ParseNetworkVirtualApplianceID(input string) (*NetworkVirtualApplianceId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkVirtualApplianceId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkVirtualApplianceId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseNetworkVirtualApplianceIDInsensitively parses 'input' case-insensitively into a NetworkVirtualApplianceId -// note: this method should only be used for API response data and not user input -func ParseNetworkVirtualApplianceIDInsensitively(input string) (*NetworkVirtualApplianceId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkVirtualApplianceId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkVirtualApplianceId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *NetworkVirtualApplianceId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkVirtualApplianceName, ok = input.Parsed["networkVirtualApplianceName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkVirtualApplianceName", input) - } - - return nil -} - -// ValidateNetworkVirtualApplianceID checks that 'input' can be parsed as a Network Virtual Appliance ID -func ValidateNetworkVirtualApplianceID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseNetworkVirtualApplianceID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Network Virtual Appliance ID -func (id NetworkVirtualApplianceId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkVirtualAppliances/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkVirtualApplianceName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Network Virtual Appliance ID -func (id NetworkVirtualApplianceId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), - resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), - } -} - -// String returns a human-readable description of this Network Virtual Appliance ID -func (id NetworkVirtualApplianceId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Virtual Appliance Name: %q", id.NetworkVirtualApplianceName), - } - return fmt.Sprintf("Network Virtual Appliance (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_createorupdate.go deleted file mode 100644 index aa9b339951df..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package networkvirtualappliances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *NetworkVirtualAppliance -} - -// CreateOrUpdate ... -func (c NetworkVirtualAppliancesClient) CreateOrUpdate(ctx context.Context, id NetworkVirtualApplianceId, input NetworkVirtualAppliance) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c NetworkVirtualAppliancesClient) CreateOrUpdateThenPoll(ctx context.Context, id NetworkVirtualApplianceId, input NetworkVirtualAppliance) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_delete.go deleted file mode 100644 index 9eb9b6f13ac9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package networkvirtualappliances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c NetworkVirtualAppliancesClient) Delete(ctx context.Context, id NetworkVirtualApplianceId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c NetworkVirtualAppliancesClient) DeleteThenPoll(ctx context.Context, id NetworkVirtualApplianceId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_get.go deleted file mode 100644 index 2310883a4481..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_get.go +++ /dev/null @@ -1,83 +0,0 @@ -package networkvirtualappliances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkVirtualAppliance -} - -type GetOperationOptions struct { - Expand *string -} - -func DefaultGetOperationOptions() GetOperationOptions { - return GetOperationOptions{} -} - -func (o GetOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o GetOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o GetOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Expand != nil { - out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) - } - return &out -} - -// Get ... -func (c NetworkVirtualAppliancesClient) Get(ctx context.Context, id NetworkVirtualApplianceId, options GetOperationOptions) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkVirtualAppliance - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_inboundsecurityrulecreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_inboundsecurityrulecreateorupdate.go deleted file mode 100644 index 6c268a71480d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_inboundsecurityrulecreateorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package networkvirtualappliances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundSecurityRuleCreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *InboundSecurityRule -} - -// InboundSecurityRuleCreateOrUpdate ... -func (c NetworkVirtualAppliancesClient) InboundSecurityRuleCreateOrUpdate(ctx context.Context, id InboundSecurityRuleId, input InboundSecurityRule) (result InboundSecurityRuleCreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// InboundSecurityRuleCreateOrUpdateThenPoll performs InboundSecurityRuleCreateOrUpdate then polls until it's completed -func (c NetworkVirtualAppliancesClient) InboundSecurityRuleCreateOrUpdateThenPoll(ctx context.Context, id InboundSecurityRuleId, input InboundSecurityRule) error { - result, err := c.InboundSecurityRuleCreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing InboundSecurityRuleCreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after InboundSecurityRuleCreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_list.go deleted file mode 100644 index 35259c60e6a0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package networkvirtualappliances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkVirtualAppliance -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkVirtualAppliance -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c NetworkVirtualAppliancesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkVirtualAppliances", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkVirtualAppliance `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c NetworkVirtualAppliancesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, NetworkVirtualApplianceOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkVirtualAppliancesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate NetworkVirtualApplianceOperationPredicate) (result ListCompleteResult, err error) { - items := make([]NetworkVirtualAppliance, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_listbyresourcegroup.go deleted file mode 100644 index fe63e8307c6b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_listbyresourcegroup.go +++ /dev/null @@ -1,106 +0,0 @@ -package networkvirtualappliances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListByResourceGroupOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkVirtualAppliance -} - -type ListByResourceGroupCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkVirtualAppliance -} - -type ListByResourceGroupCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListByResourceGroup ... -func (c NetworkVirtualAppliancesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListByResourceGroupCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkVirtualAppliances", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkVirtualAppliance `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListByResourceGroupComplete retrieves all the results into a single object -func (c NetworkVirtualAppliancesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { - return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, NetworkVirtualApplianceOperationPredicate{}) -} - -// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkVirtualAppliancesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate NetworkVirtualApplianceOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { - items := make([]NetworkVirtualAppliance, 0) - - resp, err := c.ListByResourceGroup(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListByResourceGroupCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_restart.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_restart.go deleted file mode 100644 index 3a260c048e5f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_restart.go +++ /dev/null @@ -1,75 +0,0 @@ -package networkvirtualappliances - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RestartOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *NetworkVirtualApplianceInstanceIds -} - -// Restart ... -func (c NetworkVirtualAppliancesClient) Restart(ctx context.Context, id NetworkVirtualApplianceId, input NetworkVirtualApplianceInstanceIds) (result RestartOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/restart", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// RestartThenPoll performs Restart then polls until it's completed -func (c NetworkVirtualAppliancesClient) RestartThenPoll(ctx context.Context, id NetworkVirtualApplianceId, input NetworkVirtualApplianceInstanceIds) error { - result, err := c.Restart(ctx, id, input) - if err != nil { - return fmt.Errorf("performing Restart: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Restart: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_updatetags.go deleted file mode 100644 index a8a8391f4a49..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_updatetags.go +++ /dev/null @@ -1,57 +0,0 @@ -package networkvirtualappliances - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateTagsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkVirtualAppliance -} - -// UpdateTags ... -func (c NetworkVirtualAppliancesClient) UpdateTags(ctx context.Context, id NetworkVirtualApplianceId, input TagsObject) (result UpdateTagsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkVirtualAppliance - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_delegationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_delegationproperties.go deleted file mode 100644 index cf2170e1c38c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_delegationproperties.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DelegationProperties struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ServiceName *string `json:"serviceName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityrule.go deleted file mode 100644 index f921a8c65340..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundSecurityRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *InboundSecurityRuleProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityruleproperties.go deleted file mode 100644 index c4dafbd39cca..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityruleproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundSecurityRuleProperties struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RuleType *InboundSecurityRuleType `json:"ruleType,omitempty"` - Rules *[]InboundSecurityRules `json:"rules,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityrules.go deleted file mode 100644 index c8c2d5651768..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityrules.go +++ /dev/null @@ -1,13 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundSecurityRules struct { - AppliesOn *[]string `json:"appliesOn,omitempty"` - DestinationPortRange *int64 `json:"destinationPortRange,omitempty"` - DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` - Name *string `json:"name,omitempty"` - Protocol *InboundSecurityRulesProtocol `json:"protocol,omitempty"` - SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_internetingresspublicipsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_internetingresspublicipsproperties.go deleted file mode 100644 index 692265ca5f92..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_internetingresspublicipsproperties.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InternetIngressPublicIPsProperties struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliance.go deleted file mode 100644 index 03612c989df6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliance.go +++ /dev/null @@ -1,19 +0,0 @@ -package networkvirtualappliances - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkVirtualAppliance struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkVirtualAppliancePropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualapplianceinstanceids.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualapplianceinstanceids.go deleted file mode 100644 index 3d9d42b16943..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualapplianceinstanceids.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkVirtualApplianceInstanceIds struct { - InstanceIds *[]string `json:"instanceIds,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformat.go deleted file mode 100644 index 17e239bf3543..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformat.go +++ /dev/null @@ -1,26 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkVirtualAppliancePropertiesFormat struct { - AdditionalNics *[]VirtualApplianceAdditionalNicProperties `json:"additionalNics,omitempty"` - AddressPrefix *string `json:"addressPrefix,omitempty"` - BootStrapConfigurationBlobs *[]string `json:"bootStrapConfigurationBlobs,omitempty"` - CloudInitConfiguration *string `json:"cloudInitConfiguration,omitempty"` - CloudInitConfigurationBlobs *[]string `json:"cloudInitConfigurationBlobs,omitempty"` - Delegation *DelegationProperties `json:"delegation,omitempty"` - DeploymentType *string `json:"deploymentType,omitempty"` - InboundSecurityRules *[]SubResource `json:"inboundSecurityRules,omitempty"` - InternetIngressPublicIPs *[]InternetIngressPublicIPsProperties `json:"internetIngressPublicIps,omitempty"` - NetworkProfile *NetworkVirtualAppliancePropertiesFormatNetworkProfile `json:"networkProfile,omitempty"` - NvaSku *VirtualApplianceSkuProperties `json:"nvaSku,omitempty"` - PartnerManagedResource *PartnerManagedResourceProperties `json:"partnerManagedResource,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - SshPublicKey *string `json:"sshPublicKey,omitempty"` - VirtualApplianceAsn *int64 `json:"virtualApplianceAsn,omitempty"` - VirtualApplianceConnections *[]SubResource `json:"virtualApplianceConnections,omitempty"` - VirtualApplianceNics *[]VirtualApplianceNicProperties `json:"virtualApplianceNics,omitempty"` - VirtualApplianceSites *[]SubResource `json:"virtualApplianceSites,omitempty"` - VirtualHub *SubResource `json:"virtualHub,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformatnetworkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformatnetworkprofile.go deleted file mode 100644 index 0d4f966f36c7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformatnetworkprofile.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkVirtualAppliancePropertiesFormatNetworkProfile struct { - NetworkInterfaceConfigurations *[]VirtualApplianceNetworkInterfaceConfiguration `json:"networkInterfaceConfigurations,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_partnermanagedresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_partnermanagedresourceproperties.go deleted file mode 100644 index e89793be377c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_partnermanagedresourceproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PartnerManagedResourceProperties struct { - Id *string `json:"id,omitempty"` - InternalLoadBalancerId *string `json:"internalLoadBalancerId,omitempty"` - StandardLoadBalancerId *string `json:"standardLoadBalancerId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_subresource.go deleted file mode 100644 index 8df29cf10318..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_tagsobject.go deleted file mode 100644 index 3ad1ec8468c7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceadditionalnicproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceadditionalnicproperties.go deleted file mode 100644 index 7eb59c309c13..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceadditionalnicproperties.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualApplianceAdditionalNicProperties struct { - HasPublicIP *bool `json:"hasPublicIp,omitempty"` - Name *string `json:"name,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceipconfiguration.go deleted file mode 100644 index 1ebade78697e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceipconfiguration.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualApplianceIPConfiguration struct { - Name *string `json:"name,omitempty"` - Properties *VirtualApplianceIPConfigurationProperties `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceipconfigurationproperties.go deleted file mode 100644 index 830f6a29d9a1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceipconfigurationproperties.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualApplianceIPConfigurationProperties struct { - Primary *bool `json:"primary,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfiguration.go deleted file mode 100644 index de88f83ae8d5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfiguration.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualApplianceNetworkInterfaceConfiguration struct { - Properties *VirtualApplianceNetworkInterfaceConfigurationProperties `json:"properties,omitempty"` - Type *NicTypeInRequest `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfigurationproperties.go deleted file mode 100644 index 436f144e6fc2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfigurationproperties.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualApplianceNetworkInterfaceConfigurationProperties struct { - IPConfigurations *[]VirtualApplianceIPConfiguration `json:"ipConfigurations,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenicproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenicproperties.go deleted file mode 100644 index 0823febcef5c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenicproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualApplianceNicProperties struct { - InstanceName *string `json:"instanceName,omitempty"` - Name *string `json:"name,omitempty"` - NicType *NicTypeInResponse `json:"nicType,omitempty"` - PrivateIPAddress *string `json:"privateIpAddress,omitempty"` - PublicIPAddress *string `json:"publicIpAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceskuproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceskuproperties.go deleted file mode 100644 index b194523806f7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceskuproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualApplianceSkuProperties struct { - BundledScaleUnit *string `json:"bundledScaleUnit,omitempty"` - MarketPlaceVersion *string `json:"marketPlaceVersion,omitempty"` - Vendor *string `json:"vendor,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/predicates.go deleted file mode 100644 index 676b2af6c25c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/predicates.go +++ /dev/null @@ -1,37 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkVirtualApplianceOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p NetworkVirtualApplianceOperationPredicate) Matches(input NetworkVirtualAppliance) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/version.go deleted file mode 100644 index a69c27b0d17d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkvirtualappliances/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/README.md deleted file mode 100644 index d455e8793628..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/README.md +++ /dev/null @@ -1,331 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers` Documentation - -The `networkwatchers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers" -``` - - -### Client Initialization - -```go -client := networkwatchers.NewNetworkWatchersClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkWatchersClient.CheckConnectivity` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.ConnectivityParameters{ - // ... -} - - -if err := client.CheckConnectivityThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.NetworkWatcher{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkWatchersClient.Delete` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.Get` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkWatchersClient.GetAzureReachabilityReport` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.AzureReachabilityReportParameters{ - // ... -} - - -if err := client.GetAzureReachabilityReportThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.GetFlowLogStatus` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.FlowLogStatusParameters{ - // ... -} - - -if err := client.GetFlowLogStatusThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.GetNetworkConfigurationDiagnostic` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.NetworkConfigurationDiagnosticParameters{ - // ... -} - - -if err := client.GetNetworkConfigurationDiagnosticThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.GetNextHop` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.NextHopParameters{ - // ... -} - - -if err := client.GetNextHopThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.GetTopology` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.TopologyParameters{ - // ... -} - - -read, err := client.GetTopology(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkWatchersClient.GetTroubleshooting` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.TroubleshootingParameters{ - // ... -} - - -if err := client.GetTroubleshootingThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.GetTroubleshootingResult` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.QueryTroubleshootingParameters{ - // ... -} - - -if err := client.GetTroubleshootingResultThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.GetVMSecurityRules` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.SecurityGroupViewParameters{ - // ... -} - - -if err := client.GetVMSecurityRulesThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -read, err := client.List(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkWatchersClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -read, err := client.ListAll(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkWatchersClient.ListAvailableProviders` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.AvailableProvidersListParameters{ - // ... -} - - -if err := client.ListAvailableProvidersThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.SetFlowLogConfiguration` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.FlowLogInformation{ - // ... -} - - -if err := client.SetFlowLogConfigurationThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.UpdateTags` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkWatchersClient.VerifyIPFlow` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.VerificationIPFlowParameters{ - // ... -} - - -if err := client.VerifyIPFlowThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/client.go deleted file mode 100644 index b544d19c2068..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package networkwatchers - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkWatchersClient struct { - Client *resourcemanager.Client -} - -func NewNetworkWatchersClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkWatchersClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "networkwatchers", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating NetworkWatchersClient: %+v", err) - } - - return &NetworkWatchersClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/constants.go deleted file mode 100644 index 2e400cad0f7c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/constants.go +++ /dev/null @@ -1,855 +0,0 @@ -package networkwatchers - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Access string - -const ( - AccessAllow Access = "Allow" - AccessDeny Access = "Deny" -) - -func PossibleValuesForAccess() []string { - return []string{ - string(AccessAllow), - string(AccessDeny), - } -} - -func (s *Access) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAccess(input string) (*Access, error) { - vals := map[string]Access{ - "allow": AccessAllow, - "deny": AccessDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := Access(input) - return &out, nil -} - -type AssociationType string - -const ( - AssociationTypeAssociated AssociationType = "Associated" - AssociationTypeContains AssociationType = "Contains" -) - -func PossibleValuesForAssociationType() []string { - return []string{ - string(AssociationTypeAssociated), - string(AssociationTypeContains), - } -} - -func (s *AssociationType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAssociationType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAssociationType(input string) (*AssociationType, error) { - vals := map[string]AssociationType{ - "associated": AssociationTypeAssociated, - "contains": AssociationTypeContains, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AssociationType(input) - return &out, nil -} - -type ConnectionStatus string - -const ( - ConnectionStatusConnected ConnectionStatus = "Connected" - ConnectionStatusDegraded ConnectionStatus = "Degraded" - ConnectionStatusDisconnected ConnectionStatus = "Disconnected" - ConnectionStatusUnknown ConnectionStatus = "Unknown" -) - -func PossibleValuesForConnectionStatus() []string { - return []string{ - string(ConnectionStatusConnected), - string(ConnectionStatusDegraded), - string(ConnectionStatusDisconnected), - string(ConnectionStatusUnknown), - } -} - -func (s *ConnectionStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseConnectionStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseConnectionStatus(input string) (*ConnectionStatus, error) { - vals := map[string]ConnectionStatus{ - "connected": ConnectionStatusConnected, - "degraded": ConnectionStatusDegraded, - "disconnected": ConnectionStatusDisconnected, - "unknown": ConnectionStatusUnknown, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ConnectionStatus(input) - return &out, nil -} - -type Direction string - -const ( - DirectionInbound Direction = "Inbound" - DirectionOutbound Direction = "Outbound" -) - -func PossibleValuesForDirection() []string { - return []string{ - string(DirectionInbound), - string(DirectionOutbound), - } -} - -func (s *Direction) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDirection(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDirection(input string) (*Direction, error) { - vals := map[string]Direction{ - "inbound": DirectionInbound, - "outbound": DirectionOutbound, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := Direction(input) - return &out, nil -} - -type EffectiveSecurityRuleProtocol string - -const ( - EffectiveSecurityRuleProtocolAll EffectiveSecurityRuleProtocol = "All" - EffectiveSecurityRuleProtocolTcp EffectiveSecurityRuleProtocol = "Tcp" - EffectiveSecurityRuleProtocolUdp EffectiveSecurityRuleProtocol = "Udp" -) - -func PossibleValuesForEffectiveSecurityRuleProtocol() []string { - return []string{ - string(EffectiveSecurityRuleProtocolAll), - string(EffectiveSecurityRuleProtocolTcp), - string(EffectiveSecurityRuleProtocolUdp), - } -} - -func (s *EffectiveSecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseEffectiveSecurityRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseEffectiveSecurityRuleProtocol(input string) (*EffectiveSecurityRuleProtocol, error) { - vals := map[string]EffectiveSecurityRuleProtocol{ - "all": EffectiveSecurityRuleProtocolAll, - "tcp": EffectiveSecurityRuleProtocolTcp, - "udp": EffectiveSecurityRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := EffectiveSecurityRuleProtocol(input) - return &out, nil -} - -type FlowLogFormatType string - -const ( - FlowLogFormatTypeJSON FlowLogFormatType = "JSON" -) - -func PossibleValuesForFlowLogFormatType() []string { - return []string{ - string(FlowLogFormatTypeJSON), - } -} - -func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseFlowLogFormatType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { - vals := map[string]FlowLogFormatType{ - "json": FlowLogFormatTypeJSON, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := FlowLogFormatType(input) - return &out, nil -} - -type HTTPMethod string - -const ( - HTTPMethodGet HTTPMethod = "Get" -) - -func PossibleValuesForHTTPMethod() []string { - return []string{ - string(HTTPMethodGet), - } -} - -func (s *HTTPMethod) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseHTTPMethod(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseHTTPMethod(input string) (*HTTPMethod, error) { - vals := map[string]HTTPMethod{ - "get": HTTPMethodGet, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := HTTPMethod(input) - return &out, nil -} - -type IPFlowProtocol string - -const ( - IPFlowProtocolTCP IPFlowProtocol = "TCP" - IPFlowProtocolUDP IPFlowProtocol = "UDP" -) - -func PossibleValuesForIPFlowProtocol() []string { - return []string{ - string(IPFlowProtocolTCP), - string(IPFlowProtocolUDP), - } -} - -func (s *IPFlowProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPFlowProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPFlowProtocol(input string) (*IPFlowProtocol, error) { - vals := map[string]IPFlowProtocol{ - "tcp": IPFlowProtocolTCP, - "udp": IPFlowProtocolUDP, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPFlowProtocol(input) - return &out, nil -} - -type IPVersion string - -const ( - IPVersionIPvFour IPVersion = "IPv4" - IPVersionIPvSix IPVersion = "IPv6" -) - -func PossibleValuesForIPVersion() []string { - return []string{ - string(IPVersionIPvFour), - string(IPVersionIPvSix), - } -} - -func (s *IPVersion) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPVersion(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPVersion(input string) (*IPVersion, error) { - vals := map[string]IPVersion{ - "ipv4": IPVersionIPvFour, - "ipv6": IPVersionIPvSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPVersion(input) - return &out, nil -} - -type IssueType string - -const ( - IssueTypeAgentStopped IssueType = "AgentStopped" - IssueTypeDnsResolution IssueType = "DnsResolution" - IssueTypeGuestFirewall IssueType = "GuestFirewall" - IssueTypeNetworkSecurityRule IssueType = "NetworkSecurityRule" - IssueTypePlatform IssueType = "Platform" - IssueTypePortThrottled IssueType = "PortThrottled" - IssueTypeSocketBind IssueType = "SocketBind" - IssueTypeUnknown IssueType = "Unknown" - IssueTypeUserDefinedRoute IssueType = "UserDefinedRoute" -) - -func PossibleValuesForIssueType() []string { - return []string{ - string(IssueTypeAgentStopped), - string(IssueTypeDnsResolution), - string(IssueTypeGuestFirewall), - string(IssueTypeNetworkSecurityRule), - string(IssueTypePlatform), - string(IssueTypePortThrottled), - string(IssueTypeSocketBind), - string(IssueTypeUnknown), - string(IssueTypeUserDefinedRoute), - } -} - -func (s *IssueType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIssueType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIssueType(input string) (*IssueType, error) { - vals := map[string]IssueType{ - "agentstopped": IssueTypeAgentStopped, - "dnsresolution": IssueTypeDnsResolution, - "guestfirewall": IssueTypeGuestFirewall, - "networksecurityrule": IssueTypeNetworkSecurityRule, - "platform": IssueTypePlatform, - "portthrottled": IssueTypePortThrottled, - "socketbind": IssueTypeSocketBind, - "unknown": IssueTypeUnknown, - "userdefinedroute": IssueTypeUserDefinedRoute, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IssueType(input) - return &out, nil -} - -type NextHopType string - -const ( - NextHopTypeHyperNetGateway NextHopType = "HyperNetGateway" - NextHopTypeInternet NextHopType = "Internet" - NextHopTypeNone NextHopType = "None" - NextHopTypeVirtualAppliance NextHopType = "VirtualAppliance" - NextHopTypeVirtualNetworkGateway NextHopType = "VirtualNetworkGateway" - NextHopTypeVnetLocal NextHopType = "VnetLocal" -) - -func PossibleValuesForNextHopType() []string { - return []string{ - string(NextHopTypeHyperNetGateway), - string(NextHopTypeInternet), - string(NextHopTypeNone), - string(NextHopTypeVirtualAppliance), - string(NextHopTypeVirtualNetworkGateway), - string(NextHopTypeVnetLocal), - } -} - -func (s *NextHopType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNextHopType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNextHopType(input string) (*NextHopType, error) { - vals := map[string]NextHopType{ - "hypernetgateway": NextHopTypeHyperNetGateway, - "internet": NextHopTypeInternet, - "none": NextHopTypeNone, - "virtualappliance": NextHopTypeVirtualAppliance, - "virtualnetworkgateway": NextHopTypeVirtualNetworkGateway, - "vnetlocal": NextHopTypeVnetLocal, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NextHopType(input) - return &out, nil -} - -type Origin string - -const ( - OriginInbound Origin = "Inbound" - OriginLocal Origin = "Local" - OriginOutbound Origin = "Outbound" -) - -func PossibleValuesForOrigin() []string { - return []string{ - string(OriginInbound), - string(OriginLocal), - string(OriginOutbound), - } -} - -func (s *Origin) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseOrigin(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseOrigin(input string) (*Origin, error) { - vals := map[string]Origin{ - "inbound": OriginInbound, - "local": OriginLocal, - "outbound": OriginOutbound, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := Origin(input) - return &out, nil -} - -type Protocol string - -const ( - ProtocolHTTP Protocol = "Http" - ProtocolHTTPS Protocol = "Https" - ProtocolIcmp Protocol = "Icmp" - ProtocolTcp Protocol = "Tcp" -) - -func PossibleValuesForProtocol() []string { - return []string{ - string(ProtocolHTTP), - string(ProtocolHTTPS), - string(ProtocolIcmp), - string(ProtocolTcp), - } -} - -func (s *Protocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProtocol(input string) (*Protocol, error) { - vals := map[string]Protocol{ - "http": ProtocolHTTP, - "https": ProtocolHTTPS, - "icmp": ProtocolIcmp, - "tcp": ProtocolTcp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := Protocol(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type SecurityRuleAccess string - -const ( - SecurityRuleAccessAllow SecurityRuleAccess = "Allow" - SecurityRuleAccessDeny SecurityRuleAccess = "Deny" -) - -func PossibleValuesForSecurityRuleAccess() []string { - return []string{ - string(SecurityRuleAccessAllow), - string(SecurityRuleAccessDeny), - } -} - -func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { - vals := map[string]SecurityRuleAccess{ - "allow": SecurityRuleAccessAllow, - "deny": SecurityRuleAccessDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleAccess(input) - return &out, nil -} - -type SecurityRuleDirection string - -const ( - SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" - SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" -) - -func PossibleValuesForSecurityRuleDirection() []string { - return []string{ - string(SecurityRuleDirectionInbound), - string(SecurityRuleDirectionOutbound), - } -} - -func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleDirection(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { - vals := map[string]SecurityRuleDirection{ - "inbound": SecurityRuleDirectionInbound, - "outbound": SecurityRuleDirectionOutbound, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleDirection(input) - return &out, nil -} - -type SecurityRuleProtocol string - -const ( - SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" - SecurityRuleProtocolAny SecurityRuleProtocol = "*" - SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" - SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" - SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" - SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" -) - -func PossibleValuesForSecurityRuleProtocol() []string { - return []string{ - string(SecurityRuleProtocolAh), - string(SecurityRuleProtocolAny), - string(SecurityRuleProtocolEsp), - string(SecurityRuleProtocolIcmp), - string(SecurityRuleProtocolTcp), - string(SecurityRuleProtocolUdp), - } -} - -func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { - vals := map[string]SecurityRuleProtocol{ - "ah": SecurityRuleProtocolAh, - "*": SecurityRuleProtocolAny, - "esp": SecurityRuleProtocolEsp, - "icmp": SecurityRuleProtocolIcmp, - "tcp": SecurityRuleProtocolTcp, - "udp": SecurityRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleProtocol(input) - return &out, nil -} - -type Severity string - -const ( - SeverityError Severity = "Error" - SeverityWarning Severity = "Warning" -) - -func PossibleValuesForSeverity() []string { - return []string{ - string(SeverityError), - string(SeverityWarning), - } -} - -func (s *Severity) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSeverity(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSeverity(input string) (*Severity, error) { - vals := map[string]Severity{ - "error": SeverityError, - "warning": SeverityWarning, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := Severity(input) - return &out, nil -} - -type VerbosityLevel string - -const ( - VerbosityLevelFull VerbosityLevel = "Full" - VerbosityLevelMinimum VerbosityLevel = "Minimum" - VerbosityLevelNormal VerbosityLevel = "Normal" -) - -func PossibleValuesForVerbosityLevel() []string { - return []string{ - string(VerbosityLevelFull), - string(VerbosityLevelMinimum), - string(VerbosityLevelNormal), - } -} - -func (s *VerbosityLevel) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVerbosityLevel(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVerbosityLevel(input string) (*VerbosityLevel, error) { - vals := map[string]VerbosityLevel{ - "full": VerbosityLevelFull, - "minimum": VerbosityLevelMinimum, - "normal": VerbosityLevelNormal, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VerbosityLevel(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/id_networkwatcher.go deleted file mode 100644 index 2e22c948a131..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/id_networkwatcher.go +++ /dev/null @@ -1,130 +0,0 @@ -package networkwatchers - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&NetworkWatcherId{}) -} - -var _ resourceids.ResourceId = &NetworkWatcherId{} - -// NetworkWatcherId is a struct representing the Resource ID for a Network Watcher -type NetworkWatcherId struct { - SubscriptionId string - ResourceGroupName string - NetworkWatcherName string -} - -// NewNetworkWatcherID returns a new NetworkWatcherId struct -func NewNetworkWatcherID(subscriptionId string, resourceGroupName string, networkWatcherName string) NetworkWatcherId { - return NetworkWatcherId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkWatcherName: networkWatcherName, - } -} - -// ParseNetworkWatcherID parses 'input' into a NetworkWatcherId -func ParseNetworkWatcherID(input string) (*NetworkWatcherId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkWatcherId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkWatcherId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseNetworkWatcherIDInsensitively parses 'input' case-insensitively into a NetworkWatcherId -// note: this method should only be used for API response data and not user input -func ParseNetworkWatcherIDInsensitively(input string) (*NetworkWatcherId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkWatcherId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkWatcherId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *NetworkWatcherId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkWatcherName, ok = input.Parsed["networkWatcherName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkWatcherName", input) - } - - return nil -} - -// ValidateNetworkWatcherID checks that 'input' can be parsed as a Network Watcher ID -func ValidateNetworkWatcherID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseNetworkWatcherID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Network Watcher ID -func (id NetworkWatcherId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkWatchers/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkWatcherName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Network Watcher ID -func (id NetworkWatcherId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), - } -} - -// String returns a human-readable description of this Network Watcher ID -func (id NetworkWatcherId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Watcher Name: %q", id.NetworkWatcherName), - } - return fmt.Sprintf("Network Watcher (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_checkconnectivity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_checkconnectivity.go deleted file mode 100644 index a41a47a9dbff..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_checkconnectivity.go +++ /dev/null @@ -1,75 +0,0 @@ -package networkwatchers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CheckConnectivityOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *ConnectivityInformation -} - -// CheckConnectivity ... -func (c NetworkWatchersClient) CheckConnectivity(ctx context.Context, id NetworkWatcherId, input ConnectivityParameters) (result CheckConnectivityOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/connectivityCheck", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CheckConnectivityThenPoll performs CheckConnectivity then polls until it's completed -func (c NetworkWatchersClient) CheckConnectivityThenPoll(ctx context.Context, id NetworkWatcherId, input ConnectivityParameters) error { - result, err := c.CheckConnectivity(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CheckConnectivity: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CheckConnectivity: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_createorupdate.go deleted file mode 100644 index 5881c4d5c10d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_createorupdate.go +++ /dev/null @@ -1,58 +0,0 @@ -package networkwatchers - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkWatcher -} - -// CreateOrUpdate ... -func (c NetworkWatchersClient) CreateOrUpdate(ctx context.Context, id NetworkWatcherId, input NetworkWatcher) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkWatcher - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_delete.go deleted file mode 100644 index 4c59058ef037..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_delete.go +++ /dev/null @@ -1,70 +0,0 @@ -package networkwatchers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c NetworkWatchersClient) Delete(ctx context.Context, id NetworkWatcherId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c NetworkWatchersClient) DeleteThenPoll(ctx context.Context, id NetworkWatcherId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_get.go deleted file mode 100644 index 1c429aeb42d2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package networkwatchers - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkWatcher -} - -// Get ... -func (c NetworkWatchersClient) Get(ctx context.Context, id NetworkWatcherId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkWatcher - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getazurereachabilityreport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getazurereachabilityreport.go deleted file mode 100644 index 54a23dc1c189..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getazurereachabilityreport.go +++ /dev/null @@ -1,75 +0,0 @@ -package networkwatchers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetAzureReachabilityReportOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *AzureReachabilityReport -} - -// GetAzureReachabilityReport ... -func (c NetworkWatchersClient) GetAzureReachabilityReport(ctx context.Context, id NetworkWatcherId, input AzureReachabilityReportParameters) (result GetAzureReachabilityReportOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/azureReachabilityReport", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GetAzureReachabilityReportThenPoll performs GetAzureReachabilityReport then polls until it's completed -func (c NetworkWatchersClient) GetAzureReachabilityReportThenPoll(ctx context.Context, id NetworkWatcherId, input AzureReachabilityReportParameters) error { - result, err := c.GetAzureReachabilityReport(ctx, id, input) - if err != nil { - return fmt.Errorf("performing GetAzureReachabilityReport: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after GetAzureReachabilityReport: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getflowlogstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getflowlogstatus.go deleted file mode 100644 index af6f975c6912..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getflowlogstatus.go +++ /dev/null @@ -1,75 +0,0 @@ -package networkwatchers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetFlowLogStatusOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *FlowLogInformation -} - -// GetFlowLogStatus ... -func (c NetworkWatchersClient) GetFlowLogStatus(ctx context.Context, id NetworkWatcherId, input FlowLogStatusParameters) (result GetFlowLogStatusOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/queryFlowLogStatus", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GetFlowLogStatusThenPoll performs GetFlowLogStatus then polls until it's completed -func (c NetworkWatchersClient) GetFlowLogStatusThenPoll(ctx context.Context, id NetworkWatcherId, input FlowLogStatusParameters) error { - result, err := c.GetFlowLogStatus(ctx, id, input) - if err != nil { - return fmt.Errorf("performing GetFlowLogStatus: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after GetFlowLogStatus: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getnetworkconfigurationdiagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getnetworkconfigurationdiagnostic.go deleted file mode 100644 index de67c4ef4d4d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getnetworkconfigurationdiagnostic.go +++ /dev/null @@ -1,75 +0,0 @@ -package networkwatchers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetNetworkConfigurationDiagnosticOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *NetworkConfigurationDiagnosticResponse -} - -// GetNetworkConfigurationDiagnostic ... -func (c NetworkWatchersClient) GetNetworkConfigurationDiagnostic(ctx context.Context, id NetworkWatcherId, input NetworkConfigurationDiagnosticParameters) (result GetNetworkConfigurationDiagnosticOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/networkConfigurationDiagnostic", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GetNetworkConfigurationDiagnosticThenPoll performs GetNetworkConfigurationDiagnostic then polls until it's completed -func (c NetworkWatchersClient) GetNetworkConfigurationDiagnosticThenPoll(ctx context.Context, id NetworkWatcherId, input NetworkConfigurationDiagnosticParameters) error { - result, err := c.GetNetworkConfigurationDiagnostic(ctx, id, input) - if err != nil { - return fmt.Errorf("performing GetNetworkConfigurationDiagnostic: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after GetNetworkConfigurationDiagnostic: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getnexthop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getnexthop.go deleted file mode 100644 index 56fe43d4d11b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getnexthop.go +++ /dev/null @@ -1,75 +0,0 @@ -package networkwatchers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetNextHopOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *NextHopResult -} - -// GetNextHop ... -func (c NetworkWatchersClient) GetNextHop(ctx context.Context, id NetworkWatcherId, input NextHopParameters) (result GetNextHopOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/nextHop", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GetNextHopThenPoll performs GetNextHop then polls until it's completed -func (c NetworkWatchersClient) GetNextHopThenPoll(ctx context.Context, id NetworkWatcherId, input NextHopParameters) error { - result, err := c.GetNextHop(ctx, id, input) - if err != nil { - return fmt.Errorf("performing GetNextHop: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after GetNextHop: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettopology.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettopology.go deleted file mode 100644 index 68afb0d82060..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettopology.go +++ /dev/null @@ -1,58 +0,0 @@ -package networkwatchers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetTopologyOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *Topology -} - -// GetTopology ... -func (c NetworkWatchersClient) GetTopology(ctx context.Context, id NetworkWatcherId, input TopologyParameters) (result GetTopologyOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/topology", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model Topology - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettroubleshooting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettroubleshooting.go deleted file mode 100644 index 9b5522b81199..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettroubleshooting.go +++ /dev/null @@ -1,75 +0,0 @@ -package networkwatchers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetTroubleshootingOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *TroubleshootingResult -} - -// GetTroubleshooting ... -func (c NetworkWatchersClient) GetTroubleshooting(ctx context.Context, id NetworkWatcherId, input TroubleshootingParameters) (result GetTroubleshootingOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/troubleshoot", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GetTroubleshootingThenPoll performs GetTroubleshooting then polls until it's completed -func (c NetworkWatchersClient) GetTroubleshootingThenPoll(ctx context.Context, id NetworkWatcherId, input TroubleshootingParameters) error { - result, err := c.GetTroubleshooting(ctx, id, input) - if err != nil { - return fmt.Errorf("performing GetTroubleshooting: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after GetTroubleshooting: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettroubleshootingresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettroubleshootingresult.go deleted file mode 100644 index fc9651abd21b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettroubleshootingresult.go +++ /dev/null @@ -1,75 +0,0 @@ -package networkwatchers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetTroubleshootingResultOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *TroubleshootingResult -} - -// GetTroubleshootingResult ... -func (c NetworkWatchersClient) GetTroubleshootingResult(ctx context.Context, id NetworkWatcherId, input QueryTroubleshootingParameters) (result GetTroubleshootingResultOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/queryTroubleshootResult", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GetTroubleshootingResultThenPoll performs GetTroubleshootingResult then polls until it's completed -func (c NetworkWatchersClient) GetTroubleshootingResultThenPoll(ctx context.Context, id NetworkWatcherId, input QueryTroubleshootingParameters) error { - result, err := c.GetTroubleshootingResult(ctx, id, input) - if err != nil { - return fmt.Errorf("performing GetTroubleshootingResult: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after GetTroubleshootingResult: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getvmsecurityrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getvmsecurityrules.go deleted file mode 100644 index 1c8a917ab095..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getvmsecurityrules.go +++ /dev/null @@ -1,75 +0,0 @@ -package networkwatchers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetVMSecurityRulesOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *SecurityGroupViewResult -} - -// GetVMSecurityRules ... -func (c NetworkWatchersClient) GetVMSecurityRules(ctx context.Context, id NetworkWatcherId, input SecurityGroupViewParameters) (result GetVMSecurityRulesOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/securityGroupView", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GetVMSecurityRulesThenPoll performs GetVMSecurityRules then polls until it's completed -func (c NetworkWatchersClient) GetVMSecurityRulesThenPoll(ctx context.Context, id NetworkWatcherId, input SecurityGroupViewParameters) error { - result, err := c.GetVMSecurityRules(ctx, id, input) - if err != nil { - return fmt.Errorf("performing GetVMSecurityRules: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after GetVMSecurityRules: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_list.go deleted file mode 100644 index 36d57f04fef7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_list.go +++ /dev/null @@ -1,55 +0,0 @@ -package networkwatchers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkWatcherListResult -} - -// List ... -func (c NetworkWatchersClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkWatchers", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkWatcherListResult - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_listall.go deleted file mode 100644 index b8bd8d8d4a6c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_listall.go +++ /dev/null @@ -1,55 +0,0 @@ -package networkwatchers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListAllOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkWatcherListResult -} - -// ListAll ... -func (c NetworkWatchersClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkWatchers", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkWatcherListResult - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_listavailableproviders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_listavailableproviders.go deleted file mode 100644 index 12768222c1e9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_listavailableproviders.go +++ /dev/null @@ -1,75 +0,0 @@ -package networkwatchers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListAvailableProvidersOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *AvailableProvidersList -} - -// ListAvailableProviders ... -func (c NetworkWatchersClient) ListAvailableProviders(ctx context.Context, id NetworkWatcherId, input AvailableProvidersListParameters) (result ListAvailableProvidersOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/availableProvidersList", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// ListAvailableProvidersThenPoll performs ListAvailableProviders then polls until it's completed -func (c NetworkWatchersClient) ListAvailableProvidersThenPoll(ctx context.Context, id NetworkWatcherId, input AvailableProvidersListParameters) error { - result, err := c.ListAvailableProviders(ctx, id, input) - if err != nil { - return fmt.Errorf("performing ListAvailableProviders: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after ListAvailableProviders: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_setflowlogconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_setflowlogconfiguration.go deleted file mode 100644 index 183183d38e99..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_setflowlogconfiguration.go +++ /dev/null @@ -1,75 +0,0 @@ -package networkwatchers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SetFlowLogConfigurationOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *FlowLogInformation -} - -// SetFlowLogConfiguration ... -func (c NetworkWatchersClient) SetFlowLogConfiguration(ctx context.Context, id NetworkWatcherId, input FlowLogInformation) (result SetFlowLogConfigurationOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/configureFlowLog", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// SetFlowLogConfigurationThenPoll performs SetFlowLogConfiguration then polls until it's completed -func (c NetworkWatchersClient) SetFlowLogConfigurationThenPoll(ctx context.Context, id NetworkWatcherId, input FlowLogInformation) error { - result, err := c.SetFlowLogConfiguration(ctx, id, input) - if err != nil { - return fmt.Errorf("performing SetFlowLogConfiguration: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after SetFlowLogConfiguration: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_updatetags.go deleted file mode 100644 index 0ad45fd1f1a6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_updatetags.go +++ /dev/null @@ -1,57 +0,0 @@ -package networkwatchers - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateTagsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkWatcher -} - -// UpdateTags ... -func (c NetworkWatchersClient) UpdateTags(ctx context.Context, id NetworkWatcherId, input TagsObject) (result UpdateTagsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkWatcher - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_verifyipflow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_verifyipflow.go deleted file mode 100644 index 1ef266cf37c8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_verifyipflow.go +++ /dev/null @@ -1,75 +0,0 @@ -package networkwatchers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VerifyIPFlowOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *VerificationIPFlowResult -} - -// VerifyIPFlow ... -func (c NetworkWatchersClient) VerifyIPFlow(ctx context.Context, id NetworkWatcherId, input VerificationIPFlowParameters) (result VerifyIPFlowOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/ipFlowVerify", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// VerifyIPFlowThenPoll performs VerifyIPFlow then polls until it's completed -func (c NetworkWatchersClient) VerifyIPFlowThenPoll(ctx context.Context, id NetworkWatcherId, input VerificationIPFlowParameters) error { - result, err := c.VerifyIPFlow(ctx, id, input) - if err != nil { - return fmt.Errorf("performing VerifyIPFlow: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after VerifyIPFlow: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_applicationsecuritygroup.go deleted file mode 100644 index d93456b39dc9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_applicationsecuritygroup.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_applicationsecuritygrouppropertiesformat.go deleted file mode 100644 index 1edb4c6e9fd1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_applicationsecuritygrouppropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroupPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslist.go deleted file mode 100644 index f97306f3eb4c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslist.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AvailableProvidersList struct { - Countries []AvailableProvidersListCountry `json:"countries"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistcity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistcity.go deleted file mode 100644 index ad5727a8ad0f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistcity.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AvailableProvidersListCity struct { - CityName *string `json:"cityName,omitempty"` - Providers *[]string `json:"providers,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistcountry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistcountry.go deleted file mode 100644 index 98f3996ac176..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistcountry.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AvailableProvidersListCountry struct { - CountryName *string `json:"countryName,omitempty"` - Providers *[]string `json:"providers,omitempty"` - States *[]AvailableProvidersListState `json:"states,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistparameters.go deleted file mode 100644 index e884f5cdb40b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistparameters.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AvailableProvidersListParameters struct { - AzureLocations *[]string `json:"azureLocations,omitempty"` - City *string `json:"city,omitempty"` - Country *string `json:"country,omitempty"` - State *string `json:"state,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableprovidersliststate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableprovidersliststate.go deleted file mode 100644 index 3504bafbcf0d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableprovidersliststate.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AvailableProvidersListState struct { - Cities *[]AvailableProvidersListCity `json:"cities,omitempty"` - Providers *[]string `json:"providers,omitempty"` - StateName *string `json:"stateName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreport.go deleted file mode 100644 index e045a1522bc5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreport.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureReachabilityReport struct { - AggregationLevel string `json:"aggregationLevel"` - ProviderLocation AzureReachabilityReportLocation `json:"providerLocation"` - ReachabilityReport []AzureReachabilityReportItem `json:"reachabilityReport"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportitem.go deleted file mode 100644 index 50e7da37b258..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportitem.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureReachabilityReportItem struct { - AzureLocation *string `json:"azureLocation,omitempty"` - Latencies *[]AzureReachabilityReportLatencyInfo `json:"latencies,omitempty"` - Provider *string `json:"provider,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportlatencyinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportlatencyinfo.go deleted file mode 100644 index 6755737d7075..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportlatencyinfo.go +++ /dev/null @@ -1,27 +0,0 @@ -package networkwatchers - -import ( - "time" - - "github.com/hashicorp/go-azure-helpers/lang/dates" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureReachabilityReportLatencyInfo struct { - Score *int64 `json:"score,omitempty"` - TimeStamp *string `json:"timeStamp,omitempty"` -} - -func (o *AzureReachabilityReportLatencyInfo) GetTimeStampAsTime() (*time.Time, error) { - if o.TimeStamp == nil { - return nil, nil - } - return dates.ParseAsFormat(o.TimeStamp, "2006-01-02T15:04:05Z07:00") -} - -func (o *AzureReachabilityReportLatencyInfo) SetTimeStampAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.TimeStamp = &formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportlocation.go deleted file mode 100644 index 15b7ba2a6ee5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportlocation.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureReachabilityReportLocation struct { - City *string `json:"city,omitempty"` - Country string `json:"country"` - State *string `json:"state,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportparameters.go deleted file mode 100644 index 81d91ee2074a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportparameters.go +++ /dev/null @@ -1,36 +0,0 @@ -package networkwatchers - -import ( - "time" - - "github.com/hashicorp/go-azure-helpers/lang/dates" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AzureReachabilityReportParameters struct { - AzureLocations *[]string `json:"azureLocations,omitempty"` - EndTime string `json:"endTime"` - ProviderLocation AzureReachabilityReportLocation `json:"providerLocation"` - Providers *[]string `json:"providers,omitempty"` - StartTime string `json:"startTime"` -} - -func (o *AzureReachabilityReportParameters) GetEndTimeAsTime() (*time.Time, error) { - return dates.ParseAsFormat(&o.EndTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *AzureReachabilityReportParameters) SetEndTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.EndTime = formatted -} - -func (o *AzureReachabilityReportParameters) GetStartTimeAsTime() (*time.Time, error) { - return dates.ParseAsFormat(&o.StartTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *AzureReachabilityReportParameters) SetStartTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.StartTime = formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivitydestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivitydestination.go deleted file mode 100644 index fd92ab947d75..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivitydestination.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectivityDestination struct { - Address *string `json:"address,omitempty"` - Port *int64 `json:"port,omitempty"` - ResourceId *string `json:"resourceId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityhop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityhop.go deleted file mode 100644 index b199aef7d998..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityhop.go +++ /dev/null @@ -1,16 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectivityHop struct { - Address *string `json:"address,omitempty"` - Id *string `json:"id,omitempty"` - Issues *[]ConnectivityIssue `json:"issues,omitempty"` - Links *[]HopLink `json:"links,omitempty"` - NextHopIds *[]string `json:"nextHopIds,omitempty"` - PreviousHopIds *[]string `json:"previousHopIds,omitempty"` - PreviousLinks *[]HopLink `json:"previousLinks,omitempty"` - ResourceId *string `json:"resourceId,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityinformation.go deleted file mode 100644 index 0ce37ca8e82e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityinformation.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectivityInformation struct { - AvgLatencyInMs *int64 `json:"avgLatencyInMs,omitempty"` - ConnectionStatus *ConnectionStatus `json:"connectionStatus,omitempty"` - Hops *[]ConnectivityHop `json:"hops,omitempty"` - MaxLatencyInMs *int64 `json:"maxLatencyInMs,omitempty"` - MinLatencyInMs *int64 `json:"minLatencyInMs,omitempty"` - ProbesFailed *int64 `json:"probesFailed,omitempty"` - ProbesSent *int64 `json:"probesSent,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityissue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityissue.go deleted file mode 100644 index ba9f23e149cd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityissue.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectivityIssue struct { - Context *[]map[string]string `json:"context,omitempty"` - Origin *Origin `json:"origin,omitempty"` - Severity *Severity `json:"severity,omitempty"` - Type *IssueType `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityparameters.go deleted file mode 100644 index 2fd0eea7e968..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityparameters.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectivityParameters struct { - Destination ConnectivityDestination `json:"destination"` - PreferredIPVersion *IPVersion `json:"preferredIPVersion,omitempty"` - Protocol *Protocol `json:"protocol,omitempty"` - ProtocolConfiguration *ProtocolConfiguration `json:"protocolConfiguration,omitempty"` - Source ConnectivitySource `json:"source"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivitysource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivitysource.go deleted file mode 100644 index 471f2e79c483..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivitysource.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectivitySource struct { - Port *int64 `json:"port,omitempty"` - ResourceId string `json:"resourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_effectivenetworksecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_effectivenetworksecurityrule.go deleted file mode 100644 index 738fb4c583df..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_effectivenetworksecurityrule.go +++ /dev/null @@ -1,22 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type EffectiveNetworkSecurityRule struct { - Access *SecurityRuleAccess `json:"access,omitempty"` - DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` - DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` - DestinationPortRange *string `json:"destinationPortRange,omitempty"` - DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` - Direction *SecurityRuleDirection `json:"direction,omitempty"` - ExpandedDestinationAddressPrefix *[]string `json:"expandedDestinationAddressPrefix,omitempty"` - ExpandedSourceAddressPrefix *[]string `json:"expandedSourceAddressPrefix,omitempty"` - Name *string `json:"name,omitempty"` - Priority *int64 `json:"priority,omitempty"` - Protocol *EffectiveSecurityRuleProtocol `json:"protocol,omitempty"` - SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` - SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` - SourcePortRange *string `json:"sourcePortRange,omitempty"` - SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_evaluatednetworksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_evaluatednetworksecuritygroup.go deleted file mode 100644 index c471d60f7c3e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_evaluatednetworksecuritygroup.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type EvaluatedNetworkSecurityGroup struct { - AppliedTo *string `json:"appliedTo,omitempty"` - MatchedRule *MatchedRule `json:"matchedRule,omitempty"` - NetworkSecurityGroupId *string `json:"networkSecurityGroupId,omitempty"` - RulesEvaluationResult *[]NetworkSecurityRulesEvaluationResult `json:"rulesEvaluationResult,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogformatparameters.go deleted file mode 100644 index 804e14368ee9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogformatparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogFormatParameters struct { - Type *FlowLogFormatType `json:"type,omitempty"` - Version *int64 `json:"version,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowloginformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowloginformation.go deleted file mode 100644 index e624cdf59fe3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowloginformation.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogInformation struct { - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Properties FlowLogProperties `json:"properties"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogproperties.go deleted file mode 100644 index c51e0fd967ec..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogproperties.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogProperties struct { - Enabled bool `json:"enabled"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogstatusparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogstatusparameters.go deleted file mode 100644 index 7adddbce138e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogstatusparameters.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogStatusParameters struct { - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_hoplink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_hoplink.go deleted file mode 100644 index ad0c1a88c32c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_hoplink.go +++ /dev/null @@ -1,13 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HopLink struct { - Context *map[string]string `json:"context,omitempty"` - Issues *[]ConnectivityIssue `json:"issues,omitempty"` - LinkType *string `json:"linkType,omitempty"` - NextHopId *string `json:"nextHopId,omitempty"` - Properties *HopLinkProperties `json:"properties,omitempty"` - ResourceId *string `json:"resourceId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_hoplinkproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_hoplinkproperties.go deleted file mode 100644 index efce6d245812..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_hoplinkproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HopLinkProperties struct { - RoundTripTimeAvg *int64 `json:"roundTripTimeAvg,omitempty"` - RoundTripTimeMax *int64 `json:"roundTripTimeMax,omitempty"` - RoundTripTimeMin *int64 `json:"roundTripTimeMin,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_httpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_httpconfiguration.go deleted file mode 100644 index e469c4b2e2ac..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_httpconfiguration.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HTTPConfiguration struct { - Headers *[]HTTPHeader `json:"headers,omitempty"` - Method *HTTPMethod `json:"method,omitempty"` - ValidStatusCodes *[]int64 `json:"validStatusCodes,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_httpheader.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_httpheader.go deleted file mode 100644 index 5f0b41332f33..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_httpheader.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type HTTPHeader struct { - Name *string `json:"name,omitempty"` - Value *string `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_matchedrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_matchedrule.go deleted file mode 100644 index 7ccb0bf4ff14..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_matchedrule.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type MatchedRule struct { - Action *string `json:"action,omitempty"` - RuleName *string `json:"ruleName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticparameters.go deleted file mode 100644 index 62d57417ce8f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticparameters.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkConfigurationDiagnosticParameters struct { - Profiles []NetworkConfigurationDiagnosticProfile `json:"profiles"` - TargetResourceId string `json:"targetResourceId"` - VerbosityLevel *VerbosityLevel `json:"verbosityLevel,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticprofile.go deleted file mode 100644 index 2591d3cb1bc6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticprofile.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkConfigurationDiagnosticProfile struct { - Destination string `json:"destination"` - DestinationPort string `json:"destinationPort"` - Direction Direction `json:"direction"` - Protocol string `json:"protocol"` - Source string `json:"source"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticresponse.go deleted file mode 100644 index a30c9686e579..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticresponse.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkConfigurationDiagnosticResponse struct { - Results *[]NetworkConfigurationDiagnosticResult `json:"results,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticresult.go deleted file mode 100644 index c0c796377f72..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkConfigurationDiagnosticResult struct { - NetworkSecurityGroupResult *NetworkSecurityGroupResult `json:"networkSecurityGroupResult,omitempty"` - Profile *NetworkConfigurationDiagnosticProfile `json:"profile,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkinterfaceassociation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkinterfaceassociation.go deleted file mode 100644 index 0583e0225fde..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkinterfaceassociation.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceAssociation struct { - Id *string `json:"id,omitempty"` - SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networksecuritygroupresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networksecuritygroupresult.go deleted file mode 100644 index 60f125dff532..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networksecuritygroupresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkSecurityGroupResult struct { - EvaluatedNetworkSecurityGroups *[]EvaluatedNetworkSecurityGroup `json:"evaluatedNetworkSecurityGroups,omitempty"` - SecurityRuleAccessResult *SecurityRuleAccess `json:"securityRuleAccessResult,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networksecurityrulesevaluationresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networksecurityrulesevaluationresult.go deleted file mode 100644 index c54e4c0dc86f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networksecurityrulesevaluationresult.go +++ /dev/null @@ -1,13 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkSecurityRulesEvaluationResult struct { - DestinationMatched *bool `json:"destinationMatched,omitempty"` - DestinationPortMatched *bool `json:"destinationPortMatched,omitempty"` - Name *string `json:"name,omitempty"` - ProtocolMatched *bool `json:"protocolMatched,omitempty"` - SourceMatched *bool `json:"sourceMatched,omitempty"` - SourcePortMatched *bool `json:"sourcePortMatched,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcher.go deleted file mode 100644 index 4f58f1863d83..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcher.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkWatcher struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkWatcherPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcherlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcherlistresult.go deleted file mode 100644 index b78fc59bf86b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcherlistresult.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkWatcherListResult struct { - Value *[]NetworkWatcher `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcherpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcherpropertiesformat.go deleted file mode 100644 index d0d1c07ed9ec..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcherpropertiesformat.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkWatcherPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_nexthopparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_nexthopparameters.go deleted file mode 100644 index b8a7b00f4f34..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_nexthopparameters.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NextHopParameters struct { - DestinationIPAddress string `json:"destinationIPAddress"` - SourceIPAddress string `json:"sourceIPAddress"` - TargetNicResourceId *string `json:"targetNicResourceId,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_nexthopresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_nexthopresult.go deleted file mode 100644 index a8a2ba32b01b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_nexthopresult.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NextHopResult struct { - NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` - NextHopType *NextHopType `json:"nextHopType,omitempty"` - RouteTableId *string `json:"routeTableId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_protocolconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_protocolconfiguration.go deleted file mode 100644 index e4592ed2fe58..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_protocolconfiguration.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProtocolConfiguration struct { - HTTPConfiguration *HTTPConfiguration `json:"HTTPConfiguration,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_querytroubleshootingparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_querytroubleshootingparameters.go deleted file mode 100644 index d6bf4abce2c3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_querytroubleshootingparameters.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type QueryTroubleshootingParameters struct { - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_retentionpolicyparameters.go deleted file mode 100644 index 64b952abec03..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_retentionpolicyparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RetentionPolicyParameters struct { - Days *int64 `json:"days,omitempty"` - Enabled *bool `json:"enabled,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupnetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupnetworkinterface.go deleted file mode 100644 index e22bcd0a9edd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupnetworkinterface.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityGroupNetworkInterface struct { - Id *string `json:"id,omitempty"` - SecurityRuleAssociations *SecurityRuleAssociations `json:"securityRuleAssociations,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupviewparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupviewparameters.go deleted file mode 100644 index 9cbdf854c96b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupviewparameters.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityGroupViewParameters struct { - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupviewresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupviewresult.go deleted file mode 100644 index eff95f059196..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupviewresult.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityGroupViewResult struct { - NetworkInterfaces *[]SecurityGroupNetworkInterface `json:"networkInterfaces,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityrule.go deleted file mode 100644 index c1dded9fca0a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityruleassociations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityruleassociations.go deleted file mode 100644 index 0ce7cc68a9ca..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityruleassociations.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRuleAssociations struct { - DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` - EffectiveSecurityRules *[]EffectiveNetworkSecurityRule `json:"effectiveSecurityRules,omitempty"` - NetworkInterfaceAssociation *NetworkInterfaceAssociation `json:"networkInterfaceAssociation,omitempty"` - SubnetAssociation *SubnetAssociation `json:"subnetAssociation,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityrulepropertiesformat.go deleted file mode 100644 index ae100c6915e1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityrulepropertiesformat.go +++ /dev/null @@ -1,23 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRulePropertiesFormat struct { - Access SecurityRuleAccess `json:"access"` - Description *string `json:"description,omitempty"` - DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` - DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` - DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` - DestinationPortRange *string `json:"destinationPortRange,omitempty"` - DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` - Direction SecurityRuleDirection `json:"direction"` - Priority int64 `json:"priority"` - Protocol SecurityRuleProtocol `json:"protocol"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` - SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` - SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` - SourcePortRange *string `json:"sourcePortRange,omitempty"` - SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_subnetassociation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_subnetassociation.go deleted file mode 100644 index 8b89222ca9e5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_subnetassociation.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubnetAssociation struct { - Id *string `json:"id,omitempty"` - SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_subresource.go deleted file mode 100644 index b98b68a29dd7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_tagsobject.go deleted file mode 100644 index f022d1785d94..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topology.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topology.go deleted file mode 100644 index c582a36ae6c7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topology.go +++ /dev/null @@ -1,41 +0,0 @@ -package networkwatchers - -import ( - "time" - - "github.com/hashicorp/go-azure-helpers/lang/dates" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Topology struct { - CreatedDateTime *string `json:"createdDateTime,omitempty"` - Id *string `json:"id,omitempty"` - LastModified *string `json:"lastModified,omitempty"` - Resources *[]TopologyResource `json:"resources,omitempty"` -} - -func (o *Topology) GetCreatedDateTimeAsTime() (*time.Time, error) { - if o.CreatedDateTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.CreatedDateTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *Topology) SetCreatedDateTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.CreatedDateTime = &formatted -} - -func (o *Topology) GetLastModifiedAsTime() (*time.Time, error) { - if o.LastModified == nil { - return nil, nil - } - return dates.ParseAsFormat(o.LastModified, "2006-01-02T15:04:05Z07:00") -} - -func (o *Topology) SetLastModifiedAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.LastModified = &formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyassociation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyassociation.go deleted file mode 100644 index 9607c85650bd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyassociation.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TopologyAssociation struct { - AssociationType *AssociationType `json:"associationType,omitempty"` - Name *string `json:"name,omitempty"` - ResourceId *string `json:"resourceId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyparameters.go deleted file mode 100644 index 25bc77b5345d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyparameters.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TopologyParameters struct { - TargetResourceGroupName *string `json:"targetResourceGroupName,omitempty"` - TargetSubnet *SubResource `json:"targetSubnet,omitempty"` - TargetVirtualNetwork *SubResource `json:"targetVirtualNetwork,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyresource.go deleted file mode 100644 index e126c541c8e6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyresource.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TopologyResource struct { - Associations *[]TopologyAssociation `json:"associations,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_trafficanalyticsconfigurationproperties.go deleted file mode 100644 index 63df321f46e2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_trafficanalyticsconfigurationproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TrafficAnalyticsConfigurationProperties struct { - Enabled *bool `json:"enabled,omitempty"` - TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` - WorkspaceId *string `json:"workspaceId,omitempty"` - WorkspaceRegion *string `json:"workspaceRegion,omitempty"` - WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_trafficanalyticsproperties.go deleted file mode 100644 index 415ca1a8f5e2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_trafficanalyticsproperties.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TrafficAnalyticsProperties struct { - NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingdetails.go deleted file mode 100644 index 2bc7443b1682..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingdetails.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TroubleshootingDetails struct { - Detail *string `json:"detail,omitempty"` - Id *string `json:"id,omitempty"` - ReasonType *string `json:"reasonType,omitempty"` - RecommendedActions *[]TroubleshootingRecommendedActions `json:"recommendedActions,omitempty"` - Summary *string `json:"summary,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingparameters.go deleted file mode 100644 index 5ee881c84a7f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TroubleshootingParameters struct { - Properties TroubleshootingProperties `json:"properties"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingproperties.go deleted file mode 100644 index 8d187050a325..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingproperties.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TroubleshootingProperties struct { - StorageId string `json:"storageId"` - StoragePath string `json:"storagePath"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingrecommendedactions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingrecommendedactions.go deleted file mode 100644 index c4e5781e6593..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingrecommendedactions.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TroubleshootingRecommendedActions struct { - ActionId *string `json:"actionId,omitempty"` - ActionText *string `json:"actionText,omitempty"` - ActionUri *string `json:"actionUri,omitempty"` - ActionUriText *string `json:"actionUriText,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingresult.go deleted file mode 100644 index 62df62353d2e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingresult.go +++ /dev/null @@ -1,41 +0,0 @@ -package networkwatchers - -import ( - "time" - - "github.com/hashicorp/go-azure-helpers/lang/dates" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TroubleshootingResult struct { - Code *string `json:"code,omitempty"` - EndTime *string `json:"endTime,omitempty"` - Results *[]TroubleshootingDetails `json:"results,omitempty"` - StartTime *string `json:"startTime,omitempty"` -} - -func (o *TroubleshootingResult) GetEndTimeAsTime() (*time.Time, error) { - if o.EndTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.EndTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *TroubleshootingResult) SetEndTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.EndTime = &formatted -} - -func (o *TroubleshootingResult) GetStartTimeAsTime() (*time.Time, error) { - if o.StartTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *TroubleshootingResult) SetStartTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.StartTime = &formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_verificationipflowparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_verificationipflowparameters.go deleted file mode 100644 index 05165f3ed261..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_verificationipflowparameters.go +++ /dev/null @@ -1,15 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VerificationIPFlowParameters struct { - Direction Direction `json:"direction"` - LocalIPAddress string `json:"localIPAddress"` - LocalPort string `json:"localPort"` - Protocol IPFlowProtocol `json:"protocol"` - RemoteIPAddress string `json:"remoteIPAddress"` - RemotePort string `json:"remotePort"` - TargetNicResourceId *string `json:"targetNicResourceId,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_verificationipflowresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_verificationipflowresult.go deleted file mode 100644 index 97318928bd83..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_verificationipflowresult.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VerificationIPFlowResult struct { - Access *Access `json:"access,omitempty"` - RuleName *string `json:"ruleName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/version.go deleted file mode 100644 index 24d0fce3ffe2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkwatchers/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/README.md deleted file mode 100644 index e886067a2ed2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/README.md +++ /dev/null @@ -1,105 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures` Documentation - -The `packetcaptures` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures" -``` - - -### Client Initialization - -```go -client := packetcaptures.NewPacketCapturesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `PacketCapturesClient.Create` - -```go -ctx := context.TODO() -id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") - -payload := packetcaptures.PacketCapture{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `PacketCapturesClient.Delete` - -```go -ctx := context.TODO() -id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `PacketCapturesClient.Get` - -```go -ctx := context.TODO() -id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PacketCapturesClient.GetStatus` - -```go -ctx := context.TODO() -id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") - -if err := client.GetStatusThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `PacketCapturesClient.List` - -```go -ctx := context.TODO() -id := packetcaptures.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -read, err := client.List(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PacketCapturesClient.Stop` - -```go -ctx := context.TODO() -id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") - -if err := client.StopThenPoll(ctx, id); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/client.go deleted file mode 100644 index 9acbfd7c6f73..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package packetcaptures - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PacketCapturesClient struct { - Client *resourcemanager.Client -} - -func NewPacketCapturesClientWithBaseURI(sdkApi sdkEnv.Api) (*PacketCapturesClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "packetcaptures", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating PacketCapturesClient: %+v", err) - } - - return &PacketCapturesClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/constants.go deleted file mode 100644 index 52471a03c9ef..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/constants.go +++ /dev/null @@ -1,242 +0,0 @@ -package packetcaptures - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PacketCaptureTargetType string - -const ( - PacketCaptureTargetTypeAzureVM PacketCaptureTargetType = "AzureVM" - PacketCaptureTargetTypeAzureVMSS PacketCaptureTargetType = "AzureVMSS" -) - -func PossibleValuesForPacketCaptureTargetType() []string { - return []string{ - string(PacketCaptureTargetTypeAzureVM), - string(PacketCaptureTargetTypeAzureVMSS), - } -} - -func (s *PacketCaptureTargetType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePacketCaptureTargetType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePacketCaptureTargetType(input string) (*PacketCaptureTargetType, error) { - vals := map[string]PacketCaptureTargetType{ - "azurevm": PacketCaptureTargetTypeAzureVM, - "azurevmss": PacketCaptureTargetTypeAzureVMSS, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PacketCaptureTargetType(input) - return &out, nil -} - -type PcError string - -const ( - PcErrorAgentStopped PcError = "AgentStopped" - PcErrorCaptureFailed PcError = "CaptureFailed" - PcErrorInternalError PcError = "InternalError" - PcErrorLocalFileFailed PcError = "LocalFileFailed" - PcErrorStorageFailed PcError = "StorageFailed" -) - -func PossibleValuesForPcError() []string { - return []string{ - string(PcErrorAgentStopped), - string(PcErrorCaptureFailed), - string(PcErrorInternalError), - string(PcErrorLocalFileFailed), - string(PcErrorStorageFailed), - } -} - -func (s *PcError) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePcError(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePcError(input string) (*PcError, error) { - vals := map[string]PcError{ - "agentstopped": PcErrorAgentStopped, - "capturefailed": PcErrorCaptureFailed, - "internalerror": PcErrorInternalError, - "localfilefailed": PcErrorLocalFileFailed, - "storagefailed": PcErrorStorageFailed, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PcError(input) - return &out, nil -} - -type PcProtocol string - -const ( - PcProtocolAny PcProtocol = "Any" - PcProtocolTCP PcProtocol = "TCP" - PcProtocolUDP PcProtocol = "UDP" -) - -func PossibleValuesForPcProtocol() []string { - return []string{ - string(PcProtocolAny), - string(PcProtocolTCP), - string(PcProtocolUDP), - } -} - -func (s *PcProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePcProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePcProtocol(input string) (*PcProtocol, error) { - vals := map[string]PcProtocol{ - "any": PcProtocolAny, - "tcp": PcProtocolTCP, - "udp": PcProtocolUDP, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PcProtocol(input) - return &out, nil -} - -type PcStatus string - -const ( - PcStatusError PcStatus = "Error" - PcStatusNotStarted PcStatus = "NotStarted" - PcStatusRunning PcStatus = "Running" - PcStatusStopped PcStatus = "Stopped" - PcStatusUnknown PcStatus = "Unknown" -) - -func PossibleValuesForPcStatus() []string { - return []string{ - string(PcStatusError), - string(PcStatusNotStarted), - string(PcStatusRunning), - string(PcStatusStopped), - string(PcStatusUnknown), - } -} - -func (s *PcStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePcStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePcStatus(input string) (*PcStatus, error) { - vals := map[string]PcStatus{ - "error": PcStatusError, - "notstarted": PcStatusNotStarted, - "running": PcStatusRunning, - "stopped": PcStatusStopped, - "unknown": PcStatusUnknown, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PcStatus(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_networkwatcher.go deleted file mode 100644 index df59b51a3161..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_networkwatcher.go +++ /dev/null @@ -1,130 +0,0 @@ -package packetcaptures - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&NetworkWatcherId{}) -} - -var _ resourceids.ResourceId = &NetworkWatcherId{} - -// NetworkWatcherId is a struct representing the Resource ID for a Network Watcher -type NetworkWatcherId struct { - SubscriptionId string - ResourceGroupName string - NetworkWatcherName string -} - -// NewNetworkWatcherID returns a new NetworkWatcherId struct -func NewNetworkWatcherID(subscriptionId string, resourceGroupName string, networkWatcherName string) NetworkWatcherId { - return NetworkWatcherId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkWatcherName: networkWatcherName, - } -} - -// ParseNetworkWatcherID parses 'input' into a NetworkWatcherId -func ParseNetworkWatcherID(input string) (*NetworkWatcherId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkWatcherId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkWatcherId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseNetworkWatcherIDInsensitively parses 'input' case-insensitively into a NetworkWatcherId -// note: this method should only be used for API response data and not user input -func ParseNetworkWatcherIDInsensitively(input string) (*NetworkWatcherId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkWatcherId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkWatcherId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *NetworkWatcherId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkWatcherName, ok = input.Parsed["networkWatcherName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkWatcherName", input) - } - - return nil -} - -// ValidateNetworkWatcherID checks that 'input' can be parsed as a Network Watcher ID -func ValidateNetworkWatcherID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseNetworkWatcherID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Network Watcher ID -func (id NetworkWatcherId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkWatchers/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkWatcherName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Network Watcher ID -func (id NetworkWatcherId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), - } -} - -// String returns a human-readable description of this Network Watcher ID -func (id NetworkWatcherId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Watcher Name: %q", id.NetworkWatcherName), - } - return fmt.Sprintf("Network Watcher (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_packetcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_packetcapture.go deleted file mode 100644 index 80f04f9f292e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_packetcapture.go +++ /dev/null @@ -1,139 +0,0 @@ -package packetcaptures - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&PacketCaptureId{}) -} - -var _ resourceids.ResourceId = &PacketCaptureId{} - -// PacketCaptureId is a struct representing the Resource ID for a Packet Capture -type PacketCaptureId struct { - SubscriptionId string - ResourceGroupName string - NetworkWatcherName string - PacketCaptureName string -} - -// NewPacketCaptureID returns a new PacketCaptureId struct -func NewPacketCaptureID(subscriptionId string, resourceGroupName string, networkWatcherName string, packetCaptureName string) PacketCaptureId { - return PacketCaptureId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkWatcherName: networkWatcherName, - PacketCaptureName: packetCaptureName, - } -} - -// ParsePacketCaptureID parses 'input' into a PacketCaptureId -func ParsePacketCaptureID(input string) (*PacketCaptureId, error) { - parser := resourceids.NewParserFromResourceIdType(&PacketCaptureId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := PacketCaptureId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParsePacketCaptureIDInsensitively parses 'input' case-insensitively into a PacketCaptureId -// note: this method should only be used for API response data and not user input -func ParsePacketCaptureIDInsensitively(input string) (*PacketCaptureId, error) { - parser := resourceids.NewParserFromResourceIdType(&PacketCaptureId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := PacketCaptureId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *PacketCaptureId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkWatcherName, ok = input.Parsed["networkWatcherName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkWatcherName", input) - } - - if id.PacketCaptureName, ok = input.Parsed["packetCaptureName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "packetCaptureName", input) - } - - return nil -} - -// ValidatePacketCaptureID checks that 'input' can be parsed as a Packet Capture ID -func ValidatePacketCaptureID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParsePacketCaptureID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Packet Capture ID -func (id PacketCaptureId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkWatchers/%s/packetCaptures/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkWatcherName, id.PacketCaptureName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Packet Capture ID -func (id PacketCaptureId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), - resourceids.StaticSegment("staticPacketCaptures", "packetCaptures", "packetCaptures"), - resourceids.UserSpecifiedSegment("packetCaptureName", "packetCaptureName"), - } -} - -// String returns a human-readable description of this Packet Capture ID -func (id PacketCaptureId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Watcher Name: %q", id.NetworkWatcherName), - fmt.Sprintf("Packet Capture Name: %q", id.PacketCaptureName), - } - return fmt.Sprintf("Packet Capture (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_create.go deleted file mode 100644 index d01c4d4092c6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_create.go +++ /dev/null @@ -1,74 +0,0 @@ -package packetcaptures - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *PacketCaptureResult -} - -// Create ... -func (c PacketCapturesClient) Create(ctx context.Context, id PacketCaptureId, input PacketCapture) (result CreateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateThenPoll performs Create then polls until it's completed -func (c PacketCapturesClient) CreateThenPoll(ctx context.Context, id PacketCaptureId, input PacketCapture) error { - result, err := c.Create(ctx, id, input) - if err != nil { - return fmt.Errorf("performing Create: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Create: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_delete.go deleted file mode 100644 index d35a3b48efae..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_delete.go +++ /dev/null @@ -1,70 +0,0 @@ -package packetcaptures - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c PacketCapturesClient) Delete(ctx context.Context, id PacketCaptureId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c PacketCapturesClient) DeleteThenPoll(ctx context.Context, id PacketCaptureId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_get.go deleted file mode 100644 index 9f32b393d102..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package packetcaptures - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *PacketCaptureResult -} - -// Get ... -func (c PacketCapturesClient) Get(ctx context.Context, id PacketCaptureId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model PacketCaptureResult - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_getstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_getstatus.go deleted file mode 100644 index 20a7fc75b3c3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_getstatus.go +++ /dev/null @@ -1,71 +0,0 @@ -package packetcaptures - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetStatusOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *PacketCaptureQueryStatusResult -} - -// GetStatus ... -func (c PacketCapturesClient) GetStatus(ctx context.Context, id PacketCaptureId) (result GetStatusOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/queryStatus", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GetStatusThenPoll performs GetStatus then polls until it's completed -func (c PacketCapturesClient) GetStatusThenPoll(ctx context.Context, id PacketCaptureId) error { - result, err := c.GetStatus(ctx, id) - if err != nil { - return fmt.Errorf("performing GetStatus: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after GetStatus: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_list.go deleted file mode 100644 index 08e6f4248639..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_list.go +++ /dev/null @@ -1,54 +0,0 @@ -package packetcaptures - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *PacketCaptureListResult -} - -// List ... -func (c PacketCapturesClient) List(ctx context.Context, id NetworkWatcherId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/packetCaptures", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model PacketCaptureListResult - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_stop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_stop.go deleted file mode 100644 index 31a3b0501693..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_stop.go +++ /dev/null @@ -1,70 +0,0 @@ -package packetcaptures - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StopOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Stop ... -func (c PacketCapturesClient) Stop(ctx context.Context, id PacketCaptureId) (result StopOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/stop", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// StopThenPoll performs Stop then polls until it's completed -func (c PacketCapturesClient) StopThenPoll(ctx context.Context, id PacketCaptureId) error { - result, err := c.Stop(ctx, id) - if err != nil { - return fmt.Errorf("performing Stop: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Stop: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapture.go deleted file mode 100644 index 592cd89a6e7f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapture.go +++ /dev/null @@ -1,8 +0,0 @@ -package packetcaptures - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PacketCapture struct { - Properties PacketCaptureParameters `json:"properties"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturefilter.go deleted file mode 100644 index fb3018805668..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturefilter.go +++ /dev/null @@ -1,12 +0,0 @@ -package packetcaptures - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PacketCaptureFilter struct { - LocalIPAddress *string `json:"localIPAddress,omitempty"` - LocalPort *string `json:"localPort,omitempty"` - Protocol *PcProtocol `json:"protocol,omitempty"` - RemoteIPAddress *string `json:"remoteIPAddress,omitempty"` - RemotePort *string `json:"remotePort,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturelistresult.go deleted file mode 100644 index 54c50c44871d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturelistresult.go +++ /dev/null @@ -1,8 +0,0 @@ -package packetcaptures - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PacketCaptureListResult struct { - Value *[]PacketCaptureResult `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturemachinescope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturemachinescope.go deleted file mode 100644 index 99b476671ba3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturemachinescope.go +++ /dev/null @@ -1,9 +0,0 @@ -package packetcaptures - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PacketCaptureMachineScope struct { - Exclude *[]string `json:"exclude,omitempty"` - Include *[]string `json:"include,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureparameters.go deleted file mode 100644 index 0ce5dbb1e977..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureparameters.go +++ /dev/null @@ -1,17 +0,0 @@ -package packetcaptures - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PacketCaptureParameters struct { - BytesToCapturePerPacket *int64 `json:"bytesToCapturePerPacket,omitempty"` - CaptureSettings *PacketCaptureSettings `json:"captureSettings,omitempty"` - ContinuousCapture *bool `json:"continuousCapture,omitempty"` - Filters *[]PacketCaptureFilter `json:"filters,omitempty"` - Scope *PacketCaptureMachineScope `json:"scope,omitempty"` - StorageLocation PacketCaptureStorageLocation `json:"storageLocation"` - Target string `json:"target"` - TargetType *PacketCaptureTargetType `json:"targetType,omitempty"` - TimeLimitInSeconds *int64 `json:"timeLimitInSeconds,omitempty"` - TotalBytesPerSession *int64 `json:"totalBytesPerSession,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturequerystatusresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturequerystatusresult.go deleted file mode 100644 index edea164feae0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturequerystatusresult.go +++ /dev/null @@ -1,31 +0,0 @@ -package packetcaptures - -import ( - "time" - - "github.com/hashicorp/go-azure-helpers/lang/dates" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PacketCaptureQueryStatusResult struct { - CaptureStartTime *string `json:"captureStartTime,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - PacketCaptureError *[]PcError `json:"packetCaptureError,omitempty"` - PacketCaptureStatus *PcStatus `json:"packetCaptureStatus,omitempty"` - StopReason *string `json:"stopReason,omitempty"` -} - -func (o *PacketCaptureQueryStatusResult) GetCaptureStartTimeAsTime() (*time.Time, error) { - if o.CaptureStartTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.CaptureStartTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *PacketCaptureQueryStatusResult) SetCaptureStartTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.CaptureStartTime = &formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureresult.go deleted file mode 100644 index a2e7cd88e028..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureresult.go +++ /dev/null @@ -1,11 +0,0 @@ -package packetcaptures - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PacketCaptureResult struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PacketCaptureResultProperties `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureresultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureresultproperties.go deleted file mode 100644 index 2e3ffaf706e0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureresultproperties.go +++ /dev/null @@ -1,18 +0,0 @@ -package packetcaptures - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PacketCaptureResultProperties struct { - BytesToCapturePerPacket *int64 `json:"bytesToCapturePerPacket,omitempty"` - CaptureSettings *PacketCaptureSettings `json:"captureSettings,omitempty"` - ContinuousCapture *bool `json:"continuousCapture,omitempty"` - Filters *[]PacketCaptureFilter `json:"filters,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Scope *PacketCaptureMachineScope `json:"scope,omitempty"` - StorageLocation PacketCaptureStorageLocation `json:"storageLocation"` - Target string `json:"target"` - TargetType *PacketCaptureTargetType `json:"targetType,omitempty"` - TimeLimitInSeconds *int64 `json:"timeLimitInSeconds,omitempty"` - TotalBytesPerSession *int64 `json:"totalBytesPerSession,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturesettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturesettings.go deleted file mode 100644 index 008b5742c30e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturesettings.go +++ /dev/null @@ -1,10 +0,0 @@ -package packetcaptures - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PacketCaptureSettings struct { - FileCount *int64 `json:"fileCount,omitempty"` - FileSizeInBytes *int64 `json:"fileSizeInBytes,omitempty"` - SessionTimeLimitInSeconds *int64 `json:"sessionTimeLimitInSeconds,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturestoragelocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturestoragelocation.go deleted file mode 100644 index dc8803c6bdd7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturestoragelocation.go +++ /dev/null @@ -1,11 +0,0 @@ -package packetcaptures - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PacketCaptureStorageLocation struct { - FilePath *string `json:"filePath,omitempty"` - LocalPath *string `json:"localPath,omitempty"` - StorageId *string `json:"storageId,omitempty"` - StoragePath *string `json:"storagePath,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/version.go deleted file mode 100644 index 149c536f1d4b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package packetcaptures - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/packetcaptures/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/README.md deleted file mode 100644 index 2d5799b6f5da..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups` Documentation - -The `privatednszonegroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups" -``` - - -### Client Initialization - -```go -client := privatednszonegroups.NewPrivateDnsZoneGroupsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `PrivateDnsZoneGroupsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName", "privateDnsZoneGroupName") - -payload := privatednszonegroups.PrivateDnsZoneGroup{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `PrivateDnsZoneGroupsClient.Delete` - -```go -ctx := context.TODO() -id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName", "privateDnsZoneGroupName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `PrivateDnsZoneGroupsClient.Get` - -```go -ctx := context.TODO() -id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName", "privateDnsZoneGroupName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PrivateDnsZoneGroupsClient.List` - -```go -ctx := context.TODO() -id := privatednszonegroups.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/client.go deleted file mode 100644 index 58e48fe8e2e5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package privatednszonegroups - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateDnsZoneGroupsClient struct { - Client *resourcemanager.Client -} - -func NewPrivateDnsZoneGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateDnsZoneGroupsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "privatednszonegroups", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating PrivateDnsZoneGroupsClient: %+v", err) - } - - return &PrivateDnsZoneGroupsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/constants.go deleted file mode 100644 index a68ae3a4523a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/constants.go +++ /dev/null @@ -1,57 +0,0 @@ -package privatednszonegroups - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privatednszonegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privatednszonegroup.go deleted file mode 100644 index 9d6d9b40c00a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privatednszonegroup.go +++ /dev/null @@ -1,139 +0,0 @@ -package privatednszonegroups - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&PrivateDnsZoneGroupId{}) -} - -var _ resourceids.ResourceId = &PrivateDnsZoneGroupId{} - -// PrivateDnsZoneGroupId is a struct representing the Resource ID for a Private Dns Zone Group -type PrivateDnsZoneGroupId struct { - SubscriptionId string - ResourceGroupName string - PrivateEndpointName string - PrivateDnsZoneGroupName string -} - -// NewPrivateDnsZoneGroupID returns a new PrivateDnsZoneGroupId struct -func NewPrivateDnsZoneGroupID(subscriptionId string, resourceGroupName string, privateEndpointName string, privateDnsZoneGroupName string) PrivateDnsZoneGroupId { - return PrivateDnsZoneGroupId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - PrivateEndpointName: privateEndpointName, - PrivateDnsZoneGroupName: privateDnsZoneGroupName, - } -} - -// ParsePrivateDnsZoneGroupID parses 'input' into a PrivateDnsZoneGroupId -func ParsePrivateDnsZoneGroupID(input string) (*PrivateDnsZoneGroupId, error) { - parser := resourceids.NewParserFromResourceIdType(&PrivateDnsZoneGroupId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := PrivateDnsZoneGroupId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParsePrivateDnsZoneGroupIDInsensitively parses 'input' case-insensitively into a PrivateDnsZoneGroupId -// note: this method should only be used for API response data and not user input -func ParsePrivateDnsZoneGroupIDInsensitively(input string) (*PrivateDnsZoneGroupId, error) { - parser := resourceids.NewParserFromResourceIdType(&PrivateDnsZoneGroupId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := PrivateDnsZoneGroupId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *PrivateDnsZoneGroupId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.PrivateEndpointName, ok = input.Parsed["privateEndpointName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "privateEndpointName", input) - } - - if id.PrivateDnsZoneGroupName, ok = input.Parsed["privateDnsZoneGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "privateDnsZoneGroupName", input) - } - - return nil -} - -// ValidatePrivateDnsZoneGroupID checks that 'input' can be parsed as a Private Dns Zone Group ID -func ValidatePrivateDnsZoneGroupID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParsePrivateDnsZoneGroupID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Private Dns Zone Group ID -func (id PrivateDnsZoneGroupId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/privateEndpoints/%s/privateDnsZoneGroups/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.PrivateEndpointName, id.PrivateDnsZoneGroupName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Private Dns Zone Group ID -func (id PrivateDnsZoneGroupId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticPrivateEndpoints", "privateEndpoints", "privateEndpoints"), - resourceids.UserSpecifiedSegment("privateEndpointName", "privateEndpointName"), - resourceids.StaticSegment("staticPrivateDnsZoneGroups", "privateDnsZoneGroups", "privateDnsZoneGroups"), - resourceids.UserSpecifiedSegment("privateDnsZoneGroupName", "privateDnsZoneGroupName"), - } -} - -// String returns a human-readable description of this Private Dns Zone Group ID -func (id PrivateDnsZoneGroupId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Private Endpoint Name: %q", id.PrivateEndpointName), - fmt.Sprintf("Private Dns Zone Group Name: %q", id.PrivateDnsZoneGroupName), - } - return fmt.Sprintf("Private Dns Zone Group (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privateendpoint.go deleted file mode 100644 index 858dc908589e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privateendpoint.go +++ /dev/null @@ -1,130 +0,0 @@ -package privatednszonegroups - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&PrivateEndpointId{}) -} - -var _ resourceids.ResourceId = &PrivateEndpointId{} - -// PrivateEndpointId is a struct representing the Resource ID for a Private Endpoint -type PrivateEndpointId struct { - SubscriptionId string - ResourceGroupName string - PrivateEndpointName string -} - -// NewPrivateEndpointID returns a new PrivateEndpointId struct -func NewPrivateEndpointID(subscriptionId string, resourceGroupName string, privateEndpointName string) PrivateEndpointId { - return PrivateEndpointId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - PrivateEndpointName: privateEndpointName, - } -} - -// ParsePrivateEndpointID parses 'input' into a PrivateEndpointId -func ParsePrivateEndpointID(input string) (*PrivateEndpointId, error) { - parser := resourceids.NewParserFromResourceIdType(&PrivateEndpointId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := PrivateEndpointId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParsePrivateEndpointIDInsensitively parses 'input' case-insensitively into a PrivateEndpointId -// note: this method should only be used for API response data and not user input -func ParsePrivateEndpointIDInsensitively(input string) (*PrivateEndpointId, error) { - parser := resourceids.NewParserFromResourceIdType(&PrivateEndpointId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := PrivateEndpointId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *PrivateEndpointId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.PrivateEndpointName, ok = input.Parsed["privateEndpointName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "privateEndpointName", input) - } - - return nil -} - -// ValidatePrivateEndpointID checks that 'input' can be parsed as a Private Endpoint ID -func ValidatePrivateEndpointID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParsePrivateEndpointID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Private Endpoint ID -func (id PrivateEndpointId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/privateEndpoints/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.PrivateEndpointName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Private Endpoint ID -func (id PrivateEndpointId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticPrivateEndpoints", "privateEndpoints", "privateEndpoints"), - resourceids.UserSpecifiedSegment("privateEndpointName", "privateEndpointName"), - } -} - -// String returns a human-readable description of this Private Endpoint ID -func (id PrivateEndpointId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Private Endpoint Name: %q", id.PrivateEndpointName), - } - return fmt.Sprintf("Private Endpoint (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_createorupdate.go deleted file mode 100644 index 88dadb3a0a50..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package privatednszonegroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *PrivateDnsZoneGroup -} - -// CreateOrUpdate ... -func (c PrivateDnsZoneGroupsClient) CreateOrUpdate(ctx context.Context, id PrivateDnsZoneGroupId, input PrivateDnsZoneGroup) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c PrivateDnsZoneGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id PrivateDnsZoneGroupId, input PrivateDnsZoneGroup) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_delete.go deleted file mode 100644 index cdf382f2686c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package privatednszonegroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c PrivateDnsZoneGroupsClient) Delete(ctx context.Context, id PrivateDnsZoneGroupId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c PrivateDnsZoneGroupsClient) DeleteThenPoll(ctx context.Context, id PrivateDnsZoneGroupId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_get.go deleted file mode 100644 index b0a317bbf4db..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package privatednszonegroups - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *PrivateDnsZoneGroup -} - -// Get ... -func (c PrivateDnsZoneGroupsClient) Get(ctx context.Context, id PrivateDnsZoneGroupId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model PrivateDnsZoneGroup - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_list.go deleted file mode 100644 index 3abf08b87af6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_list.go +++ /dev/null @@ -1,105 +0,0 @@ -package privatednszonegroups - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]PrivateDnsZoneGroup -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []PrivateDnsZoneGroup -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c PrivateDnsZoneGroupsClient) List(ctx context.Context, id PrivateEndpointId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/privateDnsZoneGroups", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]PrivateDnsZoneGroup `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c PrivateDnsZoneGroupsClient) ListComplete(ctx context.Context, id PrivateEndpointId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, PrivateDnsZoneGroupOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c PrivateDnsZoneGroupsClient) ListCompleteMatchingPredicate(ctx context.Context, id PrivateEndpointId, predicate PrivateDnsZoneGroupOperationPredicate) (result ListCompleteResult, err error) { - items := make([]PrivateDnsZoneGroup, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszoneconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszoneconfig.go deleted file mode 100644 index e44ef143e5cd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszoneconfig.go +++ /dev/null @@ -1,9 +0,0 @@ -package privatednszonegroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateDnsZoneConfig struct { - Name *string `json:"name,omitempty"` - Properties *PrivateDnsZonePropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonegroup.go deleted file mode 100644 index 75533fc47a56..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonegroup.go +++ /dev/null @@ -1,11 +0,0 @@ -package privatednszonegroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateDnsZoneGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateDnsZoneGroupPropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonegrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonegrouppropertiesformat.go deleted file mode 100644 index f892f5549652..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonegrouppropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package privatednszonegroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateDnsZoneGroupPropertiesFormat struct { - PrivateDnsZoneConfigs *[]PrivateDnsZoneConfig `json:"privateDnsZoneConfigs,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonepropertiesformat.go deleted file mode 100644 index 33858bfe24ee..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonepropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package privatednszonegroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateDnsZonePropertiesFormat struct { - PrivateDnsZoneId *string `json:"privateDnsZoneId,omitempty"` - RecordSets *[]RecordSet `json:"recordSets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_recordset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_recordset.go deleted file mode 100644 index 4a39969425d9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_recordset.go +++ /dev/null @@ -1,13 +0,0 @@ -package privatednszonegroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RecordSet struct { - Fqdn *string `json:"fqdn,omitempty"` - IPAddresses *[]string `json:"ipAddresses,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RecordSetName *string `json:"recordSetName,omitempty"` - RecordType *string `json:"recordType,omitempty"` - Ttl *int64 `json:"ttl,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/predicates.go deleted file mode 100644 index 4d27803d6e2a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/predicates.go +++ /dev/null @@ -1,27 +0,0 @@ -package privatednszonegroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateDnsZoneGroupOperationPredicate struct { - Etag *string - Id *string - Name *string -} - -func (p PrivateDnsZoneGroupOperationPredicate) Matches(input PrivateDnsZoneGroup) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/version.go deleted file mode 100644 index 6ddb0eb09e16..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package privatednszonegroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/privatednszonegroups/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/README.md deleted file mode 100644 index 2fe169fa1056..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/README.md +++ /dev/null @@ -1,134 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints` Documentation - -The `privateendpoints` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" -``` - - -### Client Initialization - -```go -client := privateendpoints.NewPrivateEndpointsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `PrivateEndpointsClient.AvailablePrivateEndpointTypesList` - -```go -ctx := context.TODO() -id := privateendpoints.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -// alternatively `client.AvailablePrivateEndpointTypesList(ctx, id)` can be used to do batched pagination -items, err := client.AvailablePrivateEndpointTypesListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `PrivateEndpointsClient.AvailablePrivateEndpointTypesListByResourceGroup` - -```go -ctx := context.TODO() -id := privateendpoints.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName") - -// alternatively `client.AvailablePrivateEndpointTypesListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.AvailablePrivateEndpointTypesListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `PrivateEndpointsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") - -payload := privateendpoints.PrivateEndpoint{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `PrivateEndpointsClient.Delete` - -```go -ctx := context.TODO() -id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `PrivateEndpointsClient.Get` - -```go -ctx := context.TODO() -id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") - -read, err := client.Get(ctx, id, privateendpoints.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PrivateEndpointsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `PrivateEndpointsClient.ListBySubscription` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination -items, err := client.ListBySubscriptionComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/client.go deleted file mode 100644 index d03b3dc1800b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package privateendpoints - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointsClient struct { - Client *resourcemanager.Client -} - -func NewPrivateEndpointsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateEndpointsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "privateendpoints", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating PrivateEndpointsClient: %+v", err) - } - - return &PrivateEndpointsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/constants.go deleted file mode 100644 index 0398aa0f9251..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/constants.go +++ /dev/null @@ -1,1198 +0,0 @@ -package privateendpoints - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosSettingsProtectionMode string - -const ( - DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" - DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" - DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" -) - -func PossibleValuesForDdosSettingsProtectionMode() []string { - return []string{ - string(DdosSettingsProtectionModeDisabled), - string(DdosSettingsProtectionModeEnabled), - string(DdosSettingsProtectionModeVirtualNetworkInherited), - } -} - -func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDdosSettingsProtectionMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { - vals := map[string]DdosSettingsProtectionMode{ - "disabled": DdosSettingsProtectionModeDisabled, - "enabled": DdosSettingsProtectionModeEnabled, - "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DdosSettingsProtectionMode(input) - return &out, nil -} - -type DeleteOptions string - -const ( - DeleteOptionsDelete DeleteOptions = "Delete" - DeleteOptionsDetach DeleteOptions = "Detach" -) - -func PossibleValuesForDeleteOptions() []string { - return []string{ - string(DeleteOptionsDelete), - string(DeleteOptionsDetach), - } -} - -func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDeleteOptions(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDeleteOptions(input string) (*DeleteOptions, error) { - vals := map[string]DeleteOptions{ - "delete": DeleteOptionsDelete, - "detach": DeleteOptionsDetach, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DeleteOptions(input) - return &out, nil -} - -type FlowLogFormatType string - -const ( - FlowLogFormatTypeJSON FlowLogFormatType = "JSON" -) - -func PossibleValuesForFlowLogFormatType() []string { - return []string{ - string(FlowLogFormatTypeJSON), - } -} - -func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseFlowLogFormatType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { - vals := map[string]FlowLogFormatType{ - "json": FlowLogFormatTypeJSON, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := FlowLogFormatType(input) - return &out, nil -} - -type GatewayLoadBalancerTunnelInterfaceType string - -const ( - GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" - GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" - GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" -) - -func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { - return []string{ - string(GatewayLoadBalancerTunnelInterfaceTypeExternal), - string(GatewayLoadBalancerTunnelInterfaceTypeInternal), - string(GatewayLoadBalancerTunnelInterfaceTypeNone), - } -} - -func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { - vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ - "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, - "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, - "none": GatewayLoadBalancerTunnelInterfaceTypeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GatewayLoadBalancerTunnelInterfaceType(input) - return &out, nil -} - -type GatewayLoadBalancerTunnelProtocol string - -const ( - GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" - GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" - GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" -) - -func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { - return []string{ - string(GatewayLoadBalancerTunnelProtocolNative), - string(GatewayLoadBalancerTunnelProtocolNone), - string(GatewayLoadBalancerTunnelProtocolVXLAN), - } -} - -func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { - vals := map[string]GatewayLoadBalancerTunnelProtocol{ - "native": GatewayLoadBalancerTunnelProtocolNative, - "none": GatewayLoadBalancerTunnelProtocolNone, - "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GatewayLoadBalancerTunnelProtocol(input) - return &out, nil -} - -type IPAllocationMethod string - -const ( - IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" - IPAllocationMethodStatic IPAllocationMethod = "Static" -) - -func PossibleValuesForIPAllocationMethod() []string { - return []string{ - string(IPAllocationMethodDynamic), - string(IPAllocationMethodStatic), - } -} - -func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPAllocationMethod(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { - vals := map[string]IPAllocationMethod{ - "dynamic": IPAllocationMethodDynamic, - "static": IPAllocationMethodStatic, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPAllocationMethod(input) - return &out, nil -} - -type IPVersion string - -const ( - IPVersionIPvFour IPVersion = "IPv4" - IPVersionIPvSix IPVersion = "IPv6" -) - -func PossibleValuesForIPVersion() []string { - return []string{ - string(IPVersionIPvFour), - string(IPVersionIPvSix), - } -} - -func (s *IPVersion) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPVersion(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPVersion(input string) (*IPVersion, error) { - vals := map[string]IPVersion{ - "ipv4": IPVersionIPvFour, - "ipv6": IPVersionIPvSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPVersion(input) - return &out, nil -} - -type LoadBalancerBackendAddressAdminState string - -const ( - LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" - LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" - LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" -) - -func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { - return []string{ - string(LoadBalancerBackendAddressAdminStateDown), - string(LoadBalancerBackendAddressAdminStateNone), - string(LoadBalancerBackendAddressAdminStateUp), - } -} - -func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerBackendAddressAdminState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { - vals := map[string]LoadBalancerBackendAddressAdminState{ - "down": LoadBalancerBackendAddressAdminStateDown, - "none": LoadBalancerBackendAddressAdminStateNone, - "up": LoadBalancerBackendAddressAdminStateUp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerBackendAddressAdminState(input) - return &out, nil -} - -type NatGatewaySkuName string - -const ( - NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" -) - -func PossibleValuesForNatGatewaySkuName() []string { - return []string{ - string(NatGatewaySkuNameStandard), - } -} - -func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNatGatewaySkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { - vals := map[string]NatGatewaySkuName{ - "standard": NatGatewaySkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NatGatewaySkuName(input) - return &out, nil -} - -type NetworkInterfaceAuxiliaryMode string - -const ( - NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" - NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" - NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" - NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" -) - -func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { - return []string{ - string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), - string(NetworkInterfaceAuxiliaryModeFloating), - string(NetworkInterfaceAuxiliaryModeMaxConnections), - string(NetworkInterfaceAuxiliaryModeNone), - } -} - -func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceAuxiliaryMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { - vals := map[string]NetworkInterfaceAuxiliaryMode{ - "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, - "floating": NetworkInterfaceAuxiliaryModeFloating, - "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, - "none": NetworkInterfaceAuxiliaryModeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceAuxiliaryMode(input) - return &out, nil -} - -type NetworkInterfaceAuxiliarySku string - -const ( - NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" - NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" - NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" - NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" - NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" -) - -func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { - return []string{ - string(NetworkInterfaceAuxiliarySkuAEight), - string(NetworkInterfaceAuxiliarySkuAFour), - string(NetworkInterfaceAuxiliarySkuAOne), - string(NetworkInterfaceAuxiliarySkuATwo), - string(NetworkInterfaceAuxiliarySkuNone), - } -} - -func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceAuxiliarySku(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { - vals := map[string]NetworkInterfaceAuxiliarySku{ - "a8": NetworkInterfaceAuxiliarySkuAEight, - "a4": NetworkInterfaceAuxiliarySkuAFour, - "a1": NetworkInterfaceAuxiliarySkuAOne, - "a2": NetworkInterfaceAuxiliarySkuATwo, - "none": NetworkInterfaceAuxiliarySkuNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceAuxiliarySku(input) - return &out, nil -} - -type NetworkInterfaceMigrationPhase string - -const ( - NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" - NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" - NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" - NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" - NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" -) - -func PossibleValuesForNetworkInterfaceMigrationPhase() []string { - return []string{ - string(NetworkInterfaceMigrationPhaseAbort), - string(NetworkInterfaceMigrationPhaseCommit), - string(NetworkInterfaceMigrationPhaseCommitted), - string(NetworkInterfaceMigrationPhaseNone), - string(NetworkInterfaceMigrationPhasePrepare), - } -} - -func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceMigrationPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { - vals := map[string]NetworkInterfaceMigrationPhase{ - "abort": NetworkInterfaceMigrationPhaseAbort, - "commit": NetworkInterfaceMigrationPhaseCommit, - "committed": NetworkInterfaceMigrationPhaseCommitted, - "none": NetworkInterfaceMigrationPhaseNone, - "prepare": NetworkInterfaceMigrationPhasePrepare, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceMigrationPhase(input) - return &out, nil -} - -type NetworkInterfaceNicType string - -const ( - NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" - NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" -) - -func PossibleValuesForNetworkInterfaceNicType() []string { - return []string{ - string(NetworkInterfaceNicTypeElastic), - string(NetworkInterfaceNicTypeStandard), - } -} - -func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceNicType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { - vals := map[string]NetworkInterfaceNicType{ - "elastic": NetworkInterfaceNicTypeElastic, - "standard": NetworkInterfaceNicTypeStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceNicType(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type PublicIPAddressDnsSettingsDomainNameLabelScope string - -const ( - PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" -) - -func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { - return []string{ - string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), - } -} - -func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { - vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ - "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, - "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, - "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, - "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) - return &out, nil -} - -type PublicIPAddressMigrationPhase string - -const ( - PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" - PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" - PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" - PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" - PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" -) - -func PossibleValuesForPublicIPAddressMigrationPhase() []string { - return []string{ - string(PublicIPAddressMigrationPhaseAbort), - string(PublicIPAddressMigrationPhaseCommit), - string(PublicIPAddressMigrationPhaseCommitted), - string(PublicIPAddressMigrationPhaseNone), - string(PublicIPAddressMigrationPhasePrepare), - } -} - -func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressMigrationPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { - vals := map[string]PublicIPAddressMigrationPhase{ - "abort": PublicIPAddressMigrationPhaseAbort, - "commit": PublicIPAddressMigrationPhaseCommit, - "committed": PublicIPAddressMigrationPhaseCommitted, - "none": PublicIPAddressMigrationPhaseNone, - "prepare": PublicIPAddressMigrationPhasePrepare, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressMigrationPhase(input) - return &out, nil -} - -type PublicIPAddressSkuName string - -const ( - PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" - PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" -) - -func PossibleValuesForPublicIPAddressSkuName() []string { - return []string{ - string(PublicIPAddressSkuNameBasic), - string(PublicIPAddressSkuNameStandard), - } -} - -func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { - vals := map[string]PublicIPAddressSkuName{ - "basic": PublicIPAddressSkuNameBasic, - "standard": PublicIPAddressSkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressSkuName(input) - return &out, nil -} - -type PublicIPAddressSkuTier string - -const ( - PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" - PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" -) - -func PossibleValuesForPublicIPAddressSkuTier() []string { - return []string{ - string(PublicIPAddressSkuTierGlobal), - string(PublicIPAddressSkuTierRegional), - } -} - -func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { - vals := map[string]PublicIPAddressSkuTier{ - "global": PublicIPAddressSkuTierGlobal, - "regional": PublicIPAddressSkuTierRegional, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressSkuTier(input) - return &out, nil -} - -type RouteNextHopType string - -const ( - RouteNextHopTypeInternet RouteNextHopType = "Internet" - RouteNextHopTypeNone RouteNextHopType = "None" - RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" - RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" - RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" -) - -func PossibleValuesForRouteNextHopType() []string { - return []string{ - string(RouteNextHopTypeInternet), - string(RouteNextHopTypeNone), - string(RouteNextHopTypeVirtualAppliance), - string(RouteNextHopTypeVirtualNetworkGateway), - string(RouteNextHopTypeVnetLocal), - } -} - -func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseRouteNextHopType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseRouteNextHopType(input string) (*RouteNextHopType, error) { - vals := map[string]RouteNextHopType{ - "internet": RouteNextHopTypeInternet, - "none": RouteNextHopTypeNone, - "virtualappliance": RouteNextHopTypeVirtualAppliance, - "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, - "vnetlocal": RouteNextHopTypeVnetLocal, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := RouteNextHopType(input) - return &out, nil -} - -type SecurityRuleAccess string - -const ( - SecurityRuleAccessAllow SecurityRuleAccess = "Allow" - SecurityRuleAccessDeny SecurityRuleAccess = "Deny" -) - -func PossibleValuesForSecurityRuleAccess() []string { - return []string{ - string(SecurityRuleAccessAllow), - string(SecurityRuleAccessDeny), - } -} - -func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { - vals := map[string]SecurityRuleAccess{ - "allow": SecurityRuleAccessAllow, - "deny": SecurityRuleAccessDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleAccess(input) - return &out, nil -} - -type SecurityRuleDirection string - -const ( - SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" - SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" -) - -func PossibleValuesForSecurityRuleDirection() []string { - return []string{ - string(SecurityRuleDirectionInbound), - string(SecurityRuleDirectionOutbound), - } -} - -func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleDirection(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { - vals := map[string]SecurityRuleDirection{ - "inbound": SecurityRuleDirectionInbound, - "outbound": SecurityRuleDirectionOutbound, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleDirection(input) - return &out, nil -} - -type SecurityRuleProtocol string - -const ( - SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" - SecurityRuleProtocolAny SecurityRuleProtocol = "*" - SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" - SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" - SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" - SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" -) - -func PossibleValuesForSecurityRuleProtocol() []string { - return []string{ - string(SecurityRuleProtocolAh), - string(SecurityRuleProtocolAny), - string(SecurityRuleProtocolEsp), - string(SecurityRuleProtocolIcmp), - string(SecurityRuleProtocolTcp), - string(SecurityRuleProtocolUdp), - } -} - -func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { - vals := map[string]SecurityRuleProtocol{ - "ah": SecurityRuleProtocolAh, - "*": SecurityRuleProtocolAny, - "esp": SecurityRuleProtocolEsp, - "icmp": SecurityRuleProtocolIcmp, - "tcp": SecurityRuleProtocolTcp, - "udp": SecurityRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleProtocol(input) - return &out, nil -} - -type SharingScope string - -const ( - SharingScopeDelegatedServices SharingScope = "DelegatedServices" - SharingScopeTenant SharingScope = "Tenant" -) - -func PossibleValuesForSharingScope() []string { - return []string{ - string(SharingScopeDelegatedServices), - string(SharingScopeTenant), - } -} - -func (s *SharingScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSharingScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSharingScope(input string) (*SharingScope, error) { - vals := map[string]SharingScope{ - "delegatedservices": SharingScopeDelegatedServices, - "tenant": SharingScopeTenant, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SharingScope(input) - return &out, nil -} - -type SyncMode string - -const ( - SyncModeAutomatic SyncMode = "Automatic" - SyncModeManual SyncMode = "Manual" -) - -func PossibleValuesForSyncMode() []string { - return []string{ - string(SyncModeAutomatic), - string(SyncModeManual), - } -} - -func (s *SyncMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSyncMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSyncMode(input string) (*SyncMode, error) { - vals := map[string]SyncMode{ - "automatic": SyncModeAutomatic, - "manual": SyncModeManual, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SyncMode(input) - return &out, nil -} - -type TransportProtocol string - -const ( - TransportProtocolAll TransportProtocol = "All" - TransportProtocolTcp TransportProtocol = "Tcp" - TransportProtocolUdp TransportProtocol = "Udp" -) - -func PossibleValuesForTransportProtocol() []string { - return []string{ - string(TransportProtocolAll), - string(TransportProtocolTcp), - string(TransportProtocolUdp), - } -} - -func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseTransportProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseTransportProtocol(input string) (*TransportProtocol, error) { - vals := map[string]TransportProtocol{ - "all": TransportProtocolAll, - "tcp": TransportProtocolTcp, - "udp": TransportProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := TransportProtocol(input) - return &out, nil -} - -type VirtualNetworkPrivateEndpointNetworkPolicies string - -const ( - VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" - VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" - VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" - VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" -) - -func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { - return []string{ - string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), - } -} - -func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { - vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ - "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, - "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, - "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, - "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPrivateEndpointNetworkPolicies(input) - return &out, nil -} - -type VirtualNetworkPrivateLinkServiceNetworkPolicies string - -const ( - VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" - VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" -) - -func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { - return []string{ - string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), - string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), - } -} - -func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { - vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ - "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, - "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_location.go deleted file mode 100644 index 77d85ed86a27..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_location.go +++ /dev/null @@ -1,121 +0,0 @@ -package privateendpoints - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&LocationId{}) -} - -var _ resourceids.ResourceId = &LocationId{} - -// LocationId is a struct representing the Resource ID for a Location -type LocationId struct { - SubscriptionId string - LocationName string -} - -// NewLocationID returns a new LocationId struct -func NewLocationID(subscriptionId string, locationName string) LocationId { - return LocationId{ - SubscriptionId: subscriptionId, - LocationName: locationName, - } -} - -// ParseLocationID parses 'input' into a LocationId -func ParseLocationID(input string) (*LocationId, error) { - parser := resourceids.NewParserFromResourceIdType(&LocationId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := LocationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId -// note: this method should only be used for API response data and not user input -func ParseLocationIDInsensitively(input string) (*LocationId, error) { - parser := resourceids.NewParserFromResourceIdType(&LocationId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := LocationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *LocationId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.LocationName, ok = input.Parsed["locationName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) - } - - return nil -} - -// ValidateLocationID checks that 'input' can be parsed as a Location ID -func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseLocationID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Location ID -func (id LocationId) ID() string { - fmtString := "/subscriptions/%s/providers/Microsoft.Network/locations/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.LocationName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Location ID -func (id LocationId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationName"), - } -} - -// String returns a human-readable description of this Location ID -func (id LocationId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Location Name: %q", id.LocationName), - } - return fmt.Sprintf("Location (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_privateendpoint.go deleted file mode 100644 index 09fd6278c207..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_privateendpoint.go +++ /dev/null @@ -1,130 +0,0 @@ -package privateendpoints - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&PrivateEndpointId{}) -} - -var _ resourceids.ResourceId = &PrivateEndpointId{} - -// PrivateEndpointId is a struct representing the Resource ID for a Private Endpoint -type PrivateEndpointId struct { - SubscriptionId string - ResourceGroupName string - PrivateEndpointName string -} - -// NewPrivateEndpointID returns a new PrivateEndpointId struct -func NewPrivateEndpointID(subscriptionId string, resourceGroupName string, privateEndpointName string) PrivateEndpointId { - return PrivateEndpointId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - PrivateEndpointName: privateEndpointName, - } -} - -// ParsePrivateEndpointID parses 'input' into a PrivateEndpointId -func ParsePrivateEndpointID(input string) (*PrivateEndpointId, error) { - parser := resourceids.NewParserFromResourceIdType(&PrivateEndpointId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := PrivateEndpointId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParsePrivateEndpointIDInsensitively parses 'input' case-insensitively into a PrivateEndpointId -// note: this method should only be used for API response data and not user input -func ParsePrivateEndpointIDInsensitively(input string) (*PrivateEndpointId, error) { - parser := resourceids.NewParserFromResourceIdType(&PrivateEndpointId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := PrivateEndpointId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *PrivateEndpointId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.PrivateEndpointName, ok = input.Parsed["privateEndpointName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "privateEndpointName", input) - } - - return nil -} - -// ValidatePrivateEndpointID checks that 'input' can be parsed as a Private Endpoint ID -func ValidatePrivateEndpointID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParsePrivateEndpointID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Private Endpoint ID -func (id PrivateEndpointId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/privateEndpoints/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.PrivateEndpointName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Private Endpoint ID -func (id PrivateEndpointId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticPrivateEndpoints", "privateEndpoints", "privateEndpoints"), - resourceids.UserSpecifiedSegment("privateEndpointName", "privateEndpointName"), - } -} - -// String returns a human-readable description of this Private Endpoint ID -func (id PrivateEndpointId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Private Endpoint Name: %q", id.PrivateEndpointName), - } - return fmt.Sprintf("Private Endpoint (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_providerlocation.go deleted file mode 100644 index 5bf08d4e8612..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_providerlocation.go +++ /dev/null @@ -1,130 +0,0 @@ -package privateendpoints - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&ProviderLocationId{}) -} - -var _ resourceids.ResourceId = &ProviderLocationId{} - -// ProviderLocationId is a struct representing the Resource ID for a Provider Location -type ProviderLocationId struct { - SubscriptionId string - ResourceGroupName string - LocationName string -} - -// NewProviderLocationID returns a new ProviderLocationId struct -func NewProviderLocationID(subscriptionId string, resourceGroupName string, locationName string) ProviderLocationId { - return ProviderLocationId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - LocationName: locationName, - } -} - -// ParseProviderLocationID parses 'input' into a ProviderLocationId -func ParseProviderLocationID(input string) (*ProviderLocationId, error) { - parser := resourceids.NewParserFromResourceIdType(&ProviderLocationId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ProviderLocationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseProviderLocationIDInsensitively parses 'input' case-insensitively into a ProviderLocationId -// note: this method should only be used for API response data and not user input -func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, error) { - parser := resourceids.NewParserFromResourceIdType(&ProviderLocationId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ProviderLocationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *ProviderLocationId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.LocationName, ok = input.Parsed["locationName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) - } - - return nil -} - -// ValidateProviderLocationID checks that 'input' can be parsed as a Provider Location ID -func ValidateProviderLocationID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseProviderLocationID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Provider Location ID -func (id ProviderLocationId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/locations/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.LocationName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Provider Location ID -func (id ProviderLocationId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationName"), - } -} - -// String returns a human-readable description of this Provider Location ID -func (id ProviderLocationId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Location Name: %q", id.LocationName), - } - return fmt.Sprintf("Provider Location (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslist.go deleted file mode 100644 index f0c9af2990d3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslist.go +++ /dev/null @@ -1,105 +0,0 @@ -package privateendpoints - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AvailablePrivateEndpointTypesListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]AvailablePrivateEndpointType -} - -type AvailablePrivateEndpointTypesListCompleteResult struct { - LatestHttpResponse *http.Response - Items []AvailablePrivateEndpointType -} - -type AvailablePrivateEndpointTypesListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *AvailablePrivateEndpointTypesListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// AvailablePrivateEndpointTypesList ... -func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesList(ctx context.Context, id LocationId) (result AvailablePrivateEndpointTypesListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &AvailablePrivateEndpointTypesListCustomPager{}, - Path: fmt.Sprintf("%s/availablePrivateEndpointTypes", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]AvailablePrivateEndpointType `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// AvailablePrivateEndpointTypesListComplete retrieves all the results into a single object -func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListComplete(ctx context.Context, id LocationId) (AvailablePrivateEndpointTypesListCompleteResult, error) { - return c.AvailablePrivateEndpointTypesListCompleteMatchingPredicate(ctx, id, AvailablePrivateEndpointTypeOperationPredicate{}) -} - -// AvailablePrivateEndpointTypesListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate AvailablePrivateEndpointTypeOperationPredicate) (result AvailablePrivateEndpointTypesListCompleteResult, err error) { - items := make([]AvailablePrivateEndpointType, 0) - - resp, err := c.AvailablePrivateEndpointTypesList(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = AvailablePrivateEndpointTypesListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go deleted file mode 100644 index 259ea902b1ff..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go +++ /dev/null @@ -1,105 +0,0 @@ -package privateendpoints - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AvailablePrivateEndpointTypesListByResourceGroupOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]AvailablePrivateEndpointType -} - -type AvailablePrivateEndpointTypesListByResourceGroupCompleteResult struct { - LatestHttpResponse *http.Response - Items []AvailablePrivateEndpointType -} - -type AvailablePrivateEndpointTypesListByResourceGroupCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *AvailablePrivateEndpointTypesListByResourceGroupCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// AvailablePrivateEndpointTypesListByResourceGroup ... -func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListByResourceGroup(ctx context.Context, id ProviderLocationId) (result AvailablePrivateEndpointTypesListByResourceGroupOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &AvailablePrivateEndpointTypesListByResourceGroupCustomPager{}, - Path: fmt.Sprintf("%s/availablePrivateEndpointTypes", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]AvailablePrivateEndpointType `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// AvailablePrivateEndpointTypesListByResourceGroupComplete retrieves all the results into a single object -func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListByResourceGroupComplete(ctx context.Context, id ProviderLocationId) (AvailablePrivateEndpointTypesListByResourceGroupCompleteResult, error) { - return c.AvailablePrivateEndpointTypesListByResourceGroupCompleteMatchingPredicate(ctx, id, AvailablePrivateEndpointTypeOperationPredicate{}) -} - -// AvailablePrivateEndpointTypesListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id ProviderLocationId, predicate AvailablePrivateEndpointTypeOperationPredicate) (result AvailablePrivateEndpointTypesListByResourceGroupCompleteResult, err error) { - items := make([]AvailablePrivateEndpointType, 0) - - resp, err := c.AvailablePrivateEndpointTypesListByResourceGroup(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = AvailablePrivateEndpointTypesListByResourceGroupCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_createorupdate.go deleted file mode 100644 index b5055a0cda4b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package privateendpoints - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *PrivateEndpoint -} - -// CreateOrUpdate ... -func (c PrivateEndpointsClient) CreateOrUpdate(ctx context.Context, id PrivateEndpointId, input PrivateEndpoint) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c PrivateEndpointsClient) CreateOrUpdateThenPoll(ctx context.Context, id PrivateEndpointId, input PrivateEndpoint) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_delete.go deleted file mode 100644 index 70f382bf8e3b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package privateendpoints - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c PrivateEndpointsClient) Delete(ctx context.Context, id PrivateEndpointId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c PrivateEndpointsClient) DeleteThenPoll(ctx context.Context, id PrivateEndpointId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_get.go deleted file mode 100644 index 559e0f436c5a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_get.go +++ /dev/null @@ -1,83 +0,0 @@ -package privateendpoints - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *PrivateEndpoint -} - -type GetOperationOptions struct { - Expand *string -} - -func DefaultGetOperationOptions() GetOperationOptions { - return GetOperationOptions{} -} - -func (o GetOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o GetOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o GetOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Expand != nil { - out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) - } - return &out -} - -// Get ... -func (c PrivateEndpointsClient) Get(ctx context.Context, id PrivateEndpointId, options GetOperationOptions) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model PrivateEndpoint - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_list.go deleted file mode 100644 index f832db84c7a7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package privateendpoints - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]PrivateEndpoint -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []PrivateEndpoint -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c PrivateEndpointsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateEndpoints", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]PrivateEndpoint `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c PrivateEndpointsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, PrivateEndpointOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c PrivateEndpointsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate PrivateEndpointOperationPredicate) (result ListCompleteResult, err error) { - items := make([]PrivateEndpoint, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_listbysubscription.go deleted file mode 100644 index c517e23cdbf1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_listbysubscription.go +++ /dev/null @@ -1,106 +0,0 @@ -package privateendpoints - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListBySubscriptionOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]PrivateEndpoint -} - -type ListBySubscriptionCompleteResult struct { - LatestHttpResponse *http.Response - Items []PrivateEndpoint -} - -type ListBySubscriptionCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListBySubscription ... -func (c PrivateEndpointsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListBySubscriptionCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateEndpoints", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]PrivateEndpoint `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListBySubscriptionComplete retrieves all the results into a single object -func (c PrivateEndpointsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error) { - return c.ListBySubscriptionCompleteMatchingPredicate(ctx, id, PrivateEndpointOperationPredicate{}) -} - -// ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c PrivateEndpointsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate PrivateEndpointOperationPredicate) (result ListBySubscriptionCompleteResult, err error) { - items := make([]PrivateEndpoint, 0) - - resp, err := c.ListBySubscription(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListBySubscriptionCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddress.go deleted file mode 100644 index b8767a924d33..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddress.go +++ /dev/null @@ -1,9 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayBackendAddress struct { - Fqdn *string `json:"fqdn,omitempty"` - IPAddress *string `json:"ipAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddresspool.go deleted file mode 100644 index faea7af96350..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddresspool.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayBackendAddressPool struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddresspoolpropertiesformat.go deleted file mode 100644 index bc45532ef998..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddresspoolpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { - BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` - BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewayipconfiguration.go deleted file mode 100644 index d7b619385a01..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewayipconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewayipconfigurationpropertiesformat.go deleted file mode 100644 index 0975b3a3c18e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewayipconfigurationpropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayIPConfigurationPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *SubResource `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationsecuritygroup.go deleted file mode 100644 index b514ce65a104..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationsecuritygroup.go +++ /dev/null @@ -1,14 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationsecuritygrouppropertiesformat.go deleted file mode 100644 index c505be8adad1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationsecuritygrouppropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroupPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_availableprivateendpointtype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_availableprivateendpointtype.go deleted file mode 100644 index c6aa8839dc14..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_availableprivateendpointtype.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AvailablePrivateEndpointType struct { - DisplayName *string `json:"displayName,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - ResourceName *string `json:"resourceName,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_backendaddresspool.go deleted file mode 100644 index afaee89cd0ab..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_backendaddresspool.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BackendAddressPool struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_backendaddresspoolpropertiesformat.go deleted file mode 100644 index 7079b8612911..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_backendaddresspoolpropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BackendAddressPoolPropertiesFormat struct { - BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` - DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` - InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` - LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` - LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` - Location *string `json:"location,omitempty"` - OutboundRule *SubResource `json:"outboundRule,omitempty"` - OutboundRules *[]SubResource `json:"outboundRules,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - SyncMode *SyncMode `json:"syncMode,omitempty"` - TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` - VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_customdnsconfigpropertiesformat.go deleted file mode 100644 index a078479b1cf9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_customdnsconfigpropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CustomDnsConfigPropertiesFormat struct { - Fqdn *string `json:"fqdn,omitempty"` - IPAddresses *[]string `json:"ipAddresses,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ddossettings.go deleted file mode 100644 index 6253ff1e5a4f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ddossettings.go +++ /dev/null @@ -1,9 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosSettings struct { - DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` - ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_delegation.go deleted file mode 100644 index fd6104e1e68c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_delegation.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Delegation struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlog.go deleted file mode 100644 index bce1bcfe8ad0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlogformatparameters.go deleted file mode 100644 index a15c48049c6c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlogformatparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogFormatParameters struct { - Type *FlowLogFormatType `json:"type,omitempty"` - Version *int64 `json:"version,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlogpropertiesformat.go deleted file mode 100644 index 6f45378b9d17..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_frontendipconfiguration.go deleted file mode 100644 index 3dcb8560fec0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_frontendipconfiguration.go +++ /dev/null @@ -1,17 +0,0 @@ -package privateendpoints - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FrontendIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_frontendipconfigurationpropertiesformat.go deleted file mode 100644 index 8980fc3756f2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_frontendipconfigurationpropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FrontendIPConfigurationPropertiesFormat struct { - GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` - InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` - InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` - LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` - OutboundRules *[]SubResource `json:"outboundRules,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` - PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_gatewayloadbalancertunnelinterface.go deleted file mode 100644 index dde47c23fb21..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_gatewayloadbalancertunnelinterface.go +++ /dev/null @@ -1,11 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GatewayLoadBalancerTunnelInterface struct { - Identifier *int64 `json:"identifier,omitempty"` - Port *int64 `json:"port,omitempty"` - Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` - Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_inboundnatrule.go deleted file mode 100644 index 38c0ffd67281..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_inboundnatrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundNatRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_inboundnatrulepropertiesformat.go deleted file mode 100644 index b952302ddebd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_inboundnatrulepropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundNatRulePropertiesFormat struct { - BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` - BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` - BackendPort *int64 `json:"backendPort,omitempty"` - EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` - EnableTcpReset *bool `json:"enableTcpReset,omitempty"` - FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` - FrontendPort *int64 `json:"frontendPort,omitempty"` - FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` - FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - Protocol *TransportProtocol `json:"protocol,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfiguration.go deleted file mode 100644 index cf18ee9415ba..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfiguration.go +++ /dev/null @@ -1,11 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationprofile.go deleted file mode 100644 index d493529c992a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationprofile.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfigurationProfile struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationprofilepropertiesformat.go deleted file mode 100644 index dabdbd7c8411..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationprofilepropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfigurationProfilePropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationpropertiesformat.go deleted file mode 100644 index fdfdcd1d175e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationpropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfigurationPropertiesFormat struct { - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_iptag.go deleted file mode 100644 index 83206500edce..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_iptag.go +++ /dev/null @@ -1,9 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPTag struct { - IPTagType *string `json:"ipTagType,omitempty"` - Tag *string `json:"tag,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_loadbalancerbackendaddress.go deleted file mode 100644 index ee77fec93c3d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_loadbalancerbackendaddress.go +++ /dev/null @@ -1,9 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LoadBalancerBackendAddress struct { - Name *string `json:"name,omitempty"` - Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_loadbalancerbackendaddresspropertiesformat.go deleted file mode 100644 index 9be73b64841e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_loadbalancerbackendaddresspropertiesformat.go +++ /dev/null @@ -1,14 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LoadBalancerBackendAddressPropertiesFormat struct { - AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` - IPAddress *string `json:"ipAddress,omitempty"` - InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` - LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` - NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` - Subnet *SubResource `json:"subnet,omitempty"` - VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgateway.go deleted file mode 100644 index e197bcd7adab..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgateway.go +++ /dev/null @@ -1,20 +0,0 @@ -package privateendpoints - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGateway struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` - Sku *NatGatewaySku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgatewaypropertiesformat.go deleted file mode 100644 index fc0ee1ef6da7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgatewaypropertiesformat.go +++ /dev/null @@ -1,13 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGatewayPropertiesFormat struct { - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` - PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - Subnets *[]SubResource `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgatewaysku.go deleted file mode 100644 index c0b2d583e49e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgatewaysku.go +++ /dev/null @@ -1,8 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGatewaySku struct { - Name *NatGatewaySkuName `json:"name,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natruleportmapping.go deleted file mode 100644 index 07eeaf979f4e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natruleportmapping.go +++ /dev/null @@ -1,10 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatRulePortMapping struct { - BackendPort *int64 `json:"backendPort,omitempty"` - FrontendPort *int64 `json:"frontendPort,omitempty"` - InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterface.go deleted file mode 100644 index 9e9c7fcfa82f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterface.go +++ /dev/null @@ -1,19 +0,0 @@ -package privateendpoints - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterface struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacednssettings.go deleted file mode 100644 index 5182d846bf12..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacednssettings.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceDnsSettings struct { - AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` - DnsServers *[]string `json:"dnsServers,omitempty"` - InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` - InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` - InternalFqdn *string `json:"internalFqdn,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfiguration.go deleted file mode 100644 index e41eb348a7b5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go deleted file mode 100644 index ac6a234dd34b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { - Fqdns *[]string `json:"fqdns,omitempty"` - GroupId *string `json:"groupId,omitempty"` - RequiredMemberName *string `json:"requiredMemberName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfigurationpropertiesformat.go deleted file mode 100644 index 49402e36c835..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfigurationpropertiesformat.go +++ /dev/null @@ -1,22 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfigurationPropertiesFormat struct { - ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` - ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` - GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` - LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` - LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` - Primary *bool `json:"primary,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` - VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacepropertiesformat.go deleted file mode 100644 index a5fd36f92666..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacepropertiesformat.go +++ /dev/null @@ -1,29 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfacePropertiesFormat struct { - AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` - AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` - DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` - DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` - DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` - EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` - EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` - HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` - IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` - MacAddress *string `json:"macAddress,omitempty"` - MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` - NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` - NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` - Primary *bool `json:"primary,omitempty"` - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` - PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` - VirtualMachine *SubResource `json:"virtualMachine,omitempty"` - VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` - WorkloadType *string `json:"workloadType,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacetapconfiguration.go deleted file mode 100644 index ebe35c0a1782..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacetapconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceTapConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacetapconfigurationpropertiesformat.go deleted file mode 100644 index 54e437f339f3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacetapconfigurationpropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceTapConfigurationPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networksecuritygroup.go deleted file mode 100644 index cb420b609909..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networksecuritygroup.go +++ /dev/null @@ -1,14 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkSecurityGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networksecuritygrouppropertiesformat.go deleted file mode 100644 index b03a951faff7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networksecuritygrouppropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkSecurityGroupPropertiesFormat struct { - DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` - FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` - FlushConnection *bool `json:"flushConnection,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpoint.go deleted file mode 100644 index 5e9da21fedbc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpoint.go +++ /dev/null @@ -1,19 +0,0 @@ -package privateendpoints - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpoint struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointProperties `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointconnection.go deleted file mode 100644 index 5bd8301f4f34..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointconnection.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointconnectionproperties.go deleted file mode 100644 index 8c0662fe4e26..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointconnectionproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointConnectionProperties struct { - LinkIdentifier *string `json:"linkIdentifier,omitempty"` - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` - PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` - PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointipconfiguration.go deleted file mode 100644 index 1fbe08553f6e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointipconfiguration.go +++ /dev/null @@ -1,11 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointipconfigurationproperties.go deleted file mode 100644 index 3772b023f53f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointipconfigurationproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointIPConfigurationProperties struct { - GroupId *string `json:"groupId,omitempty"` - MemberName *string `json:"memberName,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointproperties.go deleted file mode 100644 index ac88e7637f3a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointproperties.go +++ /dev/null @@ -1,16 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointProperties struct { - ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` - CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` - CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` - IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` - ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkservice.go deleted file mode 100644 index e4c8723fc8bd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkservice.go +++ /dev/null @@ -1,19 +0,0 @@ -package privateendpoints - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkService struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnection.go deleted file mode 100644 index be10aca683dc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnection.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnectionproperties.go deleted file mode 100644 index da2a7ed38710..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnectionproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceConnectionProperties struct { - GroupIds *[]string `json:"groupIds,omitempty"` - PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` - PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RequestMessage *string `json:"requestMessage,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnectionstate.go deleted file mode 100644 index 1d19bec0830a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnectionstate.go +++ /dev/null @@ -1,10 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceConnectionState struct { - ActionsRequired *string `json:"actionsRequired,omitempty"` - Description *string `json:"description,omitempty"` - Status *string `json:"status,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceipconfiguration.go deleted file mode 100644 index 358ee0e74506..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceipconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceipconfigurationproperties.go deleted file mode 100644 index 81634dd44b1d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceipconfigurationproperties.go +++ /dev/null @@ -1,13 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceIPConfigurationProperties struct { - Primary *bool `json:"primary,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceproperties.go deleted file mode 100644 index d246ec00f40a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddress.go deleted file mode 100644 index eeca2133c315..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddress.go +++ /dev/null @@ -1,22 +0,0 @@ -package privateendpoints - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddress struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` - Sku *PublicIPAddressSku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddressdnssettings.go deleted file mode 100644 index bc8acd1515a6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddressdnssettings.go +++ /dev/null @@ -1,11 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressDnsSettings struct { - DomainNameLabel *string `json:"domainNameLabel,omitempty"` - DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` - Fqdn *string `json:"fqdn,omitempty"` - ReverseFqdn *string `json:"reverseFqdn,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddresspropertiesformat.go deleted file mode 100644 index bed9d0ba8d76..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddresspropertiesformat.go +++ /dev/null @@ -1,23 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressPropertiesFormat struct { - DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` - DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` - DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` - IPAddress *string `json:"ipAddress,omitempty"` - IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` - IPTags *[]IPTag `json:"ipTags,omitempty"` - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` - MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` - NatGateway *NatGateway `json:"natGateway,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` - PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` - PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddresssku.go deleted file mode 100644 index 2bbd107f243e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddresssku.go +++ /dev/null @@ -1,9 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressSku struct { - Name *PublicIPAddressSkuName `json:"name,omitempty"` - Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourcenavigationlink.go deleted file mode 100644 index d88904429239..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourcenavigationlink.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceNavigationLink struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourcenavigationlinkformat.go deleted file mode 100644 index 281da0ffc970..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourcenavigationlinkformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceNavigationLinkFormat struct { - Link *string `json:"link,omitempty"` - LinkedResourceType *string `json:"linkedResourceType,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourceset.go deleted file mode 100644 index 999b1817a305..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourceset.go +++ /dev/null @@ -1,8 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceSet struct { - Subscriptions *[]string `json:"subscriptions,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_retentionpolicyparameters.go deleted file mode 100644 index b3df6ba5fd1f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_retentionpolicyparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RetentionPolicyParameters struct { - Days *int64 `json:"days,omitempty"` - Enabled *bool `json:"enabled,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_route.go deleted file mode 100644 index 98c7a5ae4760..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_route.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Route struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *RoutePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routepropertiesformat.go deleted file mode 100644 index ca3956916f35..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routepropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RoutePropertiesFormat struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` - NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` - NextHopType RouteNextHopType `json:"nextHopType"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routetable.go deleted file mode 100644 index e1f695300d86..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routetable.go +++ /dev/null @@ -1,14 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteTable struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routetablepropertiesformat.go deleted file mode 100644 index 4976a28f0ea0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routetablepropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteTablePropertiesFormat struct { - DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - Routes *[]Route `json:"routes,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_securityrule.go deleted file mode 100644 index ccfc50b4a7e0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_securityrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_securityrulepropertiesformat.go deleted file mode 100644 index 2b19d6a628d7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_securityrulepropertiesformat.go +++ /dev/null @@ -1,23 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRulePropertiesFormat struct { - Access SecurityRuleAccess `json:"access"` - Description *string `json:"description,omitempty"` - DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` - DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` - DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` - DestinationPortRange *string `json:"destinationPortRange,omitempty"` - DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` - Direction SecurityRuleDirection `json:"direction"` - Priority int64 `json:"priority"` - Protocol SecurityRuleProtocol `json:"protocol"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` - SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` - SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` - SourcePortRange *string `json:"sourcePortRange,omitempty"` - SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceassociationlink.go deleted file mode 100644 index a88015b02e11..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceassociationlink.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceAssociationLink struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceassociationlinkpropertiesformat.go deleted file mode 100644 index 7a779312074e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceassociationlinkpropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceAssociationLinkPropertiesFormat struct { - AllowDelete *bool `json:"allowDelete,omitempty"` - Link *string `json:"link,omitempty"` - LinkedResourceType *string `json:"linkedResourceType,omitempty"` - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_servicedelegationpropertiesformat.go deleted file mode 100644 index 84e538e83503..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_servicedelegationpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceDelegationPropertiesFormat struct { - Actions *[]string `json:"actions,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ServiceName *string `json:"serviceName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicy.go deleted file mode 100644 index ea8ff121174c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicy.go +++ /dev/null @@ -1,15 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicy struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicydefinition.go deleted file mode 100644 index cc2054776fa3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicydefinition.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicyDefinition struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicydefinitionpropertiesformat.go deleted file mode 100644 index 8355dfbaae00..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicydefinitionpropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicyDefinitionPropertiesFormat struct { - Description *string `json:"description,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` - ServiceResources *[]string `json:"serviceResources,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicypropertiesformat.go deleted file mode 100644 index dbdcdea14422..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicypropertiesformat.go +++ /dev/null @@ -1,13 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicyPropertiesFormat struct { - ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - ServiceAlias *string `json:"serviceAlias,omitempty"` - ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpropertiesformat.go deleted file mode 100644 index 5b54f3ef673c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subnet.go deleted file mode 100644 index 1eee73db2bda..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subnet.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Subnet struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SubnetPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subnetpropertiesformat.go deleted file mode 100644 index 84fae8e2d690..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subnetpropertiesformat.go +++ /dev/null @@ -1,28 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubnetPropertiesFormat struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` - ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` - DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` - Delegations *[]Delegation `json:"delegations,omitempty"` - IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` - IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` - IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` - NatGateway *SubResource `json:"natGateway,omitempty"` - NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` - PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` - PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` - PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Purpose *string `json:"purpose,omitempty"` - ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` - RouteTable *RouteTable `json:"routeTable,omitempty"` - ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` - ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` - ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` - SharingScope *SharingScope `json:"sharingScope,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subresource.go deleted file mode 100644 index 134c4f661024..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_trafficanalyticsconfigurationproperties.go deleted file mode 100644 index fc7cf55257e2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_trafficanalyticsconfigurationproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TrafficAnalyticsConfigurationProperties struct { - Enabled *bool `json:"enabled,omitempty"` - TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` - WorkspaceId *string `json:"workspaceId,omitempty"` - WorkspaceRegion *string `json:"workspaceRegion,omitempty"` - WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_trafficanalyticsproperties.go deleted file mode 100644 index 8a4f6042fa41..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_trafficanalyticsproperties.go +++ /dev/null @@ -1,8 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TrafficAnalyticsProperties struct { - NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_virtualnetworktap.go deleted file mode 100644 index 99fe7d7fe1d2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_virtualnetworktap.go +++ /dev/null @@ -1,14 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkTap struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_virtualnetworktappropertiesformat.go deleted file mode 100644 index c7fa6565e0f5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_virtualnetworktappropertiesformat.go +++ /dev/null @@ -1,13 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkTapPropertiesFormat struct { - DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` - DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` - DestinationPort *int64 `json:"destinationPort,omitempty"` - NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/predicates.go deleted file mode 100644 index c99098d01631..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/predicates.go +++ /dev/null @@ -1,70 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AvailablePrivateEndpointTypeOperationPredicate struct { - DisplayName *string - Id *string - Name *string - ResourceName *string - Type *string -} - -func (p AvailablePrivateEndpointTypeOperationPredicate) Matches(input AvailablePrivateEndpointType) bool { - - if p.DisplayName != nil && (input.DisplayName == nil || *p.DisplayName != *input.DisplayName) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.ResourceName != nil && (input.ResourceName == nil || *p.ResourceName != *input.ResourceName) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} - -type PrivateEndpointOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p PrivateEndpointOperationPredicate) Matches(input PrivateEndpoint) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/version.go deleted file mode 100644 index 5181a4f29087..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/privateendpoints/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/README.md deleted file mode 100644 index 1de10a5d3567..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/README.md +++ /dev/null @@ -1,121 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters` Documentation - -The `routefilters` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters" -``` - - -### Client Initialization - -```go -client := routefilters.NewRouteFiltersClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `RouteFiltersClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") - -payload := routefilters.RouteFilter{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `RouteFiltersClient.Delete` - -```go -ctx := context.TODO() -id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `RouteFiltersClient.Get` - -```go -ctx := context.TODO() -id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") - -read, err := client.Get(ctx, id, routefilters.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `RouteFiltersClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `RouteFiltersClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `RouteFiltersClient.UpdateTags` - -```go -ctx := context.TODO() -id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") - -payload := routefilters.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/client.go deleted file mode 100644 index 5bf2183b43df..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package routefilters - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteFiltersClient struct { - Client *resourcemanager.Client -} - -func NewRouteFiltersClientWithBaseURI(sdkApi sdkEnv.Api) (*RouteFiltersClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "routefilters", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating RouteFiltersClient: %+v", err) - } - - return &RouteFiltersClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/constants.go deleted file mode 100644 index 47cec86d2907..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/constants.go +++ /dev/null @@ -1,353 +0,0 @@ -package routefilters - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Access string - -const ( - AccessAllow Access = "Allow" - AccessDeny Access = "Deny" -) - -func PossibleValuesForAccess() []string { - return []string{ - string(AccessAllow), - string(AccessDeny), - } -} - -func (s *Access) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAccess(input string) (*Access, error) { - vals := map[string]Access{ - "allow": AccessAllow, - "deny": AccessDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := Access(input) - return &out, nil -} - -type CircuitConnectionStatus string - -const ( - CircuitConnectionStatusConnected CircuitConnectionStatus = "Connected" - CircuitConnectionStatusConnecting CircuitConnectionStatus = "Connecting" - CircuitConnectionStatusDisconnected CircuitConnectionStatus = "Disconnected" -) - -func PossibleValuesForCircuitConnectionStatus() []string { - return []string{ - string(CircuitConnectionStatusConnected), - string(CircuitConnectionStatusConnecting), - string(CircuitConnectionStatusDisconnected), - } -} - -func (s *CircuitConnectionStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseCircuitConnectionStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseCircuitConnectionStatus(input string) (*CircuitConnectionStatus, error) { - vals := map[string]CircuitConnectionStatus{ - "connected": CircuitConnectionStatusConnected, - "connecting": CircuitConnectionStatusConnecting, - "disconnected": CircuitConnectionStatusDisconnected, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := CircuitConnectionStatus(input) - return &out, nil -} - -type ExpressRouteCircuitPeeringAdvertisedPublicPrefixState string - -const ( - ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configured" - ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configuring" - ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "NotConfigured" - ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "ValidationNeeded" -) - -func PossibleValuesForExpressRouteCircuitPeeringAdvertisedPublicPrefixState() []string { - return []string{ - string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured), - string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring), - string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured), - string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded), - } -} - -func (s *ExpressRouteCircuitPeeringAdvertisedPublicPrefixState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseExpressRouteCircuitPeeringAdvertisedPublicPrefixState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseExpressRouteCircuitPeeringAdvertisedPublicPrefixState(input string) (*ExpressRouteCircuitPeeringAdvertisedPublicPrefixState, error) { - vals := map[string]ExpressRouteCircuitPeeringAdvertisedPublicPrefixState{ - "configured": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured, - "configuring": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring, - "notconfigured": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured, - "validationneeded": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ExpressRouteCircuitPeeringAdvertisedPublicPrefixState(input) - return &out, nil -} - -type ExpressRouteCircuitPeeringState string - -const ( - ExpressRouteCircuitPeeringStateDisabled ExpressRouteCircuitPeeringState = "Disabled" - ExpressRouteCircuitPeeringStateEnabled ExpressRouteCircuitPeeringState = "Enabled" -) - -func PossibleValuesForExpressRouteCircuitPeeringState() []string { - return []string{ - string(ExpressRouteCircuitPeeringStateDisabled), - string(ExpressRouteCircuitPeeringStateEnabled), - } -} - -func (s *ExpressRouteCircuitPeeringState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseExpressRouteCircuitPeeringState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseExpressRouteCircuitPeeringState(input string) (*ExpressRouteCircuitPeeringState, error) { - vals := map[string]ExpressRouteCircuitPeeringState{ - "disabled": ExpressRouteCircuitPeeringStateDisabled, - "enabled": ExpressRouteCircuitPeeringStateEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ExpressRouteCircuitPeeringState(input) - return &out, nil -} - -type ExpressRoutePeeringState string - -const ( - ExpressRoutePeeringStateDisabled ExpressRoutePeeringState = "Disabled" - ExpressRoutePeeringStateEnabled ExpressRoutePeeringState = "Enabled" -) - -func PossibleValuesForExpressRoutePeeringState() []string { - return []string{ - string(ExpressRoutePeeringStateDisabled), - string(ExpressRoutePeeringStateEnabled), - } -} - -func (s *ExpressRoutePeeringState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseExpressRoutePeeringState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseExpressRoutePeeringState(input string) (*ExpressRoutePeeringState, error) { - vals := map[string]ExpressRoutePeeringState{ - "disabled": ExpressRoutePeeringStateDisabled, - "enabled": ExpressRoutePeeringStateEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ExpressRoutePeeringState(input) - return &out, nil -} - -type ExpressRoutePeeringType string - -const ( - ExpressRoutePeeringTypeAzurePrivatePeering ExpressRoutePeeringType = "AzurePrivatePeering" - ExpressRoutePeeringTypeAzurePublicPeering ExpressRoutePeeringType = "AzurePublicPeering" - ExpressRoutePeeringTypeMicrosoftPeering ExpressRoutePeeringType = "MicrosoftPeering" -) - -func PossibleValuesForExpressRoutePeeringType() []string { - return []string{ - string(ExpressRoutePeeringTypeAzurePrivatePeering), - string(ExpressRoutePeeringTypeAzurePublicPeering), - string(ExpressRoutePeeringTypeMicrosoftPeering), - } -} - -func (s *ExpressRoutePeeringType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseExpressRoutePeeringType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseExpressRoutePeeringType(input string) (*ExpressRoutePeeringType, error) { - vals := map[string]ExpressRoutePeeringType{ - "azureprivatepeering": ExpressRoutePeeringTypeAzurePrivatePeering, - "azurepublicpeering": ExpressRoutePeeringTypeAzurePublicPeering, - "microsoftpeering": ExpressRoutePeeringTypeMicrosoftPeering, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ExpressRoutePeeringType(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type RouteFilterRuleType string - -const ( - RouteFilterRuleTypeCommunity RouteFilterRuleType = "Community" -) - -func PossibleValuesForRouteFilterRuleType() []string { - return []string{ - string(RouteFilterRuleTypeCommunity), - } -} - -func (s *RouteFilterRuleType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseRouteFilterRuleType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseRouteFilterRuleType(input string) (*RouteFilterRuleType, error) { - vals := map[string]RouteFilterRuleType{ - "community": RouteFilterRuleTypeCommunity, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := RouteFilterRuleType(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/id_routefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/id_routefilter.go deleted file mode 100644 index 0e497c52d8bd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/id_routefilter.go +++ /dev/null @@ -1,130 +0,0 @@ -package routefilters - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&RouteFilterId{}) -} - -var _ resourceids.ResourceId = &RouteFilterId{} - -// RouteFilterId is a struct representing the Resource ID for a Route Filter -type RouteFilterId struct { - SubscriptionId string - ResourceGroupName string - RouteFilterName string -} - -// NewRouteFilterID returns a new RouteFilterId struct -func NewRouteFilterID(subscriptionId string, resourceGroupName string, routeFilterName string) RouteFilterId { - return RouteFilterId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - RouteFilterName: routeFilterName, - } -} - -// ParseRouteFilterID parses 'input' into a RouteFilterId -func ParseRouteFilterID(input string) (*RouteFilterId, error) { - parser := resourceids.NewParserFromResourceIdType(&RouteFilterId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RouteFilterId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseRouteFilterIDInsensitively parses 'input' case-insensitively into a RouteFilterId -// note: this method should only be used for API response data and not user input -func ParseRouteFilterIDInsensitively(input string) (*RouteFilterId, error) { - parser := resourceids.NewParserFromResourceIdType(&RouteFilterId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RouteFilterId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *RouteFilterId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.RouteFilterName, ok = input.Parsed["routeFilterName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "routeFilterName", input) - } - - return nil -} - -// ValidateRouteFilterID checks that 'input' can be parsed as a Route Filter ID -func ValidateRouteFilterID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseRouteFilterID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Route Filter ID -func (id RouteFilterId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/routeFilters/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.RouteFilterName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Route Filter ID -func (id RouteFilterId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticRouteFilters", "routeFilters", "routeFilters"), - resourceids.UserSpecifiedSegment("routeFilterName", "routeFilterName"), - } -} - -// String returns a human-readable description of this Route Filter ID -func (id RouteFilterId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Route Filter Name: %q", id.RouteFilterName), - } - return fmt.Sprintf("Route Filter (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_createorupdate.go deleted file mode 100644 index 4881008706e8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package routefilters - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *RouteFilter -} - -// CreateOrUpdate ... -func (c RouteFiltersClient) CreateOrUpdate(ctx context.Context, id RouteFilterId, input RouteFilter) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c RouteFiltersClient) CreateOrUpdateThenPoll(ctx context.Context, id RouteFilterId, input RouteFilter) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_delete.go deleted file mode 100644 index 1a389b5108cb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package routefilters - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c RouteFiltersClient) Delete(ctx context.Context, id RouteFilterId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c RouteFiltersClient) DeleteThenPoll(ctx context.Context, id RouteFilterId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_get.go deleted file mode 100644 index f57a061fb522..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_get.go +++ /dev/null @@ -1,83 +0,0 @@ -package routefilters - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *RouteFilter -} - -type GetOperationOptions struct { - Expand *string -} - -func DefaultGetOperationOptions() GetOperationOptions { - return GetOperationOptions{} -} - -func (o GetOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o GetOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o GetOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Expand != nil { - out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) - } - return &out -} - -// Get ... -func (c RouteFiltersClient) Get(ctx context.Context, id RouteFilterId, options GetOperationOptions) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model RouteFilter - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_list.go deleted file mode 100644 index 927387fb2da7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package routefilters - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]RouteFilter -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []RouteFilter -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c RouteFiltersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeFilters", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]RouteFilter `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c RouteFiltersClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, RouteFilterOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c RouteFiltersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate RouteFilterOperationPredicate) (result ListCompleteResult, err error) { - items := make([]RouteFilter, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_listbyresourcegroup.go deleted file mode 100644 index 256467e7de9f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_listbyresourcegroup.go +++ /dev/null @@ -1,106 +0,0 @@ -package routefilters - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListByResourceGroupOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]RouteFilter -} - -type ListByResourceGroupCompleteResult struct { - LatestHttpResponse *http.Response - Items []RouteFilter -} - -type ListByResourceGroupCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListByResourceGroup ... -func (c RouteFiltersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListByResourceGroupCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeFilters", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]RouteFilter `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListByResourceGroupComplete retrieves all the results into a single object -func (c RouteFiltersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { - return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, RouteFilterOperationPredicate{}) -} - -// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c RouteFiltersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate RouteFilterOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { - items := make([]RouteFilter, 0) - - resp, err := c.ListByResourceGroup(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListByResourceGroupCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_updatetags.go deleted file mode 100644 index 5fe88949683e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_updatetags.go +++ /dev/null @@ -1,57 +0,0 @@ -package routefilters - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateTagsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *RouteFilter -} - -// UpdateTags ... -func (c RouteFiltersClient) UpdateTags(ctx context.Context, id RouteFilterId, input TagsObject) (result UpdateTagsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model RouteFilter - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitconnection.go deleted file mode 100644 index b4ee9836dca8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitconnection.go +++ /dev/null @@ -1,12 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitconnectionpropertiesformat.go deleted file mode 100644 index 2e9948e07f44..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitconnectionpropertiesformat.go +++ /dev/null @@ -1,14 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitConnectionPropertiesFormat struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - AuthorizationKey *string `json:"authorizationKey,omitempty"` - CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` - ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` - IPv6CircuitConnectionConfig *IPv6CircuitConnectionConfig `json:"ipv6CircuitConnectionConfig,omitempty"` - PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeering.go deleted file mode 100644 index 79ef27f6ed80..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeering.go +++ /dev/null @@ -1,12 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitPeering struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ExpressRouteCircuitPeeringPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeeringconfig.go deleted file mode 100644 index 43de78057143..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeeringconfig.go +++ /dev/null @@ -1,13 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitPeeringConfig struct { - AdvertisedCommunities *[]string `json:"advertisedCommunities,omitempty"` - AdvertisedPublicPrefixes *[]string `json:"advertisedPublicPrefixes,omitempty"` - AdvertisedPublicPrefixesState *ExpressRouteCircuitPeeringAdvertisedPublicPrefixState `json:"advertisedPublicPrefixesState,omitempty"` - CustomerASN *int64 `json:"customerASN,omitempty"` - LegacyMode *int64 `json:"legacyMode,omitempty"` - RoutingRegistryName *string `json:"routingRegistryName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeeringpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeeringpropertiesformat.go deleted file mode 100644 index 1f5f8e7a726f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeeringpropertiesformat.go +++ /dev/null @@ -1,27 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitPeeringPropertiesFormat struct { - AzureASN *int64 `json:"azureASN,omitempty"` - Connections *[]ExpressRouteCircuitConnection `json:"connections,omitempty"` - ExpressRouteConnection *ExpressRouteConnectionId `json:"expressRouteConnection,omitempty"` - GatewayManagerEtag *string `json:"gatewayManagerEtag,omitempty"` - IPv6PeeringConfig *IPv6ExpressRouteCircuitPeeringConfig `json:"ipv6PeeringConfig,omitempty"` - LastModifiedBy *string `json:"lastModifiedBy,omitempty"` - MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` - PeerASN *int64 `json:"peerASN,omitempty"` - PeeredConnections *[]PeerExpressRouteCircuitConnection `json:"peeredConnections,omitempty"` - PeeringType *ExpressRoutePeeringType `json:"peeringType,omitempty"` - PrimaryAzurePort *string `json:"primaryAzurePort,omitempty"` - PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RouteFilter *SubResource `json:"routeFilter,omitempty"` - SecondaryAzurePort *string `json:"secondaryAzurePort,omitempty"` - SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` - SharedKey *string `json:"sharedKey,omitempty"` - State *ExpressRoutePeeringState `json:"state,omitempty"` - Stats *ExpressRouteCircuitStats `json:"stats,omitempty"` - VlanId *int64 `json:"vlanId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitstats.go deleted file mode 100644 index b57109bba40f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitstats.go +++ /dev/null @@ -1,11 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteCircuitStats struct { - PrimarybytesIn *int64 `json:"primarybytesIn,omitempty"` - PrimarybytesOut *int64 `json:"primarybytesOut,omitempty"` - SecondarybytesIn *int64 `json:"secondarybytesIn,omitempty"` - SecondarybytesOut *int64 `json:"secondarybytesOut,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressrouteconnectionid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressrouteconnectionid.go deleted file mode 100644 index 8d033b8e0e14..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressrouteconnectionid.go +++ /dev/null @@ -1,8 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ExpressRouteConnectionId struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_ipv6circuitconnectionconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_ipv6circuitconnectionconfig.go deleted file mode 100644 index 036a19fa8aac..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_ipv6circuitconnectionconfig.go +++ /dev/null @@ -1,9 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPv6CircuitConnectionConfig struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_ipv6expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_ipv6expressroutecircuitpeeringconfig.go deleted file mode 100644 index 66f1810d2ef8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_ipv6expressroutecircuitpeeringconfig.go +++ /dev/null @@ -1,12 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPv6ExpressRouteCircuitPeeringConfig struct { - MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` - PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` - RouteFilter *SubResource `json:"routeFilter,omitempty"` - SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` - State *ExpressRouteCircuitPeeringState `json:"state,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_peerexpressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_peerexpressroutecircuitconnection.go deleted file mode 100644 index 1cceefb83219..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_peerexpressroutecircuitconnection.go +++ /dev/null @@ -1,12 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PeerExpressRouteCircuitConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PeerExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_peerexpressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_peerexpressroutecircuitconnectionpropertiesformat.go deleted file mode 100644 index ae3652f5c1b5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_peerexpressroutecircuitconnectionpropertiesformat.go +++ /dev/null @@ -1,14 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PeerExpressRouteCircuitConnectionPropertiesFormat struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - AuthResourceGuid *string `json:"authResourceGuid,omitempty"` - CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` - ConnectionName *string `json:"connectionName,omitempty"` - ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` - PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilter.go deleted file mode 100644 index 932567d03cc9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilter.go +++ /dev/null @@ -1,14 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteFilter struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *RouteFilterPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterpropertiesformat.go deleted file mode 100644 index 3442c803e118..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterpropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteFilterPropertiesFormat struct { - IPv6Peerings *[]ExpressRouteCircuitPeering `json:"ipv6Peerings,omitempty"` - Peerings *[]ExpressRouteCircuitPeering `json:"peerings,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Rules *[]RouteFilterRule `json:"rules,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterrule.go deleted file mode 100644 index 7bce6e5cdbc2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteFilterRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *RouteFilterRulePropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterrulepropertiesformat.go deleted file mode 100644 index 70f71e0d28d8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterrulepropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteFilterRulePropertiesFormat struct { - Access Access `json:"access"` - Communities []string `json:"communities"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RouteFilterRuleType RouteFilterRuleType `json:"routeFilterRuleType"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_subresource.go deleted file mode 100644 index 18344aa65b5d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_tagsobject.go deleted file mode 100644 index 7657d1402ea5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/predicates.go deleted file mode 100644 index 333d40af18b9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/predicates.go +++ /dev/null @@ -1,37 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteFilterOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p RouteFilterOperationPredicate) Matches(input RouteFilter) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/version.go deleted file mode 100644 index 7b396bc540e7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/routefilters/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/README.md deleted file mode 100644 index f9f99529dbc1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes` Documentation - -The `routes` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes" -``` - - -### Client Initialization - -```go -client := routes.NewRoutesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `RoutesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName", "routeName") - -payload := routes.Route{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `RoutesClient.Delete` - -```go -ctx := context.TODO() -id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName", "routeName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `RoutesClient.Get` - -```go -ctx := context.TODO() -id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName", "routeName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `RoutesClient.List` - -```go -ctx := context.TODO() -id := routes.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/client.go deleted file mode 100644 index 88e9f135cd15..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package routes - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RoutesClient struct { - Client *resourcemanager.Client -} - -func NewRoutesClientWithBaseURI(sdkApi sdkEnv.Api) (*RoutesClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "routes", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating RoutesClient: %+v", err) - } - - return &RoutesClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/constants.go deleted file mode 100644 index e26bed906c53..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/constants.go +++ /dev/null @@ -1,107 +0,0 @@ -package routes - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type RouteNextHopType string - -const ( - RouteNextHopTypeInternet RouteNextHopType = "Internet" - RouteNextHopTypeNone RouteNextHopType = "None" - RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" - RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" - RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" -) - -func PossibleValuesForRouteNextHopType() []string { - return []string{ - string(RouteNextHopTypeInternet), - string(RouteNextHopTypeNone), - string(RouteNextHopTypeVirtualAppliance), - string(RouteNextHopTypeVirtualNetworkGateway), - string(RouteNextHopTypeVnetLocal), - } -} - -func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseRouteNextHopType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseRouteNextHopType(input string) (*RouteNextHopType, error) { - vals := map[string]RouteNextHopType{ - "internet": RouteNextHopTypeInternet, - "none": RouteNextHopTypeNone, - "virtualappliance": RouteNextHopTypeVirtualAppliance, - "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, - "vnetlocal": RouteNextHopTypeVnetLocal, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := RouteNextHopType(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_route.go deleted file mode 100644 index 55f4d71097a1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_route.go +++ /dev/null @@ -1,139 +0,0 @@ -package routes - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&RouteId{}) -} - -var _ resourceids.ResourceId = &RouteId{} - -// RouteId is a struct representing the Resource ID for a Route -type RouteId struct { - SubscriptionId string - ResourceGroupName string - RouteTableName string - RouteName string -} - -// NewRouteID returns a new RouteId struct -func NewRouteID(subscriptionId string, resourceGroupName string, routeTableName string, routeName string) RouteId { - return RouteId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - RouteTableName: routeTableName, - RouteName: routeName, - } -} - -// ParseRouteID parses 'input' into a RouteId -func ParseRouteID(input string) (*RouteId, error) { - parser := resourceids.NewParserFromResourceIdType(&RouteId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RouteId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseRouteIDInsensitively parses 'input' case-insensitively into a RouteId -// note: this method should only be used for API response data and not user input -func ParseRouteIDInsensitively(input string) (*RouteId, error) { - parser := resourceids.NewParserFromResourceIdType(&RouteId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RouteId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *RouteId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.RouteTableName, ok = input.Parsed["routeTableName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "routeTableName", input) - } - - if id.RouteName, ok = input.Parsed["routeName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "routeName", input) - } - - return nil -} - -// ValidateRouteID checks that 'input' can be parsed as a Route ID -func ValidateRouteID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseRouteID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Route ID -func (id RouteId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/routeTables/%s/routes/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.RouteTableName, id.RouteName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Route ID -func (id RouteId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticRouteTables", "routeTables", "routeTables"), - resourceids.UserSpecifiedSegment("routeTableName", "routeTableName"), - resourceids.StaticSegment("staticRoutes", "routes", "routes"), - resourceids.UserSpecifiedSegment("routeName", "routeName"), - } -} - -// String returns a human-readable description of this Route ID -func (id RouteId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Route Table Name: %q", id.RouteTableName), - fmt.Sprintf("Route Name: %q", id.RouteName), - } - return fmt.Sprintf("Route (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_routetable.go deleted file mode 100644 index 3fc7a0152246..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_routetable.go +++ /dev/null @@ -1,130 +0,0 @@ -package routes - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&RouteTableId{}) -} - -var _ resourceids.ResourceId = &RouteTableId{} - -// RouteTableId is a struct representing the Resource ID for a Route Table -type RouteTableId struct { - SubscriptionId string - ResourceGroupName string - RouteTableName string -} - -// NewRouteTableID returns a new RouteTableId struct -func NewRouteTableID(subscriptionId string, resourceGroupName string, routeTableName string) RouteTableId { - return RouteTableId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - RouteTableName: routeTableName, - } -} - -// ParseRouteTableID parses 'input' into a RouteTableId -func ParseRouteTableID(input string) (*RouteTableId, error) { - parser := resourceids.NewParserFromResourceIdType(&RouteTableId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RouteTableId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseRouteTableIDInsensitively parses 'input' case-insensitively into a RouteTableId -// note: this method should only be used for API response data and not user input -func ParseRouteTableIDInsensitively(input string) (*RouteTableId, error) { - parser := resourceids.NewParserFromResourceIdType(&RouteTableId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RouteTableId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *RouteTableId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.RouteTableName, ok = input.Parsed["routeTableName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "routeTableName", input) - } - - return nil -} - -// ValidateRouteTableID checks that 'input' can be parsed as a Route Table ID -func ValidateRouteTableID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseRouteTableID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Route Table ID -func (id RouteTableId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/routeTables/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.RouteTableName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Route Table ID -func (id RouteTableId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticRouteTables", "routeTables", "routeTables"), - resourceids.UserSpecifiedSegment("routeTableName", "routeTableName"), - } -} - -// String returns a human-readable description of this Route Table ID -func (id RouteTableId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Route Table Name: %q", id.RouteTableName), - } - return fmt.Sprintf("Route Table (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_createorupdate.go deleted file mode 100644 index 29b466f45ef8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package routes - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *Route -} - -// CreateOrUpdate ... -func (c RoutesClient) CreateOrUpdate(ctx context.Context, id RouteId, input Route) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c RoutesClient) CreateOrUpdateThenPoll(ctx context.Context, id RouteId, input Route) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_delete.go deleted file mode 100644 index f6cee23c1335..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package routes - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c RoutesClient) Delete(ctx context.Context, id RouteId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c RoutesClient) DeleteThenPoll(ctx context.Context, id RouteId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_get.go deleted file mode 100644 index 306c6528c392..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package routes - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *Route -} - -// Get ... -func (c RoutesClient) Get(ctx context.Context, id RouteId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model Route - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_list.go deleted file mode 100644 index dddfb46f64c9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_list.go +++ /dev/null @@ -1,105 +0,0 @@ -package routes - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]Route -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []Route -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c RoutesClient) List(ctx context.Context, id RouteTableId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/routes", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]Route `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c RoutesClient) ListComplete(ctx context.Context, id RouteTableId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, RouteOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c RoutesClient) ListCompleteMatchingPredicate(ctx context.Context, id RouteTableId, predicate RouteOperationPredicate) (result ListCompleteResult, err error) { - items := make([]Route, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/model_route.go deleted file mode 100644 index 364b3bb3322a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/model_route.go +++ /dev/null @@ -1,12 +0,0 @@ -package routes - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Route struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *RoutePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/model_routepropertiesformat.go deleted file mode 100644 index 82a30d0f4e04..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/model_routepropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package routes - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RoutePropertiesFormat struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` - NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` - NextHopType RouteNextHopType `json:"nextHopType"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/predicates.go deleted file mode 100644 index b0ff24a6573b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package routes - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p RouteOperationPredicate) Matches(input Route) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/version.go deleted file mode 100644 index b345e5186e5b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package routes - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/routes/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/README.md deleted file mode 100644 index 8fe6d3f7d00c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/README.md +++ /dev/null @@ -1,90 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections` Documentation - -The `scopeconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections" -``` - - -### Client Initialization - -```go -client := scopeconnections.NewScopeConnectionsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ScopeConnectionsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "scopeConnectionName") - -payload := scopeconnections.ScopeConnection{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ScopeConnectionsClient.Delete` - -```go -ctx := context.TODO() -id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "scopeConnectionName") - -read, err := client.Delete(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ScopeConnectionsClient.Get` - -```go -ctx := context.TODO() -id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "scopeConnectionName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ScopeConnectionsClient.List` - -```go -ctx := context.TODO() -id := scopeconnections.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -// alternatively `client.List(ctx, id, scopeconnections.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, scopeconnections.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/client.go deleted file mode 100644 index 81942e9b5e95..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package scopeconnections - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ScopeConnectionsClient struct { - Client *resourcemanager.Client -} - -func NewScopeConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ScopeConnectionsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "scopeconnections", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating ScopeConnectionsClient: %+v", err) - } - - return &ScopeConnectionsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/constants.go deleted file mode 100644 index 24a9bb99e3a4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/constants.go +++ /dev/null @@ -1,60 +0,0 @@ -package scopeconnections - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ScopeConnectionState string - -const ( - ScopeConnectionStateConflict ScopeConnectionState = "Conflict" - ScopeConnectionStateConnected ScopeConnectionState = "Connected" - ScopeConnectionStatePending ScopeConnectionState = "Pending" - ScopeConnectionStateRejected ScopeConnectionState = "Rejected" - ScopeConnectionStateRevoked ScopeConnectionState = "Revoked" -) - -func PossibleValuesForScopeConnectionState() []string { - return []string{ - string(ScopeConnectionStateConflict), - string(ScopeConnectionStateConnected), - string(ScopeConnectionStatePending), - string(ScopeConnectionStateRejected), - string(ScopeConnectionStateRevoked), - } -} - -func (s *ScopeConnectionState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseScopeConnectionState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseScopeConnectionState(input string) (*ScopeConnectionState, error) { - vals := map[string]ScopeConnectionState{ - "conflict": ScopeConnectionStateConflict, - "connected": ScopeConnectionStateConnected, - "pending": ScopeConnectionStatePending, - "rejected": ScopeConnectionStateRejected, - "revoked": ScopeConnectionStateRevoked, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ScopeConnectionState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_networkmanager.go deleted file mode 100644 index 9deea7f39437..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_networkmanager.go +++ /dev/null @@ -1,130 +0,0 @@ -package scopeconnections - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&NetworkManagerId{}) -} - -var _ resourceids.ResourceId = &NetworkManagerId{} - -// NetworkManagerId is a struct representing the Resource ID for a Network Manager -type NetworkManagerId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string -} - -// NewNetworkManagerID returns a new NetworkManagerId struct -func NewNetworkManagerID(subscriptionId string, resourceGroupName string, networkManagerName string) NetworkManagerId { - return NetworkManagerId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - } -} - -// ParseNetworkManagerID parses 'input' into a NetworkManagerId -func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkManagerId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseNetworkManagerIDInsensitively parses 'input' case-insensitively into a NetworkManagerId -// note: this method should only be used for API response data and not user input -func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkManagerId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *NetworkManagerId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - return nil -} - -// ValidateNetworkManagerID checks that 'input' can be parsed as a Network Manager ID -func ValidateNetworkManagerID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseNetworkManagerID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Network Manager ID -func (id NetworkManagerId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Network Manager ID -func (id NetworkManagerId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - } -} - -// String returns a human-readable description of this Network Manager ID -func (id NetworkManagerId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - } - return fmt.Sprintf("Network Manager (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_scopeconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_scopeconnection.go deleted file mode 100644 index 9af347c43b63..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_scopeconnection.go +++ /dev/null @@ -1,139 +0,0 @@ -package scopeconnections - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&ScopeConnectionId{}) -} - -var _ resourceids.ResourceId = &ScopeConnectionId{} - -// ScopeConnectionId is a struct representing the Resource ID for a Scope Connection -type ScopeConnectionId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string - ScopeConnectionName string -} - -// NewScopeConnectionID returns a new ScopeConnectionId struct -func NewScopeConnectionID(subscriptionId string, resourceGroupName string, networkManagerName string, scopeConnectionName string) ScopeConnectionId { - return ScopeConnectionId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - ScopeConnectionName: scopeConnectionName, - } -} - -// ParseScopeConnectionID parses 'input' into a ScopeConnectionId -func ParseScopeConnectionID(input string) (*ScopeConnectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&ScopeConnectionId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ScopeConnectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseScopeConnectionIDInsensitively parses 'input' case-insensitively into a ScopeConnectionId -// note: this method should only be used for API response data and not user input -func ParseScopeConnectionIDInsensitively(input string) (*ScopeConnectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&ScopeConnectionId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ScopeConnectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *ScopeConnectionId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - if id.ScopeConnectionName, ok = input.Parsed["scopeConnectionName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "scopeConnectionName", input) - } - - return nil -} - -// ValidateScopeConnectionID checks that 'input' can be parsed as a Scope Connection ID -func ValidateScopeConnectionID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseScopeConnectionID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Scope Connection ID -func (id ScopeConnectionId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/scopeConnections/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.ScopeConnectionName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Scope Connection ID -func (id ScopeConnectionId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - resourceids.StaticSegment("staticScopeConnections", "scopeConnections", "scopeConnections"), - resourceids.UserSpecifiedSegment("scopeConnectionName", "scopeConnectionName"), - } -} - -// String returns a human-readable description of this Scope Connection ID -func (id ScopeConnectionId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - fmt.Sprintf("Scope Connection Name: %q", id.ScopeConnectionName), - } - return fmt.Sprintf("Scope Connection (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_createorupdate.go deleted file mode 100644 index 08383ec6587f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_createorupdate.go +++ /dev/null @@ -1,58 +0,0 @@ -package scopeconnections - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ScopeConnection -} - -// CreateOrUpdate ... -func (c ScopeConnectionsClient) CreateOrUpdate(ctx context.Context, id ScopeConnectionId, input ScopeConnection) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ScopeConnection - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_delete.go deleted file mode 100644 index 0ef9f60e8f6e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_delete.go +++ /dev/null @@ -1,47 +0,0 @@ -package scopeconnections - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c ScopeConnectionsClient) Delete(ctx context.Context, id ScopeConnectionId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_get.go deleted file mode 100644 index 67789a31c53e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package scopeconnections - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ScopeConnection -} - -// Get ... -func (c ScopeConnectionsClient) Get(ctx context.Context, id ScopeConnectionId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ScopeConnection - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_list.go deleted file mode 100644 index c9f73b614110..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_list.go +++ /dev/null @@ -1,134 +0,0 @@ -package scopeconnections - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ScopeConnection -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []ScopeConnection -} - -type ListOperationOptions struct { - Top *int64 -} - -func DefaultListOperationOptions() ListOperationOptions { - return ListOperationOptions{} -} - -func (o ListOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o ListOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o ListOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Top != nil { - out.Append("$top", fmt.Sprintf("%v", *o.Top)) - } - return &out -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c ScopeConnectionsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/scopeConnections", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]ScopeConnection `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c ScopeConnectionsClient) ListComplete(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, options, ScopeConnectionOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ScopeConnectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkManagerId, options ListOperationOptions, predicate ScopeConnectionOperationPredicate) (result ListCompleteResult, err error) { - items := make([]ScopeConnection, 0) - - resp, err := c.List(ctx, id, options) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/model_scopeconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/model_scopeconnection.go deleted file mode 100644 index ddb7dcfd3ff5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/model_scopeconnection.go +++ /dev/null @@ -1,17 +0,0 @@ -package scopeconnections - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ScopeConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ScopeConnectionProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/model_scopeconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/model_scopeconnectionproperties.go deleted file mode 100644 index 0997147a2a92..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/model_scopeconnectionproperties.go +++ /dev/null @@ -1,11 +0,0 @@ -package scopeconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ScopeConnectionProperties struct { - ConnectionState *ScopeConnectionState `json:"connectionState,omitempty"` - Description *string `json:"description,omitempty"` - ResourceId *string `json:"resourceId,omitempty"` - TenantId *string `json:"tenantId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/predicates.go deleted file mode 100644 index eda309664f4d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package scopeconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ScopeConnectionOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p ScopeConnectionOperationPredicate) Matches(input ScopeConnection) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/version.go deleted file mode 100644 index 0d7f8f4c7f4a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package scopeconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/scopeconnections/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/README.md deleted file mode 100644 index dd44c24e5002..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/README.md +++ /dev/null @@ -1,86 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations` Documentation - -The `securityadminconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations" -``` - - -### Client Initialization - -```go -client := securityadminconfigurations.NewSecurityAdminConfigurationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `SecurityAdminConfigurationsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName") - -payload := securityadminconfigurations.SecurityAdminConfiguration{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `SecurityAdminConfigurationsClient.Delete` - -```go -ctx := context.TODO() -id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName") - -if err := client.DeleteThenPoll(ctx, id, securityadminconfigurations.DefaultDeleteOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `SecurityAdminConfigurationsClient.Get` - -```go -ctx := context.TODO() -id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `SecurityAdminConfigurationsClient.List` - -```go -ctx := context.TODO() -id := securityadminconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -// alternatively `client.List(ctx, id, securityadminconfigurations.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, securityadminconfigurations.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/client.go deleted file mode 100644 index c4acda9a655c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package securityadminconfigurations - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityAdminConfigurationsClient struct { - Client *resourcemanager.Client -} - -func NewSecurityAdminConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityAdminConfigurationsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "securityadminconfigurations", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating SecurityAdminConfigurationsClient: %+v", err) - } - - return &SecurityAdminConfigurationsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/constants.go deleted file mode 100644 index bfadf6115a8f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/constants.go +++ /dev/null @@ -1,101 +0,0 @@ -package securityadminconfigurations - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkIntentPolicyBasedService string - -const ( - NetworkIntentPolicyBasedServiceAll NetworkIntentPolicyBasedService = "All" - NetworkIntentPolicyBasedServiceAllowRulesOnly NetworkIntentPolicyBasedService = "AllowRulesOnly" - NetworkIntentPolicyBasedServiceNone NetworkIntentPolicyBasedService = "None" -) - -func PossibleValuesForNetworkIntentPolicyBasedService() []string { - return []string{ - string(NetworkIntentPolicyBasedServiceAll), - string(NetworkIntentPolicyBasedServiceAllowRulesOnly), - string(NetworkIntentPolicyBasedServiceNone), - } -} - -func (s *NetworkIntentPolicyBasedService) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkIntentPolicyBasedService(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkIntentPolicyBasedService(input string) (*NetworkIntentPolicyBasedService, error) { - vals := map[string]NetworkIntentPolicyBasedService{ - "all": NetworkIntentPolicyBasedServiceAll, - "allowrulesonly": NetworkIntentPolicyBasedServiceAllowRulesOnly, - "none": NetworkIntentPolicyBasedServiceNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkIntentPolicyBasedService(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_networkmanager.go deleted file mode 100644 index 5829592a2f1d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_networkmanager.go +++ /dev/null @@ -1,130 +0,0 @@ -package securityadminconfigurations - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&NetworkManagerId{}) -} - -var _ resourceids.ResourceId = &NetworkManagerId{} - -// NetworkManagerId is a struct representing the Resource ID for a Network Manager -type NetworkManagerId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string -} - -// NewNetworkManagerID returns a new NetworkManagerId struct -func NewNetworkManagerID(subscriptionId string, resourceGroupName string, networkManagerName string) NetworkManagerId { - return NetworkManagerId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - } -} - -// ParseNetworkManagerID parses 'input' into a NetworkManagerId -func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkManagerId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseNetworkManagerIDInsensitively parses 'input' case-insensitively into a NetworkManagerId -// note: this method should only be used for API response data and not user input -func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkManagerId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *NetworkManagerId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - return nil -} - -// ValidateNetworkManagerID checks that 'input' can be parsed as a Network Manager ID -func ValidateNetworkManagerID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseNetworkManagerID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Network Manager ID -func (id NetworkManagerId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Network Manager ID -func (id NetworkManagerId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - } -} - -// String returns a human-readable description of this Network Manager ID -func (id NetworkManagerId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - } - return fmt.Sprintf("Network Manager (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_securityadminconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_securityadminconfiguration.go deleted file mode 100644 index 070ef0fa83e8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_securityadminconfiguration.go +++ /dev/null @@ -1,139 +0,0 @@ -package securityadminconfigurations - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&SecurityAdminConfigurationId{}) -} - -var _ resourceids.ResourceId = &SecurityAdminConfigurationId{} - -// SecurityAdminConfigurationId is a struct representing the Resource ID for a Security Admin Configuration -type SecurityAdminConfigurationId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string - SecurityAdminConfigurationName string -} - -// NewSecurityAdminConfigurationID returns a new SecurityAdminConfigurationId struct -func NewSecurityAdminConfigurationID(subscriptionId string, resourceGroupName string, networkManagerName string, securityAdminConfigurationName string) SecurityAdminConfigurationId { - return SecurityAdminConfigurationId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - SecurityAdminConfigurationName: securityAdminConfigurationName, - } -} - -// ParseSecurityAdminConfigurationID parses 'input' into a SecurityAdminConfigurationId -func ParseSecurityAdminConfigurationID(input string) (*SecurityAdminConfigurationId, error) { - parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := SecurityAdminConfigurationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseSecurityAdminConfigurationIDInsensitively parses 'input' case-insensitively into a SecurityAdminConfigurationId -// note: this method should only be used for API response data and not user input -func ParseSecurityAdminConfigurationIDInsensitively(input string) (*SecurityAdminConfigurationId, error) { - parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := SecurityAdminConfigurationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *SecurityAdminConfigurationId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - if id.SecurityAdminConfigurationName, ok = input.Parsed["securityAdminConfigurationName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "securityAdminConfigurationName", input) - } - - return nil -} - -// ValidateSecurityAdminConfigurationID checks that 'input' can be parsed as a Security Admin Configuration ID -func ValidateSecurityAdminConfigurationID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseSecurityAdminConfigurationID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Security Admin Configuration ID -func (id SecurityAdminConfigurationId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityAdminConfigurations/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Security Admin Configuration ID -func (id SecurityAdminConfigurationId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), - resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationName"), - } -} - -// String returns a human-readable description of this Security Admin Configuration ID -func (id SecurityAdminConfigurationId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - fmt.Sprintf("Security Admin Configuration Name: %q", id.SecurityAdminConfigurationName), - } - return fmt.Sprintf("Security Admin Configuration (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_createorupdate.go deleted file mode 100644 index 2406a218954f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_createorupdate.go +++ /dev/null @@ -1,58 +0,0 @@ -package securityadminconfigurations - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *SecurityAdminConfiguration -} - -// CreateOrUpdate ... -func (c SecurityAdminConfigurationsClient) CreateOrUpdate(ctx context.Context, id SecurityAdminConfigurationId, input SecurityAdminConfiguration) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model SecurityAdminConfiguration - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_delete.go deleted file mode 100644 index 98f2658625f6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_delete.go +++ /dev/null @@ -1,100 +0,0 @@ -package securityadminconfigurations - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -type DeleteOperationOptions struct { - Force *bool -} - -func DefaultDeleteOperationOptions() DeleteOperationOptions { - return DeleteOperationOptions{} -} - -func (o DeleteOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o DeleteOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o DeleteOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Force != nil { - out.Append("force", fmt.Sprintf("%v", *o.Force)) - } - return &out -} - -// Delete ... -func (c SecurityAdminConfigurationsClient) Delete(ctx context.Context, id SecurityAdminConfigurationId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c SecurityAdminConfigurationsClient) DeleteThenPoll(ctx context.Context, id SecurityAdminConfigurationId, options DeleteOperationOptions) error { - result, err := c.Delete(ctx, id, options) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_get.go deleted file mode 100644 index 65a62286882d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package securityadminconfigurations - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *SecurityAdminConfiguration -} - -// Get ... -func (c SecurityAdminConfigurationsClient) Get(ctx context.Context, id SecurityAdminConfigurationId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model SecurityAdminConfiguration - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_list.go deleted file mode 100644 index a4abe4c74d37..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_list.go +++ /dev/null @@ -1,134 +0,0 @@ -package securityadminconfigurations - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]SecurityAdminConfiguration -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []SecurityAdminConfiguration -} - -type ListOperationOptions struct { - Top *int64 -} - -func DefaultListOperationOptions() ListOperationOptions { - return ListOperationOptions{} -} - -func (o ListOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o ListOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o ListOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Top != nil { - out.Append("$top", fmt.Sprintf("%v", *o.Top)) - } - return &out -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c SecurityAdminConfigurationsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/securityAdminConfigurations", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]SecurityAdminConfiguration `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c SecurityAdminConfigurationsClient) ListComplete(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, options, SecurityAdminConfigurationOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c SecurityAdminConfigurationsClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkManagerId, options ListOperationOptions, predicate SecurityAdminConfigurationOperationPredicate) (result ListCompleteResult, err error) { - items := make([]SecurityAdminConfiguration, 0) - - resp, err := c.List(ctx, id, options) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/model_securityadminconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/model_securityadminconfiguration.go deleted file mode 100644 index 004c4d46b07f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/model_securityadminconfiguration.go +++ /dev/null @@ -1,17 +0,0 @@ -package securityadminconfigurations - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityAdminConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SecurityAdminConfigurationPropertiesFormat `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/model_securityadminconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/model_securityadminconfigurationpropertiesformat.go deleted file mode 100644 index cf9ecff77919..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/model_securityadminconfigurationpropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package securityadminconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityAdminConfigurationPropertiesFormat struct { - ApplyOnNetworkIntentPolicyBasedServices *[]NetworkIntentPolicyBasedService `json:"applyOnNetworkIntentPolicyBasedServices,omitempty"` - Description *string `json:"description,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/predicates.go deleted file mode 100644 index bcc5de9a6a81..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package securityadminconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityAdminConfigurationOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p SecurityAdminConfigurationOperationPredicate) Matches(input SecurityAdminConfiguration) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/version.go deleted file mode 100644 index 6e069e589d3a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package securityadminconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/securityadminconfigurations/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/README.md deleted file mode 100644 index 84517d3ef7cc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/README.md +++ /dev/null @@ -1,121 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders` Documentation - -The `securitypartnerproviders` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders" -``` - - -### Client Initialization - -```go -client := securitypartnerproviders.NewSecurityPartnerProvidersClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `SecurityPartnerProvidersClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") - -payload := securitypartnerproviders.SecurityPartnerProvider{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `SecurityPartnerProvidersClient.Delete` - -```go -ctx := context.TODO() -id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `SecurityPartnerProvidersClient.Get` - -```go -ctx := context.TODO() -id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `SecurityPartnerProvidersClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `SecurityPartnerProvidersClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `SecurityPartnerProvidersClient.UpdateTags` - -```go -ctx := context.TODO() -id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") - -payload := securitypartnerproviders.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/client.go deleted file mode 100644 index 7752e07fcf37..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package securitypartnerproviders - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityPartnerProvidersClient struct { - Client *resourcemanager.Client -} - -func NewSecurityPartnerProvidersClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityPartnerProvidersClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "securitypartnerproviders", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating SecurityPartnerProvidersClient: %+v", err) - } - - return &SecurityPartnerProvidersClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/constants.go deleted file mode 100644 index 2390c77210a8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/constants.go +++ /dev/null @@ -1,148 +0,0 @@ -package securitypartnerproviders - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type SecurityPartnerProviderConnectionStatus string - -const ( - SecurityPartnerProviderConnectionStatusConnected SecurityPartnerProviderConnectionStatus = "Connected" - SecurityPartnerProviderConnectionStatusNotConnected SecurityPartnerProviderConnectionStatus = "NotConnected" - SecurityPartnerProviderConnectionStatusPartiallyConnected SecurityPartnerProviderConnectionStatus = "PartiallyConnected" - SecurityPartnerProviderConnectionStatusUnknown SecurityPartnerProviderConnectionStatus = "Unknown" -) - -func PossibleValuesForSecurityPartnerProviderConnectionStatus() []string { - return []string{ - string(SecurityPartnerProviderConnectionStatusConnected), - string(SecurityPartnerProviderConnectionStatusNotConnected), - string(SecurityPartnerProviderConnectionStatusPartiallyConnected), - string(SecurityPartnerProviderConnectionStatusUnknown), - } -} - -func (s *SecurityPartnerProviderConnectionStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityPartnerProviderConnectionStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityPartnerProviderConnectionStatus(input string) (*SecurityPartnerProviderConnectionStatus, error) { - vals := map[string]SecurityPartnerProviderConnectionStatus{ - "connected": SecurityPartnerProviderConnectionStatusConnected, - "notconnected": SecurityPartnerProviderConnectionStatusNotConnected, - "partiallyconnected": SecurityPartnerProviderConnectionStatusPartiallyConnected, - "unknown": SecurityPartnerProviderConnectionStatusUnknown, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityPartnerProviderConnectionStatus(input) - return &out, nil -} - -type SecurityProviderName string - -const ( - SecurityProviderNameCheckpoint SecurityProviderName = "Checkpoint" - SecurityProviderNameIBoss SecurityProviderName = "IBoss" - SecurityProviderNameZScaler SecurityProviderName = "ZScaler" -) - -func PossibleValuesForSecurityProviderName() []string { - return []string{ - string(SecurityProviderNameCheckpoint), - string(SecurityProviderNameIBoss), - string(SecurityProviderNameZScaler), - } -} - -func (s *SecurityProviderName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityProviderName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityProviderName(input string) (*SecurityProviderName, error) { - vals := map[string]SecurityProviderName{ - "checkpoint": SecurityProviderNameCheckpoint, - "iboss": SecurityProviderNameIBoss, - "zscaler": SecurityProviderNameZScaler, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityProviderName(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/id_securitypartnerprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/id_securitypartnerprovider.go deleted file mode 100644 index 6cdcf1022eed..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/id_securitypartnerprovider.go +++ /dev/null @@ -1,130 +0,0 @@ -package securitypartnerproviders - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&SecurityPartnerProviderId{}) -} - -var _ resourceids.ResourceId = &SecurityPartnerProviderId{} - -// SecurityPartnerProviderId is a struct representing the Resource ID for a Security Partner Provider -type SecurityPartnerProviderId struct { - SubscriptionId string - ResourceGroupName string - SecurityPartnerProviderName string -} - -// NewSecurityPartnerProviderID returns a new SecurityPartnerProviderId struct -func NewSecurityPartnerProviderID(subscriptionId string, resourceGroupName string, securityPartnerProviderName string) SecurityPartnerProviderId { - return SecurityPartnerProviderId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - SecurityPartnerProviderName: securityPartnerProviderName, - } -} - -// ParseSecurityPartnerProviderID parses 'input' into a SecurityPartnerProviderId -func ParseSecurityPartnerProviderID(input string) (*SecurityPartnerProviderId, error) { - parser := resourceids.NewParserFromResourceIdType(&SecurityPartnerProviderId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := SecurityPartnerProviderId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseSecurityPartnerProviderIDInsensitively parses 'input' case-insensitively into a SecurityPartnerProviderId -// note: this method should only be used for API response data and not user input -func ParseSecurityPartnerProviderIDInsensitively(input string) (*SecurityPartnerProviderId, error) { - parser := resourceids.NewParserFromResourceIdType(&SecurityPartnerProviderId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := SecurityPartnerProviderId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *SecurityPartnerProviderId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.SecurityPartnerProviderName, ok = input.Parsed["securityPartnerProviderName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "securityPartnerProviderName", input) - } - - return nil -} - -// ValidateSecurityPartnerProviderID checks that 'input' can be parsed as a Security Partner Provider ID -func ValidateSecurityPartnerProviderID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseSecurityPartnerProviderID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Security Partner Provider ID -func (id SecurityPartnerProviderId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/securityPartnerProviders/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.SecurityPartnerProviderName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Security Partner Provider ID -func (id SecurityPartnerProviderId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticSecurityPartnerProviders", "securityPartnerProviders", "securityPartnerProviders"), - resourceids.UserSpecifiedSegment("securityPartnerProviderName", "securityPartnerProviderName"), - } -} - -// String returns a human-readable description of this Security Partner Provider ID -func (id SecurityPartnerProviderId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Security Partner Provider Name: %q", id.SecurityPartnerProviderName), - } - return fmt.Sprintf("Security Partner Provider (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_createorupdate.go deleted file mode 100644 index 3fb82d42ab3e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package securitypartnerproviders - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *SecurityPartnerProvider -} - -// CreateOrUpdate ... -func (c SecurityPartnerProvidersClient) CreateOrUpdate(ctx context.Context, id SecurityPartnerProviderId, input SecurityPartnerProvider) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c SecurityPartnerProvidersClient) CreateOrUpdateThenPoll(ctx context.Context, id SecurityPartnerProviderId, input SecurityPartnerProvider) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_delete.go deleted file mode 100644 index 9494188070de..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package securitypartnerproviders - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c SecurityPartnerProvidersClient) Delete(ctx context.Context, id SecurityPartnerProviderId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c SecurityPartnerProvidersClient) DeleteThenPoll(ctx context.Context, id SecurityPartnerProviderId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_get.go deleted file mode 100644 index 5b244206a3f1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package securitypartnerproviders - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *SecurityPartnerProvider -} - -// Get ... -func (c SecurityPartnerProvidersClient) Get(ctx context.Context, id SecurityPartnerProviderId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model SecurityPartnerProvider - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_list.go deleted file mode 100644 index 9a4f54516805..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package securitypartnerproviders - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]SecurityPartnerProvider -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []SecurityPartnerProvider -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c SecurityPartnerProvidersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/securityPartnerProviders", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]SecurityPartnerProvider `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c SecurityPartnerProvidersClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, SecurityPartnerProviderOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c SecurityPartnerProvidersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate SecurityPartnerProviderOperationPredicate) (result ListCompleteResult, err error) { - items := make([]SecurityPartnerProvider, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_listbyresourcegroup.go deleted file mode 100644 index 0616c919e32e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_listbyresourcegroup.go +++ /dev/null @@ -1,106 +0,0 @@ -package securitypartnerproviders - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListByResourceGroupOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]SecurityPartnerProvider -} - -type ListByResourceGroupCompleteResult struct { - LatestHttpResponse *http.Response - Items []SecurityPartnerProvider -} - -type ListByResourceGroupCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListByResourceGroup ... -func (c SecurityPartnerProvidersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListByResourceGroupCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/securityPartnerProviders", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]SecurityPartnerProvider `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListByResourceGroupComplete retrieves all the results into a single object -func (c SecurityPartnerProvidersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { - return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, SecurityPartnerProviderOperationPredicate{}) -} - -// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c SecurityPartnerProvidersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate SecurityPartnerProviderOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { - items := make([]SecurityPartnerProvider, 0) - - resp, err := c.ListByResourceGroup(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListByResourceGroupCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_updatetags.go deleted file mode 100644 index dfd04e92e889..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_updatetags.go +++ /dev/null @@ -1,57 +0,0 @@ -package securitypartnerproviders - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateTagsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *SecurityPartnerProvider -} - -// UpdateTags ... -func (c SecurityPartnerProvidersClient) UpdateTags(ctx context.Context, id SecurityPartnerProviderId, input TagsObject) (result UpdateTagsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model SecurityPartnerProvider - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_securitypartnerprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_securitypartnerprovider.go deleted file mode 100644 index 059710a7ff69..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_securitypartnerprovider.go +++ /dev/null @@ -1,14 +0,0 @@ -package securitypartnerproviders - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityPartnerProvider struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SecurityPartnerProviderPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_securitypartnerproviderpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_securitypartnerproviderpropertiesformat.go deleted file mode 100644 index 100f4648a9eb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_securitypartnerproviderpropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package securitypartnerproviders - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityPartnerProviderPropertiesFormat struct { - ConnectionStatus *SecurityPartnerProviderConnectionStatus `json:"connectionStatus,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - SecurityProviderName *SecurityProviderName `json:"securityProviderName,omitempty"` - VirtualHub *SubResource `json:"virtualHub,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_subresource.go deleted file mode 100644 index 0d259c7609a1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package securitypartnerproviders - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_tagsobject.go deleted file mode 100644 index 64020cc08ef8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package securitypartnerproviders - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/predicates.go deleted file mode 100644 index ef826d6c55f2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/predicates.go +++ /dev/null @@ -1,37 +0,0 @@ -package securitypartnerproviders - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityPartnerProviderOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p SecurityPartnerProviderOperationPredicate) Matches(input SecurityPartnerProvider) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/version.go deleted file mode 100644 index f39202b8b1b4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package securitypartnerproviders - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/securitypartnerproviders/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/README.md deleted file mode 100644 index ad31a0539efa..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/README.md +++ /dev/null @@ -1,115 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules` Documentation - -The `securityrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules" -``` - - -### Client Initialization - -```go -client := securityrules.NewSecurityRulesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `SecurityRulesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "securityRuleName") - -payload := securityrules.SecurityRule{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `SecurityRulesClient.DefaultSecurityRulesGet` - -```go -ctx := context.TODO() -id := securityrules.NewDefaultSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "defaultSecurityRuleName") - -read, err := client.DefaultSecurityRulesGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `SecurityRulesClient.DefaultSecurityRulesList` - -```go -ctx := context.TODO() -id := securityrules.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") - -// alternatively `client.DefaultSecurityRulesList(ctx, id)` can be used to do batched pagination -items, err := client.DefaultSecurityRulesListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `SecurityRulesClient.Delete` - -```go -ctx := context.TODO() -id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "securityRuleName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `SecurityRulesClient.Get` - -```go -ctx := context.TODO() -id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "securityRuleName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `SecurityRulesClient.List` - -```go -ctx := context.TODO() -id := securityrules.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/client.go deleted file mode 100644 index fe76b456975e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package securityrules - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRulesClient struct { - Client *resourcemanager.Client -} - -func NewSecurityRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityRulesClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "securityrules", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating SecurityRulesClient: %+v", err) - } - - return &SecurityRulesClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/constants.go deleted file mode 100644 index 413963586142..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/constants.go +++ /dev/null @@ -1,192 +0,0 @@ -package securityrules - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type SecurityRuleAccess string - -const ( - SecurityRuleAccessAllow SecurityRuleAccess = "Allow" - SecurityRuleAccessDeny SecurityRuleAccess = "Deny" -) - -func PossibleValuesForSecurityRuleAccess() []string { - return []string{ - string(SecurityRuleAccessAllow), - string(SecurityRuleAccessDeny), - } -} - -func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { - vals := map[string]SecurityRuleAccess{ - "allow": SecurityRuleAccessAllow, - "deny": SecurityRuleAccessDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleAccess(input) - return &out, nil -} - -type SecurityRuleDirection string - -const ( - SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" - SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" -) - -func PossibleValuesForSecurityRuleDirection() []string { - return []string{ - string(SecurityRuleDirectionInbound), - string(SecurityRuleDirectionOutbound), - } -} - -func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleDirection(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { - vals := map[string]SecurityRuleDirection{ - "inbound": SecurityRuleDirectionInbound, - "outbound": SecurityRuleDirectionOutbound, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleDirection(input) - return &out, nil -} - -type SecurityRuleProtocol string - -const ( - SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" - SecurityRuleProtocolAny SecurityRuleProtocol = "*" - SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" - SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" - SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" - SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" -) - -func PossibleValuesForSecurityRuleProtocol() []string { - return []string{ - string(SecurityRuleProtocolAh), - string(SecurityRuleProtocolAny), - string(SecurityRuleProtocolEsp), - string(SecurityRuleProtocolIcmp), - string(SecurityRuleProtocolTcp), - string(SecurityRuleProtocolUdp), - } -} - -func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { - vals := map[string]SecurityRuleProtocol{ - "ah": SecurityRuleProtocolAh, - "*": SecurityRuleProtocolAny, - "esp": SecurityRuleProtocolEsp, - "icmp": SecurityRuleProtocolIcmp, - "tcp": SecurityRuleProtocolTcp, - "udp": SecurityRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleProtocol(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_defaultsecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_defaultsecurityrule.go deleted file mode 100644 index 0a8b4713607d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_defaultsecurityrule.go +++ /dev/null @@ -1,139 +0,0 @@ -package securityrules - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&DefaultSecurityRuleId{}) -} - -var _ resourceids.ResourceId = &DefaultSecurityRuleId{} - -// DefaultSecurityRuleId is a struct representing the Resource ID for a Default Security Rule -type DefaultSecurityRuleId struct { - SubscriptionId string - ResourceGroupName string - NetworkSecurityGroupName string - DefaultSecurityRuleName string -} - -// NewDefaultSecurityRuleID returns a new DefaultSecurityRuleId struct -func NewDefaultSecurityRuleID(subscriptionId string, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) DefaultSecurityRuleId { - return DefaultSecurityRuleId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkSecurityGroupName: networkSecurityGroupName, - DefaultSecurityRuleName: defaultSecurityRuleName, - } -} - -// ParseDefaultSecurityRuleID parses 'input' into a DefaultSecurityRuleId -func ParseDefaultSecurityRuleID(input string) (*DefaultSecurityRuleId, error) { - parser := resourceids.NewParserFromResourceIdType(&DefaultSecurityRuleId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := DefaultSecurityRuleId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseDefaultSecurityRuleIDInsensitively parses 'input' case-insensitively into a DefaultSecurityRuleId -// note: this method should only be used for API response data and not user input -func ParseDefaultSecurityRuleIDInsensitively(input string) (*DefaultSecurityRuleId, error) { - parser := resourceids.NewParserFromResourceIdType(&DefaultSecurityRuleId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := DefaultSecurityRuleId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *DefaultSecurityRuleId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkSecurityGroupName, ok = input.Parsed["networkSecurityGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkSecurityGroupName", input) - } - - if id.DefaultSecurityRuleName, ok = input.Parsed["defaultSecurityRuleName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "defaultSecurityRuleName", input) - } - - return nil -} - -// ValidateDefaultSecurityRuleID checks that 'input' can be parsed as a Default Security Rule ID -func ValidateDefaultSecurityRuleID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseDefaultSecurityRuleID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Default Security Rule ID -func (id DefaultSecurityRuleId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkSecurityGroups/%s/defaultSecurityRules/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkSecurityGroupName, id.DefaultSecurityRuleName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Default Security Rule ID -func (id DefaultSecurityRuleId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkSecurityGroups", "networkSecurityGroups", "networkSecurityGroups"), - resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupName"), - resourceids.StaticSegment("staticDefaultSecurityRules", "defaultSecurityRules", "defaultSecurityRules"), - resourceids.UserSpecifiedSegment("defaultSecurityRuleName", "defaultSecurityRuleName"), - } -} - -// String returns a human-readable description of this Default Security Rule ID -func (id DefaultSecurityRuleId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Security Group Name: %q", id.NetworkSecurityGroupName), - fmt.Sprintf("Default Security Rule Name: %q", id.DefaultSecurityRuleName), - } - return fmt.Sprintf("Default Security Rule (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_networksecuritygroup.go deleted file mode 100644 index c684ad866966..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_networksecuritygroup.go +++ /dev/null @@ -1,130 +0,0 @@ -package securityrules - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&NetworkSecurityGroupId{}) -} - -var _ resourceids.ResourceId = &NetworkSecurityGroupId{} - -// NetworkSecurityGroupId is a struct representing the Resource ID for a Network Security Group -type NetworkSecurityGroupId struct { - SubscriptionId string - ResourceGroupName string - NetworkSecurityGroupName string -} - -// NewNetworkSecurityGroupID returns a new NetworkSecurityGroupId struct -func NewNetworkSecurityGroupID(subscriptionId string, resourceGroupName string, networkSecurityGroupName string) NetworkSecurityGroupId { - return NetworkSecurityGroupId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkSecurityGroupName: networkSecurityGroupName, - } -} - -// ParseNetworkSecurityGroupID parses 'input' into a NetworkSecurityGroupId -func ParseNetworkSecurityGroupID(input string) (*NetworkSecurityGroupId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkSecurityGroupId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkSecurityGroupId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseNetworkSecurityGroupIDInsensitively parses 'input' case-insensitively into a NetworkSecurityGroupId -// note: this method should only be used for API response data and not user input -func ParseNetworkSecurityGroupIDInsensitively(input string) (*NetworkSecurityGroupId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkSecurityGroupId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkSecurityGroupId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *NetworkSecurityGroupId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkSecurityGroupName, ok = input.Parsed["networkSecurityGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkSecurityGroupName", input) - } - - return nil -} - -// ValidateNetworkSecurityGroupID checks that 'input' can be parsed as a Network Security Group ID -func ValidateNetworkSecurityGroupID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseNetworkSecurityGroupID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Network Security Group ID -func (id NetworkSecurityGroupId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkSecurityGroups/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkSecurityGroupName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Network Security Group ID -func (id NetworkSecurityGroupId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkSecurityGroups", "networkSecurityGroups", "networkSecurityGroups"), - resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupName"), - } -} - -// String returns a human-readable description of this Network Security Group ID -func (id NetworkSecurityGroupId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Security Group Name: %q", id.NetworkSecurityGroupName), - } - return fmt.Sprintf("Network Security Group (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_securityrule.go deleted file mode 100644 index 105879c11331..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_securityrule.go +++ /dev/null @@ -1,139 +0,0 @@ -package securityrules - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&SecurityRuleId{}) -} - -var _ resourceids.ResourceId = &SecurityRuleId{} - -// SecurityRuleId is a struct representing the Resource ID for a Security Rule -type SecurityRuleId struct { - SubscriptionId string - ResourceGroupName string - NetworkSecurityGroupName string - SecurityRuleName string -} - -// NewSecurityRuleID returns a new SecurityRuleId struct -func NewSecurityRuleID(subscriptionId string, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) SecurityRuleId { - return SecurityRuleId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkSecurityGroupName: networkSecurityGroupName, - SecurityRuleName: securityRuleName, - } -} - -// ParseSecurityRuleID parses 'input' into a SecurityRuleId -func ParseSecurityRuleID(input string) (*SecurityRuleId, error) { - parser := resourceids.NewParserFromResourceIdType(&SecurityRuleId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := SecurityRuleId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseSecurityRuleIDInsensitively parses 'input' case-insensitively into a SecurityRuleId -// note: this method should only be used for API response data and not user input -func ParseSecurityRuleIDInsensitively(input string) (*SecurityRuleId, error) { - parser := resourceids.NewParserFromResourceIdType(&SecurityRuleId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := SecurityRuleId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *SecurityRuleId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkSecurityGroupName, ok = input.Parsed["networkSecurityGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkSecurityGroupName", input) - } - - if id.SecurityRuleName, ok = input.Parsed["securityRuleName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "securityRuleName", input) - } - - return nil -} - -// ValidateSecurityRuleID checks that 'input' can be parsed as a Security Rule ID -func ValidateSecurityRuleID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseSecurityRuleID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Security Rule ID -func (id SecurityRuleId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkSecurityGroups/%s/securityRules/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkSecurityGroupName, id.SecurityRuleName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Security Rule ID -func (id SecurityRuleId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkSecurityGroups", "networkSecurityGroups", "networkSecurityGroups"), - resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupName"), - resourceids.StaticSegment("staticSecurityRules", "securityRules", "securityRules"), - resourceids.UserSpecifiedSegment("securityRuleName", "securityRuleName"), - } -} - -// String returns a human-readable description of this Security Rule ID -func (id SecurityRuleId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Security Group Name: %q", id.NetworkSecurityGroupName), - fmt.Sprintf("Security Rule Name: %q", id.SecurityRuleName), - } - return fmt.Sprintf("Security Rule (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_createorupdate.go deleted file mode 100644 index ca2001b17165..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package securityrules - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *SecurityRule -} - -// CreateOrUpdate ... -func (c SecurityRulesClient) CreateOrUpdate(ctx context.Context, id SecurityRuleId, input SecurityRule) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c SecurityRulesClient) CreateOrUpdateThenPoll(ctx context.Context, id SecurityRuleId, input SecurityRule) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityrulesget.go deleted file mode 100644 index 0d436a237068..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityrulesget.go +++ /dev/null @@ -1,53 +0,0 @@ -package securityrules - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DefaultSecurityRulesGetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *SecurityRule -} - -// DefaultSecurityRulesGet ... -func (c SecurityRulesClient) DefaultSecurityRulesGet(ctx context.Context, id DefaultSecurityRuleId) (result DefaultSecurityRulesGetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model SecurityRule - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityruleslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityruleslist.go deleted file mode 100644 index fbf92af5b894..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityruleslist.go +++ /dev/null @@ -1,105 +0,0 @@ -package securityrules - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DefaultSecurityRulesListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]SecurityRule -} - -type DefaultSecurityRulesListCompleteResult struct { - LatestHttpResponse *http.Response - Items []SecurityRule -} - -type DefaultSecurityRulesListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *DefaultSecurityRulesListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// DefaultSecurityRulesList ... -func (c SecurityRulesClient) DefaultSecurityRulesList(ctx context.Context, id NetworkSecurityGroupId) (result DefaultSecurityRulesListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &DefaultSecurityRulesListCustomPager{}, - Path: fmt.Sprintf("%s/defaultSecurityRules", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]SecurityRule `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// DefaultSecurityRulesListComplete retrieves all the results into a single object -func (c SecurityRulesClient) DefaultSecurityRulesListComplete(ctx context.Context, id NetworkSecurityGroupId) (DefaultSecurityRulesListCompleteResult, error) { - return c.DefaultSecurityRulesListCompleteMatchingPredicate(ctx, id, SecurityRuleOperationPredicate{}) -} - -// DefaultSecurityRulesListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c SecurityRulesClient) DefaultSecurityRulesListCompleteMatchingPredicate(ctx context.Context, id NetworkSecurityGroupId, predicate SecurityRuleOperationPredicate) (result DefaultSecurityRulesListCompleteResult, err error) { - items := make([]SecurityRule, 0) - - resp, err := c.DefaultSecurityRulesList(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = DefaultSecurityRulesListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_delete.go deleted file mode 100644 index 769b4866b0d5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package securityrules - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c SecurityRulesClient) Delete(ctx context.Context, id SecurityRuleId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c SecurityRulesClient) DeleteThenPoll(ctx context.Context, id SecurityRuleId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_get.go deleted file mode 100644 index 85ddb4310ff1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package securityrules - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *SecurityRule -} - -// Get ... -func (c SecurityRulesClient) Get(ctx context.Context, id SecurityRuleId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model SecurityRule - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_list.go deleted file mode 100644 index 73b4f2f1a16e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_list.go +++ /dev/null @@ -1,105 +0,0 @@ -package securityrules - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]SecurityRule -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []SecurityRule -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c SecurityRulesClient) List(ctx context.Context, id NetworkSecurityGroupId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/securityRules", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]SecurityRule `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c SecurityRulesClient) ListComplete(ctx context.Context, id NetworkSecurityGroupId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, SecurityRuleOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c SecurityRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkSecurityGroupId, predicate SecurityRuleOperationPredicate) (result ListCompleteResult, err error) { - items := make([]SecurityRule, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_applicationsecuritygroup.go deleted file mode 100644 index 7a6b77fa92ac..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_applicationsecuritygroup.go +++ /dev/null @@ -1,14 +0,0 @@ -package securityrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_applicationsecuritygrouppropertiesformat.go deleted file mode 100644 index b73ae0245399..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_applicationsecuritygrouppropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package securityrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroupPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_securityrule.go deleted file mode 100644 index e96cb57aa16b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_securityrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package securityrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_securityrulepropertiesformat.go deleted file mode 100644 index a7e44555d950..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_securityrulepropertiesformat.go +++ /dev/null @@ -1,23 +0,0 @@ -package securityrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRulePropertiesFormat struct { - Access SecurityRuleAccess `json:"access"` - Description *string `json:"description,omitempty"` - DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` - DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` - DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` - DestinationPortRange *string `json:"destinationPortRange,omitempty"` - DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` - Direction SecurityRuleDirection `json:"direction"` - Priority int64 `json:"priority"` - Protocol SecurityRuleProtocol `json:"protocol"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` - SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` - SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` - SourcePortRange *string `json:"sourcePortRange,omitempty"` - SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/predicates.go deleted file mode 100644 index adf918c9ac43..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package securityrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRuleOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p SecurityRuleOperationPredicate) Matches(input SecurityRule) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/version.go deleted file mode 100644 index eb8a34469b80..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package securityrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/securityrules/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/README.md deleted file mode 100644 index 5839bbaed506..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/README.md +++ /dev/null @@ -1,53 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags` Documentation - -The `servicetags` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags" -``` - - -### Client Initialization - -```go -client := servicetags.NewServiceTagsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ServiceTagsClient.ServiceTagInformationList` - -```go -ctx := context.TODO() -id := servicetags.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -// alternatively `client.ServiceTagInformationList(ctx, id, servicetags.DefaultServiceTagInformationListOperationOptions())` can be used to do batched pagination -items, err := client.ServiceTagInformationListComplete(ctx, id, servicetags.DefaultServiceTagInformationListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ServiceTagsClient.ServiceTagsList` - -```go -ctx := context.TODO() -id := servicetags.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -read, err := client.ServiceTagsList(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/client.go deleted file mode 100644 index 33295761773a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package servicetags - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceTagsClient struct { - Client *resourcemanager.Client -} - -func NewServiceTagsClientWithBaseURI(sdkApi sdkEnv.Api) (*ServiceTagsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "servicetags", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating ServiceTagsClient: %+v", err) - } - - return &ServiceTagsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/id_location.go deleted file mode 100644 index 5040a3f420a1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/id_location.go +++ /dev/null @@ -1,121 +0,0 @@ -package servicetags - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&LocationId{}) -} - -var _ resourceids.ResourceId = &LocationId{} - -// LocationId is a struct representing the Resource ID for a Location -type LocationId struct { - SubscriptionId string - LocationName string -} - -// NewLocationID returns a new LocationId struct -func NewLocationID(subscriptionId string, locationName string) LocationId { - return LocationId{ - SubscriptionId: subscriptionId, - LocationName: locationName, - } -} - -// ParseLocationID parses 'input' into a LocationId -func ParseLocationID(input string) (*LocationId, error) { - parser := resourceids.NewParserFromResourceIdType(&LocationId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := LocationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId -// note: this method should only be used for API response data and not user input -func ParseLocationIDInsensitively(input string) (*LocationId, error) { - parser := resourceids.NewParserFromResourceIdType(&LocationId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := LocationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *LocationId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.LocationName, ok = input.Parsed["locationName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) - } - - return nil -} - -// ValidateLocationID checks that 'input' can be parsed as a Location ID -func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseLocationID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Location ID -func (id LocationId) ID() string { - fmtString := "/subscriptions/%s/providers/Microsoft.Network/locations/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.LocationName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Location ID -func (id LocationId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationName"), - } -} - -// String returns a human-readable description of this Location ID -func (id LocationId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Location Name: %q", id.LocationName), - } - return fmt.Sprintf("Location (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetaginformationlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetaginformationlist.go deleted file mode 100644 index 1150809dc2b0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetaginformationlist.go +++ /dev/null @@ -1,138 +0,0 @@ -package servicetags - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceTagInformationListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ServiceTagInformation -} - -type ServiceTagInformationListCompleteResult struct { - LatestHttpResponse *http.Response - Items []ServiceTagInformation -} - -type ServiceTagInformationListOperationOptions struct { - NoAddressPrefixes *bool - TagName *string -} - -func DefaultServiceTagInformationListOperationOptions() ServiceTagInformationListOperationOptions { - return ServiceTagInformationListOperationOptions{} -} - -func (o ServiceTagInformationListOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o ServiceTagInformationListOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o ServiceTagInformationListOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.NoAddressPrefixes != nil { - out.Append("noAddressPrefixes", fmt.Sprintf("%v", *o.NoAddressPrefixes)) - } - if o.TagName != nil { - out.Append("tagName", fmt.Sprintf("%v", *o.TagName)) - } - return &out -} - -type ServiceTagInformationListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ServiceTagInformationListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ServiceTagInformationList ... -func (c ServiceTagsClient) ServiceTagInformationList(ctx context.Context, id LocationId, options ServiceTagInformationListOperationOptions) (result ServiceTagInformationListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Pager: &ServiceTagInformationListCustomPager{}, - Path: fmt.Sprintf("%s/serviceTagDetails", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]ServiceTagInformation `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ServiceTagInformationListComplete retrieves all the results into a single object -func (c ServiceTagsClient) ServiceTagInformationListComplete(ctx context.Context, id LocationId, options ServiceTagInformationListOperationOptions) (ServiceTagInformationListCompleteResult, error) { - return c.ServiceTagInformationListCompleteMatchingPredicate(ctx, id, options, ServiceTagInformationOperationPredicate{}) -} - -// ServiceTagInformationListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ServiceTagsClient) ServiceTagInformationListCompleteMatchingPredicate(ctx context.Context, id LocationId, options ServiceTagInformationListOperationOptions, predicate ServiceTagInformationOperationPredicate) (result ServiceTagInformationListCompleteResult, err error) { - items := make([]ServiceTagInformation, 0) - - resp, err := c.ServiceTagInformationList(ctx, id, options) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ServiceTagInformationListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetagslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetagslist.go deleted file mode 100644 index a25ce1872536..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetagslist.go +++ /dev/null @@ -1,54 +0,0 @@ -package servicetags - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceTagsListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *ServiceTagsListResult -} - -// ServiceTagsList ... -func (c ServiceTagsClient) ServiceTagsList(ctx context.Context, id LocationId) (result ServiceTagsListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/serviceTags", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model ServiceTagsListResult - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetaginformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetaginformation.go deleted file mode 100644 index 705268a5bb95..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetaginformation.go +++ /dev/null @@ -1,11 +0,0 @@ -package servicetags - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceTagInformation struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceTagInformationPropertiesFormat `json:"properties,omitempty"` - ServiceTagChangeNumber *string `json:"serviceTagChangeNumber,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetaginformationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetaginformationpropertiesformat.go deleted file mode 100644 index 0d51bfcd8b27..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetaginformationpropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package servicetags - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceTagInformationPropertiesFormat struct { - AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` - ChangeNumber *string `json:"changeNumber,omitempty"` - Region *string `json:"region,omitempty"` - State *string `json:"state,omitempty"` - SystemService *string `json:"systemService,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetagslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetagslistresult.go deleted file mode 100644 index 9cfb2fb2afb1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetagslistresult.go +++ /dev/null @@ -1,14 +0,0 @@ -package servicetags - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceTagsListResult struct { - ChangeNumber *string `json:"changeNumber,omitempty"` - Cloud *string `json:"cloud,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - NextLink *string `json:"nextLink,omitempty"` - Type *string `json:"type,omitempty"` - Values *[]ServiceTagInformation `json:"values,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/predicates.go deleted file mode 100644 index e10bffe6a4f0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/predicates.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicetags - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceTagInformationOperationPredicate struct { - Id *string - Name *string - ServiceTagChangeNumber *string -} - -func (p ServiceTagInformationOperationPredicate) Matches(input ServiceTagInformation) bool { - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.ServiceTagChangeNumber != nil && (input.ServiceTagChangeNumber == nil || *p.ServiceTagChangeNumber != *input.ServiceTagChangeNumber) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/version.go deleted file mode 100644 index bc7a69e798e4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package servicetags - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/servicetags/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/README.md deleted file mode 100644 index 8704ed2ed7bc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/README.md +++ /dev/null @@ -1,90 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers` Documentation - -The `staticmembers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers" -``` - - -### Client Initialization - -```go -client := staticmembers.NewStaticMembersClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `StaticMembersClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName", "staticMemberName") - -payload := staticmembers.StaticMember{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `StaticMembersClient.Delete` - -```go -ctx := context.TODO() -id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName", "staticMemberName") - -read, err := client.Delete(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `StaticMembersClient.Get` - -```go -ctx := context.TODO() -id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName", "staticMemberName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `StaticMembersClient.List` - -```go -ctx := context.TODO() -id := staticmembers.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") - -// alternatively `client.List(ctx, id, staticmembers.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, staticmembers.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/client.go deleted file mode 100644 index 9357db6d5f3c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package staticmembers - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StaticMembersClient struct { - Client *resourcemanager.Client -} - -func NewStaticMembersClientWithBaseURI(sdkApi sdkEnv.Api) (*StaticMembersClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "staticmembers", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating StaticMembersClient: %+v", err) - } - - return &StaticMembersClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/constants.go deleted file mode 100644 index 3ccbd94262b0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/constants.go +++ /dev/null @@ -1,57 +0,0 @@ -package staticmembers - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_networkgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_networkgroup.go deleted file mode 100644 index d846cd377f4b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_networkgroup.go +++ /dev/null @@ -1,139 +0,0 @@ -package staticmembers - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&NetworkGroupId{}) -} - -var _ resourceids.ResourceId = &NetworkGroupId{} - -// NetworkGroupId is a struct representing the Resource ID for a Network Group -type NetworkGroupId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string - NetworkGroupName string -} - -// NewNetworkGroupID returns a new NetworkGroupId struct -func NewNetworkGroupID(subscriptionId string, resourceGroupName string, networkManagerName string, networkGroupName string) NetworkGroupId { - return NetworkGroupId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - NetworkGroupName: networkGroupName, - } -} - -// ParseNetworkGroupID parses 'input' into a NetworkGroupId -func ParseNetworkGroupID(input string) (*NetworkGroupId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkGroupId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkGroupId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseNetworkGroupIDInsensitively parses 'input' case-insensitively into a NetworkGroupId -// note: this method should only be used for API response data and not user input -func ParseNetworkGroupIDInsensitively(input string) (*NetworkGroupId, error) { - parser := resourceids.NewParserFromResourceIdType(&NetworkGroupId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := NetworkGroupId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *NetworkGroupId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - if id.NetworkGroupName, ok = input.Parsed["networkGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkGroupName", input) - } - - return nil -} - -// ValidateNetworkGroupID checks that 'input' can be parsed as a Network Group ID -func ValidateNetworkGroupID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseNetworkGroupID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Network Group ID -func (id NetworkGroupId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/networkGroups/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.NetworkGroupName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Network Group ID -func (id NetworkGroupId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - resourceids.StaticSegment("staticNetworkGroups", "networkGroups", "networkGroups"), - resourceids.UserSpecifiedSegment("networkGroupName", "networkGroupName"), - } -} - -// String returns a human-readable description of this Network Group ID -func (id NetworkGroupId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - fmt.Sprintf("Network Group Name: %q", id.NetworkGroupName), - } - return fmt.Sprintf("Network Group (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_staticmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_staticmember.go deleted file mode 100644 index 7bbcff626d34..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_staticmember.go +++ /dev/null @@ -1,148 +0,0 @@ -package staticmembers - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&StaticMemberId{}) -} - -var _ resourceids.ResourceId = &StaticMemberId{} - -// StaticMemberId is a struct representing the Resource ID for a Static Member -type StaticMemberId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string - NetworkGroupName string - StaticMemberName string -} - -// NewStaticMemberID returns a new StaticMemberId struct -func NewStaticMemberID(subscriptionId string, resourceGroupName string, networkManagerName string, networkGroupName string, staticMemberName string) StaticMemberId { - return StaticMemberId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - NetworkGroupName: networkGroupName, - StaticMemberName: staticMemberName, - } -} - -// ParseStaticMemberID parses 'input' into a StaticMemberId -func ParseStaticMemberID(input string) (*StaticMemberId, error) { - parser := resourceids.NewParserFromResourceIdType(&StaticMemberId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := StaticMemberId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseStaticMemberIDInsensitively parses 'input' case-insensitively into a StaticMemberId -// note: this method should only be used for API response data and not user input -func ParseStaticMemberIDInsensitively(input string) (*StaticMemberId, error) { - parser := resourceids.NewParserFromResourceIdType(&StaticMemberId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := StaticMemberId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *StaticMemberId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - if id.NetworkGroupName, ok = input.Parsed["networkGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkGroupName", input) - } - - if id.StaticMemberName, ok = input.Parsed["staticMemberName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "staticMemberName", input) - } - - return nil -} - -// ValidateStaticMemberID checks that 'input' can be parsed as a Static Member ID -func ValidateStaticMemberID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseStaticMemberID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Static Member ID -func (id StaticMemberId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/networkGroups/%s/staticMembers/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.NetworkGroupName, id.StaticMemberName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Static Member ID -func (id StaticMemberId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - resourceids.StaticSegment("staticNetworkGroups", "networkGroups", "networkGroups"), - resourceids.UserSpecifiedSegment("networkGroupName", "networkGroupName"), - resourceids.StaticSegment("staticStaticMembers", "staticMembers", "staticMembers"), - resourceids.UserSpecifiedSegment("staticMemberName", "staticMemberName"), - } -} - -// String returns a human-readable description of this Static Member ID -func (id StaticMemberId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - fmt.Sprintf("Network Group Name: %q", id.NetworkGroupName), - fmt.Sprintf("Static Member Name: %q", id.StaticMemberName), - } - return fmt.Sprintf("Static Member (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_createorupdate.go deleted file mode 100644 index f4ad175116b0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_createorupdate.go +++ /dev/null @@ -1,58 +0,0 @@ -package staticmembers - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *StaticMember -} - -// CreateOrUpdate ... -func (c StaticMembersClient) CreateOrUpdate(ctx context.Context, id StaticMemberId, input StaticMember) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model StaticMember - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_delete.go deleted file mode 100644 index 5709eca59ecb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_delete.go +++ /dev/null @@ -1,47 +0,0 @@ -package staticmembers - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c StaticMembersClient) Delete(ctx context.Context, id StaticMemberId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_get.go deleted file mode 100644 index 8f9d30b17abe..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package staticmembers - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *StaticMember -} - -// Get ... -func (c StaticMembersClient) Get(ctx context.Context, id StaticMemberId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model StaticMember - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_list.go deleted file mode 100644 index ef104e6865f8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_list.go +++ /dev/null @@ -1,134 +0,0 @@ -package staticmembers - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]StaticMember -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []StaticMember -} - -type ListOperationOptions struct { - Top *int64 -} - -func DefaultListOperationOptions() ListOperationOptions { - return ListOperationOptions{} -} - -func (o ListOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o ListOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o ListOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Top != nil { - out.Append("$top", fmt.Sprintf("%v", *o.Top)) - } - return &out -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c StaticMembersClient) List(ctx context.Context, id NetworkGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/staticMembers", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]StaticMember `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c StaticMembersClient) ListComplete(ctx context.Context, id NetworkGroupId, options ListOperationOptions) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, options, StaticMemberOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c StaticMembersClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkGroupId, options ListOperationOptions, predicate StaticMemberOperationPredicate) (result ListCompleteResult, err error) { - items := make([]StaticMember, 0) - - resp, err := c.List(ctx, id, options) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/model_staticmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/model_staticmember.go deleted file mode 100644 index b0d518168ea8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/model_staticmember.go +++ /dev/null @@ -1,17 +0,0 @@ -package staticmembers - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StaticMember struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *StaticMemberProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/model_staticmemberproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/model_staticmemberproperties.go deleted file mode 100644 index 513dd3e5b9b9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/model_staticmemberproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package staticmembers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StaticMemberProperties struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Region *string `json:"region,omitempty"` - ResourceId *string `json:"resourceId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/predicates.go deleted file mode 100644 index 0fb08a96da71..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package staticmembers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StaticMemberOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p StaticMemberOperationPredicate) Matches(input StaticMember) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/version.go deleted file mode 100644 index 4e136e775aab..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package staticmembers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/staticmembers/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/README.md deleted file mode 100644 index edc1660ccc6c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/README.md +++ /dev/null @@ -1,414 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways` Documentation - -The `virtualnetworkgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways" -``` - - -### Client Initialization - -```go -client := virtualnetworkgateways.NewVirtualNetworkGatewaysClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -payload := virtualnetworkgateways.VirtualNetworkGateway{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.Delete` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.DisconnectVirtualNetworkGatewayVpnConnections` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -payload := virtualnetworkgateways.P2SVpnConnectionRequest{ - // ... -} - - -if err := client.DisconnectVirtualNetworkGatewayVpnConnectionsThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.GenerateVpnProfile` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -payload := virtualnetworkgateways.VpnClientParameters{ - // ... -} - - -if err := client.GenerateVpnProfileThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.Generatevpnclientpackage` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -payload := virtualnetworkgateways.VpnClientParameters{ - // ... -} - - -if err := client.GeneratevpnclientpackageThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.Get` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.GetAdvertisedRoutes` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.GetAdvertisedRoutesThenPoll(ctx, id, virtualnetworkgateways.DefaultGetAdvertisedRoutesOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.GetBgpPeerStatus` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.GetBgpPeerStatusThenPoll(ctx, id, virtualnetworkgateways.DefaultGetBgpPeerStatusOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.GetLearnedRoutes` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.GetLearnedRoutesThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.GetVpnProfilePackageURL` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.GetVpnProfilePackageURLThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.GetVpnclientConnectionHealth` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.GetVpnclientConnectionHealthThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.GetVpnclientIPsecParameters` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.GetVpnclientIPsecParametersThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.ListConnections` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -// alternatively `client.ListConnections(ctx, id)` can be used to do batched pagination -items, err := client.ListConnectionsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.Reset` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.ResetThenPoll(ctx, id, virtualnetworkgateways.DefaultResetOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.ResetVpnClientSharedKey` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.ResetVpnClientSharedKeyThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.SetVpnclientIPsecParameters` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -payload := virtualnetworkgateways.VpnClientIPsecParameters{ - // ... -} - - -if err := client.SetVpnclientIPsecParametersThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.StartPacketCapture` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -payload := virtualnetworkgateways.VpnPacketCaptureStartParameters{ - // ... -} - - -if err := client.StartPacketCaptureThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.StopPacketCapture` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -payload := virtualnetworkgateways.VpnPacketCaptureStopParameters{ - // ... -} - - -if err := client.StopPacketCaptureThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.SupportedVpnDevices` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -read, err := client.SupportedVpnDevices(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.UpdateTags` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -payload := virtualnetworkgateways.TagsObject{ - // ... -} - - -if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.VirtualNetworkGatewayNatRulesCreateOrUpdate` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName", "natRuleName") - -payload := virtualnetworkgateways.VirtualNetworkGatewayNatRule{ - // ... -} - - -if err := client.VirtualNetworkGatewayNatRulesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.VirtualNetworkGatewayNatRulesDelete` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName", "natRuleName") - -if err := client.VirtualNetworkGatewayNatRulesDeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.VirtualNetworkGatewayNatRulesGet` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName", "natRuleName") - -read, err := client.VirtualNetworkGatewayNatRulesGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -// alternatively `client.VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway(ctx, id)` can be used to do batched pagination -items, err := client.VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.VpnDeviceConfigurationScript` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") - -payload := virtualnetworkgateways.VpnDeviceScriptParameters{ - // ... -} - - -read, err := client.VpnDeviceConfigurationScript(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/client.go deleted file mode 100644 index 56907b3d1b47..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package virtualnetworkgateways - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewaysClient struct { - Client *resourcemanager.Client -} - -func NewVirtualNetworkGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworkGatewaysClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "virtualnetworkgateways", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating VirtualNetworkGatewaysClient: %+v", err) - } - - return &VirtualNetworkGatewaysClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/constants.go deleted file mode 100644 index 16875bf90485..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/constants.go +++ /dev/null @@ -1,1316 +0,0 @@ -package virtualnetworkgateways - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AdminState string - -const ( - AdminStateDisabled AdminState = "Disabled" - AdminStateEnabled AdminState = "Enabled" -) - -func PossibleValuesForAdminState() []string { - return []string{ - string(AdminStateDisabled), - string(AdminStateEnabled), - } -} - -func (s *AdminState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAdminState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAdminState(input string) (*AdminState, error) { - vals := map[string]AdminState{ - "disabled": AdminStateDisabled, - "enabled": AdminStateEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AdminState(input) - return &out, nil -} - -type AuthenticationMethod string - -const ( - AuthenticationMethodEAPMSCHAPvTwo AuthenticationMethod = "EAPMSCHAPv2" - AuthenticationMethodEAPTLS AuthenticationMethod = "EAPTLS" -) - -func PossibleValuesForAuthenticationMethod() []string { - return []string{ - string(AuthenticationMethodEAPMSCHAPvTwo), - string(AuthenticationMethodEAPTLS), - } -} - -func (s *AuthenticationMethod) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAuthenticationMethod(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAuthenticationMethod(input string) (*AuthenticationMethod, error) { - vals := map[string]AuthenticationMethod{ - "eapmschapv2": AuthenticationMethodEAPMSCHAPvTwo, - "eaptls": AuthenticationMethodEAPTLS, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AuthenticationMethod(input) - return &out, nil -} - -type BgpPeerState string - -const ( - BgpPeerStateConnected BgpPeerState = "Connected" - BgpPeerStateConnecting BgpPeerState = "Connecting" - BgpPeerStateIdle BgpPeerState = "Idle" - BgpPeerStateStopped BgpPeerState = "Stopped" - BgpPeerStateUnknown BgpPeerState = "Unknown" -) - -func PossibleValuesForBgpPeerState() []string { - return []string{ - string(BgpPeerStateConnected), - string(BgpPeerStateConnecting), - string(BgpPeerStateIdle), - string(BgpPeerStateStopped), - string(BgpPeerStateUnknown), - } -} - -func (s *BgpPeerState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseBgpPeerState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseBgpPeerState(input string) (*BgpPeerState, error) { - vals := map[string]BgpPeerState{ - "connected": BgpPeerStateConnected, - "connecting": BgpPeerStateConnecting, - "idle": BgpPeerStateIdle, - "stopped": BgpPeerStateStopped, - "unknown": BgpPeerStateUnknown, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := BgpPeerState(input) - return &out, nil -} - -type DhGroup string - -const ( - DhGroupDHGroupOne DhGroup = "DHGroup1" - DhGroupDHGroupOneFour DhGroup = "DHGroup14" - DhGroupDHGroupTwo DhGroup = "DHGroup2" - DhGroupDHGroupTwoFour DhGroup = "DHGroup24" - DhGroupDHGroupTwoZeroFourEight DhGroup = "DHGroup2048" - DhGroupECPThreeEightFour DhGroup = "ECP384" - DhGroupECPTwoFiveSix DhGroup = "ECP256" - DhGroupNone DhGroup = "None" -) - -func PossibleValuesForDhGroup() []string { - return []string{ - string(DhGroupDHGroupOne), - string(DhGroupDHGroupOneFour), - string(DhGroupDHGroupTwo), - string(DhGroupDHGroupTwoFour), - string(DhGroupDHGroupTwoZeroFourEight), - string(DhGroupECPThreeEightFour), - string(DhGroupECPTwoFiveSix), - string(DhGroupNone), - } -} - -func (s *DhGroup) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDhGroup(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDhGroup(input string) (*DhGroup, error) { - vals := map[string]DhGroup{ - "dhgroup1": DhGroupDHGroupOne, - "dhgroup14": DhGroupDHGroupOneFour, - "dhgroup2": DhGroupDHGroupTwo, - "dhgroup24": DhGroupDHGroupTwoFour, - "dhgroup2048": DhGroupDHGroupTwoZeroFourEight, - "ecp384": DhGroupECPThreeEightFour, - "ecp256": DhGroupECPTwoFiveSix, - "none": DhGroupNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DhGroup(input) - return &out, nil -} - -type IPAllocationMethod string - -const ( - IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" - IPAllocationMethodStatic IPAllocationMethod = "Static" -) - -func PossibleValuesForIPAllocationMethod() []string { - return []string{ - string(IPAllocationMethodDynamic), - string(IPAllocationMethodStatic), - } -} - -func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPAllocationMethod(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { - vals := map[string]IPAllocationMethod{ - "dynamic": IPAllocationMethodDynamic, - "static": IPAllocationMethodStatic, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPAllocationMethod(input) - return &out, nil -} - -type IPsecEncryption string - -const ( - IPsecEncryptionAESOneNineTwo IPsecEncryption = "AES192" - IPsecEncryptionAESOneTwoEight IPsecEncryption = "AES128" - IPsecEncryptionAESTwoFiveSix IPsecEncryption = "AES256" - IPsecEncryptionDES IPsecEncryption = "DES" - IPsecEncryptionDESThree IPsecEncryption = "DES3" - IPsecEncryptionGCMAESOneNineTwo IPsecEncryption = "GCMAES192" - IPsecEncryptionGCMAESOneTwoEight IPsecEncryption = "GCMAES128" - IPsecEncryptionGCMAESTwoFiveSix IPsecEncryption = "GCMAES256" - IPsecEncryptionNone IPsecEncryption = "None" -) - -func PossibleValuesForIPsecEncryption() []string { - return []string{ - string(IPsecEncryptionAESOneNineTwo), - string(IPsecEncryptionAESOneTwoEight), - string(IPsecEncryptionAESTwoFiveSix), - string(IPsecEncryptionDES), - string(IPsecEncryptionDESThree), - string(IPsecEncryptionGCMAESOneNineTwo), - string(IPsecEncryptionGCMAESOneTwoEight), - string(IPsecEncryptionGCMAESTwoFiveSix), - string(IPsecEncryptionNone), - } -} - -func (s *IPsecEncryption) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPsecEncryption(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPsecEncryption(input string) (*IPsecEncryption, error) { - vals := map[string]IPsecEncryption{ - "aes192": IPsecEncryptionAESOneNineTwo, - "aes128": IPsecEncryptionAESOneTwoEight, - "aes256": IPsecEncryptionAESTwoFiveSix, - "des": IPsecEncryptionDES, - "des3": IPsecEncryptionDESThree, - "gcmaes192": IPsecEncryptionGCMAESOneNineTwo, - "gcmaes128": IPsecEncryptionGCMAESOneTwoEight, - "gcmaes256": IPsecEncryptionGCMAESTwoFiveSix, - "none": IPsecEncryptionNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPsecEncryption(input) - return &out, nil -} - -type IPsecIntegrity string - -const ( - IPsecIntegrityGCMAESOneNineTwo IPsecIntegrity = "GCMAES192" - IPsecIntegrityGCMAESOneTwoEight IPsecIntegrity = "GCMAES128" - IPsecIntegrityGCMAESTwoFiveSix IPsecIntegrity = "GCMAES256" - IPsecIntegrityMDFive IPsecIntegrity = "MD5" - IPsecIntegritySHAOne IPsecIntegrity = "SHA1" - IPsecIntegritySHATwoFiveSix IPsecIntegrity = "SHA256" -) - -func PossibleValuesForIPsecIntegrity() []string { - return []string{ - string(IPsecIntegrityGCMAESOneNineTwo), - string(IPsecIntegrityGCMAESOneTwoEight), - string(IPsecIntegrityGCMAESTwoFiveSix), - string(IPsecIntegrityMDFive), - string(IPsecIntegritySHAOne), - string(IPsecIntegritySHATwoFiveSix), - } -} - -func (s *IPsecIntegrity) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPsecIntegrity(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPsecIntegrity(input string) (*IPsecIntegrity, error) { - vals := map[string]IPsecIntegrity{ - "gcmaes192": IPsecIntegrityGCMAESOneNineTwo, - "gcmaes128": IPsecIntegrityGCMAESOneTwoEight, - "gcmaes256": IPsecIntegrityGCMAESTwoFiveSix, - "md5": IPsecIntegrityMDFive, - "sha1": IPsecIntegritySHAOne, - "sha256": IPsecIntegritySHATwoFiveSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPsecIntegrity(input) - return &out, nil -} - -type IkeEncryption string - -const ( - IkeEncryptionAESOneNineTwo IkeEncryption = "AES192" - IkeEncryptionAESOneTwoEight IkeEncryption = "AES128" - IkeEncryptionAESTwoFiveSix IkeEncryption = "AES256" - IkeEncryptionDES IkeEncryption = "DES" - IkeEncryptionDESThree IkeEncryption = "DES3" - IkeEncryptionGCMAESOneTwoEight IkeEncryption = "GCMAES128" - IkeEncryptionGCMAESTwoFiveSix IkeEncryption = "GCMAES256" -) - -func PossibleValuesForIkeEncryption() []string { - return []string{ - string(IkeEncryptionAESOneNineTwo), - string(IkeEncryptionAESOneTwoEight), - string(IkeEncryptionAESTwoFiveSix), - string(IkeEncryptionDES), - string(IkeEncryptionDESThree), - string(IkeEncryptionGCMAESOneTwoEight), - string(IkeEncryptionGCMAESTwoFiveSix), - } -} - -func (s *IkeEncryption) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIkeEncryption(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIkeEncryption(input string) (*IkeEncryption, error) { - vals := map[string]IkeEncryption{ - "aes192": IkeEncryptionAESOneNineTwo, - "aes128": IkeEncryptionAESOneTwoEight, - "aes256": IkeEncryptionAESTwoFiveSix, - "des": IkeEncryptionDES, - "des3": IkeEncryptionDESThree, - "gcmaes128": IkeEncryptionGCMAESOneTwoEight, - "gcmaes256": IkeEncryptionGCMAESTwoFiveSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IkeEncryption(input) - return &out, nil -} - -type IkeIntegrity string - -const ( - IkeIntegrityGCMAESOneTwoEight IkeIntegrity = "GCMAES128" - IkeIntegrityGCMAESTwoFiveSix IkeIntegrity = "GCMAES256" - IkeIntegrityMDFive IkeIntegrity = "MD5" - IkeIntegritySHAOne IkeIntegrity = "SHA1" - IkeIntegritySHAThreeEightFour IkeIntegrity = "SHA384" - IkeIntegritySHATwoFiveSix IkeIntegrity = "SHA256" -) - -func PossibleValuesForIkeIntegrity() []string { - return []string{ - string(IkeIntegrityGCMAESOneTwoEight), - string(IkeIntegrityGCMAESTwoFiveSix), - string(IkeIntegrityMDFive), - string(IkeIntegritySHAOne), - string(IkeIntegritySHAThreeEightFour), - string(IkeIntegritySHATwoFiveSix), - } -} - -func (s *IkeIntegrity) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIkeIntegrity(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIkeIntegrity(input string) (*IkeIntegrity, error) { - vals := map[string]IkeIntegrity{ - "gcmaes128": IkeIntegrityGCMAESOneTwoEight, - "gcmaes256": IkeIntegrityGCMAESTwoFiveSix, - "md5": IkeIntegrityMDFive, - "sha1": IkeIntegritySHAOne, - "sha384": IkeIntegritySHAThreeEightFour, - "sha256": IkeIntegritySHATwoFiveSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IkeIntegrity(input) - return &out, nil -} - -type PfsGroup string - -const ( - PfsGroupECPThreeEightFour PfsGroup = "ECP384" - PfsGroupECPTwoFiveSix PfsGroup = "ECP256" - PfsGroupNone PfsGroup = "None" - PfsGroupPFSMM PfsGroup = "PFSMM" - PfsGroupPFSOne PfsGroup = "PFS1" - PfsGroupPFSOneFour PfsGroup = "PFS14" - PfsGroupPFSTwo PfsGroup = "PFS2" - PfsGroupPFSTwoFour PfsGroup = "PFS24" - PfsGroupPFSTwoZeroFourEight PfsGroup = "PFS2048" -) - -func PossibleValuesForPfsGroup() []string { - return []string{ - string(PfsGroupECPThreeEightFour), - string(PfsGroupECPTwoFiveSix), - string(PfsGroupNone), - string(PfsGroupPFSMM), - string(PfsGroupPFSOne), - string(PfsGroupPFSOneFour), - string(PfsGroupPFSTwo), - string(PfsGroupPFSTwoFour), - string(PfsGroupPFSTwoZeroFourEight), - } -} - -func (s *PfsGroup) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePfsGroup(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePfsGroup(input string) (*PfsGroup, error) { - vals := map[string]PfsGroup{ - "ecp384": PfsGroupECPThreeEightFour, - "ecp256": PfsGroupECPTwoFiveSix, - "none": PfsGroupNone, - "pfsmm": PfsGroupPFSMM, - "pfs1": PfsGroupPFSOne, - "pfs14": PfsGroupPFSOneFour, - "pfs2": PfsGroupPFSTwo, - "pfs24": PfsGroupPFSTwoFour, - "pfs2048": PfsGroupPFSTwoZeroFourEight, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PfsGroup(input) - return &out, nil -} - -type ProcessorArchitecture string - -const ( - ProcessorArchitectureAmdSixFour ProcessorArchitecture = "Amd64" - ProcessorArchitectureXEightSix ProcessorArchitecture = "X86" -) - -func PossibleValuesForProcessorArchitecture() []string { - return []string{ - string(ProcessorArchitectureAmdSixFour), - string(ProcessorArchitectureXEightSix), - } -} - -func (s *ProcessorArchitecture) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProcessorArchitecture(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProcessorArchitecture(input string) (*ProcessorArchitecture, error) { - vals := map[string]ProcessorArchitecture{ - "amd64": ProcessorArchitectureAmdSixFour, - "x86": ProcessorArchitectureXEightSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProcessorArchitecture(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type VirtualNetworkGatewayConnectionMode string - -const ( - VirtualNetworkGatewayConnectionModeDefault VirtualNetworkGatewayConnectionMode = "Default" - VirtualNetworkGatewayConnectionModeInitiatorOnly VirtualNetworkGatewayConnectionMode = "InitiatorOnly" - VirtualNetworkGatewayConnectionModeResponderOnly VirtualNetworkGatewayConnectionMode = "ResponderOnly" -) - -func PossibleValuesForVirtualNetworkGatewayConnectionMode() []string { - return []string{ - string(VirtualNetworkGatewayConnectionModeDefault), - string(VirtualNetworkGatewayConnectionModeInitiatorOnly), - string(VirtualNetworkGatewayConnectionModeResponderOnly), - } -} - -func (s *VirtualNetworkGatewayConnectionMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkGatewayConnectionMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkGatewayConnectionMode(input string) (*VirtualNetworkGatewayConnectionMode, error) { - vals := map[string]VirtualNetworkGatewayConnectionMode{ - "default": VirtualNetworkGatewayConnectionModeDefault, - "initiatoronly": VirtualNetworkGatewayConnectionModeInitiatorOnly, - "responderonly": VirtualNetworkGatewayConnectionModeResponderOnly, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkGatewayConnectionMode(input) - return &out, nil -} - -type VirtualNetworkGatewayConnectionProtocol string - -const ( - VirtualNetworkGatewayConnectionProtocolIKEvOne VirtualNetworkGatewayConnectionProtocol = "IKEv1" - VirtualNetworkGatewayConnectionProtocolIKEvTwo VirtualNetworkGatewayConnectionProtocol = "IKEv2" -) - -func PossibleValuesForVirtualNetworkGatewayConnectionProtocol() []string { - return []string{ - string(VirtualNetworkGatewayConnectionProtocolIKEvOne), - string(VirtualNetworkGatewayConnectionProtocolIKEvTwo), - } -} - -func (s *VirtualNetworkGatewayConnectionProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkGatewayConnectionProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkGatewayConnectionProtocol(input string) (*VirtualNetworkGatewayConnectionProtocol, error) { - vals := map[string]VirtualNetworkGatewayConnectionProtocol{ - "ikev1": VirtualNetworkGatewayConnectionProtocolIKEvOne, - "ikev2": VirtualNetworkGatewayConnectionProtocolIKEvTwo, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkGatewayConnectionProtocol(input) - return &out, nil -} - -type VirtualNetworkGatewayConnectionStatus string - -const ( - VirtualNetworkGatewayConnectionStatusConnected VirtualNetworkGatewayConnectionStatus = "Connected" - VirtualNetworkGatewayConnectionStatusConnecting VirtualNetworkGatewayConnectionStatus = "Connecting" - VirtualNetworkGatewayConnectionStatusNotConnected VirtualNetworkGatewayConnectionStatus = "NotConnected" - VirtualNetworkGatewayConnectionStatusUnknown VirtualNetworkGatewayConnectionStatus = "Unknown" -) - -func PossibleValuesForVirtualNetworkGatewayConnectionStatus() []string { - return []string{ - string(VirtualNetworkGatewayConnectionStatusConnected), - string(VirtualNetworkGatewayConnectionStatusConnecting), - string(VirtualNetworkGatewayConnectionStatusNotConnected), - string(VirtualNetworkGatewayConnectionStatusUnknown), - } -} - -func (s *VirtualNetworkGatewayConnectionStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkGatewayConnectionStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkGatewayConnectionStatus(input string) (*VirtualNetworkGatewayConnectionStatus, error) { - vals := map[string]VirtualNetworkGatewayConnectionStatus{ - "connected": VirtualNetworkGatewayConnectionStatusConnected, - "connecting": VirtualNetworkGatewayConnectionStatusConnecting, - "notconnected": VirtualNetworkGatewayConnectionStatusNotConnected, - "unknown": VirtualNetworkGatewayConnectionStatusUnknown, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkGatewayConnectionStatus(input) - return &out, nil -} - -type VirtualNetworkGatewayConnectionType string - -const ( - VirtualNetworkGatewayConnectionTypeExpressRoute VirtualNetworkGatewayConnectionType = "ExpressRoute" - VirtualNetworkGatewayConnectionTypeIPsec VirtualNetworkGatewayConnectionType = "IPsec" - VirtualNetworkGatewayConnectionTypeVPNClient VirtualNetworkGatewayConnectionType = "VPNClient" - VirtualNetworkGatewayConnectionTypeVnetTwoVnet VirtualNetworkGatewayConnectionType = "Vnet2Vnet" -) - -func PossibleValuesForVirtualNetworkGatewayConnectionType() []string { - return []string{ - string(VirtualNetworkGatewayConnectionTypeExpressRoute), - string(VirtualNetworkGatewayConnectionTypeIPsec), - string(VirtualNetworkGatewayConnectionTypeVPNClient), - string(VirtualNetworkGatewayConnectionTypeVnetTwoVnet), - } -} - -func (s *VirtualNetworkGatewayConnectionType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkGatewayConnectionType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkGatewayConnectionType(input string) (*VirtualNetworkGatewayConnectionType, error) { - vals := map[string]VirtualNetworkGatewayConnectionType{ - "expressroute": VirtualNetworkGatewayConnectionTypeExpressRoute, - "ipsec": VirtualNetworkGatewayConnectionTypeIPsec, - "vpnclient": VirtualNetworkGatewayConnectionTypeVPNClient, - "vnet2vnet": VirtualNetworkGatewayConnectionTypeVnetTwoVnet, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkGatewayConnectionType(input) - return &out, nil -} - -type VirtualNetworkGatewaySkuName string - -const ( - VirtualNetworkGatewaySkuNameBasic VirtualNetworkGatewaySkuName = "Basic" - VirtualNetworkGatewaySkuNameErGwOneAZ VirtualNetworkGatewaySkuName = "ErGw1AZ" - VirtualNetworkGatewaySkuNameErGwScale VirtualNetworkGatewaySkuName = "ErGwScale" - VirtualNetworkGatewaySkuNameErGwThreeAZ VirtualNetworkGatewaySkuName = "ErGw3AZ" - VirtualNetworkGatewaySkuNameErGwTwoAZ VirtualNetworkGatewaySkuName = "ErGw2AZ" - VirtualNetworkGatewaySkuNameHighPerformance VirtualNetworkGatewaySkuName = "HighPerformance" - VirtualNetworkGatewaySkuNameStandard VirtualNetworkGatewaySkuName = "Standard" - VirtualNetworkGatewaySkuNameUltraPerformance VirtualNetworkGatewaySkuName = "UltraPerformance" - VirtualNetworkGatewaySkuNameVpnGwFive VirtualNetworkGatewaySkuName = "VpnGw5" - VirtualNetworkGatewaySkuNameVpnGwFiveAZ VirtualNetworkGatewaySkuName = "VpnGw5AZ" - VirtualNetworkGatewaySkuNameVpnGwFour VirtualNetworkGatewaySkuName = "VpnGw4" - VirtualNetworkGatewaySkuNameVpnGwFourAZ VirtualNetworkGatewaySkuName = "VpnGw4AZ" - VirtualNetworkGatewaySkuNameVpnGwOne VirtualNetworkGatewaySkuName = "VpnGw1" - VirtualNetworkGatewaySkuNameVpnGwOneAZ VirtualNetworkGatewaySkuName = "VpnGw1AZ" - VirtualNetworkGatewaySkuNameVpnGwThree VirtualNetworkGatewaySkuName = "VpnGw3" - VirtualNetworkGatewaySkuNameVpnGwThreeAZ VirtualNetworkGatewaySkuName = "VpnGw3AZ" - VirtualNetworkGatewaySkuNameVpnGwTwo VirtualNetworkGatewaySkuName = "VpnGw2" - VirtualNetworkGatewaySkuNameVpnGwTwoAZ VirtualNetworkGatewaySkuName = "VpnGw2AZ" -) - -func PossibleValuesForVirtualNetworkGatewaySkuName() []string { - return []string{ - string(VirtualNetworkGatewaySkuNameBasic), - string(VirtualNetworkGatewaySkuNameErGwOneAZ), - string(VirtualNetworkGatewaySkuNameErGwScale), - string(VirtualNetworkGatewaySkuNameErGwThreeAZ), - string(VirtualNetworkGatewaySkuNameErGwTwoAZ), - string(VirtualNetworkGatewaySkuNameHighPerformance), - string(VirtualNetworkGatewaySkuNameStandard), - string(VirtualNetworkGatewaySkuNameUltraPerformance), - string(VirtualNetworkGatewaySkuNameVpnGwFive), - string(VirtualNetworkGatewaySkuNameVpnGwFiveAZ), - string(VirtualNetworkGatewaySkuNameVpnGwFour), - string(VirtualNetworkGatewaySkuNameVpnGwFourAZ), - string(VirtualNetworkGatewaySkuNameVpnGwOne), - string(VirtualNetworkGatewaySkuNameVpnGwOneAZ), - string(VirtualNetworkGatewaySkuNameVpnGwThree), - string(VirtualNetworkGatewaySkuNameVpnGwThreeAZ), - string(VirtualNetworkGatewaySkuNameVpnGwTwo), - string(VirtualNetworkGatewaySkuNameVpnGwTwoAZ), - } -} - -func (s *VirtualNetworkGatewaySkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkGatewaySkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkGatewaySkuName(input string) (*VirtualNetworkGatewaySkuName, error) { - vals := map[string]VirtualNetworkGatewaySkuName{ - "basic": VirtualNetworkGatewaySkuNameBasic, - "ergw1az": VirtualNetworkGatewaySkuNameErGwOneAZ, - "ergwscale": VirtualNetworkGatewaySkuNameErGwScale, - "ergw3az": VirtualNetworkGatewaySkuNameErGwThreeAZ, - "ergw2az": VirtualNetworkGatewaySkuNameErGwTwoAZ, - "highperformance": VirtualNetworkGatewaySkuNameHighPerformance, - "standard": VirtualNetworkGatewaySkuNameStandard, - "ultraperformance": VirtualNetworkGatewaySkuNameUltraPerformance, - "vpngw5": VirtualNetworkGatewaySkuNameVpnGwFive, - "vpngw5az": VirtualNetworkGatewaySkuNameVpnGwFiveAZ, - "vpngw4": VirtualNetworkGatewaySkuNameVpnGwFour, - "vpngw4az": VirtualNetworkGatewaySkuNameVpnGwFourAZ, - "vpngw1": VirtualNetworkGatewaySkuNameVpnGwOne, - "vpngw1az": VirtualNetworkGatewaySkuNameVpnGwOneAZ, - "vpngw3": VirtualNetworkGatewaySkuNameVpnGwThree, - "vpngw3az": VirtualNetworkGatewaySkuNameVpnGwThreeAZ, - "vpngw2": VirtualNetworkGatewaySkuNameVpnGwTwo, - "vpngw2az": VirtualNetworkGatewaySkuNameVpnGwTwoAZ, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkGatewaySkuName(input) - return &out, nil -} - -type VirtualNetworkGatewaySkuTier string - -const ( - VirtualNetworkGatewaySkuTierBasic VirtualNetworkGatewaySkuTier = "Basic" - VirtualNetworkGatewaySkuTierErGwOneAZ VirtualNetworkGatewaySkuTier = "ErGw1AZ" - VirtualNetworkGatewaySkuTierErGwScale VirtualNetworkGatewaySkuTier = "ErGwScale" - VirtualNetworkGatewaySkuTierErGwThreeAZ VirtualNetworkGatewaySkuTier = "ErGw3AZ" - VirtualNetworkGatewaySkuTierErGwTwoAZ VirtualNetworkGatewaySkuTier = "ErGw2AZ" - VirtualNetworkGatewaySkuTierHighPerformance VirtualNetworkGatewaySkuTier = "HighPerformance" - VirtualNetworkGatewaySkuTierStandard VirtualNetworkGatewaySkuTier = "Standard" - VirtualNetworkGatewaySkuTierUltraPerformance VirtualNetworkGatewaySkuTier = "UltraPerformance" - VirtualNetworkGatewaySkuTierVpnGwFive VirtualNetworkGatewaySkuTier = "VpnGw5" - VirtualNetworkGatewaySkuTierVpnGwFiveAZ VirtualNetworkGatewaySkuTier = "VpnGw5AZ" - VirtualNetworkGatewaySkuTierVpnGwFour VirtualNetworkGatewaySkuTier = "VpnGw4" - VirtualNetworkGatewaySkuTierVpnGwFourAZ VirtualNetworkGatewaySkuTier = "VpnGw4AZ" - VirtualNetworkGatewaySkuTierVpnGwOne VirtualNetworkGatewaySkuTier = "VpnGw1" - VirtualNetworkGatewaySkuTierVpnGwOneAZ VirtualNetworkGatewaySkuTier = "VpnGw1AZ" - VirtualNetworkGatewaySkuTierVpnGwThree VirtualNetworkGatewaySkuTier = "VpnGw3" - VirtualNetworkGatewaySkuTierVpnGwThreeAZ VirtualNetworkGatewaySkuTier = "VpnGw3AZ" - VirtualNetworkGatewaySkuTierVpnGwTwo VirtualNetworkGatewaySkuTier = "VpnGw2" - VirtualNetworkGatewaySkuTierVpnGwTwoAZ VirtualNetworkGatewaySkuTier = "VpnGw2AZ" -) - -func PossibleValuesForVirtualNetworkGatewaySkuTier() []string { - return []string{ - string(VirtualNetworkGatewaySkuTierBasic), - string(VirtualNetworkGatewaySkuTierErGwOneAZ), - string(VirtualNetworkGatewaySkuTierErGwScale), - string(VirtualNetworkGatewaySkuTierErGwThreeAZ), - string(VirtualNetworkGatewaySkuTierErGwTwoAZ), - string(VirtualNetworkGatewaySkuTierHighPerformance), - string(VirtualNetworkGatewaySkuTierStandard), - string(VirtualNetworkGatewaySkuTierUltraPerformance), - string(VirtualNetworkGatewaySkuTierVpnGwFive), - string(VirtualNetworkGatewaySkuTierVpnGwFiveAZ), - string(VirtualNetworkGatewaySkuTierVpnGwFour), - string(VirtualNetworkGatewaySkuTierVpnGwFourAZ), - string(VirtualNetworkGatewaySkuTierVpnGwOne), - string(VirtualNetworkGatewaySkuTierVpnGwOneAZ), - string(VirtualNetworkGatewaySkuTierVpnGwThree), - string(VirtualNetworkGatewaySkuTierVpnGwThreeAZ), - string(VirtualNetworkGatewaySkuTierVpnGwTwo), - string(VirtualNetworkGatewaySkuTierVpnGwTwoAZ), - } -} - -func (s *VirtualNetworkGatewaySkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkGatewaySkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkGatewaySkuTier(input string) (*VirtualNetworkGatewaySkuTier, error) { - vals := map[string]VirtualNetworkGatewaySkuTier{ - "basic": VirtualNetworkGatewaySkuTierBasic, - "ergw1az": VirtualNetworkGatewaySkuTierErGwOneAZ, - "ergwscale": VirtualNetworkGatewaySkuTierErGwScale, - "ergw3az": VirtualNetworkGatewaySkuTierErGwThreeAZ, - "ergw2az": VirtualNetworkGatewaySkuTierErGwTwoAZ, - "highperformance": VirtualNetworkGatewaySkuTierHighPerformance, - "standard": VirtualNetworkGatewaySkuTierStandard, - "ultraperformance": VirtualNetworkGatewaySkuTierUltraPerformance, - "vpngw5": VirtualNetworkGatewaySkuTierVpnGwFive, - "vpngw5az": VirtualNetworkGatewaySkuTierVpnGwFiveAZ, - "vpngw4": VirtualNetworkGatewaySkuTierVpnGwFour, - "vpngw4az": VirtualNetworkGatewaySkuTierVpnGwFourAZ, - "vpngw1": VirtualNetworkGatewaySkuTierVpnGwOne, - "vpngw1az": VirtualNetworkGatewaySkuTierVpnGwOneAZ, - "vpngw3": VirtualNetworkGatewaySkuTierVpnGwThree, - "vpngw3az": VirtualNetworkGatewaySkuTierVpnGwThreeAZ, - "vpngw2": VirtualNetworkGatewaySkuTierVpnGwTwo, - "vpngw2az": VirtualNetworkGatewaySkuTierVpnGwTwoAZ, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkGatewaySkuTier(input) - return &out, nil -} - -type VirtualNetworkGatewayType string - -const ( - VirtualNetworkGatewayTypeExpressRoute VirtualNetworkGatewayType = "ExpressRoute" - VirtualNetworkGatewayTypeLocalGateway VirtualNetworkGatewayType = "LocalGateway" - VirtualNetworkGatewayTypeVpn VirtualNetworkGatewayType = "Vpn" -) - -func PossibleValuesForVirtualNetworkGatewayType() []string { - return []string{ - string(VirtualNetworkGatewayTypeExpressRoute), - string(VirtualNetworkGatewayTypeLocalGateway), - string(VirtualNetworkGatewayTypeVpn), - } -} - -func (s *VirtualNetworkGatewayType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkGatewayType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkGatewayType(input string) (*VirtualNetworkGatewayType, error) { - vals := map[string]VirtualNetworkGatewayType{ - "expressroute": VirtualNetworkGatewayTypeExpressRoute, - "localgateway": VirtualNetworkGatewayTypeLocalGateway, - "vpn": VirtualNetworkGatewayTypeVpn, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkGatewayType(input) - return &out, nil -} - -type VpnAuthenticationType string - -const ( - VpnAuthenticationTypeAAD VpnAuthenticationType = "AAD" - VpnAuthenticationTypeCertificate VpnAuthenticationType = "Certificate" - VpnAuthenticationTypeRadius VpnAuthenticationType = "Radius" -) - -func PossibleValuesForVpnAuthenticationType() []string { - return []string{ - string(VpnAuthenticationTypeAAD), - string(VpnAuthenticationTypeCertificate), - string(VpnAuthenticationTypeRadius), - } -} - -func (s *VpnAuthenticationType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVpnAuthenticationType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVpnAuthenticationType(input string) (*VpnAuthenticationType, error) { - vals := map[string]VpnAuthenticationType{ - "aad": VpnAuthenticationTypeAAD, - "certificate": VpnAuthenticationTypeCertificate, - "radius": VpnAuthenticationTypeRadius, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VpnAuthenticationType(input) - return &out, nil -} - -type VpnClientProtocol string - -const ( - VpnClientProtocolIkeVTwo VpnClientProtocol = "IkeV2" - VpnClientProtocolOpenVPN VpnClientProtocol = "OpenVPN" - VpnClientProtocolSSTP VpnClientProtocol = "SSTP" -) - -func PossibleValuesForVpnClientProtocol() []string { - return []string{ - string(VpnClientProtocolIkeVTwo), - string(VpnClientProtocolOpenVPN), - string(VpnClientProtocolSSTP), - } -} - -func (s *VpnClientProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVpnClientProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVpnClientProtocol(input string) (*VpnClientProtocol, error) { - vals := map[string]VpnClientProtocol{ - "ikev2": VpnClientProtocolIkeVTwo, - "openvpn": VpnClientProtocolOpenVPN, - "sstp": VpnClientProtocolSSTP, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VpnClientProtocol(input) - return &out, nil -} - -type VpnGatewayGeneration string - -const ( - VpnGatewayGenerationGenerationOne VpnGatewayGeneration = "Generation1" - VpnGatewayGenerationGenerationTwo VpnGatewayGeneration = "Generation2" - VpnGatewayGenerationNone VpnGatewayGeneration = "None" -) - -func PossibleValuesForVpnGatewayGeneration() []string { - return []string{ - string(VpnGatewayGenerationGenerationOne), - string(VpnGatewayGenerationGenerationTwo), - string(VpnGatewayGenerationNone), - } -} - -func (s *VpnGatewayGeneration) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVpnGatewayGeneration(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVpnGatewayGeneration(input string) (*VpnGatewayGeneration, error) { - vals := map[string]VpnGatewayGeneration{ - "generation1": VpnGatewayGenerationGenerationOne, - "generation2": VpnGatewayGenerationGenerationTwo, - "none": VpnGatewayGenerationNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VpnGatewayGeneration(input) - return &out, nil -} - -type VpnNatRuleMode string - -const ( - VpnNatRuleModeEgressSnat VpnNatRuleMode = "EgressSnat" - VpnNatRuleModeIngressSnat VpnNatRuleMode = "IngressSnat" -) - -func PossibleValuesForVpnNatRuleMode() []string { - return []string{ - string(VpnNatRuleModeEgressSnat), - string(VpnNatRuleModeIngressSnat), - } -} - -func (s *VpnNatRuleMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVpnNatRuleMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVpnNatRuleMode(input string) (*VpnNatRuleMode, error) { - vals := map[string]VpnNatRuleMode{ - "egresssnat": VpnNatRuleModeEgressSnat, - "ingresssnat": VpnNatRuleModeIngressSnat, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VpnNatRuleMode(input) - return &out, nil -} - -type VpnNatRuleType string - -const ( - VpnNatRuleTypeDynamic VpnNatRuleType = "Dynamic" - VpnNatRuleTypeStatic VpnNatRuleType = "Static" -) - -func PossibleValuesForVpnNatRuleType() []string { - return []string{ - string(VpnNatRuleTypeDynamic), - string(VpnNatRuleTypeStatic), - } -} - -func (s *VpnNatRuleType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVpnNatRuleType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVpnNatRuleType(input string) (*VpnNatRuleType, error) { - vals := map[string]VpnNatRuleType{ - "dynamic": VpnNatRuleTypeDynamic, - "static": VpnNatRuleTypeStatic, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VpnNatRuleType(input) - return &out, nil -} - -type VpnPolicyMemberAttributeType string - -const ( - VpnPolicyMemberAttributeTypeAADGroupId VpnPolicyMemberAttributeType = "AADGroupId" - VpnPolicyMemberAttributeTypeCertificateGroupId VpnPolicyMemberAttributeType = "CertificateGroupId" - VpnPolicyMemberAttributeTypeRadiusAzureGroupId VpnPolicyMemberAttributeType = "RadiusAzureGroupId" -) - -func PossibleValuesForVpnPolicyMemberAttributeType() []string { - return []string{ - string(VpnPolicyMemberAttributeTypeAADGroupId), - string(VpnPolicyMemberAttributeTypeCertificateGroupId), - string(VpnPolicyMemberAttributeTypeRadiusAzureGroupId), - } -} - -func (s *VpnPolicyMemberAttributeType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVpnPolicyMemberAttributeType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVpnPolicyMemberAttributeType(input string) (*VpnPolicyMemberAttributeType, error) { - vals := map[string]VpnPolicyMemberAttributeType{ - "aadgroupid": VpnPolicyMemberAttributeTypeAADGroupId, - "certificategroupid": VpnPolicyMemberAttributeTypeCertificateGroupId, - "radiusazuregroupid": VpnPolicyMemberAttributeTypeRadiusAzureGroupId, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VpnPolicyMemberAttributeType(input) - return &out, nil -} - -type VpnType string - -const ( - VpnTypePolicyBased VpnType = "PolicyBased" - VpnTypeRouteBased VpnType = "RouteBased" -) - -func PossibleValuesForVpnType() []string { - return []string{ - string(VpnTypePolicyBased), - string(VpnTypeRouteBased), - } -} - -func (s *VpnType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVpnType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVpnType(input string) (*VpnType, error) { - vals := map[string]VpnType{ - "policybased": VpnTypePolicyBased, - "routebased": VpnTypeRouteBased, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VpnType(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_connection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_connection.go deleted file mode 100644 index 7e0a849bdfdc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_connection.go +++ /dev/null @@ -1,130 +0,0 @@ -package virtualnetworkgateways - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&ConnectionId{}) -} - -var _ resourceids.ResourceId = &ConnectionId{} - -// ConnectionId is a struct representing the Resource ID for a Connection -type ConnectionId struct { - SubscriptionId string - ResourceGroupName string - ConnectionName string -} - -// NewConnectionID returns a new ConnectionId struct -func NewConnectionID(subscriptionId string, resourceGroupName string, connectionName string) ConnectionId { - return ConnectionId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - ConnectionName: connectionName, - } -} - -// ParseConnectionID parses 'input' into a ConnectionId -func ParseConnectionID(input string) (*ConnectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&ConnectionId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ConnectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseConnectionIDInsensitively parses 'input' case-insensitively into a ConnectionId -// note: this method should only be used for API response data and not user input -func ParseConnectionIDInsensitively(input string) (*ConnectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&ConnectionId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ConnectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *ConnectionId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.ConnectionName, ok = input.Parsed["connectionName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "connectionName", input) - } - - return nil -} - -// ValidateConnectionID checks that 'input' can be parsed as a Connection ID -func ValidateConnectionID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseConnectionID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Connection ID -func (id ConnectionId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/connections/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ConnectionName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Connection ID -func (id ConnectionId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticConnections", "connections", "connections"), - resourceids.UserSpecifiedSegment("connectionName", "connectionName"), - } -} - -// String returns a human-readable description of this Connection ID -func (id ConnectionId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Connection Name: %q", id.ConnectionName), - } - return fmt.Sprintf("Connection (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgateway.go deleted file mode 100644 index 37161e508ae5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgateway.go +++ /dev/null @@ -1,130 +0,0 @@ -package virtualnetworkgateways - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&VirtualNetworkGatewayId{}) -} - -var _ resourceids.ResourceId = &VirtualNetworkGatewayId{} - -// VirtualNetworkGatewayId is a struct representing the Resource ID for a Virtual Network Gateway -type VirtualNetworkGatewayId struct { - SubscriptionId string - ResourceGroupName string - VirtualNetworkGatewayName string -} - -// NewVirtualNetworkGatewayID returns a new VirtualNetworkGatewayId struct -func NewVirtualNetworkGatewayID(subscriptionId string, resourceGroupName string, virtualNetworkGatewayName string) VirtualNetworkGatewayId { - return VirtualNetworkGatewayId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - VirtualNetworkGatewayName: virtualNetworkGatewayName, - } -} - -// ParseVirtualNetworkGatewayID parses 'input' into a VirtualNetworkGatewayId -func ParseVirtualNetworkGatewayID(input string) (*VirtualNetworkGatewayId, error) { - parser := resourceids.NewParserFromResourceIdType(&VirtualNetworkGatewayId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := VirtualNetworkGatewayId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseVirtualNetworkGatewayIDInsensitively parses 'input' case-insensitively into a VirtualNetworkGatewayId -// note: this method should only be used for API response data and not user input -func ParseVirtualNetworkGatewayIDInsensitively(input string) (*VirtualNetworkGatewayId, error) { - parser := resourceids.NewParserFromResourceIdType(&VirtualNetworkGatewayId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := VirtualNetworkGatewayId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *VirtualNetworkGatewayId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.VirtualNetworkGatewayName, ok = input.Parsed["virtualNetworkGatewayName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "virtualNetworkGatewayName", input) - } - - return nil -} - -// ValidateVirtualNetworkGatewayID checks that 'input' can be parsed as a Virtual Network Gateway ID -func ValidateVirtualNetworkGatewayID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseVirtualNetworkGatewayID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Virtual Network Gateway ID -func (id VirtualNetworkGatewayId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworkGateways/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualNetworkGatewayName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Virtual Network Gateway ID -func (id VirtualNetworkGatewayId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticVirtualNetworkGateways", "virtualNetworkGateways", "virtualNetworkGateways"), - resourceids.UserSpecifiedSegment("virtualNetworkGatewayName", "virtualNetworkGatewayName"), - } -} - -// String returns a human-readable description of this Virtual Network Gateway ID -func (id VirtualNetworkGatewayId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Virtual Network Gateway Name: %q", id.VirtualNetworkGatewayName), - } - return fmt.Sprintf("Virtual Network Gateway (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgatewaynatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgatewaynatrule.go deleted file mode 100644 index eefda2a39b13..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgatewaynatrule.go +++ /dev/null @@ -1,139 +0,0 @@ -package virtualnetworkgateways - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&VirtualNetworkGatewayNatRuleId{}) -} - -var _ resourceids.ResourceId = &VirtualNetworkGatewayNatRuleId{} - -// VirtualNetworkGatewayNatRuleId is a struct representing the Resource ID for a Virtual Network Gateway Nat Rule -type VirtualNetworkGatewayNatRuleId struct { - SubscriptionId string - ResourceGroupName string - VirtualNetworkGatewayName string - NatRuleName string -} - -// NewVirtualNetworkGatewayNatRuleID returns a new VirtualNetworkGatewayNatRuleId struct -func NewVirtualNetworkGatewayNatRuleID(subscriptionId string, resourceGroupName string, virtualNetworkGatewayName string, natRuleName string) VirtualNetworkGatewayNatRuleId { - return VirtualNetworkGatewayNatRuleId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - VirtualNetworkGatewayName: virtualNetworkGatewayName, - NatRuleName: natRuleName, - } -} - -// ParseVirtualNetworkGatewayNatRuleID parses 'input' into a VirtualNetworkGatewayNatRuleId -func ParseVirtualNetworkGatewayNatRuleID(input string) (*VirtualNetworkGatewayNatRuleId, error) { - parser := resourceids.NewParserFromResourceIdType(&VirtualNetworkGatewayNatRuleId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := VirtualNetworkGatewayNatRuleId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseVirtualNetworkGatewayNatRuleIDInsensitively parses 'input' case-insensitively into a VirtualNetworkGatewayNatRuleId -// note: this method should only be used for API response data and not user input -func ParseVirtualNetworkGatewayNatRuleIDInsensitively(input string) (*VirtualNetworkGatewayNatRuleId, error) { - parser := resourceids.NewParserFromResourceIdType(&VirtualNetworkGatewayNatRuleId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := VirtualNetworkGatewayNatRuleId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *VirtualNetworkGatewayNatRuleId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.VirtualNetworkGatewayName, ok = input.Parsed["virtualNetworkGatewayName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "virtualNetworkGatewayName", input) - } - - if id.NatRuleName, ok = input.Parsed["natRuleName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "natRuleName", input) - } - - return nil -} - -// ValidateVirtualNetworkGatewayNatRuleID checks that 'input' can be parsed as a Virtual Network Gateway Nat Rule ID -func ValidateVirtualNetworkGatewayNatRuleID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseVirtualNetworkGatewayNatRuleID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Virtual Network Gateway Nat Rule ID -func (id VirtualNetworkGatewayNatRuleId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworkGateways/%s/natRules/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualNetworkGatewayName, id.NatRuleName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Virtual Network Gateway Nat Rule ID -func (id VirtualNetworkGatewayNatRuleId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticVirtualNetworkGateways", "virtualNetworkGateways", "virtualNetworkGateways"), - resourceids.UserSpecifiedSegment("virtualNetworkGatewayName", "virtualNetworkGatewayName"), - resourceids.StaticSegment("staticNatRules", "natRules", "natRules"), - resourceids.UserSpecifiedSegment("natRuleName", "natRuleName"), - } -} - -// String returns a human-readable description of this Virtual Network Gateway Nat Rule ID -func (id VirtualNetworkGatewayNatRuleId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Virtual Network Gateway Name: %q", id.VirtualNetworkGatewayName), - fmt.Sprintf("Nat Rule Name: %q", id.NatRuleName), - } - return fmt.Sprintf("Virtual Network Gateway Nat Rule (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_createorupdate.go deleted file mode 100644 index 1f22024e4a64..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_createorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *VirtualNetworkGateway -} - -// CreateOrUpdate ... -func (c VirtualNetworkGatewaysClient) CreateOrUpdate(ctx context.Context, id VirtualNetworkGatewayId, input VirtualNetworkGateway) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c VirtualNetworkGatewaysClient) CreateOrUpdateThenPoll(ctx context.Context, id VirtualNetworkGatewayId, input VirtualNetworkGateway) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_delete.go deleted file mode 100644 index 06878f245a48..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c VirtualNetworkGatewaysClient) Delete(ctx context.Context, id VirtualNetworkGatewayId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c VirtualNetworkGatewaysClient) DeleteThenPoll(ctx context.Context, id VirtualNetworkGatewayId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_disconnectvirtualnetworkgatewayvpnconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_disconnectvirtualnetworkgatewayvpnconnections.go deleted file mode 100644 index 6a0589d67d68..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_disconnectvirtualnetworkgatewayvpnconnections.go +++ /dev/null @@ -1,74 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DisconnectVirtualNetworkGatewayVpnConnectionsOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// DisconnectVirtualNetworkGatewayVpnConnections ... -func (c VirtualNetworkGatewaysClient) DisconnectVirtualNetworkGatewayVpnConnections(ctx context.Context, id VirtualNetworkGatewayId, input P2SVpnConnectionRequest) (result DisconnectVirtualNetworkGatewayVpnConnectionsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/disconnectVirtualNetworkGatewayVpnConnections", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DisconnectVirtualNetworkGatewayVpnConnectionsThenPoll performs DisconnectVirtualNetworkGatewayVpnConnections then polls until it's completed -func (c VirtualNetworkGatewaysClient) DisconnectVirtualNetworkGatewayVpnConnectionsThenPoll(ctx context.Context, id VirtualNetworkGatewayId, input P2SVpnConnectionRequest) error { - result, err := c.DisconnectVirtualNetworkGatewayVpnConnections(ctx, id, input) - if err != nil { - return fmt.Errorf("performing DisconnectVirtualNetworkGatewayVpnConnections: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after DisconnectVirtualNetworkGatewayVpnConnections: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_generatevpnclientpackage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_generatevpnclientpackage.go deleted file mode 100644 index a08869751a85..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_generatevpnclientpackage.go +++ /dev/null @@ -1,75 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GeneratevpnclientpackageOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *string -} - -// Generatevpnclientpackage ... -func (c VirtualNetworkGatewaysClient) Generatevpnclientpackage(ctx context.Context, id VirtualNetworkGatewayId, input VpnClientParameters) (result GeneratevpnclientpackageOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/generatevpnclientpackage", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GeneratevpnclientpackageThenPoll performs Generatevpnclientpackage then polls until it's completed -func (c VirtualNetworkGatewaysClient) GeneratevpnclientpackageThenPoll(ctx context.Context, id VirtualNetworkGatewayId, input VpnClientParameters) error { - result, err := c.Generatevpnclientpackage(ctx, id, input) - if err != nil { - return fmt.Errorf("performing Generatevpnclientpackage: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Generatevpnclientpackage: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_generatevpnprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_generatevpnprofile.go deleted file mode 100644 index 3b9f9f9815ec..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_generatevpnprofile.go +++ /dev/null @@ -1,75 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GenerateVpnProfileOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *string -} - -// GenerateVpnProfile ... -func (c VirtualNetworkGatewaysClient) GenerateVpnProfile(ctx context.Context, id VirtualNetworkGatewayId, input VpnClientParameters) (result GenerateVpnProfileOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/generatevpnprofile", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GenerateVpnProfileThenPoll performs GenerateVpnProfile then polls until it's completed -func (c VirtualNetworkGatewaysClient) GenerateVpnProfileThenPoll(ctx context.Context, id VirtualNetworkGatewayId, input VpnClientParameters) error { - result, err := c.GenerateVpnProfile(ctx, id, input) - if err != nil { - return fmt.Errorf("performing GenerateVpnProfile: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after GenerateVpnProfile: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_get.go deleted file mode 100644 index 403f9e12374f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *VirtualNetworkGateway -} - -// Get ... -func (c VirtualNetworkGatewaysClient) Get(ctx context.Context, id VirtualNetworkGatewayId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model VirtualNetworkGateway - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getadvertisedroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getadvertisedroutes.go deleted file mode 100644 index 969c71ee3172..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getadvertisedroutes.go +++ /dev/null @@ -1,100 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetAdvertisedRoutesOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *GatewayRouteListResult -} - -type GetAdvertisedRoutesOperationOptions struct { - Peer *string -} - -func DefaultGetAdvertisedRoutesOperationOptions() GetAdvertisedRoutesOperationOptions { - return GetAdvertisedRoutesOperationOptions{} -} - -func (o GetAdvertisedRoutesOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o GetAdvertisedRoutesOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o GetAdvertisedRoutesOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Peer != nil { - out.Append("peer", fmt.Sprintf("%v", *o.Peer)) - } - return &out -} - -// GetAdvertisedRoutes ... -func (c VirtualNetworkGatewaysClient) GetAdvertisedRoutes(ctx context.Context, id VirtualNetworkGatewayId, options GetAdvertisedRoutesOperationOptions) (result GetAdvertisedRoutesOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - OptionsObject: options, - Path: fmt.Sprintf("%s/getAdvertisedRoutes", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GetAdvertisedRoutesThenPoll performs GetAdvertisedRoutes then polls until it's completed -func (c VirtualNetworkGatewaysClient) GetAdvertisedRoutesThenPoll(ctx context.Context, id VirtualNetworkGatewayId, options GetAdvertisedRoutesOperationOptions) error { - result, err := c.GetAdvertisedRoutes(ctx, id, options) - if err != nil { - return fmt.Errorf("performing GetAdvertisedRoutes: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after GetAdvertisedRoutes: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getbgppeerstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getbgppeerstatus.go deleted file mode 100644 index 33e243af246e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getbgppeerstatus.go +++ /dev/null @@ -1,100 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetBgpPeerStatusOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *BgpPeerStatusListResult -} - -type GetBgpPeerStatusOperationOptions struct { - Peer *string -} - -func DefaultGetBgpPeerStatusOperationOptions() GetBgpPeerStatusOperationOptions { - return GetBgpPeerStatusOperationOptions{} -} - -func (o GetBgpPeerStatusOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o GetBgpPeerStatusOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o GetBgpPeerStatusOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Peer != nil { - out.Append("peer", fmt.Sprintf("%v", *o.Peer)) - } - return &out -} - -// GetBgpPeerStatus ... -func (c VirtualNetworkGatewaysClient) GetBgpPeerStatus(ctx context.Context, id VirtualNetworkGatewayId, options GetBgpPeerStatusOperationOptions) (result GetBgpPeerStatusOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - OptionsObject: options, - Path: fmt.Sprintf("%s/getBgpPeerStatus", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GetBgpPeerStatusThenPoll performs GetBgpPeerStatus then polls until it's completed -func (c VirtualNetworkGatewaysClient) GetBgpPeerStatusThenPoll(ctx context.Context, id VirtualNetworkGatewayId, options GetBgpPeerStatusOperationOptions) error { - result, err := c.GetBgpPeerStatus(ctx, id, options) - if err != nil { - return fmt.Errorf("performing GetBgpPeerStatus: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after GetBgpPeerStatus: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getlearnedroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getlearnedroutes.go deleted file mode 100644 index 3cfd0aa16a88..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getlearnedroutes.go +++ /dev/null @@ -1,71 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetLearnedRoutesOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *GatewayRouteListResult -} - -// GetLearnedRoutes ... -func (c VirtualNetworkGatewaysClient) GetLearnedRoutes(ctx context.Context, id VirtualNetworkGatewayId) (result GetLearnedRoutesOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getLearnedRoutes", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GetLearnedRoutesThenPoll performs GetLearnedRoutes then polls until it's completed -func (c VirtualNetworkGatewaysClient) GetLearnedRoutesThenPoll(ctx context.Context, id VirtualNetworkGatewayId) error { - result, err := c.GetLearnedRoutes(ctx, id) - if err != nil { - return fmt.Errorf("performing GetLearnedRoutes: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after GetLearnedRoutes: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnclientconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnclientconnectionhealth.go deleted file mode 100644 index 8b7f93d0b5cc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnclientconnectionhealth.go +++ /dev/null @@ -1,71 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetVpnclientConnectionHealthOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *VpnClientConnectionHealthDetailListResult -} - -// GetVpnclientConnectionHealth ... -func (c VirtualNetworkGatewaysClient) GetVpnclientConnectionHealth(ctx context.Context, id VirtualNetworkGatewayId) (result GetVpnclientConnectionHealthOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getVpnClientConnectionHealth", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GetVpnclientConnectionHealthThenPoll performs GetVpnclientConnectionHealth then polls until it's completed -func (c VirtualNetworkGatewaysClient) GetVpnclientConnectionHealthThenPoll(ctx context.Context, id VirtualNetworkGatewayId) error { - result, err := c.GetVpnclientConnectionHealth(ctx, id) - if err != nil { - return fmt.Errorf("performing GetVpnclientConnectionHealth: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after GetVpnclientConnectionHealth: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnclientipsecparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnclientipsecparameters.go deleted file mode 100644 index 43dd02230dfd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnclientipsecparameters.go +++ /dev/null @@ -1,70 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetVpnclientIPsecParametersOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *VpnClientIPsecParameters -} - -// GetVpnclientIPsecParameters ... -func (c VirtualNetworkGatewaysClient) GetVpnclientIPsecParameters(ctx context.Context, id VirtualNetworkGatewayId) (result GetVpnclientIPsecParametersOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getvpnclientipsecparameters", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GetVpnclientIPsecParametersThenPoll performs GetVpnclientIPsecParameters then polls until it's completed -func (c VirtualNetworkGatewaysClient) GetVpnclientIPsecParametersThenPoll(ctx context.Context, id VirtualNetworkGatewayId) error { - result, err := c.GetVpnclientIPsecParameters(ctx, id) - if err != nil { - return fmt.Errorf("performing GetVpnclientIPsecParameters: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after GetVpnclientIPsecParameters: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnprofilepackageurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnprofilepackageurl.go deleted file mode 100644 index e814c6eff385..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnprofilepackageurl.go +++ /dev/null @@ -1,71 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetVpnProfilePackageURLOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *string -} - -// GetVpnProfilePackageURL ... -func (c VirtualNetworkGatewaysClient) GetVpnProfilePackageURL(ctx context.Context, id VirtualNetworkGatewayId) (result GetVpnProfilePackageURLOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getvpnprofilepackageurl", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GetVpnProfilePackageURLThenPoll performs GetVpnProfilePackageURL then polls until it's completed -func (c VirtualNetworkGatewaysClient) GetVpnProfilePackageURLThenPoll(ctx context.Context, id VirtualNetworkGatewayId) error { - result, err := c.GetVpnProfilePackageURL(ctx, id) - if err != nil { - return fmt.Errorf("performing GetVpnProfilePackageURL: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after GetVpnProfilePackageURL: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_list.go deleted file mode 100644 index 8266a51728d7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]VirtualNetworkGateway -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []VirtualNetworkGateway -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c VirtualNetworkGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworkGateways", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]VirtualNetworkGateway `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c VirtualNetworkGatewaysClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, VirtualNetworkGatewayOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c VirtualNetworkGatewaysClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VirtualNetworkGatewayOperationPredicate) (result ListCompleteResult, err error) { - items := make([]VirtualNetworkGateway, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_listconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_listconnections.go deleted file mode 100644 index 2f13ca7b97c5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_listconnections.go +++ /dev/null @@ -1,105 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListConnectionsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]VirtualNetworkGatewayConnectionListEntity -} - -type ListConnectionsCompleteResult struct { - LatestHttpResponse *http.Response - Items []VirtualNetworkGatewayConnectionListEntity -} - -type ListConnectionsCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListConnectionsCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListConnections ... -func (c VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, id VirtualNetworkGatewayId) (result ListConnectionsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListConnectionsCustomPager{}, - Path: fmt.Sprintf("%s/connections", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]VirtualNetworkGatewayConnectionListEntity `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListConnectionsComplete retrieves all the results into a single object -func (c VirtualNetworkGatewaysClient) ListConnectionsComplete(ctx context.Context, id VirtualNetworkGatewayId) (ListConnectionsCompleteResult, error) { - return c.ListConnectionsCompleteMatchingPredicate(ctx, id, VirtualNetworkGatewayConnectionListEntityOperationPredicate{}) -} - -// ListConnectionsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c VirtualNetworkGatewaysClient) ListConnectionsCompleteMatchingPredicate(ctx context.Context, id VirtualNetworkGatewayId, predicate VirtualNetworkGatewayConnectionListEntityOperationPredicate) (result ListConnectionsCompleteResult, err error) { - items := make([]VirtualNetworkGatewayConnectionListEntity, 0) - - resp, err := c.ListConnections(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListConnectionsCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_reset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_reset.go deleted file mode 100644 index fb6210d0c1ef..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_reset.go +++ /dev/null @@ -1,100 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResetOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *VirtualNetworkGateway -} - -type ResetOperationOptions struct { - GatewayVip *string -} - -func DefaultResetOperationOptions() ResetOperationOptions { - return ResetOperationOptions{} -} - -func (o ResetOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o ResetOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o ResetOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.GatewayVip != nil { - out.Append("gatewayVip", fmt.Sprintf("%v", *o.GatewayVip)) - } - return &out -} - -// Reset ... -func (c VirtualNetworkGatewaysClient) Reset(ctx context.Context, id VirtualNetworkGatewayId, options ResetOperationOptions) (result ResetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - OptionsObject: options, - Path: fmt.Sprintf("%s/reset", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// ResetThenPoll performs Reset then polls until it's completed -func (c VirtualNetworkGatewaysClient) ResetThenPoll(ctx context.Context, id VirtualNetworkGatewayId, options ResetOperationOptions) error { - result, err := c.Reset(ctx, id, options) - if err != nil { - return fmt.Errorf("performing Reset: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Reset: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_resetvpnclientsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_resetvpnclientsharedkey.go deleted file mode 100644 index 3e10b92aa051..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_resetvpnclientsharedkey.go +++ /dev/null @@ -1,70 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResetVpnClientSharedKeyOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// ResetVpnClientSharedKey ... -func (c VirtualNetworkGatewaysClient) ResetVpnClientSharedKey(ctx context.Context, id VirtualNetworkGatewayId) (result ResetVpnClientSharedKeyOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/resetvpnclientsharedkey", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// ResetVpnClientSharedKeyThenPoll performs ResetVpnClientSharedKey then polls until it's completed -func (c VirtualNetworkGatewaysClient) ResetVpnClientSharedKeyThenPoll(ctx context.Context, id VirtualNetworkGatewayId) error { - result, err := c.ResetVpnClientSharedKey(ctx, id) - if err != nil { - return fmt.Errorf("performing ResetVpnClientSharedKey: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after ResetVpnClientSharedKey: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_setvpnclientipsecparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_setvpnclientipsecparameters.go deleted file mode 100644 index c6ce6809b832..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_setvpnclientipsecparameters.go +++ /dev/null @@ -1,75 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SetVpnclientIPsecParametersOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *VpnClientIPsecParameters -} - -// SetVpnclientIPsecParameters ... -func (c VirtualNetworkGatewaysClient) SetVpnclientIPsecParameters(ctx context.Context, id VirtualNetworkGatewayId, input VpnClientIPsecParameters) (result SetVpnclientIPsecParametersOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/setvpnclientipsecparameters", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// SetVpnclientIPsecParametersThenPoll performs SetVpnclientIPsecParameters then polls until it's completed -func (c VirtualNetworkGatewaysClient) SetVpnclientIPsecParametersThenPoll(ctx context.Context, id VirtualNetworkGatewayId, input VpnClientIPsecParameters) error { - result, err := c.SetVpnclientIPsecParameters(ctx, id, input) - if err != nil { - return fmt.Errorf("performing SetVpnclientIPsecParameters: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after SetVpnclientIPsecParameters: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_startpacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_startpacketcapture.go deleted file mode 100644 index 6aae280247b1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_startpacketcapture.go +++ /dev/null @@ -1,75 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StartPacketCaptureOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *string -} - -// StartPacketCapture ... -func (c VirtualNetworkGatewaysClient) StartPacketCapture(ctx context.Context, id VirtualNetworkGatewayId, input VpnPacketCaptureStartParameters) (result StartPacketCaptureOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/startPacketCapture", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// StartPacketCaptureThenPoll performs StartPacketCapture then polls until it's completed -func (c VirtualNetworkGatewaysClient) StartPacketCaptureThenPoll(ctx context.Context, id VirtualNetworkGatewayId, input VpnPacketCaptureStartParameters) error { - result, err := c.StartPacketCapture(ctx, id, input) - if err != nil { - return fmt.Errorf("performing StartPacketCapture: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after StartPacketCapture: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_stoppacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_stoppacketcapture.go deleted file mode 100644 index b193430e4311..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_stoppacketcapture.go +++ /dev/null @@ -1,75 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StopPacketCaptureOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *string -} - -// StopPacketCapture ... -func (c VirtualNetworkGatewaysClient) StopPacketCapture(ctx context.Context, id VirtualNetworkGatewayId, input VpnPacketCaptureStopParameters) (result StopPacketCaptureOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/stopPacketCapture", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// StopPacketCaptureThenPoll performs StopPacketCapture then polls until it's completed -func (c VirtualNetworkGatewaysClient) StopPacketCaptureThenPoll(ctx context.Context, id VirtualNetworkGatewayId, input VpnPacketCaptureStopParameters) error { - result, err := c.StopPacketCapture(ctx, id, input) - if err != nil { - return fmt.Errorf("performing StopPacketCapture: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after StopPacketCapture: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_supportedvpndevices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_supportedvpndevices.go deleted file mode 100644 index 7b81cd2d32c4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_supportedvpndevices.go +++ /dev/null @@ -1,54 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SupportedVpnDevicesOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *string -} - -// SupportedVpnDevices ... -func (c VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Context, id VirtualNetworkGatewayId) (result SupportedVpnDevicesOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/supportedvpndevices", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model string - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_updatetags.go deleted file mode 100644 index a374667f9a3e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_updatetags.go +++ /dev/null @@ -1,75 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateTagsOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *VirtualNetworkGateway -} - -// UpdateTags ... -func (c VirtualNetworkGatewaysClient) UpdateTags(ctx context.Context, id VirtualNetworkGatewayId, input TagsObject) (result UpdateTagsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// UpdateTagsThenPoll performs UpdateTags then polls until it's completed -func (c VirtualNetworkGatewaysClient) UpdateTagsThenPoll(ctx context.Context, id VirtualNetworkGatewayId, input TagsObject) error { - result, err := c.UpdateTags(ctx, id, input) - if err != nil { - return fmt.Errorf("performing UpdateTags: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after UpdateTags: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulescreateorupdate.go deleted file mode 100644 index b68cd3bf17c3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulescreateorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayNatRulesCreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *VirtualNetworkGatewayNatRule -} - -// VirtualNetworkGatewayNatRulesCreateOrUpdate ... -func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesCreateOrUpdate(ctx context.Context, id VirtualNetworkGatewayNatRuleId, input VirtualNetworkGatewayNatRule) (result VirtualNetworkGatewayNatRulesCreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// VirtualNetworkGatewayNatRulesCreateOrUpdateThenPoll performs VirtualNetworkGatewayNatRulesCreateOrUpdate then polls until it's completed -func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesCreateOrUpdateThenPoll(ctx context.Context, id VirtualNetworkGatewayNatRuleId, input VirtualNetworkGatewayNatRule) error { - result, err := c.VirtualNetworkGatewayNatRulesCreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing VirtualNetworkGatewayNatRulesCreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after VirtualNetworkGatewayNatRulesCreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesdelete.go deleted file mode 100644 index 4d041050bd26..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesdelete.go +++ /dev/null @@ -1,71 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayNatRulesDeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// VirtualNetworkGatewayNatRulesDelete ... -func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesDelete(ctx context.Context, id VirtualNetworkGatewayNatRuleId) (result VirtualNetworkGatewayNatRulesDeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// VirtualNetworkGatewayNatRulesDeleteThenPoll performs VirtualNetworkGatewayNatRulesDelete then polls until it's completed -func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesDeleteThenPoll(ctx context.Context, id VirtualNetworkGatewayNatRuleId) error { - result, err := c.VirtualNetworkGatewayNatRulesDelete(ctx, id) - if err != nil { - return fmt.Errorf("performing VirtualNetworkGatewayNatRulesDelete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after VirtualNetworkGatewayNatRulesDelete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesget.go deleted file mode 100644 index 10dc0fac1a6a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesget.go +++ /dev/null @@ -1,53 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayNatRulesGetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *VirtualNetworkGatewayNatRule -} - -// VirtualNetworkGatewayNatRulesGet ... -func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesGet(ctx context.Context, id VirtualNetworkGatewayNatRuleId) (result VirtualNetworkGatewayNatRulesGetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model VirtualNetworkGatewayNatRule - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go deleted file mode 100644 index ce8ee5c49659..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go +++ /dev/null @@ -1,105 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]VirtualNetworkGatewayNatRule -} - -type VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteResult struct { - LatestHttpResponse *http.Response - Items []VirtualNetworkGatewayNatRule -} - -type VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway ... -func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway(ctx context.Context, id VirtualNetworkGatewayId) (result VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager{}, - Path: fmt.Sprintf("%s/natRules", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]VirtualNetworkGatewayNatRule `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayComplete retrieves all the results into a single object -func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayComplete(ctx context.Context, id VirtualNetworkGatewayId) (VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteResult, error) { - return c.VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteMatchingPredicate(ctx, id, VirtualNetworkGatewayNatRuleOperationPredicate{}) -} - -// VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteMatchingPredicate(ctx context.Context, id VirtualNetworkGatewayId, predicate VirtualNetworkGatewayNatRuleOperationPredicate) (result VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteResult, err error) { - items := make([]VirtualNetworkGatewayNatRule, 0) - - resp, err := c.VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_vpndeviceconfigurationscript.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_vpndeviceconfigurationscript.go deleted file mode 100644 index 0dbfcf3f88f2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_vpndeviceconfigurationscript.go +++ /dev/null @@ -1,58 +0,0 @@ -package virtualnetworkgateways - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VpnDeviceConfigurationScriptOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *string -} - -// VpnDeviceConfigurationScript ... -func (c VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx context.Context, id ConnectionId, input VpnDeviceScriptParameters) (result VpnDeviceConfigurationScriptOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/vpndeviceconfigurationscript", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model string - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_addressspace.go deleted file mode 100644 index 8ec4b3f0b7dd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_addressspace.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AddressSpace struct { - AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgppeerstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgppeerstatus.go deleted file mode 100644 index 8b54be7d7ae5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgppeerstatus.go +++ /dev/null @@ -1,15 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BgpPeerStatus struct { - Asn *int64 `json:"asn,omitempty"` - ConnectedDuration *string `json:"connectedDuration,omitempty"` - LocalAddress *string `json:"localAddress,omitempty"` - MessagesReceived *int64 `json:"messagesReceived,omitempty"` - MessagesSent *int64 `json:"messagesSent,omitempty"` - Neighbor *string `json:"neighbor,omitempty"` - RoutesReceived *int64 `json:"routesReceived,omitempty"` - State *BgpPeerState `json:"state,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgppeerstatuslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgppeerstatuslistresult.go deleted file mode 100644 index 4affff1a3091..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgppeerstatuslistresult.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BgpPeerStatusListResult struct { - Value *[]BgpPeerStatus `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgpsettings.go deleted file mode 100644 index 38b1165bfa12..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgpsettings.go +++ /dev/null @@ -1,11 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BgpSettings struct { - Asn *int64 `json:"asn,omitempty"` - BgpPeeringAddress *string `json:"bgpPeeringAddress,omitempty"` - BgpPeeringAddresses *[]IPConfigurationBgpPeeringAddress `json:"bgpPeeringAddresses,omitempty"` - PeerWeight *int64 `json:"peerWeight,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewaycustombgpipaddressipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewaycustombgpipaddressipconfiguration.go deleted file mode 100644 index 6bb7f5aa0553..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewaycustombgpipaddressipconfiguration.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GatewayCustomBgpIPAddressIPConfiguration struct { - CustomBgpIPAddress string `json:"customBgpIpAddress"` - IPConfigurationId string `json:"ipConfigurationId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewayroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewayroute.go deleted file mode 100644 index 038e61f22d32..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewayroute.go +++ /dev/null @@ -1,14 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GatewayRoute struct { - AsPath *string `json:"asPath,omitempty"` - LocalAddress *string `json:"localAddress,omitempty"` - Network *string `json:"network,omitempty"` - NextHop *string `json:"nextHop,omitempty"` - Origin *string `json:"origin,omitempty"` - SourcePeer *string `json:"sourcePeer,omitempty"` - Weight *int64 `json:"weight,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewayroutelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewayroutelistresult.go deleted file mode 100644 index d0ab95ca8fb4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewayroutelistresult.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GatewayRouteListResult struct { - Value *[]GatewayRoute `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_ipconfigurationbgppeeringaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_ipconfigurationbgppeeringaddress.go deleted file mode 100644 index bfda111f40fe..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_ipconfigurationbgppeeringaddress.go +++ /dev/null @@ -1,11 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfigurationBgpPeeringAddress struct { - CustomBgpIPAddresses *[]string `json:"customBgpIpAddresses,omitempty"` - DefaultBgpIPAddresses *[]string `json:"defaultBgpIpAddresses,omitempty"` - IPconfigurationId *string `json:"ipconfigurationId,omitempty"` - TunnelIPAddresses *[]string `json:"tunnelIpAddresses,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_ipsecpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_ipsecpolicy.go deleted file mode 100644 index 6db4ac44425e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_ipsecpolicy.go +++ /dev/null @@ -1,15 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPsecPolicy struct { - DhGroup DhGroup `json:"dhGroup"` - IPsecEncryption IPsecEncryption `json:"ipsecEncryption"` - IPsecIntegrity IPsecIntegrity `json:"ipsecIntegrity"` - IkeEncryption IkeEncryption `json:"ikeEncryption"` - IkeIntegrity IkeIntegrity `json:"ikeIntegrity"` - PfsGroup PfsGroup `json:"pfsGroup"` - SaDataSizeKilobytes int64 `json:"saDataSizeKilobytes"` - SaLifeTimeSeconds int64 `json:"saLifeTimeSeconds"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_p2svpnconnectionrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_p2svpnconnectionrequest.go deleted file mode 100644 index dafc643bcef2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_p2svpnconnectionrequest.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type P2SVpnConnectionRequest struct { - VpnConnectionIds *[]string `json:"vpnConnectionIds,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_radiusserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_radiusserver.go deleted file mode 100644 index eb8912469916..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_radiusserver.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RadiusServer struct { - RadiusServerAddress string `json:"radiusServerAddress"` - RadiusServerScore *int64 `json:"radiusServerScore,omitempty"` - RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_subresource.go deleted file mode 100644 index 5e20a09efb4a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_tagsobject.go deleted file mode 100644 index 1208ffee7ebd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_trafficselectorpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_trafficselectorpolicy.go deleted file mode 100644 index 6dbeefcf439d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_trafficselectorpolicy.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TrafficSelectorPolicy struct { - LocalAddressRanges []string `json:"localAddressRanges"` - RemoteAddressRanges []string `json:"remoteAddressRanges"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_tunnelconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_tunnelconnectionhealth.go deleted file mode 100644 index 786b87303635..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_tunnelconnectionhealth.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TunnelConnectionHealth struct { - ConnectionStatus *VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty"` - EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` - IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` - LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` - Tunnel *string `json:"tunnel,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkconnectiongatewayreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkconnectiongatewayreference.go deleted file mode 100644 index f9ddd43a0b5b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkconnectiongatewayreference.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkConnectionGatewayReference struct { - Id string `json:"id"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgateway.go deleted file mode 100644 index 0bd39843684a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgateway.go +++ /dev/null @@ -1,19 +0,0 @@ -package virtualnetworkgateways - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGateway struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties VirtualNetworkGatewayPropertiesFormat `json:"properties"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscalebounds.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscalebounds.go deleted file mode 100644 index ba8082fea07d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscalebounds.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayAutoScaleBounds struct { - Max *int64 `json:"max,omitempty"` - Min *int64 `json:"min,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscaleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscaleconfiguration.go deleted file mode 100644 index c2bf005d0677..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscaleconfiguration.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayAutoScaleConfiguration struct { - Bounds *VirtualNetworkGatewayAutoScaleBounds `json:"bounds,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentity.go deleted file mode 100644 index fc88052ded90..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentity.go +++ /dev/null @@ -1,14 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayConnectionListEntity struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties VirtualNetworkGatewayConnectionListEntityPropertiesFormat `json:"properties"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentitypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentitypropertiesformat.go deleted file mode 100644 index ad063d3db470..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentitypropertiesformat.go +++ /dev/null @@ -1,30 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayConnectionListEntityPropertiesFormat struct { - AuthorizationKey *string `json:"authorizationKey,omitempty"` - ConnectionMode *VirtualNetworkGatewayConnectionMode `json:"connectionMode,omitempty"` - ConnectionProtocol *VirtualNetworkGatewayConnectionProtocol `json:"connectionProtocol,omitempty"` - ConnectionStatus *VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty"` - ConnectionType VirtualNetworkGatewayConnectionType `json:"connectionType"` - EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` - EnableBgp *bool `json:"enableBgp,omitempty"` - EnablePrivateLinkFastPath *bool `json:"enablePrivateLinkFastPath,omitempty"` - ExpressRouteGatewayBypass *bool `json:"expressRouteGatewayBypass,omitempty"` - GatewayCustomBgpIPAddresses *[]GatewayCustomBgpIPAddressIPConfiguration `json:"gatewayCustomBgpIpAddresses,omitempty"` - IPsecPolicies *[]IPsecPolicy `json:"ipsecPolicies,omitempty"` - IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` - LocalNetworkGateway2 *VirtualNetworkConnectionGatewayReference `json:"localNetworkGateway2,omitempty"` - Peer *SubResource `json:"peer,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - RoutingWeight *int64 `json:"routingWeight,omitempty"` - SharedKey *string `json:"sharedKey,omitempty"` - TrafficSelectorPolicies *[]TrafficSelectorPolicy `json:"trafficSelectorPolicies,omitempty"` - TunnelConnectionStatus *[]TunnelConnectionHealth `json:"tunnelConnectionStatus,omitempty"` - UsePolicyBasedTrafficSelectors *bool `json:"usePolicyBasedTrafficSelectors,omitempty"` - VirtualNetworkGateway1 VirtualNetworkConnectionGatewayReference `json:"virtualNetworkGateway1"` - VirtualNetworkGateway2 *VirtualNetworkConnectionGatewayReference `json:"virtualNetworkGateway2,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfiguration.go deleted file mode 100644 index b0f988e9a2c6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfiguration.go +++ /dev/null @@ -1,11 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *VirtualNetworkGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfigurationpropertiesformat.go deleted file mode 100644 index f4396964e0ad..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfigurationpropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayIPConfigurationPropertiesFormat struct { - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` - Subnet *SubResource `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaynatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaynatrule.go deleted file mode 100644 index f8d6791d1700..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaynatrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayNatRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *VirtualNetworkGatewayNatRuleProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaynatruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaynatruleproperties.go deleted file mode 100644 index 6227a89e253e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaynatruleproperties.go +++ /dev/null @@ -1,13 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayNatRuleProperties struct { - ExternalMappings *[]VpnNatRuleMapping `json:"externalMappings,omitempty"` - IPConfigurationId *string `json:"ipConfigurationId,omitempty"` - InternalMappings *[]VpnNatRuleMapping `json:"internalMappings,omitempty"` - Mode *VpnNatRuleMode `json:"mode,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Type *VpnNatRuleType `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroup.go deleted file mode 100644 index ebd198d261ef..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroup.go +++ /dev/null @@ -1,11 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayPolicyGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *VirtualNetworkGatewayPolicyGroupProperties `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupmember.go deleted file mode 100644 index 466e643ddd80..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupmember.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayPolicyGroupMember struct { - AttributeType *VpnPolicyMemberAttributeType `json:"attributeType,omitempty"` - AttributeValue *string `json:"attributeValue,omitempty"` - Name *string `json:"name,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupproperties.go deleted file mode 100644 index ab108714ff31..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayPolicyGroupProperties struct { - IsDefault bool `json:"isDefault"` - PolicyMembers []VirtualNetworkGatewayPolicyGroupMember `json:"policyMembers"` - Priority int64 `json:"priority"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - VngClientConnectionConfigurations *[]SubResource `json:"vngClientConnectionConfigurations,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypropertiesformat.go deleted file mode 100644 index 3f13bf8bcf61..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypropertiesformat.go +++ /dev/null @@ -1,32 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayPropertiesFormat struct { - ActiveActive *bool `json:"activeActive,omitempty"` - AdminState *AdminState `json:"adminState,omitempty"` - AllowRemoteVnetTraffic *bool `json:"allowRemoteVnetTraffic,omitempty"` - AllowVirtualWanTraffic *bool `json:"allowVirtualWanTraffic,omitempty"` - AutoScaleConfiguration *VirtualNetworkGatewayAutoScaleConfiguration `json:"autoScaleConfiguration,omitempty"` - BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` - CustomRoutes *AddressSpace `json:"customRoutes,omitempty"` - DisableIPSecReplayProtection *bool `json:"disableIPSecReplayProtection,omitempty"` - EnableBgp *bool `json:"enableBgp,omitempty"` - EnableBgpRouteTranslationForNat *bool `json:"enableBgpRouteTranslationForNat,omitempty"` - EnableDnsForwarding *bool `json:"enableDnsForwarding,omitempty"` - EnablePrivateIPAddress *bool `json:"enablePrivateIpAddress,omitempty"` - GatewayDefaultSite *SubResource `json:"gatewayDefaultSite,omitempty"` - GatewayType *VirtualNetworkGatewayType `json:"gatewayType,omitempty"` - IPConfigurations *[]VirtualNetworkGatewayIPConfiguration `json:"ipConfigurations,omitempty"` - InboundDnsForwardingEndpoint *string `json:"inboundDnsForwardingEndpoint,omitempty"` - NatRules *[]VirtualNetworkGatewayNatRule `json:"natRules,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - Sku *VirtualNetworkGatewaySku `json:"sku,omitempty"` - VNetExtendedLocationResourceId *string `json:"vNetExtendedLocationResourceId,omitempty"` - VirtualNetworkGatewayPolicyGroups *[]VirtualNetworkGatewayPolicyGroup `json:"virtualNetworkGatewayPolicyGroups,omitempty"` - VpnClientConfiguration *VpnClientConfiguration `json:"vpnClientConfiguration,omitempty"` - VpnGatewayGeneration *VpnGatewayGeneration `json:"vpnGatewayGeneration,omitempty"` - VpnType *VpnType `json:"vpnType,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaysku.go deleted file mode 100644 index b96386d7651a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaysku.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewaySku struct { - Capacity *int64 `json:"capacity,omitempty"` - Name *VirtualNetworkGatewaySkuName `json:"name,omitempty"` - Tier *VirtualNetworkGatewaySkuTier `json:"tier,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vngclientconnectionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vngclientconnectionconfiguration.go deleted file mode 100644 index 44c61c021674..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vngclientconnectionconfiguration.go +++ /dev/null @@ -1,11 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VngClientConnectionConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *VngClientConnectionConfigurationProperties `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vngclientconnectionconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vngclientconnectionconfigurationproperties.go deleted file mode 100644 index 8bf37c29734f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vngclientconnectionconfigurationproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VngClientConnectionConfigurationProperties struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - VirtualNetworkGatewayPolicyGroups []SubResource `json:"virtualNetworkGatewayPolicyGroups"` - VpnClientAddressPool AddressSpace `json:"vpnClientAddressPool"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconfiguration.go deleted file mode 100644 index 947582e3da99..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconfiguration.go +++ /dev/null @@ -1,20 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VpnClientConfiguration struct { - AadAudience *string `json:"aadAudience,omitempty"` - AadIssuer *string `json:"aadIssuer,omitempty"` - AadTenant *string `json:"aadTenant,omitempty"` - RadiusServerAddress *string `json:"radiusServerAddress,omitempty"` - RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` - RadiusServers *[]RadiusServer `json:"radiusServers,omitempty"` - VngClientConnectionConfigurations *[]VngClientConnectionConfiguration `json:"vngClientConnectionConfigurations,omitempty"` - VpnAuthenticationTypes *[]VpnAuthenticationType `json:"vpnAuthenticationTypes,omitempty"` - VpnClientAddressPool *AddressSpace `json:"vpnClientAddressPool,omitempty"` - VpnClientIPsecPolicies *[]IPsecPolicy `json:"vpnClientIpsecPolicies,omitempty"` - VpnClientProtocols *[]VpnClientProtocol `json:"vpnClientProtocols,omitempty"` - VpnClientRevokedCertificates *[]VpnClientRevokedCertificate `json:"vpnClientRevokedCertificates,omitempty"` - VpnClientRootCertificates *[]VpnClientRootCertificate `json:"vpnClientRootCertificates,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetail.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetail.go deleted file mode 100644 index c1bd5bd01b89..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetail.go +++ /dev/null @@ -1,19 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VpnClientConnectionHealthDetail struct { - EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` - EgressPacketsTransferred *int64 `json:"egressPacketsTransferred,omitempty"` - IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` - IngressPacketsTransferred *int64 `json:"ingressPacketsTransferred,omitempty"` - MaxBandwidth *int64 `json:"maxBandwidth,omitempty"` - MaxPacketsPerSecond *int64 `json:"maxPacketsPerSecond,omitempty"` - PrivateIPAddress *string `json:"privateIpAddress,omitempty"` - PublicIPAddress *string `json:"publicIpAddress,omitempty"` - VpnConnectionDuration *int64 `json:"vpnConnectionDuration,omitempty"` - VpnConnectionId *string `json:"vpnConnectionId,omitempty"` - VpnConnectionTime *string `json:"vpnConnectionTime,omitempty"` - VpnUserName *string `json:"vpnUserName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetaillistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetaillistresult.go deleted file mode 100644 index d0c7c1a3f220..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetaillistresult.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VpnClientConnectionHealthDetailListResult struct { - Value *[]VpnClientConnectionHealthDetail `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientipsecparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientipsecparameters.go deleted file mode 100644 index d972e45d72ed..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientipsecparameters.go +++ /dev/null @@ -1,15 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VpnClientIPsecParameters struct { - DhGroup DhGroup `json:"dhGroup"` - IPsecEncryption IPsecEncryption `json:"ipsecEncryption"` - IPsecIntegrity IPsecIntegrity `json:"ipsecIntegrity"` - IkeEncryption IkeEncryption `json:"ikeEncryption"` - IkeIntegrity IkeIntegrity `json:"ikeIntegrity"` - PfsGroup PfsGroup `json:"pfsGroup"` - SaDataSizeKilobytes int64 `json:"saDataSizeKilobytes"` - SaLifeTimeSeconds int64 `json:"saLifeTimeSeconds"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientparameters.go deleted file mode 100644 index dbfa84e1c677..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientparameters.go +++ /dev/null @@ -1,11 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VpnClientParameters struct { - AuthenticationMethod *AuthenticationMethod `json:"authenticationMethod,omitempty"` - ClientRootCertificates *[]string `json:"clientRootCertificates,omitempty"` - ProcessorArchitecture *ProcessorArchitecture `json:"processorArchitecture,omitempty"` - RadiusServerAuthCertificate *string `json:"radiusServerAuthCertificate,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrevokedcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrevokedcertificate.go deleted file mode 100644 index 2151e3bf02b9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrevokedcertificate.go +++ /dev/null @@ -1,11 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VpnClientRevokedCertificate struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *VpnClientRevokedCertificatePropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrevokedcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrevokedcertificatepropertiesformat.go deleted file mode 100644 index 9a5fb25ca9bd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrevokedcertificatepropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VpnClientRevokedCertificatePropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Thumbprint *string `json:"thumbprint,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrootcertificate.go deleted file mode 100644 index db4850a95ff8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrootcertificate.go +++ /dev/null @@ -1,11 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VpnClientRootCertificate struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties VpnClientRootCertificatePropertiesFormat `json:"properties"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrootcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrootcertificatepropertiesformat.go deleted file mode 100644 index 4a44a811b2a6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrootcertificatepropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VpnClientRootCertificatePropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicCertData string `json:"publicCertData"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpndevicescriptparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpndevicescriptparameters.go deleted file mode 100644 index 61ec4f46b54c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpndevicescriptparameters.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VpnDeviceScriptParameters struct { - DeviceFamily *string `json:"deviceFamily,omitempty"` - FirmwareVersion *string `json:"firmwareVersion,omitempty"` - Vendor *string `json:"vendor,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnnatrulemapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnnatrulemapping.go deleted file mode 100644 index d903f625a584..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnnatrulemapping.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VpnNatRuleMapping struct { - AddressSpace *string `json:"addressSpace,omitempty"` - PortRange *string `json:"portRange,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnpacketcapturestartparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnpacketcapturestartparameters.go deleted file mode 100644 index 014f699e4367..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnpacketcapturestartparameters.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VpnPacketCaptureStartParameters struct { - FilterData *string `json:"filterData,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnpacketcapturestopparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnpacketcapturestopparameters.go deleted file mode 100644 index 25f6fba8d559..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnpacketcapturestopparameters.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VpnPacketCaptureStopParameters struct { - SasURL *string `json:"sasUrl,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/predicates.go deleted file mode 100644 index e03cad8f7b63..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/predicates.go +++ /dev/null @@ -1,98 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p VirtualNetworkGatewayOperationPredicate) Matches(input VirtualNetworkGateway) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} - -type VirtualNetworkGatewayConnectionListEntityOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p VirtualNetworkGatewayConnectionListEntityOperationPredicate) Matches(input VirtualNetworkGatewayConnectionListEntity) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} - -type VirtualNetworkGatewayNatRuleOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p VirtualNetworkGatewayNatRuleOperationPredicate) Matches(input VirtualNetworkGatewayNatRule) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/version.go deleted file mode 100644 index 135ef9d21e7d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/virtualnetworkgateways/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/README.md deleted file mode 100644 index 5eef086fd7b7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/README.md +++ /dev/null @@ -1,83 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings` Documentation - -The `virtualnetworkpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings" -``` - - -### Client Initialization - -```go -client := virtualnetworkpeerings.NewVirtualNetworkPeeringsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VirtualNetworkPeeringsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "virtualNetworkPeeringName") - -payload := virtualnetworkpeerings.VirtualNetworkPeering{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload, virtualnetworkpeerings.DefaultCreateOrUpdateOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkPeeringsClient.Delete` - -```go -ctx := context.TODO() -id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "virtualNetworkPeeringName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkPeeringsClient.Get` - -```go -ctx := context.TODO() -id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "virtualNetworkPeeringName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualNetworkPeeringsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/client.go deleted file mode 100644 index a8632e2ec55e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package virtualnetworkpeerings - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkPeeringsClient struct { - Client *resourcemanager.Client -} - -func NewVirtualNetworkPeeringsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworkPeeringsClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "virtualnetworkpeerings", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating VirtualNetworkPeeringsClient: %+v", err) - } - - return &VirtualNetworkPeeringsClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/constants.go deleted file mode 100644 index 0cb41da70fc9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/constants.go +++ /dev/null @@ -1,227 +0,0 @@ -package virtualnetworkpeerings - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type SyncRemoteAddressSpace string - -const ( - SyncRemoteAddressSpaceTrue SyncRemoteAddressSpace = "true" -) - -func PossibleValuesForSyncRemoteAddressSpace() []string { - return []string{ - string(SyncRemoteAddressSpaceTrue), - } -} - -func (s *SyncRemoteAddressSpace) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSyncRemoteAddressSpace(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSyncRemoteAddressSpace(input string) (*SyncRemoteAddressSpace, error) { - vals := map[string]SyncRemoteAddressSpace{ - "true": SyncRemoteAddressSpaceTrue, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SyncRemoteAddressSpace(input) - return &out, nil -} - -type VirtualNetworkEncryptionEnforcement string - -const ( - VirtualNetworkEncryptionEnforcementAllowUnencrypted VirtualNetworkEncryptionEnforcement = "AllowUnencrypted" - VirtualNetworkEncryptionEnforcementDropUnencrypted VirtualNetworkEncryptionEnforcement = "DropUnencrypted" -) - -func PossibleValuesForVirtualNetworkEncryptionEnforcement() []string { - return []string{ - string(VirtualNetworkEncryptionEnforcementAllowUnencrypted), - string(VirtualNetworkEncryptionEnforcementDropUnencrypted), - } -} - -func (s *VirtualNetworkEncryptionEnforcement) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkEncryptionEnforcement(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkEncryptionEnforcement(input string) (*VirtualNetworkEncryptionEnforcement, error) { - vals := map[string]VirtualNetworkEncryptionEnforcement{ - "allowunencrypted": VirtualNetworkEncryptionEnforcementAllowUnencrypted, - "dropunencrypted": VirtualNetworkEncryptionEnforcementDropUnencrypted, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkEncryptionEnforcement(input) - return &out, nil -} - -type VirtualNetworkPeeringLevel string - -const ( - VirtualNetworkPeeringLevelFullyInSync VirtualNetworkPeeringLevel = "FullyInSync" - VirtualNetworkPeeringLevelLocalAndRemoteNotInSync VirtualNetworkPeeringLevel = "LocalAndRemoteNotInSync" - VirtualNetworkPeeringLevelLocalNotInSync VirtualNetworkPeeringLevel = "LocalNotInSync" - VirtualNetworkPeeringLevelRemoteNotInSync VirtualNetworkPeeringLevel = "RemoteNotInSync" -) - -func PossibleValuesForVirtualNetworkPeeringLevel() []string { - return []string{ - string(VirtualNetworkPeeringLevelFullyInSync), - string(VirtualNetworkPeeringLevelLocalAndRemoteNotInSync), - string(VirtualNetworkPeeringLevelLocalNotInSync), - string(VirtualNetworkPeeringLevelRemoteNotInSync), - } -} - -func (s *VirtualNetworkPeeringLevel) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPeeringLevel(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPeeringLevel(input string) (*VirtualNetworkPeeringLevel, error) { - vals := map[string]VirtualNetworkPeeringLevel{ - "fullyinsync": VirtualNetworkPeeringLevelFullyInSync, - "localandremotenotinsync": VirtualNetworkPeeringLevelLocalAndRemoteNotInSync, - "localnotinsync": VirtualNetworkPeeringLevelLocalNotInSync, - "remotenotinsync": VirtualNetworkPeeringLevelRemoteNotInSync, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPeeringLevel(input) - return &out, nil -} - -type VirtualNetworkPeeringState string - -const ( - VirtualNetworkPeeringStateConnected VirtualNetworkPeeringState = "Connected" - VirtualNetworkPeeringStateDisconnected VirtualNetworkPeeringState = "Disconnected" - VirtualNetworkPeeringStateInitiated VirtualNetworkPeeringState = "Initiated" -) - -func PossibleValuesForVirtualNetworkPeeringState() []string { - return []string{ - string(VirtualNetworkPeeringStateConnected), - string(VirtualNetworkPeeringStateDisconnected), - string(VirtualNetworkPeeringStateInitiated), - } -} - -func (s *VirtualNetworkPeeringState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPeeringState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPeeringState(input string) (*VirtualNetworkPeeringState, error) { - vals := map[string]VirtualNetworkPeeringState{ - "connected": VirtualNetworkPeeringStateConnected, - "disconnected": VirtualNetworkPeeringStateDisconnected, - "initiated": VirtualNetworkPeeringStateInitiated, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPeeringState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/id_virtualnetworkpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/id_virtualnetworkpeering.go deleted file mode 100644 index 03298e7f7068..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/id_virtualnetworkpeering.go +++ /dev/null @@ -1,139 +0,0 @@ -package virtualnetworkpeerings - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&VirtualNetworkPeeringId{}) -} - -var _ resourceids.ResourceId = &VirtualNetworkPeeringId{} - -// VirtualNetworkPeeringId is a struct representing the Resource ID for a Virtual Network Peering -type VirtualNetworkPeeringId struct { - SubscriptionId string - ResourceGroupName string - VirtualNetworkName string - VirtualNetworkPeeringName string -} - -// NewVirtualNetworkPeeringID returns a new VirtualNetworkPeeringId struct -func NewVirtualNetworkPeeringID(subscriptionId string, resourceGroupName string, virtualNetworkName string, virtualNetworkPeeringName string) VirtualNetworkPeeringId { - return VirtualNetworkPeeringId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - VirtualNetworkName: virtualNetworkName, - VirtualNetworkPeeringName: virtualNetworkPeeringName, - } -} - -// ParseVirtualNetworkPeeringID parses 'input' into a VirtualNetworkPeeringId -func ParseVirtualNetworkPeeringID(input string) (*VirtualNetworkPeeringId, error) { - parser := resourceids.NewParserFromResourceIdType(&VirtualNetworkPeeringId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := VirtualNetworkPeeringId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseVirtualNetworkPeeringIDInsensitively parses 'input' case-insensitively into a VirtualNetworkPeeringId -// note: this method should only be used for API response data and not user input -func ParseVirtualNetworkPeeringIDInsensitively(input string) (*VirtualNetworkPeeringId, error) { - parser := resourceids.NewParserFromResourceIdType(&VirtualNetworkPeeringId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := VirtualNetworkPeeringId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *VirtualNetworkPeeringId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.VirtualNetworkName, ok = input.Parsed["virtualNetworkName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "virtualNetworkName", input) - } - - if id.VirtualNetworkPeeringName, ok = input.Parsed["virtualNetworkPeeringName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "virtualNetworkPeeringName", input) - } - - return nil -} - -// ValidateVirtualNetworkPeeringID checks that 'input' can be parsed as a Virtual Network Peering ID -func ValidateVirtualNetworkPeeringID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseVirtualNetworkPeeringID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Virtual Network Peering ID -func (id VirtualNetworkPeeringId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworks/%s/virtualNetworkPeerings/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualNetworkName, id.VirtualNetworkPeeringName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Virtual Network Peering ID -func (id VirtualNetworkPeeringId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticVirtualNetworks", "virtualNetworks", "virtualNetworks"), - resourceids.UserSpecifiedSegment("virtualNetworkName", "virtualNetworkName"), - resourceids.StaticSegment("staticVirtualNetworkPeerings", "virtualNetworkPeerings", "virtualNetworkPeerings"), - resourceids.UserSpecifiedSegment("virtualNetworkPeeringName", "virtualNetworkPeeringName"), - } -} - -// String returns a human-readable description of this Virtual Network Peering ID -func (id VirtualNetworkPeeringId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Virtual Network Name: %q", id.VirtualNetworkName), - fmt.Sprintf("Virtual Network Peering Name: %q", id.VirtualNetworkPeeringName), - } - return fmt.Sprintf("Virtual Network Peering (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_createorupdate.go deleted file mode 100644 index 950797b73028..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_createorupdate.go +++ /dev/null @@ -1,104 +0,0 @@ -package virtualnetworkpeerings - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *VirtualNetworkPeering -} - -type CreateOrUpdateOperationOptions struct { - SyncRemoteAddressSpace *SyncRemoteAddressSpace -} - -func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions { - return CreateOrUpdateOperationOptions{} -} - -func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.SyncRemoteAddressSpace != nil { - out.Append("syncRemoteAddressSpace", fmt.Sprintf("%v", *o.SyncRemoteAddressSpace)) - } - return &out -} - -// CreateOrUpdate ... -func (c VirtualNetworkPeeringsClient) CreateOrUpdate(ctx context.Context, id VirtualNetworkPeeringId, input VirtualNetworkPeering, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c VirtualNetworkPeeringsClient) CreateOrUpdateThenPoll(ctx context.Context, id VirtualNetworkPeeringId, input VirtualNetworkPeering, options CreateOrUpdateOperationOptions) error { - result, err := c.CreateOrUpdate(ctx, id, input, options) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_delete.go deleted file mode 100644 index 0d0ded252a4e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package virtualnetworkpeerings - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c VirtualNetworkPeeringsClient) Delete(ctx context.Context, id VirtualNetworkPeeringId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c VirtualNetworkPeeringsClient) DeleteThenPoll(ctx context.Context, id VirtualNetworkPeeringId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_get.go deleted file mode 100644 index 8bc92358897c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package virtualnetworkpeerings - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *VirtualNetworkPeering -} - -// Get ... -func (c VirtualNetworkPeeringsClient) Get(ctx context.Context, id VirtualNetworkPeeringId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model VirtualNetworkPeering - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_list.go deleted file mode 100644 index a18c0885cc90..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package virtualnetworkpeerings - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]VirtualNetworkPeering -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []VirtualNetworkPeering -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c VirtualNetworkPeeringsClient) List(ctx context.Context, id commonids.VirtualNetworkId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/virtualNetworkPeerings", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]VirtualNetworkPeering `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c VirtualNetworkPeeringsClient) ListComplete(ctx context.Context, id commonids.VirtualNetworkId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, VirtualNetworkPeeringOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c VirtualNetworkPeeringsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.VirtualNetworkId, predicate VirtualNetworkPeeringOperationPredicate) (result ListCompleteResult, err error) { - items := make([]VirtualNetworkPeering, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_addressspace.go deleted file mode 100644 index dadfe5be0b5b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_addressspace.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworkpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AddressSpace struct { - AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_subresource.go deleted file mode 100644 index 07cc63aadbb4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworkpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkbgpcommunities.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkbgpcommunities.go deleted file mode 100644 index a1302f81779d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkbgpcommunities.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworkpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkBgpCommunities struct { - RegionalCommunity *string `json:"regionalCommunity,omitempty"` - VirtualNetworkCommunity string `json:"virtualNetworkCommunity"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkencryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkencryption.go deleted file mode 100644 index 82989ac5992a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkencryption.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworkpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkEncryption struct { - Enabled bool `json:"enabled"` - Enforcement *VirtualNetworkEncryptionEnforcement `json:"enforcement,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkpeering.go deleted file mode 100644 index 4b0c5a50abf8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkpeering.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworkpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkPeering struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *VirtualNetworkPeeringPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkpeeringpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkpeeringpropertiesformat.go deleted file mode 100644 index 4081538e08fe..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkpeeringpropertiesformat.go +++ /dev/null @@ -1,27 +0,0 @@ -package virtualnetworkpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkPeeringPropertiesFormat struct { - AllowForwardedTraffic *bool `json:"allowForwardedTraffic,omitempty"` - AllowGatewayTransit *bool `json:"allowGatewayTransit,omitempty"` - AllowVirtualNetworkAccess *bool `json:"allowVirtualNetworkAccess,omitempty"` - DoNotVerifyRemoteGateways *bool `json:"doNotVerifyRemoteGateways,omitempty"` - EnableOnlyIPv6Peering *bool `json:"enableOnlyIPv6Peering,omitempty"` - LocalAddressSpace *AddressSpace `json:"localAddressSpace,omitempty"` - LocalSubnetNames *[]string `json:"localSubnetNames,omitempty"` - LocalVirtualNetworkAddressSpace *AddressSpace `json:"localVirtualNetworkAddressSpace,omitempty"` - PeerCompleteVnets *bool `json:"peerCompleteVnets,omitempty"` - PeeringState *VirtualNetworkPeeringState `json:"peeringState,omitempty"` - PeeringSyncLevel *VirtualNetworkPeeringLevel `json:"peeringSyncLevel,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RemoteAddressSpace *AddressSpace `json:"remoteAddressSpace,omitempty"` - RemoteBgpCommunities *VirtualNetworkBgpCommunities `json:"remoteBgpCommunities,omitempty"` - RemoteSubnetNames *[]string `json:"remoteSubnetNames,omitempty"` - RemoteVirtualNetwork *SubResource `json:"remoteVirtualNetwork,omitempty"` - RemoteVirtualNetworkAddressSpace *AddressSpace `json:"remoteVirtualNetworkAddressSpace,omitempty"` - RemoteVirtualNetworkEncryption *VirtualNetworkEncryption `json:"remoteVirtualNetworkEncryption,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - UseRemoteGateways *bool `json:"useRemoteGateways,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/predicates.go deleted file mode 100644 index a945839e0b29..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package virtualnetworkpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkPeeringOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p VirtualNetworkPeeringOperationPredicate) Matches(input VirtualNetworkPeering) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/version.go deleted file mode 100644 index 15fd63fe3252..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworkpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/virtualnetworkpeerings/2023-11-01" -} diff --git a/vendor/modules.txt b/vendor/modules.txt index 4f685772442b..ba515a06eac9 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -700,57 +700,21 @@ github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies From 05efe30e2509cc450172be15cf6df3094c5ffb4f Mon Sep 17 00:00:00 2001 From: neil-yechenwei Date: Thu, 24 Oct 2024 18:13:37 +0800 Subject: [PATCH 3/4] update tflint --- internal/services/compute/image_resource_test.go | 4 ++-- internal/services/resource/resource_group_resource_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/services/compute/image_resource_test.go b/internal/services/compute/image_resource_test.go index 277e0fcfb969..1c9841b1941e 100644 --- a/internal/services/compute/image_resource_test.go +++ b/internal/services/compute/image_resource_test.go @@ -16,8 +16,8 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/ssh" diff --git a/internal/services/resource/resource_group_resource_test.go b/internal/services/resource/resource_group_resource_test.go index 41f680be3041..dc9fc4a932a7 100644 --- a/internal/services/resource/resource_group_resource_test.go +++ b/internal/services/resource/resource_group_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" From 064c0c3fe6a4805605fbd7d861e0a6b18c9f2a94 Mon Sep 17 00:00:00 2001 From: neil-yechenwei Date: Thu, 24 Oct 2024 19:01:57 +0800 Subject: [PATCH 4/4] go mod --- .../2023-11-01/networkinterfaces/README.md | 400 ----- .../2023-11-01/networkinterfaces/client.go | 26 - .../2023-11-01/networkinterfaces/constants.go | 1547 ----------------- .../id_providercloudservice.go | 130 -- .../networkinterfaces/id_roleinstance.go | 139 -- .../id_roleinstancenetworkinterface.go | 148 -- .../networkinterfaces/id_tapconfiguration.go | 139 -- .../networkinterfaces/id_virtualmachine.go | 139 -- .../id_virtualmachinescaleset.go | 130 -- .../method_createorupdate.go | 76 - .../networkinterfaces/method_delete.go | 72 - .../networkinterfaces/method_get.go | 84 - .../method_getcloudservicenetworkinterface.go | 83 - .../method_geteffectiveroutetable.go | 90 - ...etvirtualmachinescalesetipconfiguration.go | 84 - ...tvirtualmachinescalesetnetworkinterface.go | 84 - .../networkinterfaces/method_list.go | 106 -- .../networkinterfaces/method_listall.go | 106 -- ...ethod_listcloudservicenetworkinterfaces.go | 105 -- ...oudserviceroleinstancenetworkinterfaces.go | 105 -- ...thod_listeffectivenetworksecuritygroups.go | 90 - ...tvirtualmachinescalesetipconfigurations.go | 135 -- ...virtualmachinescalesetnetworkinterfaces.go | 105 -- ...rtualmachinescalesetvmnetworkinterfaces.go | 105 -- ...hod_networkinterfaceipconfigurationsget.go | 54 - ...od_networkinterfaceipconfigurationslist.go | 106 -- ...ethod_networkinterfaceloadbalancerslist.go | 106 -- ...nterfacetapconfigurationscreateorupdate.go | 75 - ...networkinterfacetapconfigurationsdelete.go | 71 - ...od_networkinterfacetapconfigurationsget.go | 53 - ...d_networkinterfacetapconfigurationslist.go | 106 -- .../networkinterfaces/method_updatetags.go | 58 - .../model_applicationgatewaybackendaddress.go | 9 - ...el_applicationgatewaybackendaddresspool.go | 12 - ...tewaybackendaddresspoolpropertiesformat.go | 10 - ...model_applicationgatewayipconfiguration.go | 12 - ...ngatewayipconfigurationpropertiesformat.go | 9 - .../model_applicationsecuritygroup.go | 14 - ...pplicationsecuritygrouppropertiesformat.go | 9 - .../model_backendaddresspool.go | 12 - ...odel_backendaddresspoolpropertiesformat.go | 19 - .../model_customdnsconfigpropertiesformat.go | 9 - .../networkinterfaces/model_ddossettings.go | 9 - .../networkinterfaces/model_delegation.go | 12 - .../model_effectivenetworksecuritygroup.go | 11 - ...ffectivenetworksecuritygroupassociation.go | 10 - .../model_effectivenetworksecurityrule.go | 22 - .../networkinterfaces/model_effectiveroute.go | 14 - .../networkinterfaces/model_flowlog.go | 14 - .../model_flowlogformatparameters.go | 9 - .../model_flowlogpropertiesformat.go | 15 - .../model_frontendipconfiguration.go | 17 - ...frontendipconfigurationpropertiesformat.go | 19 - ...odel_gatewayloadbalancertunnelinterface.go | 11 - .../networkinterfaces/model_inboundnatpool.go | 12 - .../model_inboundnatpoolpropertiesformat.go | 16 - .../networkinterfaces/model_inboundnatrule.go | 12 - .../model_inboundnatrulepropertiesformat.go | 19 - .../model_ipconfiguration.go | 11 - .../model_ipconfigurationprofile.go | 12 - ..._ipconfigurationprofilepropertiesformat.go | 9 - .../model_ipconfigurationpropertiesformat.go | 12 - .../networkinterfaces/model_iptag.go | 9 - .../networkinterfaces/model_loadbalancer.go | 20 - .../model_loadbalancerbackendaddress.go | 9 - ...dbalancerbackendaddresspropertiesformat.go | 14 - .../model_loadbalancerpropertiesformat.go | 16 - .../model_loadbalancersku.go | 9 - .../model_loadbalancingrule.go | 12 - ...model_loadbalancingrulepropertiesformat.go | 20 - .../networkinterfaces/model_natgateway.go | 20 - .../model_natgatewaypropertiesformat.go | 13 - .../networkinterfaces/model_natgatewaysku.go | 8 - .../model_natruleportmapping.go | 10 - .../model_networkinterface.go | 19 - .../model_networkinterfacednssettings.go | 12 - .../model_networkinterfaceipconfiguration.go | 12 - ...gurationprivatelinkconnectionproperties.go | 10 - ...nterfaceipconfigurationpropertiesformat.go | 22 - .../model_networkinterfacepropertiesformat.go | 29 - .../model_networkinterfacetapconfiguration.go | 12 - ...terfacetapconfigurationpropertiesformat.go | 9 - .../model_networksecuritygroup.go | 14 - ...el_networksecuritygrouppropertiesformat.go | 15 - .../networkinterfaces/model_outboundrule.go | 12 - .../model_outboundrulepropertiesformat.go | 14 - .../model_privateendpoint.go | 19 - .../model_privateendpointconnection.go | 12 - ...del_privateendpointconnectionproperties.go | 12 - .../model_privateendpointipconfiguration.go | 11 - ...rivateendpointipconfigurationproperties.go | 10 - .../model_privateendpointproperties.go | 16 - .../model_privatelinkservice.go | 19 - .../model_privatelinkserviceconnection.go | 12 - ..._privatelinkserviceconnectionproperties.go | 12 - ...model_privatelinkserviceconnectionstate.go | 10 - ...model_privatelinkserviceipconfiguration.go | 12 - ...atelinkserviceipconfigurationproperties.go | 13 - .../model_privatelinkserviceproperties.go | 17 - .../networkinterfaces/model_probe.go | 12 - .../model_probepropertiesformat.go | 15 - .../model_publicipaddress.go | 22 - .../model_publicipaddressdnssettings.go | 11 - .../model_publicipaddresspropertiesformat.go | 23 - .../model_publicipaddresssku.go | 9 - .../model_resourcenavigationlink.go | 12 - .../model_resourcenavigationlinkformat.go | 10 - .../networkinterfaces/model_resourceset.go | 8 - .../model_retentionpolicyparameters.go | 9 - .../networkinterfaces/model_route.go | 12 - .../model_routepropertiesformat.go | 12 - .../networkinterfaces/model_routetable.go | 14 - .../model_routetablepropertiesformat.go | 12 - .../networkinterfaces/model_securityrule.go | 12 - .../model_securityrulepropertiesformat.go | 23 - .../model_serviceassociationlink.go | 12 - ..._serviceassociationlinkpropertiesformat.go | 12 - ...model_servicedelegationpropertiesformat.go | 10 - .../model_serviceendpointpolicy.go | 15 - .../model_serviceendpointpolicydefinition.go | 12 - ...ndpointpolicydefinitionpropertiesformat.go | 11 - ...l_serviceendpointpolicypropertiesformat.go | 13 - .../model_serviceendpointpropertiesformat.go | 10 - .../networkinterfaces/model_subnet.go | 12 - .../model_subnetpropertiesformat.go | 28 - .../networkinterfaces/model_subresource.go | 8 - .../networkinterfaces/model_tagsobject.go | 8 - ...trafficanalyticsconfigurationproperties.go | 12 - .../model_trafficanalyticsproperties.go | 8 - .../model_virtualnetworktap.go | 14 - ...model_virtualnetworktappropertiesformat.go | 13 - .../networkinterfaces/predicates.go | 152 -- .../2023-11-01/networkinterfaces/version.go | 10 - .../2023-11-01/publicipaddresses/README.md | 133 -- .../2023-11-01/publicipaddresses/client.go | 26 - .../2023-11-01/publicipaddresses/constants.go | 1239 ------------- .../method_createorupdate.go | 76 - .../method_ddosprotectionstatus.go | 72 - .../publicipaddresses/method_delete.go | 72 - .../publicipaddresses/method_get.go | 84 - .../publicipaddresses/method_list.go | 106 -- .../publicipaddresses/method_listall.go | 106 -- .../publicipaddresses/method_updatetags.go | 58 - .../model_applicationgatewaybackendaddress.go | 9 - ...el_applicationgatewaybackendaddresspool.go | 12 - ...tewaybackendaddresspoolpropertiesformat.go | 10 - ...model_applicationgatewayipconfiguration.go | 12 - ...ngatewayipconfigurationpropertiesformat.go | 9 - .../model_applicationsecuritygroup.go | 14 - ...pplicationsecuritygrouppropertiesformat.go | 9 - .../model_backendaddresspool.go | 12 - ...odel_backendaddresspoolpropertiesformat.go | 19 - .../model_customdnsconfigpropertiesformat.go | 9 - .../publicipaddresses/model_ddossettings.go | 9 - .../publicipaddresses/model_delegation.go | 12 - .../publicipaddresses/model_flowlog.go | 14 - .../model_flowlogformatparameters.go | 9 - .../model_flowlogpropertiesformat.go | 15 - .../model_frontendipconfiguration.go | 17 - ...frontendipconfigurationpropertiesformat.go | 19 - ...odel_gatewayloadbalancertunnelinterface.go | 11 - .../publicipaddresses/model_inboundnatrule.go | 12 - .../model_inboundnatrulepropertiesformat.go | 19 - .../model_ipconfiguration.go | 11 - .../model_ipconfigurationprofile.go | 12 - ..._ipconfigurationprofilepropertiesformat.go | 9 - .../model_ipconfigurationpropertiesformat.go | 12 - .../publicipaddresses/model_iptag.go | 9 - .../model_loadbalancerbackendaddress.go | 9 - ...dbalancerbackendaddresspropertiesformat.go | 14 - .../publicipaddresses/model_natgateway.go | 20 - .../model_natgatewaypropertiesformat.go | 13 - .../publicipaddresses/model_natgatewaysku.go | 8 - .../model_natruleportmapping.go | 10 - .../model_networkinterface.go | 19 - .../model_networkinterfacednssettings.go | 12 - .../model_networkinterfaceipconfiguration.go | 12 - ...gurationprivatelinkconnectionproperties.go | 10 - ...nterfaceipconfigurationpropertiesformat.go | 22 - .../model_networkinterfacepropertiesformat.go | 29 - .../model_networkinterfacetapconfiguration.go | 12 - ...terfacetapconfigurationpropertiesformat.go | 9 - .../model_networksecuritygroup.go | 14 - ...el_networksecuritygrouppropertiesformat.go | 15 - .../model_privateendpoint.go | 19 - .../model_privateendpointconnection.go | 12 - ...del_privateendpointconnectionproperties.go | 12 - .../model_privateendpointipconfiguration.go | 11 - ...rivateendpointipconfigurationproperties.go | 10 - .../model_privateendpointproperties.go | 16 - .../model_privatelinkservice.go | 19 - .../model_privatelinkserviceconnection.go | 12 - ..._privatelinkserviceconnectionproperties.go | 12 - ...model_privatelinkserviceconnectionstate.go | 10 - ...model_privatelinkserviceipconfiguration.go | 12 - ...atelinkserviceipconfigurationproperties.go | 13 - .../model_privatelinkserviceproperties.go | 17 - .../model_publicipaddress.go | 22 - .../model_publicipaddressdnssettings.go | 11 - .../model_publicipaddresspropertiesformat.go | 23 - .../model_publicipaddresssku.go | 9 - ...odel_publicipddosprotectionstatusresult.go | 11 - .../model_resourcenavigationlink.go | 12 - .../model_resourcenavigationlinkformat.go | 10 - .../publicipaddresses/model_resourceset.go | 8 - .../model_retentionpolicyparameters.go | 9 - .../publicipaddresses/model_route.go | 12 - .../model_routepropertiesformat.go | 12 - .../publicipaddresses/model_routetable.go | 14 - .../model_routetablepropertiesformat.go | 12 - .../publicipaddresses/model_securityrule.go | 12 - .../model_securityrulepropertiesformat.go | 23 - .../model_serviceassociationlink.go | 12 - ..._serviceassociationlinkpropertiesformat.go | 12 - ...model_servicedelegationpropertiesformat.go | 10 - .../model_serviceendpointpolicy.go | 15 - .../model_serviceendpointpolicydefinition.go | 12 - ...ndpointpolicydefinitionpropertiesformat.go | 11 - ...l_serviceendpointpolicypropertiesformat.go | 13 - .../model_serviceendpointpropertiesformat.go | 10 - .../publicipaddresses/model_subnet.go | 12 - .../model_subnetpropertiesformat.go | 28 - .../publicipaddresses/model_subresource.go | 8 - .../publicipaddresses/model_tagsobject.go | 8 - ...trafficanalyticsconfigurationproperties.go | 12 - .../model_trafficanalyticsproperties.go | 8 - .../model_virtualnetworktap.go | 14 - ...model_virtualnetworktappropertiesformat.go | 13 - .../publicipaddresses/predicates.go | 37 - .../2023-11-01/publicipaddresses/version.go | 10 - .../2023-11-01/virtualnetworks/README.md | 239 --- .../2023-11-01/virtualnetworks/client.go | 26 - .../2023-11-01/virtualnetworks/constants.go | 1371 --------------- .../virtualnetworks/method_createorupdate.go | 76 - .../virtualnetworks/method_delete.go | 72 - .../2023-11-01/virtualnetworks/method_get.go | 84 - .../2023-11-01/virtualnetworks/method_list.go | 106 -- .../virtualnetworks/method_listall.go | 106 -- .../method_resourcenavigationlinkslist.go | 106 -- .../method_serviceassociationlinkslist.go | 106 -- .../method_subnetspreparenetworkpolicies.go | 75 - .../method_subnetsunpreparenetworkpolicies.go | 75 - .../virtualnetworks/method_updatetags.go | 58 - ...rtualnetworkscheckipaddressavailability.go | 84 - ...virtualnetworkslistddosprotectionstatus.go | 123 -- .../method_virtualnetworkslistusage.go | 106 -- .../virtualnetworks/model_addressspace.go | 8 - .../model_applicationgatewaybackendaddress.go | 9 - ...el_applicationgatewaybackendaddresspool.go | 12 - ...tewaybackendaddresspoolpropertiesformat.go | 10 - ...model_applicationgatewayipconfiguration.go | 12 - ...ngatewayipconfigurationpropertiesformat.go | 9 - .../model_applicationsecuritygroup.go | 14 - ...pplicationsecuritygrouppropertiesformat.go | 9 - .../model_backendaddresspool.go | 12 - ...odel_backendaddresspoolpropertiesformat.go | 19 - .../model_customdnsconfigpropertiesformat.go | 9 - .../virtualnetworks/model_ddossettings.go | 9 - .../virtualnetworks/model_delegation.go | 12 - .../virtualnetworks/model_dhcpoptions.go | 8 - .../virtualnetworks/model_flowlog.go | 14 - .../model_flowlogformatparameters.go | 9 - .../model_flowlogpropertiesformat.go | 15 - .../model_frontendipconfiguration.go | 17 - ...frontendipconfigurationpropertiesformat.go | 19 - ...odel_gatewayloadbalancertunnelinterface.go | 11 - .../virtualnetworks/model_inboundnatrule.go | 12 - .../model_inboundnatrulepropertiesformat.go | 19 - .../model_ipaddressavailabilityresult.go | 10 - .../virtualnetworks/model_ipconfiguration.go | 11 - .../model_ipconfigurationprofile.go | 12 - ..._ipconfigurationprofilepropertiesformat.go | 9 - .../model_ipconfigurationpropertiesformat.go | 12 - .../2023-11-01/virtualnetworks/model_iptag.go | 9 - .../model_loadbalancerbackendaddress.go | 9 - ...dbalancerbackendaddresspropertiesformat.go | 14 - .../virtualnetworks/model_natgateway.go | 20 - .../model_natgatewaypropertiesformat.go | 13 - .../virtualnetworks/model_natgatewaysku.go | 8 - .../model_natruleportmapping.go | 10 - .../model_networkintentpolicy.go | 13 - .../model_networkintentpolicyconfiguration.go | 9 - .../virtualnetworks/model_networkinterface.go | 19 - .../model_networkinterfacednssettings.go | 12 - .../model_networkinterfaceipconfiguration.go | 12 - ...gurationprivatelinkconnectionproperties.go | 10 - ...nterfaceipconfigurationpropertiesformat.go | 22 - .../model_networkinterfacepropertiesformat.go | 29 - .../model_networkinterfacetapconfiguration.go | 12 - ...terfacetapconfigurationpropertiesformat.go | 9 - .../model_networksecuritygroup.go | 14 - ...el_networksecuritygrouppropertiesformat.go | 15 - .../model_preparenetworkpoliciesrequest.go | 9 - .../virtualnetworks/model_privateendpoint.go | 19 - .../model_privateendpointconnection.go | 12 - ...del_privateendpointconnectionproperties.go | 12 - .../model_privateendpointipconfiguration.go | 11 - ...rivateendpointipconfigurationproperties.go | 10 - .../model_privateendpointproperties.go | 16 - .../model_privatelinkservice.go | 19 - .../model_privatelinkserviceconnection.go | 12 - ..._privatelinkserviceconnectionproperties.go | 12 - ...model_privatelinkserviceconnectionstate.go | 10 - ...model_privatelinkserviceipconfiguration.go | 12 - ...atelinkserviceipconfigurationproperties.go | 13 - .../model_privatelinkserviceproperties.go | 17 - .../virtualnetworks/model_publicipaddress.go | 22 - .../model_publicipaddressdnssettings.go | 11 - .../model_publicipaddresspropertiesformat.go | 23 - .../model_publicipaddresssku.go | 9 - ...odel_publicipddosprotectionstatusresult.go | 11 - .../model_resourcenavigationlink.go | 12 - .../model_resourcenavigationlinkformat.go | 10 - .../virtualnetworks/model_resourceset.go | 8 - .../model_retentionpolicyparameters.go | 9 - .../2023-11-01/virtualnetworks/model_route.go | 12 - .../model_routepropertiesformat.go | 12 - .../virtualnetworks/model_routetable.go | 14 - .../model_routetablepropertiesformat.go | 12 - .../virtualnetworks/model_securityrule.go | 12 - .../model_securityrulepropertiesformat.go | 23 - .../model_serviceassociationlink.go | 12 - ..._serviceassociationlinkpropertiesformat.go | 12 - ...model_servicedelegationpropertiesformat.go | 10 - .../model_serviceendpointpolicy.go | 15 - .../model_serviceendpointpolicydefinition.go | 12 - ...ndpointpolicydefinitionpropertiesformat.go | 11 - ...l_serviceendpointpolicypropertiesformat.go | 13 - .../model_serviceendpointpropertiesformat.go | 10 - .../virtualnetworks/model_subnet.go | 12 - .../model_subnetpropertiesformat.go | 28 - .../virtualnetworks/model_subresource.go | 8 - .../virtualnetworks/model_tagsobject.go | 8 - ...trafficanalyticsconfigurationproperties.go | 12 - .../model_trafficanalyticsproperties.go | 8 - .../model_unpreparenetworkpoliciesrequest.go | 8 - .../virtualnetworks/model_virtualnetwork.go | 19 - .../model_virtualnetworkbgpcommunities.go | 9 - .../model_virtualnetworkencryption.go | 9 - .../model_virtualnetworkpeering.go | 12 - ...l_virtualnetworkpeeringpropertiesformat.go | 27 - .../model_virtualnetworkpropertiesformat.go | 21 - .../model_virtualnetworktap.go | 14 - ...model_virtualnetworktappropertiesformat.go | 13 - .../model_virtualnetworkusage.go | 12 - .../model_virtualnetworkusagename.go | 9 - .../2023-11-01/virtualnetworks/predicates.go | 144 -- .../2023-11-01/virtualnetworks/version.go | 10 - vendor/modules.txt | 3 - 349 files changed, 13713 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_providercloudservice.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstance.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstancenetworkinterface.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_tapconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachine.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachinescaleset.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getcloudservicenetworkinterface.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_geteffectiveroutetable.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listall.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationscreateorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationsdelete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_updatetags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddresspool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddresspoolpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewayipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewayipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationsecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationsecuritygrouppropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_backendaddresspool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_backendaddresspoolpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_customdnsconfigpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ddossettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_delegation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecuritygroupassociation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecurityrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectiveroute.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlog.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlogformatparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlogpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_frontendipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_frontendipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_gatewayloadbalancertunnelinterface.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatpool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatpoolpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatrulepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationprofilepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_iptag.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancer.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerbackendaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerbackendaddresspropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancersku.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancingrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancingrulepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgatewaypropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgatewaysku.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natruleportmapping.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterface.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacednssettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacetapconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacetapconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networksecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networksecuritygrouppropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_outboundrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_outboundrulepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpoint.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointipconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkservice.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnectionstate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceipconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_probe.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_probepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddressdnssettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddresspropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddresssku.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourcenavigationlink.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourcenavigationlinkformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourceset.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_retentionpolicyparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_route.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routetable.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routetablepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_securityrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_securityrulepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceassociationlink.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceassociationlinkpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_servicedelegationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicy.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicydefinition.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicydefinitionpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicypropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subnet.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subnetpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_trafficanalyticsconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_trafficanalyticsproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_virtualnetworktap.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_virtualnetworktappropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_ddosprotectionstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_listall.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_updatetags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddresspool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewayipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationsecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationsecuritygrouppropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_backendaddresspool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_backendaddresspoolpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_customdnsconfigpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ddossettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_delegation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlog.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlogformatparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlogpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_frontendipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_frontendipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_gatewayloadbalancertunnelinterface.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_inboundnatrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_inboundnatrulepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationprofilepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_iptag.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_loadbalancerbackendaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgatewaypropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgatewaysku.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natruleportmapping.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterface.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacednssettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacetapconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networksecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networksecuritygrouppropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpoint.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointipconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkservice.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnectionstate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceipconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddressdnssettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddresspropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddresssku.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipddosprotectionstatusresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourcenavigationlink.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourcenavigationlinkformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourceset.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_retentionpolicyparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_route.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routetable.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routetablepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_securityrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_securityrulepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceassociationlink.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceassociationlinkpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_servicedelegationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicy.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicydefinition.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicypropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subnet.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subnetpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_trafficanalyticsconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_trafficanalyticsproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_virtualnetworktap.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_virtualnetworktappropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/version.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/README.md delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/client.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_createorupdate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_delete.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_get.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_list.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_listall.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_resourcenavigationlinkslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_serviceassociationlinkslist.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_subnetspreparenetworkpolicies.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_subnetsunpreparenetworkpolicies.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_updatetags.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistusage.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_addressspace.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddresspool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddresspoolpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewayipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewayipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationsecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationsecuritygrouppropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_backendaddresspool.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_backendaddresspoolpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_customdnsconfigpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ddossettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_delegation.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_dhcpoptions.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlog.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlogformatparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlogpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_frontendipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_frontendipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_gatewayloadbalancertunnelinterface.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_inboundnatrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_inboundnatrulepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipaddressavailabilityresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationprofile.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationprofilepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_iptag.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_loadbalancerbackendaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_loadbalancerbackendaddresspropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgateway.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgatewaypropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgatewaysku.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natruleportmapping.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkintentpolicy.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkintentpolicyconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterface.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacednssettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacetapconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacetapconfigurationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networksecuritygroup.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networksecuritygrouppropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_preparenetworkpoliciesrequest.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpoint.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointipconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkservice.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnection.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnectionproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnectionstate.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceipconfiguration.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceipconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddress.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddressdnssettings.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddresspropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddresssku.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipddosprotectionstatusresult.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourcenavigationlink.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourcenavigationlinkformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourceset.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_retentionpolicyparameters.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_route.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routetable.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routetablepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_securityrule.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_securityrulepropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceassociationlink.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceassociationlinkpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_servicedelegationpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicy.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicydefinition.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicydefinitionpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicypropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subnet.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subnetpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subresource.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_tagsobject.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_trafficanalyticsconfigurationproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_trafficanalyticsproperties.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_unpreparenetworkpoliciesrequest.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetwork.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkbgpcommunities.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkencryption.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpeering.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpeeringpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworktap.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworktappropertiesformat.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkusage.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkusagename.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/predicates.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/version.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/README.md deleted file mode 100644 index b5dc59ad7124..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/README.md +++ /dev/null @@ -1,400 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces` Documentation - -The `networkinterfaces` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" -``` - - -### Client Initialization - -```go -client := networkinterfaces.NewNetworkInterfacesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkInterfacesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -payload := networkinterfaces.NetworkInterface{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkInterfacesClient.Delete` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkInterfacesClient.Get` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -read, err := client.Get(ctx, id, networkinterfaces.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkInterfacesClient.GetCloudServiceNetworkInterface` - -```go -ctx := context.TODO() -id := networkinterfaces.NewRoleInstanceNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName", "networkInterfaceName") - -read, err := client.GetCloudServiceNetworkInterface(ctx, id, networkinterfaces.DefaultGetCloudServiceNetworkInterfaceOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkInterfacesClient.GetEffectiveRouteTable` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -// alternatively `client.GetEffectiveRouteTable(ctx, id)` can be used to do batched pagination -items, err := client.GetEffectiveRouteTableComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.GetVirtualMachineScaleSetIPConfiguration` - -```go -ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName", "networkInterfaceName", "ipConfigurationName") - -read, err := client.GetVirtualMachineScaleSetIPConfiguration(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetIPConfigurationOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkInterfacesClient.GetVirtualMachineScaleSetNetworkInterface` - -```go -ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName", "networkInterfaceName") - -read, err := client.GetVirtualMachineScaleSetNetworkInterface(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetNetworkInterfaceOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkInterfacesClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.ListCloudServiceNetworkInterfaces` - -```go -ctx := context.TODO() -id := networkinterfaces.NewProviderCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName") - -// alternatively `client.ListCloudServiceNetworkInterfaces(ctx, id)` can be used to do batched pagination -items, err := client.ListCloudServiceNetworkInterfacesComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.ListCloudServiceRoleInstanceNetworkInterfaces` - -```go -ctx := context.TODO() -id := networkinterfaces.NewRoleInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName") - -// alternatively `client.ListCloudServiceRoleInstanceNetworkInterfaces(ctx, id)` can be used to do batched pagination -items, err := client.ListCloudServiceRoleInstanceNetworkInterfacesComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.ListEffectiveNetworkSecurityGroups` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -// alternatively `client.ListEffectiveNetworkSecurityGroups(ctx, id)` can be used to do batched pagination -items, err := client.ListEffectiveNetworkSecurityGroupsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.ListVirtualMachineScaleSetIPConfigurations` - -```go -ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName", "networkInterfaceName") - -// alternatively `client.ListVirtualMachineScaleSetIPConfigurations(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions())` can be used to do batched pagination -items, err := client.ListVirtualMachineScaleSetIPConfigurationsComplete(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.ListVirtualMachineScaleSetNetworkInterfaces` - -```go -ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") - -// alternatively `client.ListVirtualMachineScaleSetNetworkInterfaces(ctx, id)` can be used to do batched pagination -items, err := client.ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.ListVirtualMachineScaleSetVMNetworkInterfaces` - -```go -ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName") - -// alternatively `client.ListVirtualMachineScaleSetVMNetworkInterfaces(ctx, id)` can be used to do batched pagination -items, err := client.ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.NetworkInterfaceIPConfigurationsGet` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "ipConfigurationName") - -read, err := client.NetworkInterfaceIPConfigurationsGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkInterfacesClient.NetworkInterfaceIPConfigurationsList` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -// alternatively `client.NetworkInterfaceIPConfigurationsList(ctx, id)` can be used to do batched pagination -items, err := client.NetworkInterfaceIPConfigurationsListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.NetworkInterfaceLoadBalancersList` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -// alternatively `client.NetworkInterfaceLoadBalancersList(ctx, id)` can be used to do batched pagination -items, err := client.NetworkInterfaceLoadBalancersListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.NetworkInterfaceTapConfigurationsCreateOrUpdate` - -```go -ctx := context.TODO() -id := networkinterfaces.NewTapConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "tapConfigurationName") - -payload := networkinterfaces.NetworkInterfaceTapConfiguration{ - // ... -} - - -if err := client.NetworkInterfaceTapConfigurationsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkInterfacesClient.NetworkInterfaceTapConfigurationsDelete` - -```go -ctx := context.TODO() -id := networkinterfaces.NewTapConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "tapConfigurationName") - -if err := client.NetworkInterfaceTapConfigurationsDeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkInterfacesClient.NetworkInterfaceTapConfigurationsGet` - -```go -ctx := context.TODO() -id := networkinterfaces.NewTapConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "tapConfigurationName") - -read, err := client.NetworkInterfaceTapConfigurationsGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkInterfacesClient.NetworkInterfaceTapConfigurationsList` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -// alternatively `client.NetworkInterfaceTapConfigurationsList(ctx, id)` can be used to do batched pagination -items, err := client.NetworkInterfaceTapConfigurationsListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.UpdateTags` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -payload := networkinterfaces.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/client.go deleted file mode 100644 index 1edd1a6838a0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package networkinterfaces - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfacesClient struct { - Client *resourcemanager.Client -} - -func NewNetworkInterfacesClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkInterfacesClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "networkinterfaces", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating NetworkInterfacesClient: %+v", err) - } - - return &NetworkInterfacesClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/constants.go deleted file mode 100644 index ca36c67f611c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/constants.go +++ /dev/null @@ -1,1547 +0,0 @@ -package networkinterfaces - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosSettingsProtectionMode string - -const ( - DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" - DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" - DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" -) - -func PossibleValuesForDdosSettingsProtectionMode() []string { - return []string{ - string(DdosSettingsProtectionModeDisabled), - string(DdosSettingsProtectionModeEnabled), - string(DdosSettingsProtectionModeVirtualNetworkInherited), - } -} - -func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDdosSettingsProtectionMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { - vals := map[string]DdosSettingsProtectionMode{ - "disabled": DdosSettingsProtectionModeDisabled, - "enabled": DdosSettingsProtectionModeEnabled, - "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DdosSettingsProtectionMode(input) - return &out, nil -} - -type DeleteOptions string - -const ( - DeleteOptionsDelete DeleteOptions = "Delete" - DeleteOptionsDetach DeleteOptions = "Detach" -) - -func PossibleValuesForDeleteOptions() []string { - return []string{ - string(DeleteOptionsDelete), - string(DeleteOptionsDetach), - } -} - -func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDeleteOptions(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDeleteOptions(input string) (*DeleteOptions, error) { - vals := map[string]DeleteOptions{ - "delete": DeleteOptionsDelete, - "detach": DeleteOptionsDetach, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DeleteOptions(input) - return &out, nil -} - -type EffectiveRouteSource string - -const ( - EffectiveRouteSourceDefault EffectiveRouteSource = "Default" - EffectiveRouteSourceUnknown EffectiveRouteSource = "Unknown" - EffectiveRouteSourceUser EffectiveRouteSource = "User" - EffectiveRouteSourceVirtualNetworkGateway EffectiveRouteSource = "VirtualNetworkGateway" -) - -func PossibleValuesForEffectiveRouteSource() []string { - return []string{ - string(EffectiveRouteSourceDefault), - string(EffectiveRouteSourceUnknown), - string(EffectiveRouteSourceUser), - string(EffectiveRouteSourceVirtualNetworkGateway), - } -} - -func (s *EffectiveRouteSource) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseEffectiveRouteSource(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseEffectiveRouteSource(input string) (*EffectiveRouteSource, error) { - vals := map[string]EffectiveRouteSource{ - "default": EffectiveRouteSourceDefault, - "unknown": EffectiveRouteSourceUnknown, - "user": EffectiveRouteSourceUser, - "virtualnetworkgateway": EffectiveRouteSourceVirtualNetworkGateway, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := EffectiveRouteSource(input) - return &out, nil -} - -type EffectiveRouteState string - -const ( - EffectiveRouteStateActive EffectiveRouteState = "Active" - EffectiveRouteStateInvalid EffectiveRouteState = "Invalid" -) - -func PossibleValuesForEffectiveRouteState() []string { - return []string{ - string(EffectiveRouteStateActive), - string(EffectiveRouteStateInvalid), - } -} - -func (s *EffectiveRouteState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseEffectiveRouteState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseEffectiveRouteState(input string) (*EffectiveRouteState, error) { - vals := map[string]EffectiveRouteState{ - "active": EffectiveRouteStateActive, - "invalid": EffectiveRouteStateInvalid, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := EffectiveRouteState(input) - return &out, nil -} - -type EffectiveSecurityRuleProtocol string - -const ( - EffectiveSecurityRuleProtocolAll EffectiveSecurityRuleProtocol = "All" - EffectiveSecurityRuleProtocolTcp EffectiveSecurityRuleProtocol = "Tcp" - EffectiveSecurityRuleProtocolUdp EffectiveSecurityRuleProtocol = "Udp" -) - -func PossibleValuesForEffectiveSecurityRuleProtocol() []string { - return []string{ - string(EffectiveSecurityRuleProtocolAll), - string(EffectiveSecurityRuleProtocolTcp), - string(EffectiveSecurityRuleProtocolUdp), - } -} - -func (s *EffectiveSecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseEffectiveSecurityRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseEffectiveSecurityRuleProtocol(input string) (*EffectiveSecurityRuleProtocol, error) { - vals := map[string]EffectiveSecurityRuleProtocol{ - "all": EffectiveSecurityRuleProtocolAll, - "tcp": EffectiveSecurityRuleProtocolTcp, - "udp": EffectiveSecurityRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := EffectiveSecurityRuleProtocol(input) - return &out, nil -} - -type FlowLogFormatType string - -const ( - FlowLogFormatTypeJSON FlowLogFormatType = "JSON" -) - -func PossibleValuesForFlowLogFormatType() []string { - return []string{ - string(FlowLogFormatTypeJSON), - } -} - -func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseFlowLogFormatType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { - vals := map[string]FlowLogFormatType{ - "json": FlowLogFormatTypeJSON, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := FlowLogFormatType(input) - return &out, nil -} - -type GatewayLoadBalancerTunnelInterfaceType string - -const ( - GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" - GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" - GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" -) - -func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { - return []string{ - string(GatewayLoadBalancerTunnelInterfaceTypeExternal), - string(GatewayLoadBalancerTunnelInterfaceTypeInternal), - string(GatewayLoadBalancerTunnelInterfaceTypeNone), - } -} - -func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { - vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ - "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, - "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, - "none": GatewayLoadBalancerTunnelInterfaceTypeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GatewayLoadBalancerTunnelInterfaceType(input) - return &out, nil -} - -type GatewayLoadBalancerTunnelProtocol string - -const ( - GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" - GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" - GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" -) - -func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { - return []string{ - string(GatewayLoadBalancerTunnelProtocolNative), - string(GatewayLoadBalancerTunnelProtocolNone), - string(GatewayLoadBalancerTunnelProtocolVXLAN), - } -} - -func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { - vals := map[string]GatewayLoadBalancerTunnelProtocol{ - "native": GatewayLoadBalancerTunnelProtocolNative, - "none": GatewayLoadBalancerTunnelProtocolNone, - "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GatewayLoadBalancerTunnelProtocol(input) - return &out, nil -} - -type IPAllocationMethod string - -const ( - IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" - IPAllocationMethodStatic IPAllocationMethod = "Static" -) - -func PossibleValuesForIPAllocationMethod() []string { - return []string{ - string(IPAllocationMethodDynamic), - string(IPAllocationMethodStatic), - } -} - -func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPAllocationMethod(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { - vals := map[string]IPAllocationMethod{ - "dynamic": IPAllocationMethodDynamic, - "static": IPAllocationMethodStatic, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPAllocationMethod(input) - return &out, nil -} - -type IPVersion string - -const ( - IPVersionIPvFour IPVersion = "IPv4" - IPVersionIPvSix IPVersion = "IPv6" -) - -func PossibleValuesForIPVersion() []string { - return []string{ - string(IPVersionIPvFour), - string(IPVersionIPvSix), - } -} - -func (s *IPVersion) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPVersion(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPVersion(input string) (*IPVersion, error) { - vals := map[string]IPVersion{ - "ipv4": IPVersionIPvFour, - "ipv6": IPVersionIPvSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPVersion(input) - return &out, nil -} - -type LoadBalancerBackendAddressAdminState string - -const ( - LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" - LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" - LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" -) - -func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { - return []string{ - string(LoadBalancerBackendAddressAdminStateDown), - string(LoadBalancerBackendAddressAdminStateNone), - string(LoadBalancerBackendAddressAdminStateUp), - } -} - -func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerBackendAddressAdminState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { - vals := map[string]LoadBalancerBackendAddressAdminState{ - "down": LoadBalancerBackendAddressAdminStateDown, - "none": LoadBalancerBackendAddressAdminStateNone, - "up": LoadBalancerBackendAddressAdminStateUp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerBackendAddressAdminState(input) - return &out, nil -} - -type LoadBalancerOutboundRuleProtocol string - -const ( - LoadBalancerOutboundRuleProtocolAll LoadBalancerOutboundRuleProtocol = "All" - LoadBalancerOutboundRuleProtocolTcp LoadBalancerOutboundRuleProtocol = "Tcp" - LoadBalancerOutboundRuleProtocolUdp LoadBalancerOutboundRuleProtocol = "Udp" -) - -func PossibleValuesForLoadBalancerOutboundRuleProtocol() []string { - return []string{ - string(LoadBalancerOutboundRuleProtocolAll), - string(LoadBalancerOutboundRuleProtocolTcp), - string(LoadBalancerOutboundRuleProtocolUdp), - } -} - -func (s *LoadBalancerOutboundRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerOutboundRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerOutboundRuleProtocol(input string) (*LoadBalancerOutboundRuleProtocol, error) { - vals := map[string]LoadBalancerOutboundRuleProtocol{ - "all": LoadBalancerOutboundRuleProtocolAll, - "tcp": LoadBalancerOutboundRuleProtocolTcp, - "udp": LoadBalancerOutboundRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerOutboundRuleProtocol(input) - return &out, nil -} - -type LoadBalancerSkuName string - -const ( - LoadBalancerSkuNameBasic LoadBalancerSkuName = "Basic" - LoadBalancerSkuNameGateway LoadBalancerSkuName = "Gateway" - LoadBalancerSkuNameStandard LoadBalancerSkuName = "Standard" -) - -func PossibleValuesForLoadBalancerSkuName() []string { - return []string{ - string(LoadBalancerSkuNameBasic), - string(LoadBalancerSkuNameGateway), - string(LoadBalancerSkuNameStandard), - } -} - -func (s *LoadBalancerSkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerSkuName(input string) (*LoadBalancerSkuName, error) { - vals := map[string]LoadBalancerSkuName{ - "basic": LoadBalancerSkuNameBasic, - "gateway": LoadBalancerSkuNameGateway, - "standard": LoadBalancerSkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerSkuName(input) - return &out, nil -} - -type LoadBalancerSkuTier string - -const ( - LoadBalancerSkuTierGlobal LoadBalancerSkuTier = "Global" - LoadBalancerSkuTierRegional LoadBalancerSkuTier = "Regional" -) - -func PossibleValuesForLoadBalancerSkuTier() []string { - return []string{ - string(LoadBalancerSkuTierGlobal), - string(LoadBalancerSkuTierRegional), - } -} - -func (s *LoadBalancerSkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerSkuTier(input string) (*LoadBalancerSkuTier, error) { - vals := map[string]LoadBalancerSkuTier{ - "global": LoadBalancerSkuTierGlobal, - "regional": LoadBalancerSkuTierRegional, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerSkuTier(input) - return &out, nil -} - -type LoadDistribution string - -const ( - LoadDistributionDefault LoadDistribution = "Default" - LoadDistributionSourceIP LoadDistribution = "SourceIP" - LoadDistributionSourceIPProtocol LoadDistribution = "SourceIPProtocol" -) - -func PossibleValuesForLoadDistribution() []string { - return []string{ - string(LoadDistributionDefault), - string(LoadDistributionSourceIP), - string(LoadDistributionSourceIPProtocol), - } -} - -func (s *LoadDistribution) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadDistribution(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadDistribution(input string) (*LoadDistribution, error) { - vals := map[string]LoadDistribution{ - "default": LoadDistributionDefault, - "sourceip": LoadDistributionSourceIP, - "sourceipprotocol": LoadDistributionSourceIPProtocol, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadDistribution(input) - return &out, nil -} - -type NatGatewaySkuName string - -const ( - NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" -) - -func PossibleValuesForNatGatewaySkuName() []string { - return []string{ - string(NatGatewaySkuNameStandard), - } -} - -func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNatGatewaySkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { - vals := map[string]NatGatewaySkuName{ - "standard": NatGatewaySkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NatGatewaySkuName(input) - return &out, nil -} - -type NetworkInterfaceAuxiliaryMode string - -const ( - NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" - NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" - NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" - NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" -) - -func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { - return []string{ - string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), - string(NetworkInterfaceAuxiliaryModeFloating), - string(NetworkInterfaceAuxiliaryModeMaxConnections), - string(NetworkInterfaceAuxiliaryModeNone), - } -} - -func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceAuxiliaryMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { - vals := map[string]NetworkInterfaceAuxiliaryMode{ - "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, - "floating": NetworkInterfaceAuxiliaryModeFloating, - "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, - "none": NetworkInterfaceAuxiliaryModeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceAuxiliaryMode(input) - return &out, nil -} - -type NetworkInterfaceAuxiliarySku string - -const ( - NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" - NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" - NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" - NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" - NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" -) - -func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { - return []string{ - string(NetworkInterfaceAuxiliarySkuAEight), - string(NetworkInterfaceAuxiliarySkuAFour), - string(NetworkInterfaceAuxiliarySkuAOne), - string(NetworkInterfaceAuxiliarySkuATwo), - string(NetworkInterfaceAuxiliarySkuNone), - } -} - -func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceAuxiliarySku(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { - vals := map[string]NetworkInterfaceAuxiliarySku{ - "a8": NetworkInterfaceAuxiliarySkuAEight, - "a4": NetworkInterfaceAuxiliarySkuAFour, - "a1": NetworkInterfaceAuxiliarySkuAOne, - "a2": NetworkInterfaceAuxiliarySkuATwo, - "none": NetworkInterfaceAuxiliarySkuNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceAuxiliarySku(input) - return &out, nil -} - -type NetworkInterfaceMigrationPhase string - -const ( - NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" - NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" - NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" - NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" - NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" -) - -func PossibleValuesForNetworkInterfaceMigrationPhase() []string { - return []string{ - string(NetworkInterfaceMigrationPhaseAbort), - string(NetworkInterfaceMigrationPhaseCommit), - string(NetworkInterfaceMigrationPhaseCommitted), - string(NetworkInterfaceMigrationPhaseNone), - string(NetworkInterfaceMigrationPhasePrepare), - } -} - -func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceMigrationPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { - vals := map[string]NetworkInterfaceMigrationPhase{ - "abort": NetworkInterfaceMigrationPhaseAbort, - "commit": NetworkInterfaceMigrationPhaseCommit, - "committed": NetworkInterfaceMigrationPhaseCommitted, - "none": NetworkInterfaceMigrationPhaseNone, - "prepare": NetworkInterfaceMigrationPhasePrepare, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceMigrationPhase(input) - return &out, nil -} - -type NetworkInterfaceNicType string - -const ( - NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" - NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" -) - -func PossibleValuesForNetworkInterfaceNicType() []string { - return []string{ - string(NetworkInterfaceNicTypeElastic), - string(NetworkInterfaceNicTypeStandard), - } -} - -func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceNicType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { - vals := map[string]NetworkInterfaceNicType{ - "elastic": NetworkInterfaceNicTypeElastic, - "standard": NetworkInterfaceNicTypeStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceNicType(input) - return &out, nil -} - -type ProbeProtocol string - -const ( - ProbeProtocolHTTP ProbeProtocol = "Http" - ProbeProtocolHTTPS ProbeProtocol = "Https" - ProbeProtocolTcp ProbeProtocol = "Tcp" -) - -func PossibleValuesForProbeProtocol() []string { - return []string{ - string(ProbeProtocolHTTP), - string(ProbeProtocolHTTPS), - string(ProbeProtocolTcp), - } -} - -func (s *ProbeProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProbeProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProbeProtocol(input string) (*ProbeProtocol, error) { - vals := map[string]ProbeProtocol{ - "http": ProbeProtocolHTTP, - "https": ProbeProtocolHTTPS, - "tcp": ProbeProtocolTcp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProbeProtocol(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type PublicIPAddressDnsSettingsDomainNameLabelScope string - -const ( - PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" -) - -func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { - return []string{ - string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), - } -} - -func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { - vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ - "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, - "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, - "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, - "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) - return &out, nil -} - -type PublicIPAddressMigrationPhase string - -const ( - PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" - PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" - PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" - PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" - PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" -) - -func PossibleValuesForPublicIPAddressMigrationPhase() []string { - return []string{ - string(PublicIPAddressMigrationPhaseAbort), - string(PublicIPAddressMigrationPhaseCommit), - string(PublicIPAddressMigrationPhaseCommitted), - string(PublicIPAddressMigrationPhaseNone), - string(PublicIPAddressMigrationPhasePrepare), - } -} - -func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressMigrationPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { - vals := map[string]PublicIPAddressMigrationPhase{ - "abort": PublicIPAddressMigrationPhaseAbort, - "commit": PublicIPAddressMigrationPhaseCommit, - "committed": PublicIPAddressMigrationPhaseCommitted, - "none": PublicIPAddressMigrationPhaseNone, - "prepare": PublicIPAddressMigrationPhasePrepare, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressMigrationPhase(input) - return &out, nil -} - -type PublicIPAddressSkuName string - -const ( - PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" - PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" -) - -func PossibleValuesForPublicIPAddressSkuName() []string { - return []string{ - string(PublicIPAddressSkuNameBasic), - string(PublicIPAddressSkuNameStandard), - } -} - -func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { - vals := map[string]PublicIPAddressSkuName{ - "basic": PublicIPAddressSkuNameBasic, - "standard": PublicIPAddressSkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressSkuName(input) - return &out, nil -} - -type PublicIPAddressSkuTier string - -const ( - PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" - PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" -) - -func PossibleValuesForPublicIPAddressSkuTier() []string { - return []string{ - string(PublicIPAddressSkuTierGlobal), - string(PublicIPAddressSkuTierRegional), - } -} - -func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { - vals := map[string]PublicIPAddressSkuTier{ - "global": PublicIPAddressSkuTierGlobal, - "regional": PublicIPAddressSkuTierRegional, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressSkuTier(input) - return &out, nil -} - -type RouteNextHopType string - -const ( - RouteNextHopTypeInternet RouteNextHopType = "Internet" - RouteNextHopTypeNone RouteNextHopType = "None" - RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" - RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" - RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" -) - -func PossibleValuesForRouteNextHopType() []string { - return []string{ - string(RouteNextHopTypeInternet), - string(RouteNextHopTypeNone), - string(RouteNextHopTypeVirtualAppliance), - string(RouteNextHopTypeVirtualNetworkGateway), - string(RouteNextHopTypeVnetLocal), - } -} - -func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseRouteNextHopType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseRouteNextHopType(input string) (*RouteNextHopType, error) { - vals := map[string]RouteNextHopType{ - "internet": RouteNextHopTypeInternet, - "none": RouteNextHopTypeNone, - "virtualappliance": RouteNextHopTypeVirtualAppliance, - "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, - "vnetlocal": RouteNextHopTypeVnetLocal, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := RouteNextHopType(input) - return &out, nil -} - -type SecurityRuleAccess string - -const ( - SecurityRuleAccessAllow SecurityRuleAccess = "Allow" - SecurityRuleAccessDeny SecurityRuleAccess = "Deny" -) - -func PossibleValuesForSecurityRuleAccess() []string { - return []string{ - string(SecurityRuleAccessAllow), - string(SecurityRuleAccessDeny), - } -} - -func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { - vals := map[string]SecurityRuleAccess{ - "allow": SecurityRuleAccessAllow, - "deny": SecurityRuleAccessDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleAccess(input) - return &out, nil -} - -type SecurityRuleDirection string - -const ( - SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" - SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" -) - -func PossibleValuesForSecurityRuleDirection() []string { - return []string{ - string(SecurityRuleDirectionInbound), - string(SecurityRuleDirectionOutbound), - } -} - -func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleDirection(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { - vals := map[string]SecurityRuleDirection{ - "inbound": SecurityRuleDirectionInbound, - "outbound": SecurityRuleDirectionOutbound, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleDirection(input) - return &out, nil -} - -type SecurityRuleProtocol string - -const ( - SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" - SecurityRuleProtocolAny SecurityRuleProtocol = "*" - SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" - SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" - SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" - SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" -) - -func PossibleValuesForSecurityRuleProtocol() []string { - return []string{ - string(SecurityRuleProtocolAh), - string(SecurityRuleProtocolAny), - string(SecurityRuleProtocolEsp), - string(SecurityRuleProtocolIcmp), - string(SecurityRuleProtocolTcp), - string(SecurityRuleProtocolUdp), - } -} - -func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { - vals := map[string]SecurityRuleProtocol{ - "ah": SecurityRuleProtocolAh, - "*": SecurityRuleProtocolAny, - "esp": SecurityRuleProtocolEsp, - "icmp": SecurityRuleProtocolIcmp, - "tcp": SecurityRuleProtocolTcp, - "udp": SecurityRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleProtocol(input) - return &out, nil -} - -type SharingScope string - -const ( - SharingScopeDelegatedServices SharingScope = "DelegatedServices" - SharingScopeTenant SharingScope = "Tenant" -) - -func PossibleValuesForSharingScope() []string { - return []string{ - string(SharingScopeDelegatedServices), - string(SharingScopeTenant), - } -} - -func (s *SharingScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSharingScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSharingScope(input string) (*SharingScope, error) { - vals := map[string]SharingScope{ - "delegatedservices": SharingScopeDelegatedServices, - "tenant": SharingScopeTenant, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SharingScope(input) - return &out, nil -} - -type SyncMode string - -const ( - SyncModeAutomatic SyncMode = "Automatic" - SyncModeManual SyncMode = "Manual" -) - -func PossibleValuesForSyncMode() []string { - return []string{ - string(SyncModeAutomatic), - string(SyncModeManual), - } -} - -func (s *SyncMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSyncMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSyncMode(input string) (*SyncMode, error) { - vals := map[string]SyncMode{ - "automatic": SyncModeAutomatic, - "manual": SyncModeManual, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SyncMode(input) - return &out, nil -} - -type TransportProtocol string - -const ( - TransportProtocolAll TransportProtocol = "All" - TransportProtocolTcp TransportProtocol = "Tcp" - TransportProtocolUdp TransportProtocol = "Udp" -) - -func PossibleValuesForTransportProtocol() []string { - return []string{ - string(TransportProtocolAll), - string(TransportProtocolTcp), - string(TransportProtocolUdp), - } -} - -func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseTransportProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseTransportProtocol(input string) (*TransportProtocol, error) { - vals := map[string]TransportProtocol{ - "all": TransportProtocolAll, - "tcp": TransportProtocolTcp, - "udp": TransportProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := TransportProtocol(input) - return &out, nil -} - -type VirtualNetworkPrivateEndpointNetworkPolicies string - -const ( - VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" - VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" - VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" - VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" -) - -func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { - return []string{ - string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), - } -} - -func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { - vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ - "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, - "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, - "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, - "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPrivateEndpointNetworkPolicies(input) - return &out, nil -} - -type VirtualNetworkPrivateLinkServiceNetworkPolicies string - -const ( - VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" - VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" -) - -func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { - return []string{ - string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), - string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), - } -} - -func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { - vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ - "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, - "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_providercloudservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_providercloudservice.go deleted file mode 100644 index d749e9a64f37..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_providercloudservice.go +++ /dev/null @@ -1,130 +0,0 @@ -package networkinterfaces - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&ProviderCloudServiceId{}) -} - -var _ resourceids.ResourceId = &ProviderCloudServiceId{} - -// ProviderCloudServiceId is a struct representing the Resource ID for a Provider Cloud Service -type ProviderCloudServiceId struct { - SubscriptionId string - ResourceGroupName string - CloudServiceName string -} - -// NewProviderCloudServiceID returns a new ProviderCloudServiceId struct -func NewProviderCloudServiceID(subscriptionId string, resourceGroupName string, cloudServiceName string) ProviderCloudServiceId { - return ProviderCloudServiceId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - CloudServiceName: cloudServiceName, - } -} - -// ParseProviderCloudServiceID parses 'input' into a ProviderCloudServiceId -func ParseProviderCloudServiceID(input string) (*ProviderCloudServiceId, error) { - parser := resourceids.NewParserFromResourceIdType(&ProviderCloudServiceId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ProviderCloudServiceId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseProviderCloudServiceIDInsensitively parses 'input' case-insensitively into a ProviderCloudServiceId -// note: this method should only be used for API response data and not user input -func ParseProviderCloudServiceIDInsensitively(input string) (*ProviderCloudServiceId, error) { - parser := resourceids.NewParserFromResourceIdType(&ProviderCloudServiceId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := ProviderCloudServiceId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *ProviderCloudServiceId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.CloudServiceName, ok = input.Parsed["cloudServiceName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "cloudServiceName", input) - } - - return nil -} - -// ValidateProviderCloudServiceID checks that 'input' can be parsed as a Provider Cloud Service ID -func ValidateProviderCloudServiceID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseProviderCloudServiceID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Provider Cloud Service ID -func (id ProviderCloudServiceId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/cloudServices/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.CloudServiceName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Provider Cloud Service ID -func (id ProviderCloudServiceId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), - resourceids.StaticSegment("staticCloudServices", "cloudServices", "cloudServices"), - resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceName"), - } -} - -// String returns a human-readable description of this Provider Cloud Service ID -func (id ProviderCloudServiceId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Cloud Service Name: %q", id.CloudServiceName), - } - return fmt.Sprintf("Provider Cloud Service (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstance.go deleted file mode 100644 index 49ded1dcadad..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstance.go +++ /dev/null @@ -1,139 +0,0 @@ -package networkinterfaces - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&RoleInstanceId{}) -} - -var _ resourceids.ResourceId = &RoleInstanceId{} - -// RoleInstanceId is a struct representing the Resource ID for a Role Instance -type RoleInstanceId struct { - SubscriptionId string - ResourceGroupName string - CloudServiceName string - RoleInstanceName string -} - -// NewRoleInstanceID returns a new RoleInstanceId struct -func NewRoleInstanceID(subscriptionId string, resourceGroupName string, cloudServiceName string, roleInstanceName string) RoleInstanceId { - return RoleInstanceId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - CloudServiceName: cloudServiceName, - RoleInstanceName: roleInstanceName, - } -} - -// ParseRoleInstanceID parses 'input' into a RoleInstanceId -func ParseRoleInstanceID(input string) (*RoleInstanceId, error) { - parser := resourceids.NewParserFromResourceIdType(&RoleInstanceId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RoleInstanceId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseRoleInstanceIDInsensitively parses 'input' case-insensitively into a RoleInstanceId -// note: this method should only be used for API response data and not user input -func ParseRoleInstanceIDInsensitively(input string) (*RoleInstanceId, error) { - parser := resourceids.NewParserFromResourceIdType(&RoleInstanceId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RoleInstanceId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *RoleInstanceId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.CloudServiceName, ok = input.Parsed["cloudServiceName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "cloudServiceName", input) - } - - if id.RoleInstanceName, ok = input.Parsed["roleInstanceName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "roleInstanceName", input) - } - - return nil -} - -// ValidateRoleInstanceID checks that 'input' can be parsed as a Role Instance ID -func ValidateRoleInstanceID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseRoleInstanceID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Role Instance ID -func (id RoleInstanceId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/cloudServices/%s/roleInstances/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.CloudServiceName, id.RoleInstanceName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Role Instance ID -func (id RoleInstanceId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), - resourceids.StaticSegment("staticCloudServices", "cloudServices", "cloudServices"), - resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceName"), - resourceids.StaticSegment("staticRoleInstances", "roleInstances", "roleInstances"), - resourceids.UserSpecifiedSegment("roleInstanceName", "roleInstanceName"), - } -} - -// String returns a human-readable description of this Role Instance ID -func (id RoleInstanceId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Cloud Service Name: %q", id.CloudServiceName), - fmt.Sprintf("Role Instance Name: %q", id.RoleInstanceName), - } - return fmt.Sprintf("Role Instance (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstancenetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstancenetworkinterface.go deleted file mode 100644 index a67d978ec638..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstancenetworkinterface.go +++ /dev/null @@ -1,148 +0,0 @@ -package networkinterfaces - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&RoleInstanceNetworkInterfaceId{}) -} - -var _ resourceids.ResourceId = &RoleInstanceNetworkInterfaceId{} - -// RoleInstanceNetworkInterfaceId is a struct representing the Resource ID for a Role Instance Network Interface -type RoleInstanceNetworkInterfaceId struct { - SubscriptionId string - ResourceGroupName string - CloudServiceName string - RoleInstanceName string - NetworkInterfaceName string -} - -// NewRoleInstanceNetworkInterfaceID returns a new RoleInstanceNetworkInterfaceId struct -func NewRoleInstanceNetworkInterfaceID(subscriptionId string, resourceGroupName string, cloudServiceName string, roleInstanceName string, networkInterfaceName string) RoleInstanceNetworkInterfaceId { - return RoleInstanceNetworkInterfaceId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - CloudServiceName: cloudServiceName, - RoleInstanceName: roleInstanceName, - NetworkInterfaceName: networkInterfaceName, - } -} - -// ParseRoleInstanceNetworkInterfaceID parses 'input' into a RoleInstanceNetworkInterfaceId -func ParseRoleInstanceNetworkInterfaceID(input string) (*RoleInstanceNetworkInterfaceId, error) { - parser := resourceids.NewParserFromResourceIdType(&RoleInstanceNetworkInterfaceId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RoleInstanceNetworkInterfaceId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseRoleInstanceNetworkInterfaceIDInsensitively parses 'input' case-insensitively into a RoleInstanceNetworkInterfaceId -// note: this method should only be used for API response data and not user input -func ParseRoleInstanceNetworkInterfaceIDInsensitively(input string) (*RoleInstanceNetworkInterfaceId, error) { - parser := resourceids.NewParserFromResourceIdType(&RoleInstanceNetworkInterfaceId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RoleInstanceNetworkInterfaceId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *RoleInstanceNetworkInterfaceId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.CloudServiceName, ok = input.Parsed["cloudServiceName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "cloudServiceName", input) - } - - if id.RoleInstanceName, ok = input.Parsed["roleInstanceName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "roleInstanceName", input) - } - - if id.NetworkInterfaceName, ok = input.Parsed["networkInterfaceName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkInterfaceName", input) - } - - return nil -} - -// ValidateRoleInstanceNetworkInterfaceID checks that 'input' can be parsed as a Role Instance Network Interface ID -func ValidateRoleInstanceNetworkInterfaceID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseRoleInstanceNetworkInterfaceID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Role Instance Network Interface ID -func (id RoleInstanceNetworkInterfaceId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/cloudServices/%s/roleInstances/%s/networkInterfaces/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.CloudServiceName, id.RoleInstanceName, id.NetworkInterfaceName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Role Instance Network Interface ID -func (id RoleInstanceNetworkInterfaceId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), - resourceids.StaticSegment("staticCloudServices", "cloudServices", "cloudServices"), - resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceName"), - resourceids.StaticSegment("staticRoleInstances", "roleInstances", "roleInstances"), - resourceids.UserSpecifiedSegment("roleInstanceName", "roleInstanceName"), - resourceids.StaticSegment("staticNetworkInterfaces", "networkInterfaces", "networkInterfaces"), - resourceids.UserSpecifiedSegment("networkInterfaceName", "networkInterfaceName"), - } -} - -// String returns a human-readable description of this Role Instance Network Interface ID -func (id RoleInstanceNetworkInterfaceId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Cloud Service Name: %q", id.CloudServiceName), - fmt.Sprintf("Role Instance Name: %q", id.RoleInstanceName), - fmt.Sprintf("Network Interface Name: %q", id.NetworkInterfaceName), - } - return fmt.Sprintf("Role Instance Network Interface (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_tapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_tapconfiguration.go deleted file mode 100644 index b2916c52d2d3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_tapconfiguration.go +++ /dev/null @@ -1,139 +0,0 @@ -package networkinterfaces - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&TapConfigurationId{}) -} - -var _ resourceids.ResourceId = &TapConfigurationId{} - -// TapConfigurationId is a struct representing the Resource ID for a Tap Configuration -type TapConfigurationId struct { - SubscriptionId string - ResourceGroupName string - NetworkInterfaceName string - TapConfigurationName string -} - -// NewTapConfigurationID returns a new TapConfigurationId struct -func NewTapConfigurationID(subscriptionId string, resourceGroupName string, networkInterfaceName string, tapConfigurationName string) TapConfigurationId { - return TapConfigurationId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkInterfaceName: networkInterfaceName, - TapConfigurationName: tapConfigurationName, - } -} - -// ParseTapConfigurationID parses 'input' into a TapConfigurationId -func ParseTapConfigurationID(input string) (*TapConfigurationId, error) { - parser := resourceids.NewParserFromResourceIdType(&TapConfigurationId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := TapConfigurationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseTapConfigurationIDInsensitively parses 'input' case-insensitively into a TapConfigurationId -// note: this method should only be used for API response data and not user input -func ParseTapConfigurationIDInsensitively(input string) (*TapConfigurationId, error) { - parser := resourceids.NewParserFromResourceIdType(&TapConfigurationId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := TapConfigurationId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *TapConfigurationId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkInterfaceName, ok = input.Parsed["networkInterfaceName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkInterfaceName", input) - } - - if id.TapConfigurationName, ok = input.Parsed["tapConfigurationName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "tapConfigurationName", input) - } - - return nil -} - -// ValidateTapConfigurationID checks that 'input' can be parsed as a Tap Configuration ID -func ValidateTapConfigurationID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseTapConfigurationID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Tap Configuration ID -func (id TapConfigurationId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkInterfaces/%s/tapConfigurations/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkInterfaceName, id.TapConfigurationName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Tap Configuration ID -func (id TapConfigurationId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkInterfaces", "networkInterfaces", "networkInterfaces"), - resourceids.UserSpecifiedSegment("networkInterfaceName", "networkInterfaceName"), - resourceids.StaticSegment("staticTapConfigurations", "tapConfigurations", "tapConfigurations"), - resourceids.UserSpecifiedSegment("tapConfigurationName", "tapConfigurationName"), - } -} - -// String returns a human-readable description of this Tap Configuration ID -func (id TapConfigurationId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Interface Name: %q", id.NetworkInterfaceName), - fmt.Sprintf("Tap Configuration Name: %q", id.TapConfigurationName), - } - return fmt.Sprintf("Tap Configuration (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachine.go deleted file mode 100644 index ad24ef16d810..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachine.go +++ /dev/null @@ -1,139 +0,0 @@ -package networkinterfaces - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&VirtualMachineId{}) -} - -var _ resourceids.ResourceId = &VirtualMachineId{} - -// VirtualMachineId is a struct representing the Resource ID for a Virtual Machine -type VirtualMachineId struct { - SubscriptionId string - ResourceGroupName string - VirtualMachineScaleSetName string - VirtualMachineName string -} - -// NewVirtualMachineID returns a new VirtualMachineId struct -func NewVirtualMachineID(subscriptionId string, resourceGroupName string, virtualMachineScaleSetName string, virtualMachineName string) VirtualMachineId { - return VirtualMachineId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - VirtualMachineScaleSetName: virtualMachineScaleSetName, - VirtualMachineName: virtualMachineName, - } -} - -// ParseVirtualMachineID parses 'input' into a VirtualMachineId -func ParseVirtualMachineID(input string) (*VirtualMachineId, error) { - parser := resourceids.NewParserFromResourceIdType(&VirtualMachineId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := VirtualMachineId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseVirtualMachineIDInsensitively parses 'input' case-insensitively into a VirtualMachineId -// note: this method should only be used for API response data and not user input -func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error) { - parser := resourceids.NewParserFromResourceIdType(&VirtualMachineId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := VirtualMachineId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *VirtualMachineId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.VirtualMachineScaleSetName, ok = input.Parsed["virtualMachineScaleSetName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "virtualMachineScaleSetName", input) - } - - if id.VirtualMachineName, ok = input.Parsed["virtualMachineName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "virtualMachineName", input) - } - - return nil -} - -// ValidateVirtualMachineID checks that 'input' can be parsed as a Virtual Machine ID -func ValidateVirtualMachineID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseVirtualMachineID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Virtual Machine ID -func (id VirtualMachineId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/virtualMachineScaleSets/%s/virtualMachines/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualMachineScaleSetName, id.VirtualMachineName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Virtual Machine ID -func (id VirtualMachineId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), - resourceids.StaticSegment("staticVirtualMachineScaleSets", "virtualMachineScaleSets", "virtualMachineScaleSets"), - resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetName"), - resourceids.StaticSegment("staticVirtualMachines", "virtualMachines", "virtualMachines"), - resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineName"), - } -} - -// String returns a human-readable description of this Virtual Machine ID -func (id VirtualMachineId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Virtual Machine Scale Set Name: %q", id.VirtualMachineScaleSetName), - fmt.Sprintf("Virtual Machine Name: %q", id.VirtualMachineName), - } - return fmt.Sprintf("Virtual Machine (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachinescaleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachinescaleset.go deleted file mode 100644 index 63abd7e5d6f4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachinescaleset.go +++ /dev/null @@ -1,130 +0,0 @@ -package networkinterfaces - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&VirtualMachineScaleSetId{}) -} - -var _ resourceids.ResourceId = &VirtualMachineScaleSetId{} - -// VirtualMachineScaleSetId is a struct representing the Resource ID for a Virtual Machine Scale Set -type VirtualMachineScaleSetId struct { - SubscriptionId string - ResourceGroupName string - VirtualMachineScaleSetName string -} - -// NewVirtualMachineScaleSetID returns a new VirtualMachineScaleSetId struct -func NewVirtualMachineScaleSetID(subscriptionId string, resourceGroupName string, virtualMachineScaleSetName string) VirtualMachineScaleSetId { - return VirtualMachineScaleSetId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - VirtualMachineScaleSetName: virtualMachineScaleSetName, - } -} - -// ParseVirtualMachineScaleSetID parses 'input' into a VirtualMachineScaleSetId -func ParseVirtualMachineScaleSetID(input string) (*VirtualMachineScaleSetId, error) { - parser := resourceids.NewParserFromResourceIdType(&VirtualMachineScaleSetId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := VirtualMachineScaleSetId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseVirtualMachineScaleSetIDInsensitively parses 'input' case-insensitively into a VirtualMachineScaleSetId -// note: this method should only be used for API response data and not user input -func ParseVirtualMachineScaleSetIDInsensitively(input string) (*VirtualMachineScaleSetId, error) { - parser := resourceids.NewParserFromResourceIdType(&VirtualMachineScaleSetId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := VirtualMachineScaleSetId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *VirtualMachineScaleSetId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.VirtualMachineScaleSetName, ok = input.Parsed["virtualMachineScaleSetName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "virtualMachineScaleSetName", input) - } - - return nil -} - -// ValidateVirtualMachineScaleSetID checks that 'input' can be parsed as a Virtual Machine Scale Set ID -func ValidateVirtualMachineScaleSetID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseVirtualMachineScaleSetID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Virtual Machine Scale Set ID -func (id VirtualMachineScaleSetId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/virtualMachineScaleSets/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualMachineScaleSetName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Virtual Machine Scale Set ID -func (id VirtualMachineScaleSetId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), - resourceids.StaticSegment("staticVirtualMachineScaleSets", "virtualMachineScaleSets", "virtualMachineScaleSets"), - resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetName"), - } -} - -// String returns a human-readable description of this Virtual Machine Scale Set ID -func (id VirtualMachineScaleSetId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Virtual Machine Scale Set Name: %q", id.VirtualMachineScaleSetName), - } - return fmt.Sprintf("Virtual Machine Scale Set (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_createorupdate.go deleted file mode 100644 index 5686c1db5f00..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_createorupdate.go +++ /dev/null @@ -1,76 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *NetworkInterface -} - -// CreateOrUpdate ... -func (c NetworkInterfacesClient) CreateOrUpdate(ctx context.Context, id commonids.NetworkInterfaceId, input NetworkInterface) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c NetworkInterfacesClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.NetworkInterfaceId, input NetworkInterface) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_delete.go deleted file mode 100644 index 99f476e3fa99..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_delete.go +++ /dev/null @@ -1,72 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c NetworkInterfacesClient) Delete(ctx context.Context, id commonids.NetworkInterfaceId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c NetworkInterfacesClient) DeleteThenPoll(ctx context.Context, id commonids.NetworkInterfaceId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_get.go deleted file mode 100644 index 5a73b976c2c8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_get.go +++ /dev/null @@ -1,84 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkInterface -} - -type GetOperationOptions struct { - Expand *string -} - -func DefaultGetOperationOptions() GetOperationOptions { - return GetOperationOptions{} -} - -func (o GetOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o GetOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o GetOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Expand != nil { - out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) - } - return &out -} - -// Get ... -func (c NetworkInterfacesClient) Get(ctx context.Context, id commonids.NetworkInterfaceId, options GetOperationOptions) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkInterface - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getcloudservicenetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getcloudservicenetworkinterface.go deleted file mode 100644 index be2ca6e2e399..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getcloudservicenetworkinterface.go +++ /dev/null @@ -1,83 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetCloudServiceNetworkInterfaceOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkInterface -} - -type GetCloudServiceNetworkInterfaceOperationOptions struct { - Expand *string -} - -func DefaultGetCloudServiceNetworkInterfaceOperationOptions() GetCloudServiceNetworkInterfaceOperationOptions { - return GetCloudServiceNetworkInterfaceOperationOptions{} -} - -func (o GetCloudServiceNetworkInterfaceOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o GetCloudServiceNetworkInterfaceOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o GetCloudServiceNetworkInterfaceOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Expand != nil { - out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) - } - return &out -} - -// GetCloudServiceNetworkInterface ... -func (c NetworkInterfacesClient) GetCloudServiceNetworkInterface(ctx context.Context, id RoleInstanceNetworkInterfaceId, options GetCloudServiceNetworkInterfaceOperationOptions) (result GetCloudServiceNetworkInterfaceOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkInterface - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_geteffectiveroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_geteffectiveroutetable.go deleted file mode 100644 index 34e568863a24..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_geteffectiveroutetable.go +++ /dev/null @@ -1,90 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetEffectiveRouteTableOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *[]EffectiveRoute -} - -type GetEffectiveRouteTableCompleteResult struct { - LatestHttpResponse *http.Response - Items []EffectiveRoute -} - -type GetEffectiveRouteTableCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *GetEffectiveRouteTableCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// GetEffectiveRouteTable ... -func (c NetworkInterfacesClient) GetEffectiveRouteTable(ctx context.Context, id commonids.NetworkInterfaceId) (result GetEffectiveRouteTableOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Pager: &GetEffectiveRouteTableCustomPager{}, - Path: fmt.Sprintf("%s/effectiveRouteTable", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// GetEffectiveRouteTableThenPoll performs GetEffectiveRouteTable then polls until it's completed -func (c NetworkInterfacesClient) GetEffectiveRouteTableThenPoll(ctx context.Context, id commonids.NetworkInterfaceId) error { - result, err := c.GetEffectiveRouteTable(ctx, id) - if err != nil { - return fmt.Errorf("performing GetEffectiveRouteTable: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after GetEffectiveRouteTable: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go deleted file mode 100644 index 88f82856ae85..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go +++ /dev/null @@ -1,84 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetVirtualMachineScaleSetIPConfigurationOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkInterfaceIPConfiguration -} - -type GetVirtualMachineScaleSetIPConfigurationOperationOptions struct { - Expand *string -} - -func DefaultGetVirtualMachineScaleSetIPConfigurationOperationOptions() GetVirtualMachineScaleSetIPConfigurationOperationOptions { - return GetVirtualMachineScaleSetIPConfigurationOperationOptions{} -} - -func (o GetVirtualMachineScaleSetIPConfigurationOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o GetVirtualMachineScaleSetIPConfigurationOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o GetVirtualMachineScaleSetIPConfigurationOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Expand != nil { - out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) - } - return &out -} - -// GetVirtualMachineScaleSetIPConfiguration ... -func (c NetworkInterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx context.Context, id commonids.VirtualMachineScaleSetIPConfigurationId, options GetVirtualMachineScaleSetIPConfigurationOperationOptions) (result GetVirtualMachineScaleSetIPConfigurationOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkInterfaceIPConfiguration - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go deleted file mode 100644 index 4bad16270bad..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go +++ /dev/null @@ -1,84 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetVirtualMachineScaleSetNetworkInterfaceOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkInterface -} - -type GetVirtualMachineScaleSetNetworkInterfaceOperationOptions struct { - Expand *string -} - -func DefaultGetVirtualMachineScaleSetNetworkInterfaceOperationOptions() GetVirtualMachineScaleSetNetworkInterfaceOperationOptions { - return GetVirtualMachineScaleSetNetworkInterfaceOperationOptions{} -} - -func (o GetVirtualMachineScaleSetNetworkInterfaceOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o GetVirtualMachineScaleSetNetworkInterfaceOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o GetVirtualMachineScaleSetNetworkInterfaceOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Expand != nil { - out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) - } - return &out -} - -// GetVirtualMachineScaleSetNetworkInterface ... -func (c NetworkInterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, id commonids.VirtualMachineScaleSetNetworkInterfaceId, options GetVirtualMachineScaleSetNetworkInterfaceOperationOptions) (result GetVirtualMachineScaleSetNetworkInterfaceOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkInterface - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_list.go deleted file mode 100644 index aba8bcae0a04..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkInterface -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkInterface -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c NetworkInterfacesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkInterfaces", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkInterface `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c NetworkInterfacesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, NetworkInterfaceOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkInterfacesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate NetworkInterfaceOperationPredicate) (result ListCompleteResult, err error) { - items := make([]NetworkInterface, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listall.go deleted file mode 100644 index aee96a1ced3d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listall.go +++ /dev/null @@ -1,106 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListAllOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkInterface -} - -type ListAllCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkInterface -} - -type ListAllCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListAllCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListAll ... -func (c NetworkInterfacesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListAllCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkInterfaces", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkInterface `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListAllComplete retrieves all the results into a single object -func (c NetworkInterfacesClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { - return c.ListAllCompleteMatchingPredicate(ctx, id, NetworkInterfaceOperationPredicate{}) -} - -// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkInterfacesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate NetworkInterfaceOperationPredicate) (result ListAllCompleteResult, err error) { - items := make([]NetworkInterface, 0) - - resp, err := c.ListAll(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListAllCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go deleted file mode 100644 index 7a16382102e9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go +++ /dev/null @@ -1,105 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListCloudServiceNetworkInterfacesOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkInterface -} - -type ListCloudServiceNetworkInterfacesCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkInterface -} - -type ListCloudServiceNetworkInterfacesCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCloudServiceNetworkInterfacesCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListCloudServiceNetworkInterfaces ... -func (c NetworkInterfacesClient) ListCloudServiceNetworkInterfaces(ctx context.Context, id ProviderCloudServiceId) (result ListCloudServiceNetworkInterfacesOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCloudServiceNetworkInterfacesCustomPager{}, - Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkInterface `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListCloudServiceNetworkInterfacesComplete retrieves all the results into a single object -func (c NetworkInterfacesClient) ListCloudServiceNetworkInterfacesComplete(ctx context.Context, id ProviderCloudServiceId) (ListCloudServiceNetworkInterfacesCompleteResult, error) { - return c.ListCloudServiceNetworkInterfacesCompleteMatchingPredicate(ctx, id, NetworkInterfaceOperationPredicate{}) -} - -// ListCloudServiceNetworkInterfacesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkInterfacesClient) ListCloudServiceNetworkInterfacesCompleteMatchingPredicate(ctx context.Context, id ProviderCloudServiceId, predicate NetworkInterfaceOperationPredicate) (result ListCloudServiceNetworkInterfacesCompleteResult, err error) { - items := make([]NetworkInterface, 0) - - resp, err := c.ListCloudServiceNetworkInterfaces(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCloudServiceNetworkInterfacesCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go deleted file mode 100644 index f4ae2efc9872..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go +++ /dev/null @@ -1,105 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListCloudServiceRoleInstanceNetworkInterfacesOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkInterface -} - -type ListCloudServiceRoleInstanceNetworkInterfacesCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkInterface -} - -type ListCloudServiceRoleInstanceNetworkInterfacesCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCloudServiceRoleInstanceNetworkInterfacesCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListCloudServiceRoleInstanceNetworkInterfaces ... -func (c NetworkInterfacesClient) ListCloudServiceRoleInstanceNetworkInterfaces(ctx context.Context, id RoleInstanceId) (result ListCloudServiceRoleInstanceNetworkInterfacesOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCloudServiceRoleInstanceNetworkInterfacesCustomPager{}, - Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkInterface `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListCloudServiceRoleInstanceNetworkInterfacesComplete retrieves all the results into a single object -func (c NetworkInterfacesClient) ListCloudServiceRoleInstanceNetworkInterfacesComplete(ctx context.Context, id RoleInstanceId) (ListCloudServiceRoleInstanceNetworkInterfacesCompleteResult, error) { - return c.ListCloudServiceRoleInstanceNetworkInterfacesCompleteMatchingPredicate(ctx, id, NetworkInterfaceOperationPredicate{}) -} - -// ListCloudServiceRoleInstanceNetworkInterfacesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkInterfacesClient) ListCloudServiceRoleInstanceNetworkInterfacesCompleteMatchingPredicate(ctx context.Context, id RoleInstanceId, predicate NetworkInterfaceOperationPredicate) (result ListCloudServiceRoleInstanceNetworkInterfacesCompleteResult, err error) { - items := make([]NetworkInterface, 0) - - resp, err := c.ListCloudServiceRoleInstanceNetworkInterfaces(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCloudServiceRoleInstanceNetworkInterfacesCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go deleted file mode 100644 index 8316911280d5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go +++ /dev/null @@ -1,90 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListEffectiveNetworkSecurityGroupsOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *[]EffectiveNetworkSecurityGroup -} - -type ListEffectiveNetworkSecurityGroupsCompleteResult struct { - LatestHttpResponse *http.Response - Items []EffectiveNetworkSecurityGroup -} - -type ListEffectiveNetworkSecurityGroupsCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListEffectiveNetworkSecurityGroupsCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListEffectiveNetworkSecurityGroups ... -func (c NetworkInterfacesClient) ListEffectiveNetworkSecurityGroups(ctx context.Context, id commonids.NetworkInterfaceId) (result ListEffectiveNetworkSecurityGroupsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Pager: &ListEffectiveNetworkSecurityGroupsCustomPager{}, - Path: fmt.Sprintf("%s/effectiveNetworkSecurityGroups", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// ListEffectiveNetworkSecurityGroupsThenPoll performs ListEffectiveNetworkSecurityGroups then polls until it's completed -func (c NetworkInterfacesClient) ListEffectiveNetworkSecurityGroupsThenPoll(ctx context.Context, id commonids.NetworkInterfaceId) error { - result, err := c.ListEffectiveNetworkSecurityGroups(ctx, id) - if err != nil { - return fmt.Errorf("performing ListEffectiveNetworkSecurityGroups: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after ListEffectiveNetworkSecurityGroups: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go deleted file mode 100644 index 8c1c944f6c81..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go +++ /dev/null @@ -1,135 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListVirtualMachineScaleSetIPConfigurationsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkInterfaceIPConfiguration -} - -type ListVirtualMachineScaleSetIPConfigurationsCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkInterfaceIPConfiguration -} - -type ListVirtualMachineScaleSetIPConfigurationsOperationOptions struct { - Expand *string -} - -func DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions() ListVirtualMachineScaleSetIPConfigurationsOperationOptions { - return ListVirtualMachineScaleSetIPConfigurationsOperationOptions{} -} - -func (o ListVirtualMachineScaleSetIPConfigurationsOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o ListVirtualMachineScaleSetIPConfigurationsOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o ListVirtualMachineScaleSetIPConfigurationsOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Expand != nil { - out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) - } - return &out -} - -type ListVirtualMachineScaleSetIPConfigurationsCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListVirtualMachineScaleSetIPConfigurationsCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListVirtualMachineScaleSetIPConfigurations ... -func (c NetworkInterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, id commonids.VirtualMachineScaleSetNetworkInterfaceId, options ListVirtualMachineScaleSetIPConfigurationsOperationOptions) (result ListVirtualMachineScaleSetIPConfigurationsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Pager: &ListVirtualMachineScaleSetIPConfigurationsCustomPager{}, - Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkInterfaceIPConfiguration `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListVirtualMachineScaleSetIPConfigurationsComplete retrieves all the results into a single object -func (c NetworkInterfacesClient) ListVirtualMachineScaleSetIPConfigurationsComplete(ctx context.Context, id commonids.VirtualMachineScaleSetNetworkInterfaceId, options ListVirtualMachineScaleSetIPConfigurationsOperationOptions) (ListVirtualMachineScaleSetIPConfigurationsCompleteResult, error) { - return c.ListVirtualMachineScaleSetIPConfigurationsCompleteMatchingPredicate(ctx, id, options, NetworkInterfaceIPConfigurationOperationPredicate{}) -} - -// ListVirtualMachineScaleSetIPConfigurationsCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkInterfacesClient) ListVirtualMachineScaleSetIPConfigurationsCompleteMatchingPredicate(ctx context.Context, id commonids.VirtualMachineScaleSetNetworkInterfaceId, options ListVirtualMachineScaleSetIPConfigurationsOperationOptions, predicate NetworkInterfaceIPConfigurationOperationPredicate) (result ListVirtualMachineScaleSetIPConfigurationsCompleteResult, err error) { - items := make([]NetworkInterfaceIPConfiguration, 0) - - resp, err := c.ListVirtualMachineScaleSetIPConfigurations(ctx, id, options) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListVirtualMachineScaleSetIPConfigurationsCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go deleted file mode 100644 index 968b1c8bbd5e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go +++ /dev/null @@ -1,105 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListVirtualMachineScaleSetNetworkInterfacesOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkInterface -} - -type ListVirtualMachineScaleSetNetworkInterfacesCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkInterface -} - -type ListVirtualMachineScaleSetNetworkInterfacesCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListVirtualMachineScaleSetNetworkInterfacesCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListVirtualMachineScaleSetNetworkInterfaces ... -func (c NetworkInterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, id VirtualMachineScaleSetId) (result ListVirtualMachineScaleSetNetworkInterfacesOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListVirtualMachineScaleSetNetworkInterfacesCustomPager{}, - Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkInterface `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListVirtualMachineScaleSetNetworkInterfacesComplete retrieves all the results into a single object -func (c NetworkInterfacesClient) ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx context.Context, id VirtualMachineScaleSetId) (ListVirtualMachineScaleSetNetworkInterfacesCompleteResult, error) { - return c.ListVirtualMachineScaleSetNetworkInterfacesCompleteMatchingPredicate(ctx, id, NetworkInterfaceOperationPredicate{}) -} - -// ListVirtualMachineScaleSetNetworkInterfacesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkInterfacesClient) ListVirtualMachineScaleSetNetworkInterfacesCompleteMatchingPredicate(ctx context.Context, id VirtualMachineScaleSetId, predicate NetworkInterfaceOperationPredicate) (result ListVirtualMachineScaleSetNetworkInterfacesCompleteResult, err error) { - items := make([]NetworkInterface, 0) - - resp, err := c.ListVirtualMachineScaleSetNetworkInterfaces(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListVirtualMachineScaleSetNetworkInterfacesCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go deleted file mode 100644 index 433357587d30..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go +++ /dev/null @@ -1,105 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListVirtualMachineScaleSetVMNetworkInterfacesOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkInterface -} - -type ListVirtualMachineScaleSetVMNetworkInterfacesCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkInterface -} - -type ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListVirtualMachineScaleSetVMNetworkInterfaces ... -func (c NetworkInterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, id VirtualMachineId) (result ListVirtualMachineScaleSetVMNetworkInterfacesOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager{}, - Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkInterface `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListVirtualMachineScaleSetVMNetworkInterfacesComplete retrieves all the results into a single object -func (c NetworkInterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx context.Context, id VirtualMachineId) (ListVirtualMachineScaleSetVMNetworkInterfacesCompleteResult, error) { - return c.ListVirtualMachineScaleSetVMNetworkInterfacesCompleteMatchingPredicate(ctx, id, NetworkInterfaceOperationPredicate{}) -} - -// ListVirtualMachineScaleSetVMNetworkInterfacesCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkInterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfacesCompleteMatchingPredicate(ctx context.Context, id VirtualMachineId, predicate NetworkInterfaceOperationPredicate) (result ListVirtualMachineScaleSetVMNetworkInterfacesCompleteResult, err error) { - items := make([]NetworkInterface, 0) - - resp, err := c.ListVirtualMachineScaleSetVMNetworkInterfaces(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListVirtualMachineScaleSetVMNetworkInterfacesCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go deleted file mode 100644 index 7134fa1ab75b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go +++ /dev/null @@ -1,54 +0,0 @@ -package networkinterfaces - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfigurationsGetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkInterfaceIPConfiguration -} - -// NetworkInterfaceIPConfigurationsGet ... -func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsGet(ctx context.Context, id commonids.NetworkInterfaceIPConfigurationId) (result NetworkInterfaceIPConfigurationsGetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkInterfaceIPConfiguration - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go deleted file mode 100644 index 00a6c20f94c0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go +++ /dev/null @@ -1,106 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfigurationsListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkInterfaceIPConfiguration -} - -type NetworkInterfaceIPConfigurationsListCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkInterfaceIPConfiguration -} - -type NetworkInterfaceIPConfigurationsListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *NetworkInterfaceIPConfigurationsListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// NetworkInterfaceIPConfigurationsList ... -func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceIPConfigurationsListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &NetworkInterfaceIPConfigurationsListCustomPager{}, - Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkInterfaceIPConfiguration `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// NetworkInterfaceIPConfigurationsListComplete retrieves all the results into a single object -func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsListComplete(ctx context.Context, id commonids.NetworkInterfaceId) (NetworkInterfaceIPConfigurationsListCompleteResult, error) { - return c.NetworkInterfaceIPConfigurationsListCompleteMatchingPredicate(ctx, id, NetworkInterfaceIPConfigurationOperationPredicate{}) -} - -// NetworkInterfaceIPConfigurationsListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsListCompleteMatchingPredicate(ctx context.Context, id commonids.NetworkInterfaceId, predicate NetworkInterfaceIPConfigurationOperationPredicate) (result NetworkInterfaceIPConfigurationsListCompleteResult, err error) { - items := make([]NetworkInterfaceIPConfiguration, 0) - - resp, err := c.NetworkInterfaceIPConfigurationsList(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = NetworkInterfaceIPConfigurationsListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go deleted file mode 100644 index ee4b73b4d8dc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go +++ /dev/null @@ -1,106 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceLoadBalancersListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]LoadBalancer -} - -type NetworkInterfaceLoadBalancersListCompleteResult struct { - LatestHttpResponse *http.Response - Items []LoadBalancer -} - -type NetworkInterfaceLoadBalancersListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *NetworkInterfaceLoadBalancersListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// NetworkInterfaceLoadBalancersList ... -func (c NetworkInterfacesClient) NetworkInterfaceLoadBalancersList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceLoadBalancersListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &NetworkInterfaceLoadBalancersListCustomPager{}, - Path: fmt.Sprintf("%s/loadBalancers", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]LoadBalancer `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// NetworkInterfaceLoadBalancersListComplete retrieves all the results into a single object -func (c NetworkInterfacesClient) NetworkInterfaceLoadBalancersListComplete(ctx context.Context, id commonids.NetworkInterfaceId) (NetworkInterfaceLoadBalancersListCompleteResult, error) { - return c.NetworkInterfaceLoadBalancersListCompleteMatchingPredicate(ctx, id, LoadBalancerOperationPredicate{}) -} - -// NetworkInterfaceLoadBalancersListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkInterfacesClient) NetworkInterfaceLoadBalancersListCompleteMatchingPredicate(ctx context.Context, id commonids.NetworkInterfaceId, predicate LoadBalancerOperationPredicate) (result NetworkInterfaceLoadBalancersListCompleteResult, err error) { - items := make([]LoadBalancer, 0) - - resp, err := c.NetworkInterfaceLoadBalancersList(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = NetworkInterfaceLoadBalancersListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationscreateorupdate.go deleted file mode 100644 index fcece2ea104a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationscreateorupdate.go +++ /dev/null @@ -1,75 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceTapConfigurationsCreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *NetworkInterfaceTapConfiguration -} - -// NetworkInterfaceTapConfigurationsCreateOrUpdate ... -func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsCreateOrUpdate(ctx context.Context, id TapConfigurationId, input NetworkInterfaceTapConfiguration) (result NetworkInterfaceTapConfigurationsCreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// NetworkInterfaceTapConfigurationsCreateOrUpdateThenPoll performs NetworkInterfaceTapConfigurationsCreateOrUpdate then polls until it's completed -func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsCreateOrUpdateThenPoll(ctx context.Context, id TapConfigurationId, input NetworkInterfaceTapConfiguration) error { - result, err := c.NetworkInterfaceTapConfigurationsCreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing NetworkInterfaceTapConfigurationsCreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after NetworkInterfaceTapConfigurationsCreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationsdelete.go deleted file mode 100644 index 263815906b2e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationsdelete.go +++ /dev/null @@ -1,71 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceTapConfigurationsDeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// NetworkInterfaceTapConfigurationsDelete ... -func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsDelete(ctx context.Context, id TapConfigurationId) (result NetworkInterfaceTapConfigurationsDeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// NetworkInterfaceTapConfigurationsDeleteThenPoll performs NetworkInterfaceTapConfigurationsDelete then polls until it's completed -func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsDeleteThenPoll(ctx context.Context, id TapConfigurationId) error { - result, err := c.NetworkInterfaceTapConfigurationsDelete(ctx, id) - if err != nil { - return fmt.Errorf("performing NetworkInterfaceTapConfigurationsDelete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after NetworkInterfaceTapConfigurationsDelete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go deleted file mode 100644 index 004d700dbcde..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go +++ /dev/null @@ -1,53 +0,0 @@ -package networkinterfaces - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceTapConfigurationsGetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkInterfaceTapConfiguration -} - -// NetworkInterfaceTapConfigurationsGet ... -func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsGet(ctx context.Context, id TapConfigurationId) (result NetworkInterfaceTapConfigurationsGetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkInterfaceTapConfiguration - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go deleted file mode 100644 index 96b11107f622..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go +++ /dev/null @@ -1,106 +0,0 @@ -package networkinterfaces - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceTapConfigurationsListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]NetworkInterfaceTapConfiguration -} - -type NetworkInterfaceTapConfigurationsListCompleteResult struct { - LatestHttpResponse *http.Response - Items []NetworkInterfaceTapConfiguration -} - -type NetworkInterfaceTapConfigurationsListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *NetworkInterfaceTapConfigurationsListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// NetworkInterfaceTapConfigurationsList ... -func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceTapConfigurationsListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &NetworkInterfaceTapConfigurationsListCustomPager{}, - Path: fmt.Sprintf("%s/tapConfigurations", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]NetworkInterfaceTapConfiguration `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// NetworkInterfaceTapConfigurationsListComplete retrieves all the results into a single object -func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsListComplete(ctx context.Context, id commonids.NetworkInterfaceId) (NetworkInterfaceTapConfigurationsListCompleteResult, error) { - return c.NetworkInterfaceTapConfigurationsListCompleteMatchingPredicate(ctx, id, NetworkInterfaceTapConfigurationOperationPredicate{}) -} - -// NetworkInterfaceTapConfigurationsListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsListCompleteMatchingPredicate(ctx context.Context, id commonids.NetworkInterfaceId, predicate NetworkInterfaceTapConfigurationOperationPredicate) (result NetworkInterfaceTapConfigurationsListCompleteResult, err error) { - items := make([]NetworkInterfaceTapConfiguration, 0) - - resp, err := c.NetworkInterfaceTapConfigurationsList(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = NetworkInterfaceTapConfigurationsListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_updatetags.go deleted file mode 100644 index 4365d182729d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_updatetags.go +++ /dev/null @@ -1,58 +0,0 @@ -package networkinterfaces - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateTagsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *NetworkInterface -} - -// UpdateTags ... -func (c NetworkInterfacesClient) UpdateTags(ctx context.Context, id commonids.NetworkInterfaceId, input TagsObject) (result UpdateTagsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model NetworkInterface - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddress.go deleted file mode 100644 index 126f8350b099..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddress.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayBackendAddress struct { - Fqdn *string `json:"fqdn,omitempty"` - IPAddress *string `json:"ipAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddresspool.go deleted file mode 100644 index 15c656ad0573..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddresspool.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayBackendAddressPool struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddresspoolpropertiesformat.go deleted file mode 100644 index 34912a8fcbd9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddresspoolpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { - BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` - BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewayipconfiguration.go deleted file mode 100644 index 3b83d83c7c96..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewayipconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewayipconfigurationpropertiesformat.go deleted file mode 100644 index dd810dfed2cb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewayipconfigurationpropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayIPConfigurationPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *SubResource `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationsecuritygroup.go deleted file mode 100644 index 2948e0c794af..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationsecuritygroup.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationsecuritygrouppropertiesformat.go deleted file mode 100644 index aa06b33fbe18..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationsecuritygrouppropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroupPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_backendaddresspool.go deleted file mode 100644 index bd329cce1275..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_backendaddresspool.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BackendAddressPool struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_backendaddresspoolpropertiesformat.go deleted file mode 100644 index 7c5d918e43ab..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_backendaddresspoolpropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BackendAddressPoolPropertiesFormat struct { - BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` - DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` - InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` - LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` - LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` - Location *string `json:"location,omitempty"` - OutboundRule *SubResource `json:"outboundRule,omitempty"` - OutboundRules *[]SubResource `json:"outboundRules,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - SyncMode *SyncMode `json:"syncMode,omitempty"` - TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` - VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_customdnsconfigpropertiesformat.go deleted file mode 100644 index e0be4a6b6f6d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_customdnsconfigpropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CustomDnsConfigPropertiesFormat struct { - Fqdn *string `json:"fqdn,omitempty"` - IPAddresses *[]string `json:"ipAddresses,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ddossettings.go deleted file mode 100644 index 4902360d6891..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ddossettings.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosSettings struct { - DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` - ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_delegation.go deleted file mode 100644 index 5fb9effbb1bf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_delegation.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Delegation struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecuritygroup.go deleted file mode 100644 index 5c66ee3a9b59..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecuritygroup.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type EffectiveNetworkSecurityGroup struct { - Association *EffectiveNetworkSecurityGroupAssociation `json:"association,omitempty"` - EffectiveSecurityRules *[]EffectiveNetworkSecurityRule `json:"effectiveSecurityRules,omitempty"` - NetworkSecurityGroup *SubResource `json:"networkSecurityGroup,omitempty"` - TagMap *map[string][]string `json:"tagMap,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecuritygroupassociation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecuritygroupassociation.go deleted file mode 100644 index 3c6248c32c9b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecuritygroupassociation.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type EffectiveNetworkSecurityGroupAssociation struct { - NetworkInterface *SubResource `json:"networkInterface,omitempty"` - NetworkManager *SubResource `json:"networkManager,omitempty"` - Subnet *SubResource `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecurityrule.go deleted file mode 100644 index 9c9dd92e515a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecurityrule.go +++ /dev/null @@ -1,22 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type EffectiveNetworkSecurityRule struct { - Access *SecurityRuleAccess `json:"access,omitempty"` - DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` - DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` - DestinationPortRange *string `json:"destinationPortRange,omitempty"` - DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` - Direction *SecurityRuleDirection `json:"direction,omitempty"` - ExpandedDestinationAddressPrefix *[]string `json:"expandedDestinationAddressPrefix,omitempty"` - ExpandedSourceAddressPrefix *[]string `json:"expandedSourceAddressPrefix,omitempty"` - Name *string `json:"name,omitempty"` - Priority *int64 `json:"priority,omitempty"` - Protocol *EffectiveSecurityRuleProtocol `json:"protocol,omitempty"` - SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` - SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` - SourcePortRange *string `json:"sourcePortRange,omitempty"` - SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectiveroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectiveroute.go deleted file mode 100644 index aa9dac678101..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectiveroute.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type EffectiveRoute struct { - AddressPrefix *[]string `json:"addressPrefix,omitempty"` - DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` - Name *string `json:"name,omitempty"` - NextHopIPAddress *[]string `json:"nextHopIpAddress,omitempty"` - NextHopType *RouteNextHopType `json:"nextHopType,omitempty"` - Source *EffectiveRouteSource `json:"source,omitempty"` - State *EffectiveRouteState `json:"state,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlog.go deleted file mode 100644 index c2f71983a362..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlogformatparameters.go deleted file mode 100644 index 43abd6c15328..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlogformatparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogFormatParameters struct { - Type *FlowLogFormatType `json:"type,omitempty"` - Version *int64 `json:"version,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlogpropertiesformat.go deleted file mode 100644 index e594a5d38198..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_frontendipconfiguration.go deleted file mode 100644 index 35c07477d523..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_frontendipconfiguration.go +++ /dev/null @@ -1,17 +0,0 @@ -package networkinterfaces - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FrontendIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_frontendipconfigurationpropertiesformat.go deleted file mode 100644 index 174b1d44662b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_frontendipconfigurationpropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FrontendIPConfigurationPropertiesFormat struct { - GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` - InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` - InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` - LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` - OutboundRules *[]SubResource `json:"outboundRules,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` - PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_gatewayloadbalancertunnelinterface.go deleted file mode 100644 index 8562c4824fba..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_gatewayloadbalancertunnelinterface.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GatewayLoadBalancerTunnelInterface struct { - Identifier *int64 `json:"identifier,omitempty"` - Port *int64 `json:"port,omitempty"` - Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` - Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatpool.go deleted file mode 100644 index a16659ffff03..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatpool.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundNatPool struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *InboundNatPoolPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatpoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatpoolpropertiesformat.go deleted file mode 100644 index 4586e6ec1dcc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatpoolpropertiesformat.go +++ /dev/null @@ -1,16 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundNatPoolPropertiesFormat struct { - BackendPort int64 `json:"backendPort"` - EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` - EnableTcpReset *bool `json:"enableTcpReset,omitempty"` - FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` - FrontendPortRangeEnd int64 `json:"frontendPortRangeEnd"` - FrontendPortRangeStart int64 `json:"frontendPortRangeStart"` - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - Protocol TransportProtocol `json:"protocol"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatrule.go deleted file mode 100644 index a41993b3c8d5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundNatRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatrulepropertiesformat.go deleted file mode 100644 index 9a882cfef220..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatrulepropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundNatRulePropertiesFormat struct { - BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` - BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` - BackendPort *int64 `json:"backendPort,omitempty"` - EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` - EnableTcpReset *bool `json:"enableTcpReset,omitempty"` - FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` - FrontendPort *int64 `json:"frontendPort,omitempty"` - FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` - FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - Protocol *TransportProtocol `json:"protocol,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfiguration.go deleted file mode 100644 index c1294125f572..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfiguration.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationprofile.go deleted file mode 100644 index b5f591fbc35a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationprofile.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfigurationProfile struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationprofilepropertiesformat.go deleted file mode 100644 index 0027cc6adbe8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationprofilepropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfigurationProfilePropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationpropertiesformat.go deleted file mode 100644 index 1338f55c4e1a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationpropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfigurationPropertiesFormat struct { - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_iptag.go deleted file mode 100644 index c2dc282ad0ec..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_iptag.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPTag struct { - IPTagType *string `json:"ipTagType,omitempty"` - Tag *string `json:"tag,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancer.go deleted file mode 100644 index aaa7bd9d0867..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancer.go +++ /dev/null @@ -1,20 +0,0 @@ -package networkinterfaces - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LoadBalancer struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *LoadBalancerPropertiesFormat `json:"properties,omitempty"` - Sku *LoadBalancerSku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerbackendaddress.go deleted file mode 100644 index 58da623122f4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerbackendaddress.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LoadBalancerBackendAddress struct { - Name *string `json:"name,omitempty"` - Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerbackendaddresspropertiesformat.go deleted file mode 100644 index 192b497dd13d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerbackendaddresspropertiesformat.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LoadBalancerBackendAddressPropertiesFormat struct { - AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` - IPAddress *string `json:"ipAddress,omitempty"` - InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` - LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` - NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` - Subnet *SubResource `json:"subnet,omitempty"` - VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerpropertiesformat.go deleted file mode 100644 index b0c27be8bab4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerpropertiesformat.go +++ /dev/null @@ -1,16 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LoadBalancerPropertiesFormat struct { - BackendAddressPools *[]BackendAddressPool `json:"backendAddressPools,omitempty"` - FrontendIPConfigurations *[]FrontendIPConfiguration `json:"frontendIPConfigurations,omitempty"` - InboundNatPools *[]InboundNatPool `json:"inboundNatPools,omitempty"` - InboundNatRules *[]InboundNatRule `json:"inboundNatRules,omitempty"` - LoadBalancingRules *[]LoadBalancingRule `json:"loadBalancingRules,omitempty"` - OutboundRules *[]OutboundRule `json:"outboundRules,omitempty"` - Probes *[]Probe `json:"probes,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancersku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancersku.go deleted file mode 100644 index e10cf68701b3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancersku.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LoadBalancerSku struct { - Name *LoadBalancerSkuName `json:"name,omitempty"` - Tier *LoadBalancerSkuTier `json:"tier,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancingrule.go deleted file mode 100644 index 5ca9aca81f1d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancingrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LoadBalancingRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *LoadBalancingRulePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancingrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancingrulepropertiesformat.go deleted file mode 100644 index 79fe798b88d5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancingrulepropertiesformat.go +++ /dev/null @@ -1,20 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LoadBalancingRulePropertiesFormat struct { - BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` - BackendAddressPools *[]SubResource `json:"backendAddressPools,omitempty"` - BackendPort *int64 `json:"backendPort,omitempty"` - DisableOutboundSnat *bool `json:"disableOutboundSnat,omitempty"` - EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` - EnableTcpReset *bool `json:"enableTcpReset,omitempty"` - FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` - FrontendPort int64 `json:"frontendPort"` - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - LoadDistribution *LoadDistribution `json:"loadDistribution,omitempty"` - Probe *SubResource `json:"probe,omitempty"` - Protocol TransportProtocol `json:"protocol"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgateway.go deleted file mode 100644 index 7fe571d7a74e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgateway.go +++ /dev/null @@ -1,20 +0,0 @@ -package networkinterfaces - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGateway struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` - Sku *NatGatewaySku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgatewaypropertiesformat.go deleted file mode 100644 index 9da53fae58a3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgatewaypropertiesformat.go +++ /dev/null @@ -1,13 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGatewayPropertiesFormat struct { - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` - PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - Subnets *[]SubResource `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgatewaysku.go deleted file mode 100644 index aff4514b5e74..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgatewaysku.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGatewaySku struct { - Name *NatGatewaySkuName `json:"name,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natruleportmapping.go deleted file mode 100644 index 05068ac7e2f6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natruleportmapping.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatRulePortMapping struct { - BackendPort *int64 `json:"backendPort,omitempty"` - FrontendPort *int64 `json:"frontendPort,omitempty"` - InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterface.go deleted file mode 100644 index 286c9562aaf5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterface.go +++ /dev/null @@ -1,19 +0,0 @@ -package networkinterfaces - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterface struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacednssettings.go deleted file mode 100644 index af3e4e75519e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacednssettings.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceDnsSettings struct { - AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` - DnsServers *[]string `json:"dnsServers,omitempty"` - InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` - InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` - InternalFqdn *string `json:"internalFqdn,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfiguration.go deleted file mode 100644 index ca861570a5d1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go deleted file mode 100644 index abcc6fdfc5b0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { - Fqdns *[]string `json:"fqdns,omitempty"` - GroupId *string `json:"groupId,omitempty"` - RequiredMemberName *string `json:"requiredMemberName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfigurationpropertiesformat.go deleted file mode 100644 index 86aea8f6e8e8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfigurationpropertiesformat.go +++ /dev/null @@ -1,22 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfigurationPropertiesFormat struct { - ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` - ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` - GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` - LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` - LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` - Primary *bool `json:"primary,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` - VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacepropertiesformat.go deleted file mode 100644 index 3fd3da2e6e6f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacepropertiesformat.go +++ /dev/null @@ -1,29 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfacePropertiesFormat struct { - AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` - AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` - DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` - DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` - DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` - EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` - EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` - HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` - IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` - MacAddress *string `json:"macAddress,omitempty"` - MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` - NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` - NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` - Primary *bool `json:"primary,omitempty"` - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` - PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` - VirtualMachine *SubResource `json:"virtualMachine,omitempty"` - VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` - WorkloadType *string `json:"workloadType,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacetapconfiguration.go deleted file mode 100644 index e67a81616a9c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacetapconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceTapConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacetapconfigurationpropertiesformat.go deleted file mode 100644 index 72010ae8dac8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacetapconfigurationpropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceTapConfigurationPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networksecuritygroup.go deleted file mode 100644 index 05ed91fcd1a2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networksecuritygroup.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkSecurityGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networksecuritygrouppropertiesformat.go deleted file mode 100644 index ce8a013b83a3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networksecuritygrouppropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkSecurityGroupPropertiesFormat struct { - DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` - FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` - FlushConnection *bool `json:"flushConnection,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_outboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_outboundrule.go deleted file mode 100644 index 2afc56da4ccf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_outboundrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type OutboundRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *OutboundRulePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_outboundrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_outboundrulepropertiesformat.go deleted file mode 100644 index 4cc4e2f50878..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_outboundrulepropertiesformat.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type OutboundRulePropertiesFormat struct { - AllocatedOutboundPorts *int64 `json:"allocatedOutboundPorts,omitempty"` - BackendAddressPool SubResource `json:"backendAddressPool"` - EnableTcpReset *bool `json:"enableTcpReset,omitempty"` - FrontendIPConfigurations []SubResource `json:"frontendIPConfigurations"` - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - Protocol LoadBalancerOutboundRuleProtocol `json:"protocol"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpoint.go deleted file mode 100644 index da5835bccbad..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpoint.go +++ /dev/null @@ -1,19 +0,0 @@ -package networkinterfaces - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpoint struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointProperties `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointconnection.go deleted file mode 100644 index 81a07962195b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointconnection.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointconnectionproperties.go deleted file mode 100644 index eb2204732ecc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointconnectionproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointConnectionProperties struct { - LinkIdentifier *string `json:"linkIdentifier,omitempty"` - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` - PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` - PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointipconfiguration.go deleted file mode 100644 index 085039e25e25..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointipconfiguration.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointipconfigurationproperties.go deleted file mode 100644 index 802747eb32e1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointipconfigurationproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointIPConfigurationProperties struct { - GroupId *string `json:"groupId,omitempty"` - MemberName *string `json:"memberName,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointproperties.go deleted file mode 100644 index ea496b7d032a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointproperties.go +++ /dev/null @@ -1,16 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointProperties struct { - ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` - CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` - CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` - IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` - ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkservice.go deleted file mode 100644 index 7dcd5f985b90..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkservice.go +++ /dev/null @@ -1,19 +0,0 @@ -package networkinterfaces - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkService struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnection.go deleted file mode 100644 index 5e32cbfab8a4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnection.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnectionproperties.go deleted file mode 100644 index 355c3d254f25..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnectionproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceConnectionProperties struct { - GroupIds *[]string `json:"groupIds,omitempty"` - PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` - PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RequestMessage *string `json:"requestMessage,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnectionstate.go deleted file mode 100644 index 367b48d2fd6c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnectionstate.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceConnectionState struct { - ActionsRequired *string `json:"actionsRequired,omitempty"` - Description *string `json:"description,omitempty"` - Status *string `json:"status,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceipconfiguration.go deleted file mode 100644 index 3893fd72b021..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceipconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceipconfigurationproperties.go deleted file mode 100644 index e1c0b0da64c1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceipconfigurationproperties.go +++ /dev/null @@ -1,13 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceIPConfigurationProperties struct { - Primary *bool `json:"primary,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceproperties.go deleted file mode 100644 index 2356695f6d12..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_probe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_probe.go deleted file mode 100644 index d935d63eee68..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_probe.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Probe struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ProbePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_probepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_probepropertiesformat.go deleted file mode 100644 index 343b46540f7c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_probepropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProbePropertiesFormat struct { - IntervalInSeconds *int64 `json:"intervalInSeconds,omitempty"` - LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` - NumberOfProbes *int64 `json:"numberOfProbes,omitempty"` - Port int64 `json:"port"` - ProbeThreshold *int64 `json:"probeThreshold,omitempty"` - Protocol ProbeProtocol `json:"protocol"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RequestPath *string `json:"requestPath,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddress.go deleted file mode 100644 index e89fe49804bd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddress.go +++ /dev/null @@ -1,22 +0,0 @@ -package networkinterfaces - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddress struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` - Sku *PublicIPAddressSku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddressdnssettings.go deleted file mode 100644 index 9a6ffc1106af..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddressdnssettings.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressDnsSettings struct { - DomainNameLabel *string `json:"domainNameLabel,omitempty"` - DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` - Fqdn *string `json:"fqdn,omitempty"` - ReverseFqdn *string `json:"reverseFqdn,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddresspropertiesformat.go deleted file mode 100644 index b13efec6d421..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddresspropertiesformat.go +++ /dev/null @@ -1,23 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressPropertiesFormat struct { - DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` - DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` - DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` - IPAddress *string `json:"ipAddress,omitempty"` - IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` - IPTags *[]IPTag `json:"ipTags,omitempty"` - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` - MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` - NatGateway *NatGateway `json:"natGateway,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` - PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` - PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddresssku.go deleted file mode 100644 index 4f6513789bc3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddresssku.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressSku struct { - Name *PublicIPAddressSkuName `json:"name,omitempty"` - Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourcenavigationlink.go deleted file mode 100644 index 4a3f135d98d0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourcenavigationlink.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceNavigationLink struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourcenavigationlinkformat.go deleted file mode 100644 index aa59d57de520..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourcenavigationlinkformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceNavigationLinkFormat struct { - Link *string `json:"link,omitempty"` - LinkedResourceType *string `json:"linkedResourceType,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourceset.go deleted file mode 100644 index 48356d239d8f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourceset.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceSet struct { - Subscriptions *[]string `json:"subscriptions,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_retentionpolicyparameters.go deleted file mode 100644 index fe69c5c33894..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_retentionpolicyparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RetentionPolicyParameters struct { - Days *int64 `json:"days,omitempty"` - Enabled *bool `json:"enabled,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_route.go deleted file mode 100644 index 8dd1c1c5cbe3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_route.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Route struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *RoutePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routepropertiesformat.go deleted file mode 100644 index b031c9a871e1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routepropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RoutePropertiesFormat struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` - NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` - NextHopType RouteNextHopType `json:"nextHopType"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routetable.go deleted file mode 100644 index 31df96e7b738..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routetable.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteTable struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routetablepropertiesformat.go deleted file mode 100644 index 3c524eb8fe1d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routetablepropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteTablePropertiesFormat struct { - DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - Routes *[]Route `json:"routes,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_securityrule.go deleted file mode 100644 index af9210ebc2f0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_securityrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_securityrulepropertiesformat.go deleted file mode 100644 index 0ff4ba975dc6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_securityrulepropertiesformat.go +++ /dev/null @@ -1,23 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRulePropertiesFormat struct { - Access SecurityRuleAccess `json:"access"` - Description *string `json:"description,omitempty"` - DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` - DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` - DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` - DestinationPortRange *string `json:"destinationPortRange,omitempty"` - DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` - Direction SecurityRuleDirection `json:"direction"` - Priority int64 `json:"priority"` - Protocol SecurityRuleProtocol `json:"protocol"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` - SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` - SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` - SourcePortRange *string `json:"sourcePortRange,omitempty"` - SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceassociationlink.go deleted file mode 100644 index 88ebd302e705..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceassociationlink.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceAssociationLink struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceassociationlinkpropertiesformat.go deleted file mode 100644 index 538945df5d3c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceassociationlinkpropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceAssociationLinkPropertiesFormat struct { - AllowDelete *bool `json:"allowDelete,omitempty"` - Link *string `json:"link,omitempty"` - LinkedResourceType *string `json:"linkedResourceType,omitempty"` - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_servicedelegationpropertiesformat.go deleted file mode 100644 index 8444d0d495d9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_servicedelegationpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceDelegationPropertiesFormat struct { - Actions *[]string `json:"actions,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ServiceName *string `json:"serviceName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicy.go deleted file mode 100644 index c77c2e3460a4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicy.go +++ /dev/null @@ -1,15 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicy struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicydefinition.go deleted file mode 100644 index 6f523978f5bb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicydefinition.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicyDefinition struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicydefinitionpropertiesformat.go deleted file mode 100644 index ddd9db6fe470..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicydefinitionpropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicyDefinitionPropertiesFormat struct { - Description *string `json:"description,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` - ServiceResources *[]string `json:"serviceResources,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicypropertiesformat.go deleted file mode 100644 index 2692b80393d9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicypropertiesformat.go +++ /dev/null @@ -1,13 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicyPropertiesFormat struct { - ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - ServiceAlias *string `json:"serviceAlias,omitempty"` - ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpropertiesformat.go deleted file mode 100644 index 041498d25012..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subnet.go deleted file mode 100644 index 47a0e306b4a6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subnet.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Subnet struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SubnetPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subnetpropertiesformat.go deleted file mode 100644 index e21a76de2c69..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subnetpropertiesformat.go +++ /dev/null @@ -1,28 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubnetPropertiesFormat struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` - ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` - DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` - Delegations *[]Delegation `json:"delegations,omitempty"` - IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` - IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` - IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` - NatGateway *SubResource `json:"natGateway,omitempty"` - NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` - PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` - PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` - PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Purpose *string `json:"purpose,omitempty"` - ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` - RouteTable *RouteTable `json:"routeTable,omitempty"` - ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` - ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` - ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` - SharingScope *SharingScope `json:"sharingScope,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subresource.go deleted file mode 100644 index 28fa931dbee6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_tagsobject.go deleted file mode 100644 index 32bf2f0b066f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_trafficanalyticsconfigurationproperties.go deleted file mode 100644 index bd0b0fa5fe00..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_trafficanalyticsconfigurationproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TrafficAnalyticsConfigurationProperties struct { - Enabled *bool `json:"enabled,omitempty"` - TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` - WorkspaceId *string `json:"workspaceId,omitempty"` - WorkspaceRegion *string `json:"workspaceRegion,omitempty"` - WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_trafficanalyticsproperties.go deleted file mode 100644 index 302f5bfcc4d1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_trafficanalyticsproperties.go +++ /dev/null @@ -1,8 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TrafficAnalyticsProperties struct { - NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_virtualnetworktap.go deleted file mode 100644 index 315bcaef0690..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_virtualnetworktap.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkTap struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_virtualnetworktappropertiesformat.go deleted file mode 100644 index 90ce2721f151..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_virtualnetworktappropertiesformat.go +++ /dev/null @@ -1,13 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkTapPropertiesFormat struct { - DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` - DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` - DestinationPort *int64 `json:"destinationPort,omitempty"` - NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/predicates.go deleted file mode 100644 index c58ed4a328b2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/predicates.go +++ /dev/null @@ -1,152 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type EffectiveNetworkSecurityGroupOperationPredicate struct { -} - -func (p EffectiveNetworkSecurityGroupOperationPredicate) Matches(input EffectiveNetworkSecurityGroup) bool { - - return true -} - -type EffectiveRouteOperationPredicate struct { - DisableBgpRoutePropagation *bool - Name *string -} - -func (p EffectiveRouteOperationPredicate) Matches(input EffectiveRoute) bool { - - if p.DisableBgpRoutePropagation != nil && (input.DisableBgpRoutePropagation == nil || *p.DisableBgpRoutePropagation != *input.DisableBgpRoutePropagation) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - return true -} - -type LoadBalancerOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p LoadBalancerOperationPredicate) Matches(input LoadBalancer) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} - -type NetworkInterfaceOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p NetworkInterfaceOperationPredicate) Matches(input NetworkInterface) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} - -type NetworkInterfaceIPConfigurationOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p NetworkInterfaceIPConfigurationOperationPredicate) Matches(input NetworkInterfaceIPConfiguration) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} - -type NetworkInterfaceTapConfigurationOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p NetworkInterfaceTapConfigurationOperationPredicate) Matches(input NetworkInterfaceTapConfiguration) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/version.go deleted file mode 100644 index 16d462edbd37..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkinterfaces/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/README.md deleted file mode 100644 index bd760f92aebd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/README.md +++ /dev/null @@ -1,133 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses` Documentation - -The `publicipaddresses` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" -``` - - -### Client Initialization - -```go -client := publicipaddresses.NewPublicIPAddressesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `PublicIPAddressesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") - -payload := publicipaddresses.PublicIPAddress{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `PublicIPAddressesClient.DdosProtectionStatus` - -```go -ctx := context.TODO() -id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") - -if err := client.DdosProtectionStatusThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `PublicIPAddressesClient.Delete` - -```go -ctx := context.TODO() -id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `PublicIPAddressesClient.Get` - -```go -ctx := context.TODO() -id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") - -read, err := client.Get(ctx, id, publicipaddresses.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PublicIPAddressesClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `PublicIPAddressesClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `PublicIPAddressesClient.UpdateTags` - -```go -ctx := context.TODO() -id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") - -payload := publicipaddresses.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/client.go deleted file mode 100644 index 54f2b0113c7f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package publicipaddresses - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressesClient struct { - Client *resourcemanager.Client -} - -func NewPublicIPAddressesClientWithBaseURI(sdkApi sdkEnv.Api) (*PublicIPAddressesClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "publicipaddresses", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating PublicIPAddressesClient: %+v", err) - } - - return &PublicIPAddressesClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/constants.go deleted file mode 100644 index 167548baa81b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/constants.go +++ /dev/null @@ -1,1239 +0,0 @@ -package publicipaddresses - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosSettingsProtectionMode string - -const ( - DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" - DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" - DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" -) - -func PossibleValuesForDdosSettingsProtectionMode() []string { - return []string{ - string(DdosSettingsProtectionModeDisabled), - string(DdosSettingsProtectionModeEnabled), - string(DdosSettingsProtectionModeVirtualNetworkInherited), - } -} - -func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDdosSettingsProtectionMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { - vals := map[string]DdosSettingsProtectionMode{ - "disabled": DdosSettingsProtectionModeDisabled, - "enabled": DdosSettingsProtectionModeEnabled, - "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DdosSettingsProtectionMode(input) - return &out, nil -} - -type DeleteOptions string - -const ( - DeleteOptionsDelete DeleteOptions = "Delete" - DeleteOptionsDetach DeleteOptions = "Detach" -) - -func PossibleValuesForDeleteOptions() []string { - return []string{ - string(DeleteOptionsDelete), - string(DeleteOptionsDetach), - } -} - -func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDeleteOptions(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDeleteOptions(input string) (*DeleteOptions, error) { - vals := map[string]DeleteOptions{ - "delete": DeleteOptionsDelete, - "detach": DeleteOptionsDetach, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DeleteOptions(input) - return &out, nil -} - -type FlowLogFormatType string - -const ( - FlowLogFormatTypeJSON FlowLogFormatType = "JSON" -) - -func PossibleValuesForFlowLogFormatType() []string { - return []string{ - string(FlowLogFormatTypeJSON), - } -} - -func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseFlowLogFormatType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { - vals := map[string]FlowLogFormatType{ - "json": FlowLogFormatTypeJSON, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := FlowLogFormatType(input) - return &out, nil -} - -type GatewayLoadBalancerTunnelInterfaceType string - -const ( - GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" - GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" - GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" -) - -func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { - return []string{ - string(GatewayLoadBalancerTunnelInterfaceTypeExternal), - string(GatewayLoadBalancerTunnelInterfaceTypeInternal), - string(GatewayLoadBalancerTunnelInterfaceTypeNone), - } -} - -func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { - vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ - "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, - "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, - "none": GatewayLoadBalancerTunnelInterfaceTypeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GatewayLoadBalancerTunnelInterfaceType(input) - return &out, nil -} - -type GatewayLoadBalancerTunnelProtocol string - -const ( - GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" - GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" - GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" -) - -func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { - return []string{ - string(GatewayLoadBalancerTunnelProtocolNative), - string(GatewayLoadBalancerTunnelProtocolNone), - string(GatewayLoadBalancerTunnelProtocolVXLAN), - } -} - -func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { - vals := map[string]GatewayLoadBalancerTunnelProtocol{ - "native": GatewayLoadBalancerTunnelProtocolNative, - "none": GatewayLoadBalancerTunnelProtocolNone, - "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GatewayLoadBalancerTunnelProtocol(input) - return &out, nil -} - -type IPAllocationMethod string - -const ( - IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" - IPAllocationMethodStatic IPAllocationMethod = "Static" -) - -func PossibleValuesForIPAllocationMethod() []string { - return []string{ - string(IPAllocationMethodDynamic), - string(IPAllocationMethodStatic), - } -} - -func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPAllocationMethod(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { - vals := map[string]IPAllocationMethod{ - "dynamic": IPAllocationMethodDynamic, - "static": IPAllocationMethodStatic, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPAllocationMethod(input) - return &out, nil -} - -type IPVersion string - -const ( - IPVersionIPvFour IPVersion = "IPv4" - IPVersionIPvSix IPVersion = "IPv6" -) - -func PossibleValuesForIPVersion() []string { - return []string{ - string(IPVersionIPvFour), - string(IPVersionIPvSix), - } -} - -func (s *IPVersion) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPVersion(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPVersion(input string) (*IPVersion, error) { - vals := map[string]IPVersion{ - "ipv4": IPVersionIPvFour, - "ipv6": IPVersionIPvSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPVersion(input) - return &out, nil -} - -type IsWorkloadProtected string - -const ( - IsWorkloadProtectedFalse IsWorkloadProtected = "False" - IsWorkloadProtectedTrue IsWorkloadProtected = "True" -) - -func PossibleValuesForIsWorkloadProtected() []string { - return []string{ - string(IsWorkloadProtectedFalse), - string(IsWorkloadProtectedTrue), - } -} - -func (s *IsWorkloadProtected) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIsWorkloadProtected(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIsWorkloadProtected(input string) (*IsWorkloadProtected, error) { - vals := map[string]IsWorkloadProtected{ - "false": IsWorkloadProtectedFalse, - "true": IsWorkloadProtectedTrue, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IsWorkloadProtected(input) - return &out, nil -} - -type LoadBalancerBackendAddressAdminState string - -const ( - LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" - LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" - LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" -) - -func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { - return []string{ - string(LoadBalancerBackendAddressAdminStateDown), - string(LoadBalancerBackendAddressAdminStateNone), - string(LoadBalancerBackendAddressAdminStateUp), - } -} - -func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerBackendAddressAdminState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { - vals := map[string]LoadBalancerBackendAddressAdminState{ - "down": LoadBalancerBackendAddressAdminStateDown, - "none": LoadBalancerBackendAddressAdminStateNone, - "up": LoadBalancerBackendAddressAdminStateUp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerBackendAddressAdminState(input) - return &out, nil -} - -type NatGatewaySkuName string - -const ( - NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" -) - -func PossibleValuesForNatGatewaySkuName() []string { - return []string{ - string(NatGatewaySkuNameStandard), - } -} - -func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNatGatewaySkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { - vals := map[string]NatGatewaySkuName{ - "standard": NatGatewaySkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NatGatewaySkuName(input) - return &out, nil -} - -type NetworkInterfaceAuxiliaryMode string - -const ( - NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" - NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" - NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" - NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" -) - -func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { - return []string{ - string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), - string(NetworkInterfaceAuxiliaryModeFloating), - string(NetworkInterfaceAuxiliaryModeMaxConnections), - string(NetworkInterfaceAuxiliaryModeNone), - } -} - -func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceAuxiliaryMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { - vals := map[string]NetworkInterfaceAuxiliaryMode{ - "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, - "floating": NetworkInterfaceAuxiliaryModeFloating, - "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, - "none": NetworkInterfaceAuxiliaryModeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceAuxiliaryMode(input) - return &out, nil -} - -type NetworkInterfaceAuxiliarySku string - -const ( - NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" - NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" - NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" - NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" - NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" -) - -func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { - return []string{ - string(NetworkInterfaceAuxiliarySkuAEight), - string(NetworkInterfaceAuxiliarySkuAFour), - string(NetworkInterfaceAuxiliarySkuAOne), - string(NetworkInterfaceAuxiliarySkuATwo), - string(NetworkInterfaceAuxiliarySkuNone), - } -} - -func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceAuxiliarySku(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { - vals := map[string]NetworkInterfaceAuxiliarySku{ - "a8": NetworkInterfaceAuxiliarySkuAEight, - "a4": NetworkInterfaceAuxiliarySkuAFour, - "a1": NetworkInterfaceAuxiliarySkuAOne, - "a2": NetworkInterfaceAuxiliarySkuATwo, - "none": NetworkInterfaceAuxiliarySkuNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceAuxiliarySku(input) - return &out, nil -} - -type NetworkInterfaceMigrationPhase string - -const ( - NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" - NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" - NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" - NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" - NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" -) - -func PossibleValuesForNetworkInterfaceMigrationPhase() []string { - return []string{ - string(NetworkInterfaceMigrationPhaseAbort), - string(NetworkInterfaceMigrationPhaseCommit), - string(NetworkInterfaceMigrationPhaseCommitted), - string(NetworkInterfaceMigrationPhaseNone), - string(NetworkInterfaceMigrationPhasePrepare), - } -} - -func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceMigrationPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { - vals := map[string]NetworkInterfaceMigrationPhase{ - "abort": NetworkInterfaceMigrationPhaseAbort, - "commit": NetworkInterfaceMigrationPhaseCommit, - "committed": NetworkInterfaceMigrationPhaseCommitted, - "none": NetworkInterfaceMigrationPhaseNone, - "prepare": NetworkInterfaceMigrationPhasePrepare, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceMigrationPhase(input) - return &out, nil -} - -type NetworkInterfaceNicType string - -const ( - NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" - NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" -) - -func PossibleValuesForNetworkInterfaceNicType() []string { - return []string{ - string(NetworkInterfaceNicTypeElastic), - string(NetworkInterfaceNicTypeStandard), - } -} - -func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceNicType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { - vals := map[string]NetworkInterfaceNicType{ - "elastic": NetworkInterfaceNicTypeElastic, - "standard": NetworkInterfaceNicTypeStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceNicType(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type PublicIPAddressDnsSettingsDomainNameLabelScope string - -const ( - PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" -) - -func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { - return []string{ - string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), - } -} - -func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { - vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ - "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, - "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, - "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, - "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) - return &out, nil -} - -type PublicIPAddressMigrationPhase string - -const ( - PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" - PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" - PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" - PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" - PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" -) - -func PossibleValuesForPublicIPAddressMigrationPhase() []string { - return []string{ - string(PublicIPAddressMigrationPhaseAbort), - string(PublicIPAddressMigrationPhaseCommit), - string(PublicIPAddressMigrationPhaseCommitted), - string(PublicIPAddressMigrationPhaseNone), - string(PublicIPAddressMigrationPhasePrepare), - } -} - -func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressMigrationPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { - vals := map[string]PublicIPAddressMigrationPhase{ - "abort": PublicIPAddressMigrationPhaseAbort, - "commit": PublicIPAddressMigrationPhaseCommit, - "committed": PublicIPAddressMigrationPhaseCommitted, - "none": PublicIPAddressMigrationPhaseNone, - "prepare": PublicIPAddressMigrationPhasePrepare, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressMigrationPhase(input) - return &out, nil -} - -type PublicIPAddressSkuName string - -const ( - PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" - PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" -) - -func PossibleValuesForPublicIPAddressSkuName() []string { - return []string{ - string(PublicIPAddressSkuNameBasic), - string(PublicIPAddressSkuNameStandard), - } -} - -func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { - vals := map[string]PublicIPAddressSkuName{ - "basic": PublicIPAddressSkuNameBasic, - "standard": PublicIPAddressSkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressSkuName(input) - return &out, nil -} - -type PublicIPAddressSkuTier string - -const ( - PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" - PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" -) - -func PossibleValuesForPublicIPAddressSkuTier() []string { - return []string{ - string(PublicIPAddressSkuTierGlobal), - string(PublicIPAddressSkuTierRegional), - } -} - -func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { - vals := map[string]PublicIPAddressSkuTier{ - "global": PublicIPAddressSkuTierGlobal, - "regional": PublicIPAddressSkuTierRegional, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressSkuTier(input) - return &out, nil -} - -type RouteNextHopType string - -const ( - RouteNextHopTypeInternet RouteNextHopType = "Internet" - RouteNextHopTypeNone RouteNextHopType = "None" - RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" - RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" - RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" -) - -func PossibleValuesForRouteNextHopType() []string { - return []string{ - string(RouteNextHopTypeInternet), - string(RouteNextHopTypeNone), - string(RouteNextHopTypeVirtualAppliance), - string(RouteNextHopTypeVirtualNetworkGateway), - string(RouteNextHopTypeVnetLocal), - } -} - -func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseRouteNextHopType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseRouteNextHopType(input string) (*RouteNextHopType, error) { - vals := map[string]RouteNextHopType{ - "internet": RouteNextHopTypeInternet, - "none": RouteNextHopTypeNone, - "virtualappliance": RouteNextHopTypeVirtualAppliance, - "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, - "vnetlocal": RouteNextHopTypeVnetLocal, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := RouteNextHopType(input) - return &out, nil -} - -type SecurityRuleAccess string - -const ( - SecurityRuleAccessAllow SecurityRuleAccess = "Allow" - SecurityRuleAccessDeny SecurityRuleAccess = "Deny" -) - -func PossibleValuesForSecurityRuleAccess() []string { - return []string{ - string(SecurityRuleAccessAllow), - string(SecurityRuleAccessDeny), - } -} - -func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { - vals := map[string]SecurityRuleAccess{ - "allow": SecurityRuleAccessAllow, - "deny": SecurityRuleAccessDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleAccess(input) - return &out, nil -} - -type SecurityRuleDirection string - -const ( - SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" - SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" -) - -func PossibleValuesForSecurityRuleDirection() []string { - return []string{ - string(SecurityRuleDirectionInbound), - string(SecurityRuleDirectionOutbound), - } -} - -func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleDirection(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { - vals := map[string]SecurityRuleDirection{ - "inbound": SecurityRuleDirectionInbound, - "outbound": SecurityRuleDirectionOutbound, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleDirection(input) - return &out, nil -} - -type SecurityRuleProtocol string - -const ( - SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" - SecurityRuleProtocolAny SecurityRuleProtocol = "*" - SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" - SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" - SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" - SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" -) - -func PossibleValuesForSecurityRuleProtocol() []string { - return []string{ - string(SecurityRuleProtocolAh), - string(SecurityRuleProtocolAny), - string(SecurityRuleProtocolEsp), - string(SecurityRuleProtocolIcmp), - string(SecurityRuleProtocolTcp), - string(SecurityRuleProtocolUdp), - } -} - -func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { - vals := map[string]SecurityRuleProtocol{ - "ah": SecurityRuleProtocolAh, - "*": SecurityRuleProtocolAny, - "esp": SecurityRuleProtocolEsp, - "icmp": SecurityRuleProtocolIcmp, - "tcp": SecurityRuleProtocolTcp, - "udp": SecurityRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleProtocol(input) - return &out, nil -} - -type SharingScope string - -const ( - SharingScopeDelegatedServices SharingScope = "DelegatedServices" - SharingScopeTenant SharingScope = "Tenant" -) - -func PossibleValuesForSharingScope() []string { - return []string{ - string(SharingScopeDelegatedServices), - string(SharingScopeTenant), - } -} - -func (s *SharingScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSharingScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSharingScope(input string) (*SharingScope, error) { - vals := map[string]SharingScope{ - "delegatedservices": SharingScopeDelegatedServices, - "tenant": SharingScopeTenant, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SharingScope(input) - return &out, nil -} - -type SyncMode string - -const ( - SyncModeAutomatic SyncMode = "Automatic" - SyncModeManual SyncMode = "Manual" -) - -func PossibleValuesForSyncMode() []string { - return []string{ - string(SyncModeAutomatic), - string(SyncModeManual), - } -} - -func (s *SyncMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSyncMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSyncMode(input string) (*SyncMode, error) { - vals := map[string]SyncMode{ - "automatic": SyncModeAutomatic, - "manual": SyncModeManual, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SyncMode(input) - return &out, nil -} - -type TransportProtocol string - -const ( - TransportProtocolAll TransportProtocol = "All" - TransportProtocolTcp TransportProtocol = "Tcp" - TransportProtocolUdp TransportProtocol = "Udp" -) - -func PossibleValuesForTransportProtocol() []string { - return []string{ - string(TransportProtocolAll), - string(TransportProtocolTcp), - string(TransportProtocolUdp), - } -} - -func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseTransportProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseTransportProtocol(input string) (*TransportProtocol, error) { - vals := map[string]TransportProtocol{ - "all": TransportProtocolAll, - "tcp": TransportProtocolTcp, - "udp": TransportProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := TransportProtocol(input) - return &out, nil -} - -type VirtualNetworkPrivateEndpointNetworkPolicies string - -const ( - VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" - VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" - VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" - VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" -) - -func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { - return []string{ - string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), - } -} - -func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { - vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ - "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, - "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, - "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, - "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPrivateEndpointNetworkPolicies(input) - return &out, nil -} - -type VirtualNetworkPrivateLinkServiceNetworkPolicies string - -const ( - VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" - VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" -) - -func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { - return []string{ - string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), - string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), - } -} - -func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { - vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ - "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, - "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_createorupdate.go deleted file mode 100644 index fca7faa2130f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_createorupdate.go +++ /dev/null @@ -1,76 +0,0 @@ -package publicipaddresses - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *PublicIPAddress -} - -// CreateOrUpdate ... -func (c PublicIPAddressesClient) CreateOrUpdate(ctx context.Context, id commonids.PublicIPAddressId, input PublicIPAddress) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c PublicIPAddressesClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.PublicIPAddressId, input PublicIPAddress) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_ddosprotectionstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_ddosprotectionstatus.go deleted file mode 100644 index 29e07596f6d8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_ddosprotectionstatus.go +++ /dev/null @@ -1,72 +0,0 @@ -package publicipaddresses - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosProtectionStatusOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *PublicIPDdosProtectionStatusResult -} - -// DdosProtectionStatus ... -func (c PublicIPAddressesClient) DdosProtectionStatus(ctx context.Context, id commonids.PublicIPAddressId) (result DdosProtectionStatusOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/ddosProtectionStatus", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DdosProtectionStatusThenPoll performs DdosProtectionStatus then polls until it's completed -func (c PublicIPAddressesClient) DdosProtectionStatusThenPoll(ctx context.Context, id commonids.PublicIPAddressId) error { - result, err := c.DdosProtectionStatus(ctx, id) - if err != nil { - return fmt.Errorf("performing DdosProtectionStatus: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after DdosProtectionStatus: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_delete.go deleted file mode 100644 index 20c57a22e757..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_delete.go +++ /dev/null @@ -1,72 +0,0 @@ -package publicipaddresses - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c PublicIPAddressesClient) Delete(ctx context.Context, id commonids.PublicIPAddressId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c PublicIPAddressesClient) DeleteThenPoll(ctx context.Context, id commonids.PublicIPAddressId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_get.go deleted file mode 100644 index 2548c9b4db60..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_get.go +++ /dev/null @@ -1,84 +0,0 @@ -package publicipaddresses - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *PublicIPAddress -} - -type GetOperationOptions struct { - Expand *string -} - -func DefaultGetOperationOptions() GetOperationOptions { - return GetOperationOptions{} -} - -func (o GetOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o GetOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o GetOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Expand != nil { - out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) - } - return &out -} - -// Get ... -func (c PublicIPAddressesClient) Get(ctx context.Context, id commonids.PublicIPAddressId, options GetOperationOptions) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model PublicIPAddress - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_list.go deleted file mode 100644 index 013d0306760d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package publicipaddresses - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]PublicIPAddress -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []PublicIPAddress -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c PublicIPAddressesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPAddresses", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]PublicIPAddress `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c PublicIPAddressesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, PublicIPAddressOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c PublicIPAddressesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate PublicIPAddressOperationPredicate) (result ListCompleteResult, err error) { - items := make([]PublicIPAddress, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_listall.go deleted file mode 100644 index fc1c5ecc2474..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_listall.go +++ /dev/null @@ -1,106 +0,0 @@ -package publicipaddresses - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListAllOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]PublicIPAddress -} - -type ListAllCompleteResult struct { - LatestHttpResponse *http.Response - Items []PublicIPAddress -} - -type ListAllCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListAllCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListAll ... -func (c PublicIPAddressesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListAllCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPAddresses", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]PublicIPAddress `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListAllComplete retrieves all the results into a single object -func (c PublicIPAddressesClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { - return c.ListAllCompleteMatchingPredicate(ctx, id, PublicIPAddressOperationPredicate{}) -} - -// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c PublicIPAddressesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate PublicIPAddressOperationPredicate) (result ListAllCompleteResult, err error) { - items := make([]PublicIPAddress, 0) - - resp, err := c.ListAll(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListAllCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_updatetags.go deleted file mode 100644 index 622a0a8c202f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_updatetags.go +++ /dev/null @@ -1,58 +0,0 @@ -package publicipaddresses - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateTagsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *PublicIPAddress -} - -// UpdateTags ... -func (c PublicIPAddressesClient) UpdateTags(ctx context.Context, id commonids.PublicIPAddressId, input TagsObject) (result UpdateTagsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model PublicIPAddress - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddress.go deleted file mode 100644 index d89d17bbae7f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddress.go +++ /dev/null @@ -1,9 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayBackendAddress struct { - Fqdn *string `json:"fqdn,omitempty"` - IPAddress *string `json:"ipAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddresspool.go deleted file mode 100644 index 433f6b69df9a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddresspool.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayBackendAddressPool struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go deleted file mode 100644 index 14750d210a4b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { - BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` - BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewayipconfiguration.go deleted file mode 100644 index 33311f968a88..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewayipconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go deleted file mode 100644 index 69ba272007f2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayIPConfigurationPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *SubResource `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationsecuritygroup.go deleted file mode 100644 index 7ab7c1cc362a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationsecuritygroup.go +++ /dev/null @@ -1,14 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationsecuritygrouppropertiesformat.go deleted file mode 100644 index 3de744e7bae6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationsecuritygrouppropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroupPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_backendaddresspool.go deleted file mode 100644 index c693d24a91b0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_backendaddresspool.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BackendAddressPool struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_backendaddresspoolpropertiesformat.go deleted file mode 100644 index b4b3a346a35a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_backendaddresspoolpropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BackendAddressPoolPropertiesFormat struct { - BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` - DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` - InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` - LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` - LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` - Location *string `json:"location,omitempty"` - OutboundRule *SubResource `json:"outboundRule,omitempty"` - OutboundRules *[]SubResource `json:"outboundRules,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - SyncMode *SyncMode `json:"syncMode,omitempty"` - TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` - VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_customdnsconfigpropertiesformat.go deleted file mode 100644 index 2bbec7ab5233..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_customdnsconfigpropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CustomDnsConfigPropertiesFormat struct { - Fqdn *string `json:"fqdn,omitempty"` - IPAddresses *[]string `json:"ipAddresses,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ddossettings.go deleted file mode 100644 index 360538854a2a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ddossettings.go +++ /dev/null @@ -1,9 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosSettings struct { - DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` - ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_delegation.go deleted file mode 100644 index 1036beaaf723..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_delegation.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Delegation struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlog.go deleted file mode 100644 index 3ab56bececf5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlogformatparameters.go deleted file mode 100644 index 28da49ecc439..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlogformatparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogFormatParameters struct { - Type *FlowLogFormatType `json:"type,omitempty"` - Version *int64 `json:"version,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlogpropertiesformat.go deleted file mode 100644 index 6690c7ec8807..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_frontendipconfiguration.go deleted file mode 100644 index 72aec2b54372..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_frontendipconfiguration.go +++ /dev/null @@ -1,17 +0,0 @@ -package publicipaddresses - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FrontendIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_frontendipconfigurationpropertiesformat.go deleted file mode 100644 index 2d86f96cffb3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_frontendipconfigurationpropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FrontendIPConfigurationPropertiesFormat struct { - GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` - InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` - InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` - LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` - OutboundRules *[]SubResource `json:"outboundRules,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` - PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_gatewayloadbalancertunnelinterface.go deleted file mode 100644 index 9d2c813c821d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_gatewayloadbalancertunnelinterface.go +++ /dev/null @@ -1,11 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GatewayLoadBalancerTunnelInterface struct { - Identifier *int64 `json:"identifier,omitempty"` - Port *int64 `json:"port,omitempty"` - Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` - Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_inboundnatrule.go deleted file mode 100644 index bd6a9711828d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_inboundnatrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundNatRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_inboundnatrulepropertiesformat.go deleted file mode 100644 index 320809245cfc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_inboundnatrulepropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundNatRulePropertiesFormat struct { - BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` - BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` - BackendPort *int64 `json:"backendPort,omitempty"` - EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` - EnableTcpReset *bool `json:"enableTcpReset,omitempty"` - FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` - FrontendPort *int64 `json:"frontendPort,omitempty"` - FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` - FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - Protocol *TransportProtocol `json:"protocol,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfiguration.go deleted file mode 100644 index 398840974cdd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfiguration.go +++ /dev/null @@ -1,11 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationprofile.go deleted file mode 100644 index 1bf1de274419..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationprofile.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfigurationProfile struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationprofilepropertiesformat.go deleted file mode 100644 index 1523f28e63d4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationprofilepropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfigurationProfilePropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationpropertiesformat.go deleted file mode 100644 index bb4f647f729d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationpropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfigurationPropertiesFormat struct { - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_iptag.go deleted file mode 100644 index 7ea58148bb25..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_iptag.go +++ /dev/null @@ -1,9 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPTag struct { - IPTagType *string `json:"ipTagType,omitempty"` - Tag *string `json:"tag,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_loadbalancerbackendaddress.go deleted file mode 100644 index e427662f2a61..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_loadbalancerbackendaddress.go +++ /dev/null @@ -1,9 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LoadBalancerBackendAddress struct { - Name *string `json:"name,omitempty"` - Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go deleted file mode 100644 index 349c22b64f57..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go +++ /dev/null @@ -1,14 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LoadBalancerBackendAddressPropertiesFormat struct { - AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` - IPAddress *string `json:"ipAddress,omitempty"` - InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` - LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` - NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` - Subnet *SubResource `json:"subnet,omitempty"` - VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgateway.go deleted file mode 100644 index fc10c7874b79..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgateway.go +++ /dev/null @@ -1,20 +0,0 @@ -package publicipaddresses - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGateway struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` - Sku *NatGatewaySku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgatewaypropertiesformat.go deleted file mode 100644 index 3a740fb997bd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgatewaypropertiesformat.go +++ /dev/null @@ -1,13 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGatewayPropertiesFormat struct { - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` - PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - Subnets *[]SubResource `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgatewaysku.go deleted file mode 100644 index 764ce1ec4aa6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgatewaysku.go +++ /dev/null @@ -1,8 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGatewaySku struct { - Name *NatGatewaySkuName `json:"name,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natruleportmapping.go deleted file mode 100644 index 8c9fe6cf53db..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natruleportmapping.go +++ /dev/null @@ -1,10 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatRulePortMapping struct { - BackendPort *int64 `json:"backendPort,omitempty"` - FrontendPort *int64 `json:"frontendPort,omitempty"` - InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterface.go deleted file mode 100644 index 5297e4801531..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterface.go +++ /dev/null @@ -1,19 +0,0 @@ -package publicipaddresses - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterface struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacednssettings.go deleted file mode 100644 index b5db798efaa9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacednssettings.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceDnsSettings struct { - AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` - DnsServers *[]string `json:"dnsServers,omitempty"` - InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` - InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` - InternalFqdn *string `json:"internalFqdn,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfiguration.go deleted file mode 100644 index 9840f48b6360..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go deleted file mode 100644 index 7815eb1f03a2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { - Fqdns *[]string `json:"fqdns,omitempty"` - GroupId *string `json:"groupId,omitempty"` - RequiredMemberName *string `json:"requiredMemberName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go deleted file mode 100644 index fefc0a7c7d9c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go +++ /dev/null @@ -1,22 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfigurationPropertiesFormat struct { - ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` - ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` - GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` - LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` - LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` - Primary *bool `json:"primary,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` - VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacepropertiesformat.go deleted file mode 100644 index b50c25d80861..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacepropertiesformat.go +++ /dev/null @@ -1,29 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfacePropertiesFormat struct { - AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` - AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` - DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` - DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` - DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` - EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` - EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` - HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` - IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` - MacAddress *string `json:"macAddress,omitempty"` - MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` - NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` - NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` - Primary *bool `json:"primary,omitempty"` - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` - PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` - VirtualMachine *SubResource `json:"virtualMachine,omitempty"` - VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` - WorkloadType *string `json:"workloadType,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacetapconfiguration.go deleted file mode 100644 index 060a9d5285a8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacetapconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceTapConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go deleted file mode 100644 index d229b2dfb8dd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceTapConfigurationPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networksecuritygroup.go deleted file mode 100644 index 485cb7f8e07e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networksecuritygroup.go +++ /dev/null @@ -1,14 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkSecurityGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networksecuritygrouppropertiesformat.go deleted file mode 100644 index 8fef2ca403a3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networksecuritygrouppropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkSecurityGroupPropertiesFormat struct { - DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` - FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` - FlushConnection *bool `json:"flushConnection,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpoint.go deleted file mode 100644 index dd63348ae6f0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpoint.go +++ /dev/null @@ -1,19 +0,0 @@ -package publicipaddresses - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpoint struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointProperties `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointconnection.go deleted file mode 100644 index b449098f79d0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointconnection.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointconnectionproperties.go deleted file mode 100644 index 8a20b5b22e7a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointconnectionproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointConnectionProperties struct { - LinkIdentifier *string `json:"linkIdentifier,omitempty"` - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` - PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` - PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointipconfiguration.go deleted file mode 100644 index e75d758ed009..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointipconfiguration.go +++ /dev/null @@ -1,11 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointipconfigurationproperties.go deleted file mode 100644 index 42574e02e610..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointipconfigurationproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointIPConfigurationProperties struct { - GroupId *string `json:"groupId,omitempty"` - MemberName *string `json:"memberName,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointproperties.go deleted file mode 100644 index a0108e9c621e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointproperties.go +++ /dev/null @@ -1,16 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointProperties struct { - ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` - CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` - CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` - IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` - ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkservice.go deleted file mode 100644 index b4d87fc15130..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkservice.go +++ /dev/null @@ -1,19 +0,0 @@ -package publicipaddresses - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkService struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnection.go deleted file mode 100644 index 2039fef8e1a1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnection.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnectionproperties.go deleted file mode 100644 index 37f23eb3b44a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnectionproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceConnectionProperties struct { - GroupIds *[]string `json:"groupIds,omitempty"` - PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` - PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RequestMessage *string `json:"requestMessage,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnectionstate.go deleted file mode 100644 index ee170e641091..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnectionstate.go +++ /dev/null @@ -1,10 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceConnectionState struct { - ActionsRequired *string `json:"actionsRequired,omitempty"` - Description *string `json:"description,omitempty"` - Status *string `json:"status,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceipconfiguration.go deleted file mode 100644 index 8dce57f93b6c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceipconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceipconfigurationproperties.go deleted file mode 100644 index 17839c3231f6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceipconfigurationproperties.go +++ /dev/null @@ -1,13 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceIPConfigurationProperties struct { - Primary *bool `json:"primary,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceproperties.go deleted file mode 100644 index 7307dfa6a246..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddress.go deleted file mode 100644 index 6be866484876..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddress.go +++ /dev/null @@ -1,22 +0,0 @@ -package publicipaddresses - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddress struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` - Sku *PublicIPAddressSku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddressdnssettings.go deleted file mode 100644 index 19bd5c73bdd8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddressdnssettings.go +++ /dev/null @@ -1,11 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressDnsSettings struct { - DomainNameLabel *string `json:"domainNameLabel,omitempty"` - DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` - Fqdn *string `json:"fqdn,omitempty"` - ReverseFqdn *string `json:"reverseFqdn,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddresspropertiesformat.go deleted file mode 100644 index 90c1d7720127..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddresspropertiesformat.go +++ /dev/null @@ -1,23 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressPropertiesFormat struct { - DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` - DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` - DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` - IPAddress *string `json:"ipAddress,omitempty"` - IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` - IPTags *[]IPTag `json:"ipTags,omitempty"` - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` - MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` - NatGateway *NatGateway `json:"natGateway,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` - PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` - PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddresssku.go deleted file mode 100644 index af0178060c91..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddresssku.go +++ /dev/null @@ -1,9 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressSku struct { - Name *PublicIPAddressSkuName `json:"name,omitempty"` - Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipddosprotectionstatusresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipddosprotectionstatusresult.go deleted file mode 100644 index dbf51354f05d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipddosprotectionstatusresult.go +++ /dev/null @@ -1,11 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPDdosProtectionStatusResult struct { - DdosProtectionPlanId *string `json:"ddosProtectionPlanId,omitempty"` - IsWorkloadProtected *IsWorkloadProtected `json:"isWorkloadProtected,omitempty"` - PublicIPAddress *string `json:"publicIpAddress,omitempty"` - PublicIPAddressId *string `json:"publicIpAddressId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourcenavigationlink.go deleted file mode 100644 index 8df0e65c7963..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourcenavigationlink.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceNavigationLink struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourcenavigationlinkformat.go deleted file mode 100644 index 912dad5e9b9b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourcenavigationlinkformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceNavigationLinkFormat struct { - Link *string `json:"link,omitempty"` - LinkedResourceType *string `json:"linkedResourceType,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourceset.go deleted file mode 100644 index eb4ec2e13c49..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourceset.go +++ /dev/null @@ -1,8 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceSet struct { - Subscriptions *[]string `json:"subscriptions,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_retentionpolicyparameters.go deleted file mode 100644 index 57e746e68001..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_retentionpolicyparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RetentionPolicyParameters struct { - Days *int64 `json:"days,omitempty"` - Enabled *bool `json:"enabled,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_route.go deleted file mode 100644 index 6aaf9130e490..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_route.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Route struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *RoutePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routepropertiesformat.go deleted file mode 100644 index 19e40f46ddbe..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routepropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RoutePropertiesFormat struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` - NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` - NextHopType RouteNextHopType `json:"nextHopType"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routetable.go deleted file mode 100644 index eed83ddcb847..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routetable.go +++ /dev/null @@ -1,14 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteTable struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routetablepropertiesformat.go deleted file mode 100644 index f408090b5c7b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routetablepropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteTablePropertiesFormat struct { - DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - Routes *[]Route `json:"routes,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_securityrule.go deleted file mode 100644 index 056a5506bccf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_securityrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_securityrulepropertiesformat.go deleted file mode 100644 index e076569ccb45..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_securityrulepropertiesformat.go +++ /dev/null @@ -1,23 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRulePropertiesFormat struct { - Access SecurityRuleAccess `json:"access"` - Description *string `json:"description,omitempty"` - DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` - DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` - DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` - DestinationPortRange *string `json:"destinationPortRange,omitempty"` - DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` - Direction SecurityRuleDirection `json:"direction"` - Priority int64 `json:"priority"` - Protocol SecurityRuleProtocol `json:"protocol"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` - SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` - SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` - SourcePortRange *string `json:"sourcePortRange,omitempty"` - SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceassociationlink.go deleted file mode 100644 index 80405186b49f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceassociationlink.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceAssociationLink struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceassociationlinkpropertiesformat.go deleted file mode 100644 index e0afefd43a1c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceassociationlinkpropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceAssociationLinkPropertiesFormat struct { - AllowDelete *bool `json:"allowDelete,omitempty"` - Link *string `json:"link,omitempty"` - LinkedResourceType *string `json:"linkedResourceType,omitempty"` - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_servicedelegationpropertiesformat.go deleted file mode 100644 index dfdf08665d4b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_servicedelegationpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceDelegationPropertiesFormat struct { - Actions *[]string `json:"actions,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ServiceName *string `json:"serviceName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicy.go deleted file mode 100644 index 2937667f2dfc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicy.go +++ /dev/null @@ -1,15 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicy struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicydefinition.go deleted file mode 100644 index a5c2fb101895..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicydefinition.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicyDefinition struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go deleted file mode 100644 index 6eae5a093631..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicyDefinitionPropertiesFormat struct { - Description *string `json:"description,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` - ServiceResources *[]string `json:"serviceResources,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicypropertiesformat.go deleted file mode 100644 index 77840b5f2bdd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicypropertiesformat.go +++ /dev/null @@ -1,13 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicyPropertiesFormat struct { - ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - ServiceAlias *string `json:"serviceAlias,omitempty"` - ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpropertiesformat.go deleted file mode 100644 index 8d53fbdcd1e8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subnet.go deleted file mode 100644 index 4dc6901bd98f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subnet.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Subnet struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SubnetPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subnetpropertiesformat.go deleted file mode 100644 index 72cc7de86106..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subnetpropertiesformat.go +++ /dev/null @@ -1,28 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubnetPropertiesFormat struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` - ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` - DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` - Delegations *[]Delegation `json:"delegations,omitempty"` - IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` - IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` - IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` - NatGateway *SubResource `json:"natGateway,omitempty"` - NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` - PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` - PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` - PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Purpose *string `json:"purpose,omitempty"` - ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` - RouteTable *RouteTable `json:"routeTable,omitempty"` - ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` - ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` - ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` - SharingScope *SharingScope `json:"sharingScope,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subresource.go deleted file mode 100644 index f4a7d6a32482..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_tagsobject.go deleted file mode 100644 index 717ed6f5d3dd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_trafficanalyticsconfigurationproperties.go deleted file mode 100644 index f3cbae91cdce..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_trafficanalyticsconfigurationproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TrafficAnalyticsConfigurationProperties struct { - Enabled *bool `json:"enabled,omitempty"` - TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` - WorkspaceId *string `json:"workspaceId,omitempty"` - WorkspaceRegion *string `json:"workspaceRegion,omitempty"` - WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_trafficanalyticsproperties.go deleted file mode 100644 index 4e34016e12ed..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_trafficanalyticsproperties.go +++ /dev/null @@ -1,8 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TrafficAnalyticsProperties struct { - NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_virtualnetworktap.go deleted file mode 100644 index b4791998c225..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_virtualnetworktap.go +++ /dev/null @@ -1,14 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkTap struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_virtualnetworktappropertiesformat.go deleted file mode 100644 index 4f32bce3226a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_virtualnetworktappropertiesformat.go +++ /dev/null @@ -1,13 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkTapPropertiesFormat struct { - DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` - DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` - DestinationPort *int64 `json:"destinationPort,omitempty"` - NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/predicates.go deleted file mode 100644 index 07d29ffa7330..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/predicates.go +++ /dev/null @@ -1,37 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p PublicIPAddressOperationPredicate) Matches(input PublicIPAddress) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/version.go deleted file mode 100644 index 52df067607a0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/publicipaddresses/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/README.md deleted file mode 100644 index f834ef3c4a90..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/README.md +++ /dev/null @@ -1,239 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks` Documentation - -The `virtualnetworks` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" -``` - - -### Client Initialization - -```go -client := virtualnetworks.NewVirtualNetworksClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VirtualNetworksClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -payload := virtualnetworks.VirtualNetwork{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworksClient.Delete` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworksClient.Get` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -read, err := client.Get(ctx, id, virtualnetworks.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualNetworksClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworksClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworksClient.ResourceNavigationLinksList` - -```go -ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") - -// alternatively `client.ResourceNavigationLinksList(ctx, id)` can be used to do batched pagination -items, err := client.ResourceNavigationLinksListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworksClient.ServiceAssociationLinksList` - -```go -ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") - -// alternatively `client.ServiceAssociationLinksList(ctx, id)` can be used to do batched pagination -items, err := client.ServiceAssociationLinksListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworksClient.SubnetsPrepareNetworkPolicies` - -```go -ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") - -payload := virtualnetworks.PrepareNetworkPoliciesRequest{ - // ... -} - - -if err := client.SubnetsPrepareNetworkPoliciesThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworksClient.SubnetsUnprepareNetworkPolicies` - -```go -ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") - -payload := virtualnetworks.UnprepareNetworkPoliciesRequest{ - // ... -} - - -if err := client.SubnetsUnprepareNetworkPoliciesThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworksClient.UpdateTags` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -payload := virtualnetworks.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualNetworksClient.VirtualNetworksCheckIPAddressAvailability` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -read, err := client.VirtualNetworksCheckIPAddressAvailability(ctx, id, virtualnetworks.DefaultVirtualNetworksCheckIPAddressAvailabilityOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualNetworksClient.VirtualNetworksListDdosProtectionStatus` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -// alternatively `client.VirtualNetworksListDdosProtectionStatus(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions())` can be used to do batched pagination -items, err := client.VirtualNetworksListDdosProtectionStatusComplete(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworksClient.VirtualNetworksListUsage` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -// alternatively `client.VirtualNetworksListUsage(ctx, id)` can be used to do batched pagination -items, err := client.VirtualNetworksListUsageComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/client.go deleted file mode 100644 index 9acbb6c10272..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/client.go +++ /dev/null @@ -1,26 +0,0 @@ -package virtualnetworks - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworksClient struct { - Client *resourcemanager.Client -} - -func NewVirtualNetworksClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworksClient, error) { - client, err := resourcemanager.NewClient(sdkApi, "virtualnetworks", defaultApiVersion) - if err != nil { - return nil, fmt.Errorf("instantiating VirtualNetworksClient: %+v", err) - } - - return &VirtualNetworksClient{ - Client: client, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/constants.go deleted file mode 100644 index 1cb41676c8b7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/constants.go +++ /dev/null @@ -1,1371 +0,0 @@ -package virtualnetworks - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosSettingsProtectionMode string - -const ( - DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" - DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" - DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" -) - -func PossibleValuesForDdosSettingsProtectionMode() []string { - return []string{ - string(DdosSettingsProtectionModeDisabled), - string(DdosSettingsProtectionModeEnabled), - string(DdosSettingsProtectionModeVirtualNetworkInherited), - } -} - -func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDdosSettingsProtectionMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { - vals := map[string]DdosSettingsProtectionMode{ - "disabled": DdosSettingsProtectionModeDisabled, - "enabled": DdosSettingsProtectionModeEnabled, - "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DdosSettingsProtectionMode(input) - return &out, nil -} - -type DeleteOptions string - -const ( - DeleteOptionsDelete DeleteOptions = "Delete" - DeleteOptionsDetach DeleteOptions = "Detach" -) - -func PossibleValuesForDeleteOptions() []string { - return []string{ - string(DeleteOptionsDelete), - string(DeleteOptionsDetach), - } -} - -func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDeleteOptions(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDeleteOptions(input string) (*DeleteOptions, error) { - vals := map[string]DeleteOptions{ - "delete": DeleteOptionsDelete, - "detach": DeleteOptionsDetach, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DeleteOptions(input) - return &out, nil -} - -type FlowLogFormatType string - -const ( - FlowLogFormatTypeJSON FlowLogFormatType = "JSON" -) - -func PossibleValuesForFlowLogFormatType() []string { - return []string{ - string(FlowLogFormatTypeJSON), - } -} - -func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseFlowLogFormatType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { - vals := map[string]FlowLogFormatType{ - "json": FlowLogFormatTypeJSON, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := FlowLogFormatType(input) - return &out, nil -} - -type GatewayLoadBalancerTunnelInterfaceType string - -const ( - GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" - GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" - GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" -) - -func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { - return []string{ - string(GatewayLoadBalancerTunnelInterfaceTypeExternal), - string(GatewayLoadBalancerTunnelInterfaceTypeInternal), - string(GatewayLoadBalancerTunnelInterfaceTypeNone), - } -} - -func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { - vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ - "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, - "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, - "none": GatewayLoadBalancerTunnelInterfaceTypeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GatewayLoadBalancerTunnelInterfaceType(input) - return &out, nil -} - -type GatewayLoadBalancerTunnelProtocol string - -const ( - GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" - GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" - GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" -) - -func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { - return []string{ - string(GatewayLoadBalancerTunnelProtocolNative), - string(GatewayLoadBalancerTunnelProtocolNone), - string(GatewayLoadBalancerTunnelProtocolVXLAN), - } -} - -func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { - vals := map[string]GatewayLoadBalancerTunnelProtocol{ - "native": GatewayLoadBalancerTunnelProtocolNative, - "none": GatewayLoadBalancerTunnelProtocolNone, - "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GatewayLoadBalancerTunnelProtocol(input) - return &out, nil -} - -type IPAllocationMethod string - -const ( - IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" - IPAllocationMethodStatic IPAllocationMethod = "Static" -) - -func PossibleValuesForIPAllocationMethod() []string { - return []string{ - string(IPAllocationMethodDynamic), - string(IPAllocationMethodStatic), - } -} - -func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPAllocationMethod(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { - vals := map[string]IPAllocationMethod{ - "dynamic": IPAllocationMethodDynamic, - "static": IPAllocationMethodStatic, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPAllocationMethod(input) - return &out, nil -} - -type IPVersion string - -const ( - IPVersionIPvFour IPVersion = "IPv4" - IPVersionIPvSix IPVersion = "IPv6" -) - -func PossibleValuesForIPVersion() []string { - return []string{ - string(IPVersionIPvFour), - string(IPVersionIPvSix), - } -} - -func (s *IPVersion) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPVersion(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPVersion(input string) (*IPVersion, error) { - vals := map[string]IPVersion{ - "ipv4": IPVersionIPvFour, - "ipv6": IPVersionIPvSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPVersion(input) - return &out, nil -} - -type IsWorkloadProtected string - -const ( - IsWorkloadProtectedFalse IsWorkloadProtected = "False" - IsWorkloadProtectedTrue IsWorkloadProtected = "True" -) - -func PossibleValuesForIsWorkloadProtected() []string { - return []string{ - string(IsWorkloadProtectedFalse), - string(IsWorkloadProtectedTrue), - } -} - -func (s *IsWorkloadProtected) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIsWorkloadProtected(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIsWorkloadProtected(input string) (*IsWorkloadProtected, error) { - vals := map[string]IsWorkloadProtected{ - "false": IsWorkloadProtectedFalse, - "true": IsWorkloadProtectedTrue, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IsWorkloadProtected(input) - return &out, nil -} - -type LoadBalancerBackendAddressAdminState string - -const ( - LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" - LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" - LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" -) - -func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { - return []string{ - string(LoadBalancerBackendAddressAdminStateDown), - string(LoadBalancerBackendAddressAdminStateNone), - string(LoadBalancerBackendAddressAdminStateUp), - } -} - -func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerBackendAddressAdminState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { - vals := map[string]LoadBalancerBackendAddressAdminState{ - "down": LoadBalancerBackendAddressAdminStateDown, - "none": LoadBalancerBackendAddressAdminStateNone, - "up": LoadBalancerBackendAddressAdminStateUp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerBackendAddressAdminState(input) - return &out, nil -} - -type NatGatewaySkuName string - -const ( - NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" -) - -func PossibleValuesForNatGatewaySkuName() []string { - return []string{ - string(NatGatewaySkuNameStandard), - } -} - -func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNatGatewaySkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { - vals := map[string]NatGatewaySkuName{ - "standard": NatGatewaySkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NatGatewaySkuName(input) - return &out, nil -} - -type NetworkInterfaceAuxiliaryMode string - -const ( - NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" - NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" - NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" - NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" -) - -func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { - return []string{ - string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), - string(NetworkInterfaceAuxiliaryModeFloating), - string(NetworkInterfaceAuxiliaryModeMaxConnections), - string(NetworkInterfaceAuxiliaryModeNone), - } -} - -func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceAuxiliaryMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { - vals := map[string]NetworkInterfaceAuxiliaryMode{ - "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, - "floating": NetworkInterfaceAuxiliaryModeFloating, - "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, - "none": NetworkInterfaceAuxiliaryModeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceAuxiliaryMode(input) - return &out, nil -} - -type NetworkInterfaceAuxiliarySku string - -const ( - NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" - NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" - NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" - NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" - NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" -) - -func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { - return []string{ - string(NetworkInterfaceAuxiliarySkuAEight), - string(NetworkInterfaceAuxiliarySkuAFour), - string(NetworkInterfaceAuxiliarySkuAOne), - string(NetworkInterfaceAuxiliarySkuATwo), - string(NetworkInterfaceAuxiliarySkuNone), - } -} - -func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceAuxiliarySku(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { - vals := map[string]NetworkInterfaceAuxiliarySku{ - "a8": NetworkInterfaceAuxiliarySkuAEight, - "a4": NetworkInterfaceAuxiliarySkuAFour, - "a1": NetworkInterfaceAuxiliarySkuAOne, - "a2": NetworkInterfaceAuxiliarySkuATwo, - "none": NetworkInterfaceAuxiliarySkuNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceAuxiliarySku(input) - return &out, nil -} - -type NetworkInterfaceMigrationPhase string - -const ( - NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" - NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" - NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" - NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" - NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" -) - -func PossibleValuesForNetworkInterfaceMigrationPhase() []string { - return []string{ - string(NetworkInterfaceMigrationPhaseAbort), - string(NetworkInterfaceMigrationPhaseCommit), - string(NetworkInterfaceMigrationPhaseCommitted), - string(NetworkInterfaceMigrationPhaseNone), - string(NetworkInterfaceMigrationPhasePrepare), - } -} - -func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceMigrationPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { - vals := map[string]NetworkInterfaceMigrationPhase{ - "abort": NetworkInterfaceMigrationPhaseAbort, - "commit": NetworkInterfaceMigrationPhaseCommit, - "committed": NetworkInterfaceMigrationPhaseCommitted, - "none": NetworkInterfaceMigrationPhaseNone, - "prepare": NetworkInterfaceMigrationPhasePrepare, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceMigrationPhase(input) - return &out, nil -} - -type NetworkInterfaceNicType string - -const ( - NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" - NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" -) - -func PossibleValuesForNetworkInterfaceNicType() []string { - return []string{ - string(NetworkInterfaceNicTypeElastic), - string(NetworkInterfaceNicTypeStandard), - } -} - -func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceNicType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { - vals := map[string]NetworkInterfaceNicType{ - "elastic": NetworkInterfaceNicTypeElastic, - "standard": NetworkInterfaceNicTypeStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceNicType(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type PublicIPAddressDnsSettingsDomainNameLabelScope string - -const ( - PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" -) - -func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { - return []string{ - string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), - } -} - -func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { - vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ - "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, - "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, - "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, - "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) - return &out, nil -} - -type PublicIPAddressMigrationPhase string - -const ( - PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" - PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" - PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" - PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" - PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" -) - -func PossibleValuesForPublicIPAddressMigrationPhase() []string { - return []string{ - string(PublicIPAddressMigrationPhaseAbort), - string(PublicIPAddressMigrationPhaseCommit), - string(PublicIPAddressMigrationPhaseCommitted), - string(PublicIPAddressMigrationPhaseNone), - string(PublicIPAddressMigrationPhasePrepare), - } -} - -func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressMigrationPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { - vals := map[string]PublicIPAddressMigrationPhase{ - "abort": PublicIPAddressMigrationPhaseAbort, - "commit": PublicIPAddressMigrationPhaseCommit, - "committed": PublicIPAddressMigrationPhaseCommitted, - "none": PublicIPAddressMigrationPhaseNone, - "prepare": PublicIPAddressMigrationPhasePrepare, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressMigrationPhase(input) - return &out, nil -} - -type PublicIPAddressSkuName string - -const ( - PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" - PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" -) - -func PossibleValuesForPublicIPAddressSkuName() []string { - return []string{ - string(PublicIPAddressSkuNameBasic), - string(PublicIPAddressSkuNameStandard), - } -} - -func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { - vals := map[string]PublicIPAddressSkuName{ - "basic": PublicIPAddressSkuNameBasic, - "standard": PublicIPAddressSkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressSkuName(input) - return &out, nil -} - -type PublicIPAddressSkuTier string - -const ( - PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" - PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" -) - -func PossibleValuesForPublicIPAddressSkuTier() []string { - return []string{ - string(PublicIPAddressSkuTierGlobal), - string(PublicIPAddressSkuTierRegional), - } -} - -func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { - vals := map[string]PublicIPAddressSkuTier{ - "global": PublicIPAddressSkuTierGlobal, - "regional": PublicIPAddressSkuTierRegional, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressSkuTier(input) - return &out, nil -} - -type RouteNextHopType string - -const ( - RouteNextHopTypeInternet RouteNextHopType = "Internet" - RouteNextHopTypeNone RouteNextHopType = "None" - RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" - RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" - RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" -) - -func PossibleValuesForRouteNextHopType() []string { - return []string{ - string(RouteNextHopTypeInternet), - string(RouteNextHopTypeNone), - string(RouteNextHopTypeVirtualAppliance), - string(RouteNextHopTypeVirtualNetworkGateway), - string(RouteNextHopTypeVnetLocal), - } -} - -func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseRouteNextHopType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseRouteNextHopType(input string) (*RouteNextHopType, error) { - vals := map[string]RouteNextHopType{ - "internet": RouteNextHopTypeInternet, - "none": RouteNextHopTypeNone, - "virtualappliance": RouteNextHopTypeVirtualAppliance, - "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, - "vnetlocal": RouteNextHopTypeVnetLocal, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := RouteNextHopType(input) - return &out, nil -} - -type SecurityRuleAccess string - -const ( - SecurityRuleAccessAllow SecurityRuleAccess = "Allow" - SecurityRuleAccessDeny SecurityRuleAccess = "Deny" -) - -func PossibleValuesForSecurityRuleAccess() []string { - return []string{ - string(SecurityRuleAccessAllow), - string(SecurityRuleAccessDeny), - } -} - -func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { - vals := map[string]SecurityRuleAccess{ - "allow": SecurityRuleAccessAllow, - "deny": SecurityRuleAccessDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleAccess(input) - return &out, nil -} - -type SecurityRuleDirection string - -const ( - SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" - SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" -) - -func PossibleValuesForSecurityRuleDirection() []string { - return []string{ - string(SecurityRuleDirectionInbound), - string(SecurityRuleDirectionOutbound), - } -} - -func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleDirection(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { - vals := map[string]SecurityRuleDirection{ - "inbound": SecurityRuleDirectionInbound, - "outbound": SecurityRuleDirectionOutbound, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleDirection(input) - return &out, nil -} - -type SecurityRuleProtocol string - -const ( - SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" - SecurityRuleProtocolAny SecurityRuleProtocol = "*" - SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" - SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" - SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" - SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" -) - -func PossibleValuesForSecurityRuleProtocol() []string { - return []string{ - string(SecurityRuleProtocolAh), - string(SecurityRuleProtocolAny), - string(SecurityRuleProtocolEsp), - string(SecurityRuleProtocolIcmp), - string(SecurityRuleProtocolTcp), - string(SecurityRuleProtocolUdp), - } -} - -func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { - vals := map[string]SecurityRuleProtocol{ - "ah": SecurityRuleProtocolAh, - "*": SecurityRuleProtocolAny, - "esp": SecurityRuleProtocolEsp, - "icmp": SecurityRuleProtocolIcmp, - "tcp": SecurityRuleProtocolTcp, - "udp": SecurityRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleProtocol(input) - return &out, nil -} - -type SharingScope string - -const ( - SharingScopeDelegatedServices SharingScope = "DelegatedServices" - SharingScopeTenant SharingScope = "Tenant" -) - -func PossibleValuesForSharingScope() []string { - return []string{ - string(SharingScopeDelegatedServices), - string(SharingScopeTenant), - } -} - -func (s *SharingScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSharingScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSharingScope(input string) (*SharingScope, error) { - vals := map[string]SharingScope{ - "delegatedservices": SharingScopeDelegatedServices, - "tenant": SharingScopeTenant, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SharingScope(input) - return &out, nil -} - -type SyncMode string - -const ( - SyncModeAutomatic SyncMode = "Automatic" - SyncModeManual SyncMode = "Manual" -) - -func PossibleValuesForSyncMode() []string { - return []string{ - string(SyncModeAutomatic), - string(SyncModeManual), - } -} - -func (s *SyncMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSyncMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSyncMode(input string) (*SyncMode, error) { - vals := map[string]SyncMode{ - "automatic": SyncModeAutomatic, - "manual": SyncModeManual, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SyncMode(input) - return &out, nil -} - -type TransportProtocol string - -const ( - TransportProtocolAll TransportProtocol = "All" - TransportProtocolTcp TransportProtocol = "Tcp" - TransportProtocolUdp TransportProtocol = "Udp" -) - -func PossibleValuesForTransportProtocol() []string { - return []string{ - string(TransportProtocolAll), - string(TransportProtocolTcp), - string(TransportProtocolUdp), - } -} - -func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseTransportProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseTransportProtocol(input string) (*TransportProtocol, error) { - vals := map[string]TransportProtocol{ - "all": TransportProtocolAll, - "tcp": TransportProtocolTcp, - "udp": TransportProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := TransportProtocol(input) - return &out, nil -} - -type VirtualNetworkEncryptionEnforcement string - -const ( - VirtualNetworkEncryptionEnforcementAllowUnencrypted VirtualNetworkEncryptionEnforcement = "AllowUnencrypted" - VirtualNetworkEncryptionEnforcementDropUnencrypted VirtualNetworkEncryptionEnforcement = "DropUnencrypted" -) - -func PossibleValuesForVirtualNetworkEncryptionEnforcement() []string { - return []string{ - string(VirtualNetworkEncryptionEnforcementAllowUnencrypted), - string(VirtualNetworkEncryptionEnforcementDropUnencrypted), - } -} - -func (s *VirtualNetworkEncryptionEnforcement) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkEncryptionEnforcement(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkEncryptionEnforcement(input string) (*VirtualNetworkEncryptionEnforcement, error) { - vals := map[string]VirtualNetworkEncryptionEnforcement{ - "allowunencrypted": VirtualNetworkEncryptionEnforcementAllowUnencrypted, - "dropunencrypted": VirtualNetworkEncryptionEnforcementDropUnencrypted, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkEncryptionEnforcement(input) - return &out, nil -} - -type VirtualNetworkPeeringLevel string - -const ( - VirtualNetworkPeeringLevelFullyInSync VirtualNetworkPeeringLevel = "FullyInSync" - VirtualNetworkPeeringLevelLocalAndRemoteNotInSync VirtualNetworkPeeringLevel = "LocalAndRemoteNotInSync" - VirtualNetworkPeeringLevelLocalNotInSync VirtualNetworkPeeringLevel = "LocalNotInSync" - VirtualNetworkPeeringLevelRemoteNotInSync VirtualNetworkPeeringLevel = "RemoteNotInSync" -) - -func PossibleValuesForVirtualNetworkPeeringLevel() []string { - return []string{ - string(VirtualNetworkPeeringLevelFullyInSync), - string(VirtualNetworkPeeringLevelLocalAndRemoteNotInSync), - string(VirtualNetworkPeeringLevelLocalNotInSync), - string(VirtualNetworkPeeringLevelRemoteNotInSync), - } -} - -func (s *VirtualNetworkPeeringLevel) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPeeringLevel(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPeeringLevel(input string) (*VirtualNetworkPeeringLevel, error) { - vals := map[string]VirtualNetworkPeeringLevel{ - "fullyinsync": VirtualNetworkPeeringLevelFullyInSync, - "localandremotenotinsync": VirtualNetworkPeeringLevelLocalAndRemoteNotInSync, - "localnotinsync": VirtualNetworkPeeringLevelLocalNotInSync, - "remotenotinsync": VirtualNetworkPeeringLevelRemoteNotInSync, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPeeringLevel(input) - return &out, nil -} - -type VirtualNetworkPeeringState string - -const ( - VirtualNetworkPeeringStateConnected VirtualNetworkPeeringState = "Connected" - VirtualNetworkPeeringStateDisconnected VirtualNetworkPeeringState = "Disconnected" - VirtualNetworkPeeringStateInitiated VirtualNetworkPeeringState = "Initiated" -) - -func PossibleValuesForVirtualNetworkPeeringState() []string { - return []string{ - string(VirtualNetworkPeeringStateConnected), - string(VirtualNetworkPeeringStateDisconnected), - string(VirtualNetworkPeeringStateInitiated), - } -} - -func (s *VirtualNetworkPeeringState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPeeringState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPeeringState(input string) (*VirtualNetworkPeeringState, error) { - vals := map[string]VirtualNetworkPeeringState{ - "connected": VirtualNetworkPeeringStateConnected, - "disconnected": VirtualNetworkPeeringStateDisconnected, - "initiated": VirtualNetworkPeeringStateInitiated, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPeeringState(input) - return &out, nil -} - -type VirtualNetworkPrivateEndpointNetworkPolicies string - -const ( - VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" - VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" - VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" - VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" -) - -func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { - return []string{ - string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), - } -} - -func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { - vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ - "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, - "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, - "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, - "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPrivateEndpointNetworkPolicies(input) - return &out, nil -} - -type VirtualNetworkPrivateLinkServiceNetworkPolicies string - -const ( - VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" - VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" -) - -func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { - return []string{ - string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), - string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), - } -} - -func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { - vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ - "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, - "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_createorupdate.go deleted file mode 100644 index fb27efb9d4b8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_createorupdate.go +++ /dev/null @@ -1,76 +0,0 @@ -package virtualnetworks - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *VirtualNetwork -} - -// CreateOrUpdate ... -func (c VirtualNetworksClient) CreateOrUpdate(ctx context.Context, id commonids.VirtualNetworkId, input VirtualNetwork) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c VirtualNetworksClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.VirtualNetworkId, input VirtualNetwork) error { - result, err := c.CreateOrUpdate(ctx, id, input) - if err != nil { - return fmt.Errorf("performing CreateOrUpdate: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after CreateOrUpdate: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_delete.go deleted file mode 100644 index 53212cd5aba3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_delete.go +++ /dev/null @@ -1,72 +0,0 @@ -package virtualnetworks - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c VirtualNetworksClient) Delete(ctx context.Context, id commonids.VirtualNetworkId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c VirtualNetworksClient) DeleteThenPoll(ctx context.Context, id commonids.VirtualNetworkId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_get.go deleted file mode 100644 index db1b8807d3eb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_get.go +++ /dev/null @@ -1,84 +0,0 @@ -package virtualnetworks - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *VirtualNetwork -} - -type GetOperationOptions struct { - Expand *string -} - -func DefaultGetOperationOptions() GetOperationOptions { - return GetOperationOptions{} -} - -func (o GetOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o GetOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o GetOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Expand != nil { - out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) - } - return &out -} - -// Get ... -func (c VirtualNetworksClient) Get(ctx context.Context, id commonids.VirtualNetworkId, options GetOperationOptions) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model VirtualNetwork - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_list.go deleted file mode 100644 index e540706223ad..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package virtualnetworks - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]VirtualNetwork -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []VirtualNetwork -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c VirtualNetworksClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworks", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]VirtualNetwork `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c VirtualNetworksClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, VirtualNetworkOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c VirtualNetworksClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VirtualNetworkOperationPredicate) (result ListCompleteResult, err error) { - items := make([]VirtualNetwork, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_listall.go deleted file mode 100644 index e91f96c1cf38..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_listall.go +++ /dev/null @@ -1,106 +0,0 @@ -package virtualnetworks - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListAllOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]VirtualNetwork -} - -type ListAllCompleteResult struct { - LatestHttpResponse *http.Response - Items []VirtualNetwork -} - -type ListAllCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListAllCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ListAll ... -func (c VirtualNetworksClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListAllCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworks", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]VirtualNetwork `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListAllComplete retrieves all the results into a single object -func (c VirtualNetworksClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { - return c.ListAllCompleteMatchingPredicate(ctx, id, VirtualNetworkOperationPredicate{}) -} - -// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c VirtualNetworksClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VirtualNetworkOperationPredicate) (result ListAllCompleteResult, err error) { - items := make([]VirtualNetwork, 0) - - resp, err := c.ListAll(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListAllCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_resourcenavigationlinkslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_resourcenavigationlinkslist.go deleted file mode 100644 index 16f353bcd4ee..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_resourcenavigationlinkslist.go +++ /dev/null @@ -1,106 +0,0 @@ -package virtualnetworks - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceNavigationLinksListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ResourceNavigationLink -} - -type ResourceNavigationLinksListCompleteResult struct { - LatestHttpResponse *http.Response - Items []ResourceNavigationLink -} - -type ResourceNavigationLinksListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ResourceNavigationLinksListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ResourceNavigationLinksList ... -func (c VirtualNetworksClient) ResourceNavigationLinksList(ctx context.Context, id commonids.SubnetId) (result ResourceNavigationLinksListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ResourceNavigationLinksListCustomPager{}, - Path: fmt.Sprintf("%s/resourceNavigationLinks", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]ResourceNavigationLink `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ResourceNavigationLinksListComplete retrieves all the results into a single object -func (c VirtualNetworksClient) ResourceNavigationLinksListComplete(ctx context.Context, id commonids.SubnetId) (ResourceNavigationLinksListCompleteResult, error) { - return c.ResourceNavigationLinksListCompleteMatchingPredicate(ctx, id, ResourceNavigationLinkOperationPredicate{}) -} - -// ResourceNavigationLinksListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c VirtualNetworksClient) ResourceNavigationLinksListCompleteMatchingPredicate(ctx context.Context, id commonids.SubnetId, predicate ResourceNavigationLinkOperationPredicate) (result ResourceNavigationLinksListCompleteResult, err error) { - items := make([]ResourceNavigationLink, 0) - - resp, err := c.ResourceNavigationLinksList(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ResourceNavigationLinksListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_serviceassociationlinkslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_serviceassociationlinkslist.go deleted file mode 100644 index c246c98a15b5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_serviceassociationlinkslist.go +++ /dev/null @@ -1,106 +0,0 @@ -package virtualnetworks - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceAssociationLinksListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ServiceAssociationLink -} - -type ServiceAssociationLinksListCompleteResult struct { - LatestHttpResponse *http.Response - Items []ServiceAssociationLink -} - -type ServiceAssociationLinksListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ServiceAssociationLinksListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// ServiceAssociationLinksList ... -func (c VirtualNetworksClient) ServiceAssociationLinksList(ctx context.Context, id commonids.SubnetId) (result ServiceAssociationLinksListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ServiceAssociationLinksListCustomPager{}, - Path: fmt.Sprintf("%s/serviceAssociationLinks", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]ServiceAssociationLink `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ServiceAssociationLinksListComplete retrieves all the results into a single object -func (c VirtualNetworksClient) ServiceAssociationLinksListComplete(ctx context.Context, id commonids.SubnetId) (ServiceAssociationLinksListCompleteResult, error) { - return c.ServiceAssociationLinksListCompleteMatchingPredicate(ctx, id, ServiceAssociationLinkOperationPredicate{}) -} - -// ServiceAssociationLinksListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c VirtualNetworksClient) ServiceAssociationLinksListCompleteMatchingPredicate(ctx context.Context, id commonids.SubnetId, predicate ServiceAssociationLinkOperationPredicate) (result ServiceAssociationLinksListCompleteResult, err error) { - items := make([]ServiceAssociationLink, 0) - - resp, err := c.ServiceAssociationLinksList(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ServiceAssociationLinksListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_subnetspreparenetworkpolicies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_subnetspreparenetworkpolicies.go deleted file mode 100644 index b42b121f904e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_subnetspreparenetworkpolicies.go +++ /dev/null @@ -1,75 +0,0 @@ -package virtualnetworks - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubnetsPrepareNetworkPoliciesOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// SubnetsPrepareNetworkPolicies ... -func (c VirtualNetworksClient) SubnetsPrepareNetworkPolicies(ctx context.Context, id commonids.SubnetId, input PrepareNetworkPoliciesRequest) (result SubnetsPrepareNetworkPoliciesOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/prepareNetworkPolicies", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// SubnetsPrepareNetworkPoliciesThenPoll performs SubnetsPrepareNetworkPolicies then polls until it's completed -func (c VirtualNetworksClient) SubnetsPrepareNetworkPoliciesThenPoll(ctx context.Context, id commonids.SubnetId, input PrepareNetworkPoliciesRequest) error { - result, err := c.SubnetsPrepareNetworkPolicies(ctx, id, input) - if err != nil { - return fmt.Errorf("performing SubnetsPrepareNetworkPolicies: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after SubnetsPrepareNetworkPolicies: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_subnetsunpreparenetworkpolicies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_subnetsunpreparenetworkpolicies.go deleted file mode 100644 index 69a0e33a2c87..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_subnetsunpreparenetworkpolicies.go +++ /dev/null @@ -1,75 +0,0 @@ -package virtualnetworks - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubnetsUnprepareNetworkPoliciesOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// SubnetsUnprepareNetworkPolicies ... -func (c VirtualNetworksClient) SubnetsUnprepareNetworkPolicies(ctx context.Context, id commonids.SubnetId, input UnprepareNetworkPoliciesRequest) (result SubnetsUnprepareNetworkPoliciesOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/unprepareNetworkPolicies", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// SubnetsUnprepareNetworkPoliciesThenPoll performs SubnetsUnprepareNetworkPolicies then polls until it's completed -func (c VirtualNetworksClient) SubnetsUnprepareNetworkPoliciesThenPoll(ctx context.Context, id commonids.SubnetId, input UnprepareNetworkPoliciesRequest) error { - result, err := c.SubnetsUnprepareNetworkPolicies(ctx, id, input) - if err != nil { - return fmt.Errorf("performing SubnetsUnprepareNetworkPolicies: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after SubnetsUnprepareNetworkPolicies: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_updatetags.go deleted file mode 100644 index 3e63f83e2a68..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_updatetags.go +++ /dev/null @@ -1,58 +0,0 @@ -package virtualnetworks - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UpdateTagsOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *VirtualNetwork -} - -// UpdateTags ... -func (c VirtualNetworksClient) UpdateTags(ctx context.Context, id commonids.VirtualNetworkId, input TagsObject) (result UpdateTagsOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodPatch, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model VirtualNetwork - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go deleted file mode 100644 index bcd41a4d5518..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go +++ /dev/null @@ -1,84 +0,0 @@ -package virtualnetworks - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworksCheckIPAddressAvailabilityOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *IPAddressAvailabilityResult -} - -type VirtualNetworksCheckIPAddressAvailabilityOperationOptions struct { - IPAddress *string -} - -func DefaultVirtualNetworksCheckIPAddressAvailabilityOperationOptions() VirtualNetworksCheckIPAddressAvailabilityOperationOptions { - return VirtualNetworksCheckIPAddressAvailabilityOperationOptions{} -} - -func (o VirtualNetworksCheckIPAddressAvailabilityOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o VirtualNetworksCheckIPAddressAvailabilityOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o VirtualNetworksCheckIPAddressAvailabilityOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.IPAddress != nil { - out.Append("ipAddress", fmt.Sprintf("%v", *o.IPAddress)) - } - return &out -} - -// VirtualNetworksCheckIPAddressAvailability ... -func (c VirtualNetworksClient) VirtualNetworksCheckIPAddressAvailability(ctx context.Context, id commonids.VirtualNetworkId, options VirtualNetworksCheckIPAddressAvailabilityOperationOptions) (result VirtualNetworksCheckIPAddressAvailabilityOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - OptionsObject: options, - Path: fmt.Sprintf("%s/checkIPAddressAvailability", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model IPAddressAvailabilityResult - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go deleted file mode 100644 index cfc2cb53d45d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go +++ /dev/null @@ -1,123 +0,0 @@ -package virtualnetworks - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworksListDdosProtectionStatusOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData - Model *[]PublicIPDdosProtectionStatusResult -} - -type VirtualNetworksListDdosProtectionStatusCompleteResult struct { - LatestHttpResponse *http.Response - Items []PublicIPDdosProtectionStatusResult -} - -type VirtualNetworksListDdosProtectionStatusOperationOptions struct { - SkipToken *string - Top *int64 -} - -func DefaultVirtualNetworksListDdosProtectionStatusOperationOptions() VirtualNetworksListDdosProtectionStatusOperationOptions { - return VirtualNetworksListDdosProtectionStatusOperationOptions{} -} - -func (o VirtualNetworksListDdosProtectionStatusOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o VirtualNetworksListDdosProtectionStatusOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o VirtualNetworksListDdosProtectionStatusOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.SkipToken != nil { - out.Append("skipToken", fmt.Sprintf("%v", *o.SkipToken)) - } - if o.Top != nil { - out.Append("top", fmt.Sprintf("%v", *o.Top)) - } - return &out -} - -type VirtualNetworksListDdosProtectionStatusCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *VirtualNetworksListDdosProtectionStatusCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// VirtualNetworksListDdosProtectionStatus ... -func (c VirtualNetworksClient) VirtualNetworksListDdosProtectionStatus(ctx context.Context, id commonids.VirtualNetworkId, options VirtualNetworksListDdosProtectionStatusOperationOptions) (result VirtualNetworksListDdosProtectionStatusOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusOK, - }, - HttpMethod: http.MethodPost, - OptionsObject: options, - Pager: &VirtualNetworksListDdosProtectionStatusCustomPager{}, - Path: fmt.Sprintf("%s/ddosProtectionStatus", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// VirtualNetworksListDdosProtectionStatusThenPoll performs VirtualNetworksListDdosProtectionStatus then polls until it's completed -func (c VirtualNetworksClient) VirtualNetworksListDdosProtectionStatusThenPoll(ctx context.Context, id commonids.VirtualNetworkId, options VirtualNetworksListDdosProtectionStatusOperationOptions) error { - result, err := c.VirtualNetworksListDdosProtectionStatus(ctx, id, options) - if err != nil { - return fmt.Errorf("performing VirtualNetworksListDdosProtectionStatus: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after VirtualNetworksListDdosProtectionStatus: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistusage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistusage.go deleted file mode 100644 index cfc1a239a938..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistusage.go +++ /dev/null @@ -1,106 +0,0 @@ -package virtualnetworks - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworksListUsageOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]VirtualNetworkUsage -} - -type VirtualNetworksListUsageCompleteResult struct { - LatestHttpResponse *http.Response - Items []VirtualNetworkUsage -} - -type VirtualNetworksListUsageCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *VirtualNetworksListUsageCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// VirtualNetworksListUsage ... -func (c VirtualNetworksClient) VirtualNetworksListUsage(ctx context.Context, id commonids.VirtualNetworkId) (result VirtualNetworksListUsageOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &VirtualNetworksListUsageCustomPager{}, - Path: fmt.Sprintf("%s/usages", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]VirtualNetworkUsage `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// VirtualNetworksListUsageComplete retrieves all the results into a single object -func (c VirtualNetworksClient) VirtualNetworksListUsageComplete(ctx context.Context, id commonids.VirtualNetworkId) (VirtualNetworksListUsageCompleteResult, error) { - return c.VirtualNetworksListUsageCompleteMatchingPredicate(ctx, id, VirtualNetworkUsageOperationPredicate{}) -} - -// VirtualNetworksListUsageCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c VirtualNetworksClient) VirtualNetworksListUsageCompleteMatchingPredicate(ctx context.Context, id commonids.VirtualNetworkId, predicate VirtualNetworkUsageOperationPredicate) (result VirtualNetworksListUsageCompleteResult, err error) { - items := make([]VirtualNetworkUsage, 0) - - resp, err := c.VirtualNetworksListUsage(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = VirtualNetworksListUsageCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_addressspace.go deleted file mode 100644 index 9e0e23e9145d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_addressspace.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AddressSpace struct { - AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddress.go deleted file mode 100644 index 3f9607979a8e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddress.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayBackendAddress struct { - Fqdn *string `json:"fqdn,omitempty"` - IPAddress *string `json:"ipAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddresspool.go deleted file mode 100644 index 6f399a7bf5dd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddresspool.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayBackendAddressPool struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddresspoolpropertiesformat.go deleted file mode 100644 index 953789d1f3ea..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddresspoolpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { - BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` - BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewayipconfiguration.go deleted file mode 100644 index 3da3cb7d9c8f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewayipconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewayipconfigurationpropertiesformat.go deleted file mode 100644 index d9d39242c2b3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewayipconfigurationpropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayIPConfigurationPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *SubResource `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationsecuritygroup.go deleted file mode 100644 index 8069aeaaf358..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationsecuritygroup.go +++ /dev/null @@ -1,14 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationsecuritygrouppropertiesformat.go deleted file mode 100644 index 29a50229369b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationsecuritygrouppropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationSecurityGroupPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_backendaddresspool.go deleted file mode 100644 index dca54b5ff449..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_backendaddresspool.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BackendAddressPool struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_backendaddresspoolpropertiesformat.go deleted file mode 100644 index b5357aa1b586..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_backendaddresspoolpropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BackendAddressPoolPropertiesFormat struct { - BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` - DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` - InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` - LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` - LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` - Location *string `json:"location,omitempty"` - OutboundRule *SubResource `json:"outboundRule,omitempty"` - OutboundRules *[]SubResource `json:"outboundRules,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - SyncMode *SyncMode `json:"syncMode,omitempty"` - TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` - VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_customdnsconfigpropertiesformat.go deleted file mode 100644 index 4608979dcd28..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_customdnsconfigpropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CustomDnsConfigPropertiesFormat struct { - Fqdn *string `json:"fqdn,omitempty"` - IPAddresses *[]string `json:"ipAddresses,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ddossettings.go deleted file mode 100644 index 1a0ce5cf3aab..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ddossettings.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosSettings struct { - DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` - ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_delegation.go deleted file mode 100644 index a8d0d2430172..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_delegation.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Delegation struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_dhcpoptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_dhcpoptions.go deleted file mode 100644 index 2e389bf95035..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_dhcpoptions.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DhcpOptions struct { - DnsServers *[]string `json:"dnsServers,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlog.go deleted file mode 100644 index b920c2a5d055..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlogformatparameters.go deleted file mode 100644 index 62b8c967d598..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlogformatparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogFormatParameters struct { - Type *FlowLogFormatType `json:"type,omitempty"` - Version *int64 `json:"version,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlogpropertiesformat.go deleted file mode 100644 index 46ad7cc15022..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_frontendipconfiguration.go deleted file mode 100644 index 4b7f7549a8a4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_frontendipconfiguration.go +++ /dev/null @@ -1,17 +0,0 @@ -package virtualnetworks - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FrontendIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_frontendipconfigurationpropertiesformat.go deleted file mode 100644 index 7f51afc745f1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_frontendipconfigurationpropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FrontendIPConfigurationPropertiesFormat struct { - GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` - InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` - InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` - LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` - OutboundRules *[]SubResource `json:"outboundRules,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` - PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_gatewayloadbalancertunnelinterface.go deleted file mode 100644 index ef3318f49d48..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_gatewayloadbalancertunnelinterface.go +++ /dev/null @@ -1,11 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GatewayLoadBalancerTunnelInterface struct { - Identifier *int64 `json:"identifier,omitempty"` - Port *int64 `json:"port,omitempty"` - Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` - Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_inboundnatrule.go deleted file mode 100644 index 20f0e56c9667..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_inboundnatrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundNatRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_inboundnatrulepropertiesformat.go deleted file mode 100644 index 8ca3d3cee595..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_inboundnatrulepropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type InboundNatRulePropertiesFormat struct { - BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` - BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` - BackendPort *int64 `json:"backendPort,omitempty"` - EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` - EnableTcpReset *bool `json:"enableTcpReset,omitempty"` - FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` - FrontendPort *int64 `json:"frontendPort,omitempty"` - FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` - FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - Protocol *TransportProtocol `json:"protocol,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipaddressavailabilityresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipaddressavailabilityresult.go deleted file mode 100644 index 2db5fbd90fa7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipaddressavailabilityresult.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPAddressAvailabilityResult struct { - Available *bool `json:"available,omitempty"` - AvailableIPAddresses *[]string `json:"availableIPAddresses,omitempty"` - IsPlatformReserved *bool `json:"isPlatformReserved,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfiguration.go deleted file mode 100644 index 7fc81013c873..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfiguration.go +++ /dev/null @@ -1,11 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationprofile.go deleted file mode 100644 index 246a7d2784a2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationprofile.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfigurationProfile struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationprofilepropertiesformat.go deleted file mode 100644 index 1c15860eaa40..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationprofilepropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfigurationProfilePropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationpropertiesformat.go deleted file mode 100644 index 5f7e978b3729..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationpropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPConfigurationPropertiesFormat struct { - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_iptag.go deleted file mode 100644 index 5f312015c16b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_iptag.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type IPTag struct { - IPTagType *string `json:"ipTagType,omitempty"` - Tag *string `json:"tag,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_loadbalancerbackendaddress.go deleted file mode 100644 index f84e63940987..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_loadbalancerbackendaddress.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LoadBalancerBackendAddress struct { - Name *string `json:"name,omitempty"` - Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_loadbalancerbackendaddresspropertiesformat.go deleted file mode 100644 index 5b16669363af..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_loadbalancerbackendaddresspropertiesformat.go +++ /dev/null @@ -1,14 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type LoadBalancerBackendAddressPropertiesFormat struct { - AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` - IPAddress *string `json:"ipAddress,omitempty"` - InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` - LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` - NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` - Subnet *SubResource `json:"subnet,omitempty"` - VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgateway.go deleted file mode 100644 index e2a2c9ea1aa7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgateway.go +++ /dev/null @@ -1,20 +0,0 @@ -package virtualnetworks - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGateway struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` - Sku *NatGatewaySku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgatewaypropertiesformat.go deleted file mode 100644 index 11bdb034e9d7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgatewaypropertiesformat.go +++ /dev/null @@ -1,13 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGatewayPropertiesFormat struct { - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` - PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - Subnets *[]SubResource `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgatewaysku.go deleted file mode 100644 index 3375ec206252..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgatewaysku.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatGatewaySku struct { - Name *NatGatewaySkuName `json:"name,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natruleportmapping.go deleted file mode 100644 index c1f6eb9d2642..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natruleportmapping.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NatRulePortMapping struct { - BackendPort *int64 `json:"backendPort,omitempty"` - FrontendPort *int64 `json:"frontendPort,omitempty"` - InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkintentpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkintentpolicy.go deleted file mode 100644 index 565f4c702ee9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkintentpolicy.go +++ /dev/null @@ -1,13 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkIntentPolicy struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkintentpolicyconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkintentpolicyconfiguration.go deleted file mode 100644 index 3f3080bf421c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkintentpolicyconfiguration.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkIntentPolicyConfiguration struct { - NetworkIntentPolicyName *string `json:"networkIntentPolicyName,omitempty"` - SourceNetworkIntentPolicy *NetworkIntentPolicy `json:"sourceNetworkIntentPolicy,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterface.go deleted file mode 100644 index 51266c314dbe..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterface.go +++ /dev/null @@ -1,19 +0,0 @@ -package virtualnetworks - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterface struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacednssettings.go deleted file mode 100644 index 35b796d58ea0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacednssettings.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceDnsSettings struct { - AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` - DnsServers *[]string `json:"dnsServers,omitempty"` - InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` - InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` - InternalFqdn *string `json:"internalFqdn,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfiguration.go deleted file mode 100644 index e4fe127f68f6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go deleted file mode 100644 index 0cf1411b04e0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { - Fqdns *[]string `json:"fqdns,omitempty"` - GroupId *string `json:"groupId,omitempty"` - RequiredMemberName *string `json:"requiredMemberName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfigurationpropertiesformat.go deleted file mode 100644 index f8d381013964..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfigurationpropertiesformat.go +++ /dev/null @@ -1,22 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceIPConfigurationPropertiesFormat struct { - ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` - ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` - GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` - LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` - LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` - Primary *bool `json:"primary,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` - VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacepropertiesformat.go deleted file mode 100644 index f38dee01e751..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacepropertiesformat.go +++ /dev/null @@ -1,29 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfacePropertiesFormat struct { - AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` - AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` - DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` - DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` - DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` - EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` - EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` - HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` - IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` - MacAddress *string `json:"macAddress,omitempty"` - MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` - NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` - NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` - Primary *bool `json:"primary,omitempty"` - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` - PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` - VirtualMachine *SubResource `json:"virtualMachine,omitempty"` - VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` - WorkloadType *string `json:"workloadType,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacetapconfiguration.go deleted file mode 100644 index 7ee2c196852d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacetapconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceTapConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacetapconfigurationpropertiesformat.go deleted file mode 100644 index f37548acc09f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacetapconfigurationpropertiesformat.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkInterfaceTapConfigurationPropertiesFormat struct { - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networksecuritygroup.go deleted file mode 100644 index c6ffd2de200a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networksecuritygroup.go +++ /dev/null @@ -1,14 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkSecurityGroup struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networksecuritygrouppropertiesformat.go deleted file mode 100644 index bdaff37d6ece..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networksecuritygrouppropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkSecurityGroupPropertiesFormat struct { - DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` - FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` - FlushConnection *bool `json:"flushConnection,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_preparenetworkpoliciesrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_preparenetworkpoliciesrequest.go deleted file mode 100644 index af5d6a6061cf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_preparenetworkpoliciesrequest.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrepareNetworkPoliciesRequest struct { - NetworkIntentPolicyConfigurations *[]NetworkIntentPolicyConfiguration `json:"networkIntentPolicyConfigurations,omitempty"` - ServiceName *string `json:"serviceName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpoint.go deleted file mode 100644 index a21e2003c7b0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpoint.go +++ /dev/null @@ -1,19 +0,0 @@ -package virtualnetworks - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpoint struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointProperties `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointconnection.go deleted file mode 100644 index 03c0943acbec..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointconnection.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointconnectionproperties.go deleted file mode 100644 index badbc227dee1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointconnectionproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointConnectionProperties struct { - LinkIdentifier *string `json:"linkIdentifier,omitempty"` - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` - PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` - PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointipconfiguration.go deleted file mode 100644 index b8c8c0e51e26..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointipconfiguration.go +++ /dev/null @@ -1,11 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointipconfigurationproperties.go deleted file mode 100644 index 0e1ea69495ca..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointipconfigurationproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointIPConfigurationProperties struct { - GroupId *string `json:"groupId,omitempty"` - MemberName *string `json:"memberName,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointproperties.go deleted file mode 100644 index c204c6f06f5b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointproperties.go +++ /dev/null @@ -1,16 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointProperties struct { - ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` - CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` - CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` - IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` - ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkservice.go deleted file mode 100644 index ea60905675db..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkservice.go +++ /dev/null @@ -1,19 +0,0 @@ -package virtualnetworks - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkService struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnection.go deleted file mode 100644 index 45640ebd97ec..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnection.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnectionproperties.go deleted file mode 100644 index ece1141c4d0b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnectionproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceConnectionProperties struct { - GroupIds *[]string `json:"groupIds,omitempty"` - PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` - PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RequestMessage *string `json:"requestMessage,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnectionstate.go deleted file mode 100644 index 498d4f92f9a2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnectionstate.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceConnectionState struct { - ActionsRequired *string `json:"actionsRequired,omitempty"` - Description *string `json:"description,omitempty"` - Status *string `json:"status,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceipconfiguration.go deleted file mode 100644 index b637ed217b55..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceipconfiguration.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceIPConfiguration struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceipconfigurationproperties.go deleted file mode 100644 index 7c3080b30c17..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceipconfigurationproperties.go +++ /dev/null @@ -1,13 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceIPConfigurationProperties struct { - Primary *bool `json:"primary,omitempty"` - PrivateIPAddress *string `json:"privateIPAddress,omitempty"` - PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` - PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Subnet *Subnet `json:"subnet,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceproperties.go deleted file mode 100644 index e187bf8454cc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddress.go deleted file mode 100644 index 5eef47c77e3e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddress.go +++ /dev/null @@ -1,22 +0,0 @@ -package virtualnetworks - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" - "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddress struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` - Sku *PublicIPAddressSku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` - Zones *zones.Schema `json:"zones,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddressdnssettings.go deleted file mode 100644 index 1e10d9bb32a2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddressdnssettings.go +++ /dev/null @@ -1,11 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressDnsSettings struct { - DomainNameLabel *string `json:"domainNameLabel,omitempty"` - DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` - Fqdn *string `json:"fqdn,omitempty"` - ReverseFqdn *string `json:"reverseFqdn,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddresspropertiesformat.go deleted file mode 100644 index f38386b9fd01..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddresspropertiesformat.go +++ /dev/null @@ -1,23 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressPropertiesFormat struct { - DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` - DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` - DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` - IPAddress *string `json:"ipAddress,omitempty"` - IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` - IPTags *[]IPTag `json:"ipTags,omitempty"` - IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` - LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` - MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` - NatGateway *NatGateway `json:"natGateway,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` - PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` - PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddresssku.go deleted file mode 100644 index f080c20b33e5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddresssku.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPAddressSku struct { - Name *PublicIPAddressSkuName `json:"name,omitempty"` - Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipddosprotectionstatusresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipddosprotectionstatusresult.go deleted file mode 100644 index ca0f8cc894fd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipddosprotectionstatusresult.go +++ /dev/null @@ -1,11 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPDdosProtectionStatusResult struct { - DdosProtectionPlanId *string `json:"ddosProtectionPlanId,omitempty"` - IsWorkloadProtected *IsWorkloadProtected `json:"isWorkloadProtected,omitempty"` - PublicIPAddress *string `json:"publicIpAddress,omitempty"` - PublicIPAddressId *string `json:"publicIpAddressId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourcenavigationlink.go deleted file mode 100644 index e26d27c77847..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourcenavigationlink.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceNavigationLink struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourcenavigationlinkformat.go deleted file mode 100644 index 5c0bb30457ed..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourcenavigationlinkformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceNavigationLinkFormat struct { - Link *string `json:"link,omitempty"` - LinkedResourceType *string `json:"linkedResourceType,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourceset.go deleted file mode 100644 index 3f176c096e67..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourceset.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ResourceSet struct { - Subscriptions *[]string `json:"subscriptions,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_retentionpolicyparameters.go deleted file mode 100644 index b8a74239a260..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_retentionpolicyparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RetentionPolicyParameters struct { - Days *int64 `json:"days,omitempty"` - Enabled *bool `json:"enabled,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_route.go deleted file mode 100644 index d76eb9ceeec8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_route.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Route struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *RoutePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routepropertiesformat.go deleted file mode 100644 index e52a5de8ca6a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routepropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RoutePropertiesFormat struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` - NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` - NextHopType RouteNextHopType `json:"nextHopType"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routetable.go deleted file mode 100644 index 2e233c020e37..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routetable.go +++ /dev/null @@ -1,14 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteTable struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routetablepropertiesformat.go deleted file mode 100644 index 69015d574032..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routetablepropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type RouteTablePropertiesFormat struct { - DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - Routes *[]Route `json:"routes,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_securityrule.go deleted file mode 100644 index f7ed0f51115e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_securityrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRule struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_securityrulepropertiesformat.go deleted file mode 100644 index af160e60e64d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_securityrulepropertiesformat.go +++ /dev/null @@ -1,23 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SecurityRulePropertiesFormat struct { - Access SecurityRuleAccess `json:"access"` - Description *string `json:"description,omitempty"` - DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` - DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` - DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` - DestinationPortRange *string `json:"destinationPortRange,omitempty"` - DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` - Direction SecurityRuleDirection `json:"direction"` - Priority int64 `json:"priority"` - Protocol SecurityRuleProtocol `json:"protocol"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` - SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` - SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` - SourcePortRange *string `json:"sourcePortRange,omitempty"` - SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceassociationlink.go deleted file mode 100644 index 77039ca3b739..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceassociationlink.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceAssociationLink struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceassociationlinkpropertiesformat.go deleted file mode 100644 index d6ef1f15de12..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceassociationlinkpropertiesformat.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceAssociationLinkPropertiesFormat struct { - AllowDelete *bool `json:"allowDelete,omitempty"` - Link *string `json:"link,omitempty"` - LinkedResourceType *string `json:"linkedResourceType,omitempty"` - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_servicedelegationpropertiesformat.go deleted file mode 100644 index 82eb0f31d43e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_servicedelegationpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceDelegationPropertiesFormat struct { - Actions *[]string `json:"actions,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ServiceName *string `json:"serviceName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicy.go deleted file mode 100644 index d50c20ce576d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicy.go +++ /dev/null @@ -1,15 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicy struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicydefinition.go deleted file mode 100644 index 4d2ebe5ac462..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicydefinition.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicyDefinition struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicydefinitionpropertiesformat.go deleted file mode 100644 index b221dd2c3192..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicydefinitionpropertiesformat.go +++ /dev/null @@ -1,11 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicyDefinitionPropertiesFormat struct { - Description *string `json:"description,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` - ServiceResources *[]string `json:"serviceResources,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicypropertiesformat.go deleted file mode 100644 index 00a9c1e56621..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicypropertiesformat.go +++ /dev/null @@ -1,13 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPolicyPropertiesFormat struct { - ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - ServiceAlias *string `json:"serviceAlias,omitempty"` - ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpropertiesformat.go deleted file mode 100644 index 03a937b7d65d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subnet.go deleted file mode 100644 index 7b3d4ff10c84..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subnet.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Subnet struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *SubnetPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subnetpropertiesformat.go deleted file mode 100644 index 24216334abbb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subnetpropertiesformat.go +++ /dev/null @@ -1,28 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubnetPropertiesFormat struct { - AddressPrefix *string `json:"addressPrefix,omitempty"` - AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` - ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` - DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` - Delegations *[]Delegation `json:"delegations,omitempty"` - IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` - IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` - IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` - NatGateway *SubResource `json:"natGateway,omitempty"` - NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` - PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` - PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` - PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Purpose *string `json:"purpose,omitempty"` - ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` - RouteTable *RouteTable `json:"routeTable,omitempty"` - ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` - ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` - ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` - SharingScope *SharingScope `json:"sharingScope,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subresource.go deleted file mode 100644 index ecd84dace182..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subresource.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type SubResource struct { - Id *string `json:"id,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_tagsobject.go deleted file mode 100644 index 9ac4400ec752..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_tagsobject.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TagsObject struct { - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_trafficanalyticsconfigurationproperties.go deleted file mode 100644 index ce47549e2b92..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_trafficanalyticsconfigurationproperties.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TrafficAnalyticsConfigurationProperties struct { - Enabled *bool `json:"enabled,omitempty"` - TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` - WorkspaceId *string `json:"workspaceId,omitempty"` - WorkspaceRegion *string `json:"workspaceRegion,omitempty"` - WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_trafficanalyticsproperties.go deleted file mode 100644 index 26812782cc83..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_trafficanalyticsproperties.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TrafficAnalyticsProperties struct { - NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_unpreparenetworkpoliciesrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_unpreparenetworkpoliciesrequest.go deleted file mode 100644 index 84b1fedbc2b5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_unpreparenetworkpoliciesrequest.go +++ /dev/null @@ -1,8 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type UnprepareNetworkPoliciesRequest struct { - ServiceName *string `json:"serviceName,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetwork.go deleted file mode 100644 index 01f2a07994e4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetwork.go +++ /dev/null @@ -1,19 +0,0 @@ -package virtualnetworks - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetwork struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *VirtualNetworkPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkbgpcommunities.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkbgpcommunities.go deleted file mode 100644 index ecb655fd2343..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkbgpcommunities.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkBgpCommunities struct { - RegionalCommunity *string `json:"regionalCommunity,omitempty"` - VirtualNetworkCommunity string `json:"virtualNetworkCommunity"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkencryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkencryption.go deleted file mode 100644 index a0d8e13fe3a7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkencryption.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkEncryption struct { - Enabled bool `json:"enabled"` - Enforcement *VirtualNetworkEncryptionEnforcement `json:"enforcement,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpeering.go deleted file mode 100644 index 85b7fe9183a3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpeering.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkPeering struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *VirtualNetworkPeeringPropertiesFormat `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpeeringpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpeeringpropertiesformat.go deleted file mode 100644 index 41ebdc1a88a2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpeeringpropertiesformat.go +++ /dev/null @@ -1,27 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkPeeringPropertiesFormat struct { - AllowForwardedTraffic *bool `json:"allowForwardedTraffic,omitempty"` - AllowGatewayTransit *bool `json:"allowGatewayTransit,omitempty"` - AllowVirtualNetworkAccess *bool `json:"allowVirtualNetworkAccess,omitempty"` - DoNotVerifyRemoteGateways *bool `json:"doNotVerifyRemoteGateways,omitempty"` - EnableOnlyIPv6Peering *bool `json:"enableOnlyIPv6Peering,omitempty"` - LocalAddressSpace *AddressSpace `json:"localAddressSpace,omitempty"` - LocalSubnetNames *[]string `json:"localSubnetNames,omitempty"` - LocalVirtualNetworkAddressSpace *AddressSpace `json:"localVirtualNetworkAddressSpace,omitempty"` - PeerCompleteVnets *bool `json:"peerCompleteVnets,omitempty"` - PeeringState *VirtualNetworkPeeringState `json:"peeringState,omitempty"` - PeeringSyncLevel *VirtualNetworkPeeringLevel `json:"peeringSyncLevel,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RemoteAddressSpace *AddressSpace `json:"remoteAddressSpace,omitempty"` - RemoteBgpCommunities *VirtualNetworkBgpCommunities `json:"remoteBgpCommunities,omitempty"` - RemoteSubnetNames *[]string `json:"remoteSubnetNames,omitempty"` - RemoteVirtualNetwork *SubResource `json:"remoteVirtualNetwork,omitempty"` - RemoteVirtualNetworkAddressSpace *AddressSpace `json:"remoteVirtualNetworkAddressSpace,omitempty"` - RemoteVirtualNetworkEncryption *VirtualNetworkEncryption `json:"remoteVirtualNetworkEncryption,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - UseRemoteGateways *bool `json:"useRemoteGateways,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpropertiesformat.go deleted file mode 100644 index a6ad3b4e3a0c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpropertiesformat.go +++ /dev/null @@ -1,21 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkPropertiesFormat struct { - AddressSpace *AddressSpace `json:"addressSpace,omitempty"` - BgpCommunities *VirtualNetworkBgpCommunities `json:"bgpCommunities,omitempty"` - DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` - DhcpOptions *DhcpOptions `json:"dhcpOptions,omitempty"` - EnableDdosProtection *bool `json:"enableDdosProtection,omitempty"` - EnableVMProtection *bool `json:"enableVmProtection,omitempty"` - Encryption *VirtualNetworkEncryption `json:"encryption,omitempty"` - FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` - FlowTimeoutInMinutes *int64 `json:"flowTimeoutInMinutes,omitempty"` - IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` - VirtualNetworkPeerings *[]VirtualNetworkPeering `json:"virtualNetworkPeerings,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworktap.go deleted file mode 100644 index d1b3faf41001..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworktap.go +++ /dev/null @@ -1,14 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkTap struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworktappropertiesformat.go deleted file mode 100644 index 4c2bb1fad6c9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworktappropertiesformat.go +++ /dev/null @@ -1,13 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkTapPropertiesFormat struct { - DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` - DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` - DestinationPort *int64 `json:"destinationPort,omitempty"` - NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkusage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkusage.go deleted file mode 100644 index 470dd6b34f83..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkusage.go +++ /dev/null @@ -1,12 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkUsage struct { - CurrentValue *float64 `json:"currentValue,omitempty"` - Id *string `json:"id,omitempty"` - Limit *float64 `json:"limit,omitempty"` - Name *VirtualNetworkUsageName `json:"name,omitempty"` - Unit *string `json:"unit,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkusagename.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkusagename.go deleted file mode 100644 index f3156ce6be82..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkusagename.go +++ /dev/null @@ -1,9 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkUsageName struct { - LocalizedValue *string `json:"localizedValue,omitempty"` - Value *string `json:"value,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/predicates.go deleted file mode 100644 index ae9763861542..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/predicates.go +++ /dev/null @@ -1,144 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PublicIPDdosProtectionStatusResultOperationPredicate struct { - DdosProtectionPlanId *string - PublicIPAddress *string - PublicIPAddressId *string -} - -func (p PublicIPDdosProtectionStatusResultOperationPredicate) Matches(input PublicIPDdosProtectionStatusResult) bool { - - if p.DdosProtectionPlanId != nil && (input.DdosProtectionPlanId == nil || *p.DdosProtectionPlanId != *input.DdosProtectionPlanId) { - return false - } - - if p.PublicIPAddress != nil && (input.PublicIPAddress == nil || *p.PublicIPAddress != *input.PublicIPAddress) { - return false - } - - if p.PublicIPAddressId != nil && (input.PublicIPAddressId == nil || *p.PublicIPAddressId != *input.PublicIPAddressId) { - return false - } - - return true -} - -type ResourceNavigationLinkOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p ResourceNavigationLinkOperationPredicate) Matches(input ResourceNavigationLink) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} - -type ServiceAssociationLinkOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p ServiceAssociationLinkOperationPredicate) Matches(input ServiceAssociationLink) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} - -type VirtualNetworkOperationPredicate struct { - Etag *string - Id *string - Location *string - Name *string - Type *string -} - -func (p VirtualNetworkOperationPredicate) Matches(input VirtualNetwork) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} - -type VirtualNetworkUsageOperationPredicate struct { - CurrentValue *float64 - Id *string - Limit *float64 - Unit *string -} - -func (p VirtualNetworkUsageOperationPredicate) Matches(input VirtualNetworkUsage) bool { - - if p.CurrentValue != nil && (input.CurrentValue == nil || *p.CurrentValue != *input.CurrentValue) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Limit != nil && (input.Limit == nil || *p.Limit != *input.Limit) { - return false - } - - if p.Unit != nil && (input.Unit == nil || *p.Unit != *input.Unit) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/version.go deleted file mode 100644 index 5c44fd0fa197..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/virtualnetworks/2023-11-01" -} diff --git a/vendor/modules.txt b/vendor/modules.txt index ba515a06eac9..6f1a0facaab4 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -706,16 +706,13 @@ github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrou github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts